AuthenticationError

public enum AuthenticationError : MobileAuthenticationClientError
extension AuthenticationError: LocalizedError

An error occurred during authentication

The SDK returns SessionProvider that can be used to continue the authentication. This can be useful when the SDK is used with Identity Suite and cookies as backend: even if the FIDO UAF authentication fails, we may want to continue using the same authentication session to ask the end-user to authenticate in another way.

  • A network error occurred while redeeming the token: either the server was not reachable or it returned an HTTP error.

    Declaration

    Swift

    case NetworkError(cause: Error? = nil, sessionProvider: SessionProvider?)

    Parameters

    cause

    The underlying error.

    sessionProvider

    The SessionProvider that can be used to continue with the operation.

  • A FIDO UAF error occurred.

    Declaration

    Swift

    case FidoError(errorCode: FidoErrorCode, cause: Error? = nil, sessionProvider: SessionProvider?)

    Parameters

    errorCode

    The FIDO error code.

    cause

    The underlying error that is related to the error occurred.

    sessionProvider

    The SessionProvider that can be used to continue with the operation.

  • Unknown error, handling not categorized error cases.

    Requires

    iOS platform

    Declaration

    Swift

    case Unknown(message: String? = nil, cause: Error? = nil)

    Parameters

    message

    Additional information about the error.

    cause

    The underlying error that is related to the error occurred.

Localized descriptions

  • A message describing what error occurred.

    Declaration

    Swift

    public var errorDescription: String? { get }