SimpliciAuthConfig class
Configuration class for SimpliciAuth
Constructors
-
SimpliciAuthConfig({required String instanceId, String environment = "beta", bool isCombinedInput = true, String platform = "ios", String baseUrl = "https://auth.beta.satschel.com", String jsPath = "/static/js/bundle.js", String? userAgent, bool debugMode = false, String? customCSS, Map<
String, String> ? additionalAttributes, bool showLoadingOverlay = false, void onAuthSuccess(Map<String, dynamic> data)?, void onAuthError(String error)?, void onStepChanged(Map<String, dynamic> data)?, void onAuthComplete(Map<String, dynamic> data)?, void onLoaded()?, void onControllerCreated(dynamic controller)?, String? page, String? lang, String? microsoftRedirectUrl, String? facebookRedirectUrl, String? appleRedirectUrl, String? googleRedirectUrl}) -
const
Properties
-
additionalAttributes
→ Map<
String, String> ? -
Additional attributes to pass to the web component
final
- appleRedirectUrl → String?
-
Apple OAuth redirect URL
final
- authUrl → String
-
Get the authentication URL
no setter
-
Whether to enable auto navigation
final
- baseUrl → String
-
The base URL for the SimpliciAuth service
final
- customCSS → String?
-
Custom CSS styles
final
- debugMode → bool
-
Enable debug logging
final
- effectiveUserAgent → String
-
Get the effective user agent
no setter
- environment → String
-
The environment to use (beta, production, etc.)
final
- facebookRedirectUrl → String?
-
Facebook OAuth redirect URL
final
- fullJsUrl → String
-
Get the full JavaScript URL
no setter
- googleRedirectUrl → String?
-
Google OAuth redirect URL
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
Whether to hide navigation elements
final
- instanceId → String
-
The instance ID for the SimpliciAuth service
final
- isCombinedInput → bool
-
Whether to use combined input
final
- jsPath → String
-
The path to the JavaScript file
final
- lang → String?
-
Language code (e.g., 'en', 'es', 'fr')
final
- microsoftRedirectUrl → String?
-
Microsoft OAuth redirect URL
final
-
onAuthComplete
→ void Function(Map<
String, dynamic> data)? -
Callback function called when authentication completes
final
- onAuthError → void Function(String error)?
-
Callback function called when authentication fails
final
-
onAuthSuccess
→ void Function(Map<
String, dynamic> data)? -
Callback function called when authentication is successful
final
- onControllerCreated → void Function(dynamic controller)?
-
Callback function called when the webview controller is created
This allows external access to call methods like SimpliciAuth.exchangeCode
final
- onLoaded → void Function()?
-
Callback function called when the component is loaded
final
-
onStepChanged
→ void Function(Map<
String, dynamic> data)? -
Callback function called when authentication step changes
final
- page → String?
-
The specific page to display
final
- platform → String
-
The platform (ios, android, web)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLoadingOverlay → bool
-
Show loading overlay
final
- userAgent → String?
-
Custom user agent string
final
Methods
-
copyWith(
{String? instanceId, String? environment, bool? isCombinedInput, String? platform, String? baseUrl, String? jsPath, String? userAgent, bool? debugMode, String? customCSS, Map< String, String> ? additionalAttributes, bool? showLoadingOverlay, void onAuthSuccess(Map<String, dynamic> data)?, void onAuthError(String error)?, void onStepChanged(Map<String, dynamic> data)?, void onAuthComplete(Map<String, dynamic> data)?, void onLoaded()?, void onControllerCreated(dynamic controller)?, String? page, String? lang, String? microsoftRedirectUrl, String? facebookRedirectUrl, String? appleRedirectUrl, String? googleRedirectUrl}) → SimpliciAuthConfig - Create a copy of this config with updated values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited