Skip to content

OAuth2Authentication

Structure Class

OAuth2Authentication dataclass

Bases: _SerdeShape

OAuth2 authentication information for third-party providers.

Attributes

email_address class-attribute instance-attribute
email_address: str | None = ...

The email address from the OAuth2 provider.

name class-attribute instance-attribute
name: str | None = ...

The user's name from the OAuth2 provider.

sub instance-attribute
sub: str

The subject (sub) claim from the OAuth2 provider. Uniquely identifies the user at the provider.

username class-attribute instance-attribute
username: str | None = ...

The username from the OAuth2 provider.