SSOToken
public protocol SSOToken : Session, Decodable, Encodable
A protocol representing a Single Sign-On (SSO) token with session information.
SSOToken extends the Session protocol to provide additional authentication
context including the success URL and realm. Types conforming to this protocol
can be used throughout the Journey framework for session management and storage.
Conforming types must be both Codable (for serialization/deserialization)
and inherit from Session (providing the session value).
See also
SSOTokenImpl for the concrete implementation
See also
SessionConfig for configuring SSO token storage
-
The URL to redirect to upon successful authentication.
This URL represents the endpoint where the user should be directed after a successful authentication flow. It’s typically provided by the authentication server as part of the success response.
Declaration
Swift
var successUrl: String { get } -
The authentication realm or domain.
The realm identifies the authentication context or tenant. This is particularly important in multi-tenant scenarios where different realms may have different authentication policies or user stores.
Example Values
"alpha"- A specific realm name"/"- Root realm"customers"- A customer-facing realm
Declaration
Swift
var realm: String { get }
View on GitHub