DBOAuthErrorType

Objective-C

enum DBOAuthErrorType : NSInteger {}

Swift

enum DBOAuthErrorType : Int, @unchecked Sendable

Represents the possible error types that can be returned from OAuth linking. Includes errors from both Implicit Grant (See RFC6749 4.2.2.1) and Extension Grants (See RFC6749 5.2), and a couple of SDK defined errors outside of OAuth2 specification.

  • The client is not authorized to request an access token using this method.

    Declaration

    Objective-C

    DBAuthUnauthorizedClient

    Swift

    case DBAuthUnauthorizedClient = 0
  • The resource owner or authorization server denied the request.

    Declaration

    Objective-C

    DBAuthAccessDenied

    Swift

    case DBAuthAccessDenied = 1
  • The authorization server does not support obtaining an access token using this method.

    Declaration

    Objective-C

    DBAuthUnsupportedResponseType

    Swift

    case DBAuthUnsupportedResponseType = 2
  • The requested scope is invalid, unknown, or malformed.

    Declaration

    Objective-C

    DBAuthInvalidScope

    Swift

    case DBAuthInvalidScope = 3
  • The authorization server encountered an unexpected condition that prevented it from fulfilling the request.

    Declaration

    Objective-C

    DBAuthServerError

    Swift

    case DBAuthServerError = 4
  • The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.

    Declaration

    Objective-C

    DBAuthTemporarilyUnavailable

    Swift

    case DBAuthTemporarilyUnavailable = 5
  • The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.

    Declaration

    Objective-C

    DBAuthInvalidRequest

    Swift

    case DBAuthInvalidRequest = 6
  • Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).

    Declaration

    Objective-C

    DBAuthInvalidClient

    Swift

    case DBAuthInvalidClient = 7
  • The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.

    Declaration

    Objective-C

    DBAuthInvalidGrant

    Swift

    case DBAuthInvalidGrant = 8
  • The authorization grant type is not supported by the authorization server.

    Declaration

    Objective-C

    DBAuthUnsupportedGrantType

    Swift

    case DBAuthUnsupportedGrantType = 9
  • The state param received from the authorization server does not match the state param stored by the SDK.

    Declaration

    Objective-C

    DBAuthInconsistentState

    Swift

    case DBAuthInconsistentState = 10
  • Some other error (outside of the OAuth2 specification)

    Declaration

    Objective-C

    DBAuthUnknown

    Swift

    case DBAuthUnknown = 11