STRUCT

HaapiUIKitConfiguration

public struct HaapiUIKitConfiguration

Configuration definitions for UIKit SDK internal functionality. These are intended for usage in an HaapiFlow implementation. The flow is responsible for executing all the interactions with Curity Identity Server and provide feedback during execution.

The recommended way to create a HaapiUIKitConfiguration instance is to use HaapiUIKitConfigurationBuilder.

HaapiUIKitConfigurationBuilder(
   clientId: "clientId",
   baseUri: baseUrl,
   tokenEndpointUrl: URL(string: "/dev/oauth/token", relativeTo: baseUrl),
   authorizationEndpointUri: URL(string: "/dev/oauth/authorize", relativeTo: baseUrl),
   appRedirect: "appRedirect"
)
//.set...
.build()

It is possible to create a HaapiUIKitConfiguration by providing an HaapiConfiguration and other additional parameters..

HaapiUIKitConfiguration(
   haapiConfiguration: HaapiConfiguration(
                           keyStoreAlias: "...",
                           clientId: "clientId",
                           baseUrl: baseUrl,
                           tokenEndpointUrl: URL(string: "/dev/oauth/token", relativeTo: baseUrl),
                           authorizationEndpointUrl: URL(string: "/dev/oauth/authorize", relativeTo: baseUrl),
                           authorizationParametersProvider: nil,
                           httpHeadersProvider: nil,
                           appRedirect: "appRedirect",
                           isAutoRedirect: true
                       ),
   autoPollingDuration: TimeInterval(of: 3),
   shouldAutoHandleFlowErrorFeedback: false,
   presentationMode: .Stack,
   authenticationSelectionPresentation: .List,
   shouldConfirmFlowInterruption: true,
   useDefaultExternalBrowser: true,
)