Overview

  • SDK

    The list of constants defined by the Nevis Mobile Authentication SDK.

    See more

    Declaration

    Swift

    public enum SDK
  • The MobileAuthenticationClient configuration. This Configuration is used to build and initialize the MobileAuthenticationClient.

    Examples:

    let 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")
    
    
    See more

    Declaration

    Swift

    public struct Configuration : Codable, Equatable
  • The MobileAuthenticationClient protocol represents the entry point to the SDK. Your application should generally create an application scoped MobileAuthenticationClient instance, by passing in a configuration that specifies the MobileAuthenticationClient 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 the Configuration has already been created, here is an example using MobileAuthenticationClientInitializer to setup the SDK during application startup:

    import MobileAuthenticationClient
    
    MobileAuthenticationClientInitializer()
        .configuration(configuration)
        .onSuccess { client in ... }
        .onError { error in ... }
        .execute()
    
    See more

    Declaration

    Swift

    public protocol MobileAuthenticationClient
  • 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 more

    Declaration

    Swift

    public protocol LocalData