SDK Errors
In this reference you can find a description of all errors that can occur in the iOS SDK. See the error handling topic guide for more info on handling the errors when they occur.
Error | Code | Description |
---|---|---|
ONGGenericErrorNetworkConnectivityFailure | 9000 | Due to a problem with the device internet connection it was not possible to initiate the requested action. |
ONGGenericErrorServerNotReachable | 9001 | It is not possible to connect with the Token Server. |
ONGGenericErrorDeviceDeregistered | 9002 | The device registration was removed from the Token Server. All locally stored data is removed from the device and the user needs to register again. |
ONGGenericErrorUserDeregistered | 9003 | The user account is deregistered from the device. The user supplied the wrong PIN for too many times. All local data associated with the user profile has been removed. |
ONGGenericErrorOutdatedApplication | 9004 | The Token Server denotes that the current app is no longer valid and can no longer be used. The end-user must update the application. |
ONGGenericErrorOutdatedOS | 9005 | The Token Server does not allow this application to run on the current OS version. Instruct the user to update the OS. |
ONGGenericErrorActionCancelled | 9006 | The action was cancelled. |
ONGGenericErrorActionAlreadyInProgress | 9007 | The requested action is already in progress and can not be performed concurrently. |
ONGGenericErrorDeviceRegistrationFailure | 9008 | The device could not be registered with the Token Server. Verify that the SDK configuration, Token Server configuration and security features are correctly configured. |
ONGGenericErrorDeviceUpdateFailure | 9019 | Updating the device registration with the Token Server failed. Verify that the SDK configuration, Token Server configuration and security features are correctly configured. |
ONGAuthenticationErrorInvalidPin | 9009 | The provided PIN was invalid |
ONGAuthenticatorRegistrationErrorUserNotAuthenticated, ONGAuthenticatorDeregistrationErrorUserNotAuthenticated, ONGPinChangeErrorUserNotAuthenticated, ONGMobileAuthEnrollmentErrorUserNotAuthenticated, ONGFetchResourceErrorUserNotAuthenticated | 9010 | The action can't be performed because no user is currently authenticated, possibly due to the fact that the access token has expired. A user must be authenticated in order to perform the action. |
ONGPinValidationErrorPinBlackListed | 9011 | The provided PIN was marked as blacklisted on the Token Server. |
ONGPinValidationErrorPinShouldNotBeASequence | 9012 | The provided PIN contains a not allowed sequence. |
ONGPinValidationErrorPinShouldNotUseSimilarDigits | 9013 | The provided PIN contains too many similar digits. |
ONGPinValidationErrorWrongPinLength | 9014 | The provided PIN length is invalid. |
ONGAuthenticationErrorAuthenticatorInvalid | 9015 | The authenticator that you tried to use is invalid. It may not exist, please verify whether you have supplied the correct authenticator. |
ONGMobileAuthEnrollmentErrorDeviceAlreadyEnrolled | 9016 | The device is already enrolled for mobile authentication. This may happen in case an old push token is still left behind in the Token Server database and is reused by the OS. |
ONGMobileAuthEnrollmentErrorEnrollmentNotAvailable | 9017 | The Mobile authentication feature is disabled in the Token Server configuration. |
ONGMobileAuthEnrollmentErrorUserAlreadyEnrolled | 9018 | The user is already enrolled for mobile authentication on another device. |
ONGMobileAuthRequestErrorUserDisenrolled | 9020 | The user has been disenrolled for security reasons. The keys have been revoked and the user has to enroll again in order to use mobile authentication. |
ONGMobileAuthEnrollmentErrorNotEnrolled, ONGMobileAuthRequestErrorNotEnrolled | 9021 | The mobile authentication was not enrolled. |
ONGAuthenticationErrorAuthenticatorDeregistered | 9022 | The used authenticator has been deregistered. |
ONGGenericErrorDataStorageNotAvailable | 9024 | The data storage could not be accessed. |
ONGGenericErrorUnrecoverableDataState | 9025 | The data storage is corrupted and cannot be recovered or cleared. |
ONGFetchImplicitResourceErrorDomain | 9026 | The action can't be performed because no user is currently authenticated implicitly, possibly due to the fact that the implicit access token has expired. A user must be authenticated in order to perform the action. |
ONGAuthenticatorRegistrationError | 9027 | Custom authenticator registration has failed. Please check the ONGCustomInfo object for details. |
ONGAuthenticatorDeregistrationError | 9028 | Authenticator was deregister only locally. It was not deregister on the server side. |
ONGMobileAuthRequestErrorAlreadyHandled | 9029 | The provided mobile authentication request is already being handled. |
ONGAuthenticationErrorBiometricAuthenticatorFailure | 9030 | Authentication with the biometric authenticator has failed. It's related to all errors returned while fetching data secured by biometric authenticators. |
ONGGenericErrorUnknown | 10000 | A generic error occurred. |
ONGGenericErrorConfigurationInvalid | 10001 | The Token Server configuration is invalid. |
ONGRegistrationErrorInvalidState | 10002 | The SDK detected that there was a possible CSRF attack |
ONGDeregistrationErrorLocalDeregistration | 10003 | The user was only deregistered on the device. The device registration has not been removed on the server-side due to a connection problem. This does not pose a problem but you might want to inform the end-user as he might be able to see that he/she is still registered through a web portal. |
ONGAuthenticatorRegistrationErrorAuthenticatorAlreadyRegistered | 10004 | The given authenticator is already registered and can therefore not be registered again. |
ONGAuthenticatorRegistrationErrorAuthenticatorNotSupported | 10006 | The given authenticator is not supported. |
ONGAuthenticationErrorAuthenticatorNotRegistered | 10007 | The given authenticator is not registered and can therefore not be used. |
ONGAuthenticatorPinDeregistrationNotPossible | 10008 | The PIN authenticator can't be deregistered. |
ONGLogoutErrorLocalLogout | 10009 | The user was only logged out on the device. The access token has not been invalidated on the server-side. This does not pose a problem but you might want to inform the end-user as he might be able to see that he/she is still logged in through a web portal. |
ONGFetchResourceErrorInvalidMethod, ONGFetchAnonymousResourceErrorInvalidMethod | 10010 | The provided request method is not valid, use one of @"GET", @"POST", @"DELETE", @"PUT" |
ONGFetchAnonymousResourceErrorDeviceNotAuthenticated | 10012 | A device access token could not be retrieved. Check your Application configuration in the Token Server. |
ONGMobileAuthRequestErrorNotFound | 10013 | The mobile authentication request was not found. Please make sure that the mobile authentication request is available. This might be an indication that your Token Server setup is not complete. Cache replication might not work properly. |
ONGGenericErrorRequestInvalid | 10015 | The request to the Token Server was invalid. Please verify that the Token Server configuration is correct and that no reverse proxy is interfering with the connection. |
ONGMobileAuthRequestErrorNotHandleable | 10018 | The mobile authentication request cannot be handled by the Onegini SDK. It might be due to the fact that the request was not meant for the Onegini SDK or that it is malformed. |
ONGFetchResourceErrorInvalidHeaders, ONGFetchAnonymousResourceErrorInvalidHeaders, ONGFetchUnauthenticatedResourceErrorInvalidHeaders | 10019 | The provided request headers are not valid |
ONGAuthenticatorDeregistrationErrorCustomAuthenticationDisabled | 10020 | The Token Server configuration does not allow you to use custom authenticators. Enable custom authentication for the current application in the Token Server configuration to allow custom authenticator usage. |
ONGRegistrationErrorCustomRegistrationExpired | 10021 | Invalid transaction id/state. |
ONGRegistrationErrorCustomRegistrationFailure | 10022 | Authentication with the custom authenticator has failed. Please check the CustomInfo for details. |
ONGAppToWebSingleSignOnErrorAppToWebSingleSignOnDisabled | 10023 | The Token Server configuration does not allow you to use single sign on. |
ONGGenericErrorAppIntegrityFailure | 10024 | Application integrity check failed. Please verify application signature on the Token Server. |