DiscoveryDocument
public struct DiscoveryDocument : Codable
extension DiscoveryDocument: Equatable
IDP Discovery document
-
Declaration
Swift
public let backing: JWT
-
The IDP X.509 certificate used to validate the discovery document
Declaration
Swift
public let discKey: X509
-
The IDP Authentication endpoint public key, used to derivce the encryption key to encrypt the JWE‘s
Declaration
Swift
public let encryptionPublicKey: BrainpoolP256r1.KeyExchange.PublicKey
-
The IDP X.509 certificate that is used to check signatures
Declaration
Swift
public let signingCert: X509
-
Initialize as Decodable
Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
the decoder
-
Encode the DiscoveryDocument according to the Encodable protocol
Throws
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
the encoder
-
Declaration
Swift
public init(jwt: JWT, encryptPuks: JWK, signingPuks: JWK, createdOn: Date = Date()) throws
-
IDP Authentication endpoint
Declaration
Swift
public var authentication: IDPEndpoint { get }
-
IDP Authentication endpoint
Declaration
Swift
public var sso: IDPEndpoint { get }
-
IDP Token exchange endpoint
Declaration
Swift
public var token: IDPEndpoint { get }
-
Declaration
Swift
public var pairing: IDPEndpoint { get }
-
Declaration
Swift
public var authenticationPaired: IDPEndpoint { get }
-
Declaration
Swift
public var directoryKKApps: IDPEndpoint? { get }
-
Declaration
Swift
public var directoryKKAppsgId: IDPEndpoint? { get }
-
Declaration
Swift
public var thirdPartyAuth: IDPEndpoint? { get }
-
Declaration
Swift
public var federationAuth: IDPEndpoint? { get }
-
Expiration date
Declaration
Swift
public var expiresOn: Date { get }
-
Issued date
Declaration
Swift
public var issuedAt: Date { get }
-
Check if the discovery document is valid on the given date
Declaration
Swift
public func isValid(on date: Date) -> Bool
Parameters
date
Date to check validity against
Return Value
Boolean indicating if the document is valid