core / pragma.auth / ValidatedIdentity /
ValidatedIdentity #
data class ValidatedIdentity(val account: IdProviderAccount, val entitlement: Entitlement? = null)
The result of validating a provider token: the authenticated account, plus whatever the provider reported about the licence the session is running on.
Parameters #
account | The authenticated account. |
entitlement | What the provider reported about the licence. null means it reported nothing, either because the provider has no concept of a borrowed licence or because this login carried no ownership information. It never means the licence is known to be owned outright, so it must not on its own be treated as suspicious, and it must not be taken as evidence that a previously recorded licence owner is stale. |
Constructors #
fun ValidatedIdentity(account: IdProviderAccount, entitlement: Entitlement? = null) |
Properties #
| Name | Summary |
|---|---|
val account: IdProviderAccount | |
val entitlement: Entitlement? = null |