PROTOCOL

HaapiConfigurable

swift
public protocol HaapiConfigurable

Configuration options for HaapiManager.

Properties

name

swift
var name: String

The name of the configuration. This value should be unique for each HaapiManager. Otherwise, the application will terminate.

clientId

swift
var clientId: String

The client ID as configured in the Curity Identity Server.

baseURL

swift
var baseURL: URL

The base URL of the Curity Identity Server. Used to resolve relative links. Not the issuer ID.

tokenEndpointURL

swift
var tokenEndpointURL: URL

The token endpoint URL.

authorizationEndpointURL

swift
var authorizationEndpointURL: URL

The authorization endpoint URL.

appRedirect

swift
var appRedirect: String

The client application's redirect URI, used in authorization requests. (Deep link)

urlSession

swift
var urlSession: URLSession

The URLSession that is used to perform network requests.

isAutoRedirect

swift
var isAutoRedirect: Bool

Whether HaapiManager will automatically follow redirection steps.

httpHeadersProvider

swift
var httpHeadersProvider: HttpHeadersProvider?

The http headers provider used for Haapi requests.

authorizationParametersProvider

swift
var authorizationParametersProvider: OAuthAuthorizationParametersProvider?

An optional closure that produces the authorization request parameters that will be used when accessing the authorization endpoint.

minTokenTtl

swift
var minTokenTtl: TimeInterval

The minimum time to live that an access token must have to be used in a request, otherwise a new access token is retrieved and used.

attestationConfiguration

swift
var attestationConfiguration: AttestationConfiguration

The DeviceCheck attestation mechanism configuration settings (applicable only to physical devices).