AuthSettings class
AuthSettings
encapsulates all authentication-related configurations for the application.
This class serves as a container for settings specific to different authentication providers or mechanisms. Currently, it supports Microsoft authentication settings, but it can be expanded to include other providers by adding more properties.
Usage:
AuthSettings authSettings = AuthSettings(
microsoftSettings: MicrosoftSettings(
clientId: "your-client-id",
redirectUri: "your-redirect-uri",
authority: "https://login.microsoftonline.com/your-tenant-id",
),
);
This setup allows for a centralized and flexible configuration of authentication settings that can be easily passed around and accessed throughout the application.
Constructors
- AuthSettings({MicrosoftSettings? microsoft})
-
Constructs an instance of
AuthSettings
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- microsoft ↔ MicrosoftSettings?
-
Optional Microsoft authentication settings.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited