TESTAuthenticationProvider

public class TESTAuthenticationProvider : AuthenticationProvider

Authentication provider for generating authentication info using a TEST registration key.

  • Initializes a TEST authentication provider with a TEST key.

    Declaration

    Swift

    public init(name: String, key: String, keyId: String = Constants.testRegistrationKeyId, keyManager: SudoKeyManager, customAttributes: [String : Any] = [:]) throws

    Parameters

    name

    Provider name. This name will be prepend to the generated UUID in JWT sub.

    key

    PEM encoded RSA private key.

    keyId

    Key ID.

    keyManager

    KeyManager instance to use for signing authentication info.

    customAttributes

    Additional attributes to add to the authentication information.

  • Declaration

    Swift

    public func getAuthenticationInfo() async throws -> AuthenticationInfo
  • Declaration

    Swift

    public func reset()