Protocol
JWTIdentityToken
A provider-issued identity token whose audience must be bound to the application that is accepting it.
protocol JWTIdentityToken : JWTPayload
Overview
Use verify(_:as:expectedAudience:trustedAdditionalAudiences:iteratingKeys:) or verify(_:as:expectedAudiences:trustedAdditionalAudiences:iteratingKeys:) to verify an identity token. Signature, issuer, and expiry checks alone do not establish that a token was issued for your application.
Topics
Instance Properties
Type Methods
static func authenticator() -> AsyncAuthenticatorstatic func authenticator(expectedAudience: String, trustedAdditionalAudiences: Set<String>) -> AsyncAuthenticatorAuthenticates an identity token only when it was issued for this audience. The signing keys must be registered inapp.jwt.keys.static func authenticator(expectedAudiences: some Sequence<String>, trustedAdditionalAudiences: Set<String>) -> AsyncAuthenticatorAuthenticates an identity token for any of the configured audiences. The signing keys must be registered inapp.jwt.keys.
Relationships
Inherits From
JWTPayloadSwift.DecodableSwift.EncodableSwift.SendableSwift.SendableMetatype