Overview
-
The list of constants defined by the Nevis Mobile Authentication SDK.
See moreDeclaration
Swift
public enum SDK
-
The
MobileAuthenticationClient
configuration. ThisConfiguration
is used to build and initialize theMobileAuthenticationClient
.Examples:
See morelet defaultConfig = Configuration(baseUrl: URL(string: "https://test.host.com")!) let configWithCustomResponsePaths = Configuration( baseUrl: URL(string: "https://test.host.com")! registrationResponsePath: "/custom/uaf/1.1/registration/" authenticationResponsePath: "/custom/uaf/1.1/authentication/" ) let authCloudConfig = Configuration(authCloudHostname: "test.host.com")
Declaration
Swift
public struct Configuration : Codable, Equatable
-
The
MobileAuthenticationClient
protocol represents the entry point to the SDK. Your application should generally create an application scopedMobileAuthenticationClient
instance, by passing in a configuration that specifies theMobileAuthenticationClient
behavior. The configuration defines the URLs and TLS settings used to perform operations with a NEVIS Mobile Authentication backend.To create the
MobileAuthenticationClient
, assuming that theConfiguration
has already been created, here is an example usingMobileAuthenticationClientInitializer
to setup the SDK during application startup:
See moreimport MobileAuthenticationClient MobileAuthenticationClientInitializer() .configuration(configuration) .onSuccess { client in ... } .onError { error in ... } .execute()
Declaration
Swift
public protocol MobileAuthenticationClient
-
A builder for
See moreMobileAuthenticationClient
.Declaration
Swift
public final class MobileAuthenticationClientInitializer
-
A protocol that provides information about the information that is stored locally in the SDK. This includes authenticator and device information. The protocol also allows to delete the data locally.
See moreDeclaration
Swift
public protocol LocalData