LoginSuccessEvent¶
- pydantic model gafaelfawr.events.LoginSuccessEvent¶
User successfully authenticated.
A user returned successfully from the identity provider after authenticating.
- Parameters:
data (
Any
)
Show JSON schema
{ "title": "LoginSuccessEvent", "description": "User successfully authenticated.\n\nA user returned successfully from the identity provider after\nauthenticating.", "type": "object", "properties": { "username": { "description": "Username of authenticated user", "title": "Username", "type": "string" }, "elapsed": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "How long it took the user to complete the login process in seconds", "title": "Duration of login process (seconds)" } }, "required": [ "username" ] }
- Fields:
- field elapsed: float | None = None¶
How long it took the user to complete the login process in seconds
- field username: str [Required]¶
Username of authenticated user
- asdict()¶
Returns this model in dictionary form. This method differs from pydantic’s dict by converting all values to their Avro representation. It also doesn’t provide the exclude, include, by_alias, etc. parameters that dict provides.
- classmethod fake(**data)¶
Creates a fake instance of the model.
- Attributes:
data: Dict[str, Any] represent the user values to use in the instance
- Parameters:
data (
Any
)- Return type:
AvroBaseModel
- serialize(serialization_type='avro')¶
Overrides the base AvroModel’s serialize method to inject this class’s standardization factory method