AuthorizeErrorReason

public enum AuthorizeErrorReason

The possible underlying reasons an .authorizeFailed error occurs.

  • exhaustedLoginFlow: There is no other login method left. The login process cannot be completed. Code 3001.
  • malformedHierarchy: The view hierarchy or view controller hierarchy is malformed and the LINE SDK cannot show its login view controller. Code 3002.
  • userCancelled: The user cancelled or interrupted the login process. Code 3003.
  • forceStopped: The stop method is called during the login process. Code 3004.
  • callbackURLSchemeNotMatching: The received URL object while opening the app does not match the defined URL scheme. Code 3005.
  • invalidSourceApplication: The source application is invalid and cannot finish the authorization process. Not in use anymore from LINE SDK 5.2.4. Code 3006.
  • malformedRedirectURL: The received URL object while opening the app is invalid or does not contain necessary information. Code 3007.
  • invalidLineURLResultCode: The received URL object while opening the app has an unknown result code. Code 3008.
  • lineClientError: An error occurs in LINE during the authorization process. Code 3009.
  • responseStateValueNotMatching: Failed to verify the state value. The received URL response is not from the original authorization request. Code 3010.
  • webLoginError: An error occurs in the web login flow during the authorization process. Code 3011.
  • keychainOperation: An error occurs while accessing the keychain. It prevents the LINE SDK from loading data from or writing data to the keychain. Code 3012.
  • invalidDataInKeychain: The retrieved authorization information from the keychain cannot be converted to valid data. Code 3013.
  • lackOfIDToken: The authorization request contains the OpenID scope, but any ID token is not found in or parsed from the server response. Code 3014.
  • JWTPublicKeyNotFound: The public key is not found for a give key ID or the key ID does not exist. Code 3015.
  • cryptoError: An error occurred at the LINE SDK crypto part. Usually this indicates a malformed certificate or a key, or an unsupported algorithm is used. For more information, see CryptoError. Code 3016.
  • There is no other login method left. The login process cannot be completed. Code 3001.

    Declaration

    Swift

    case exhaustedLoginFlow
  • The view hierarchy or view controller hierarchy is malformed and the LINE SDK cannot show its login view controller. Code 3002.

    Declaration

    Swift

    case malformedHierarchy
  • The user cancelled or interrupted the login process. Code 3003.

    Declaration

    Swift

    case userCancelled
  • The stop method is called during the login process. Code 3004.

    Declaration

    Swift

    case forceStopped
  • The received URL object while opening the app does not match the defined URL scheme. Code 3005.

    Declaration

    Swift

    case callbackURLSchemeNotMatching
  • The source application is invalid and cannot finish the authorization process. Not in use anymore from LINE SDK 5.2.4. Code 3006.

    Declaration

    Swift

    case invalidSourceApplication
  • The received URL object while opening the app is invalid or does not contain necessary information. Code 3007.

    • url: The url which is used to open current app.
    • message: A human readable message to describe the error reason.

    Declaration

    Swift

    case malformedRedirectURL(url: URL, message: String?)
  • The received URL object while opening the app has an unknown result code. Code 3008.

    • Associated value: The resultCode in the response url.

    Declaration

    Swift

    case invalidLineURLResultCode(String)
  • An error occurs in LINE during the authorization process. Code 3009.

    • code: The code returned by LINE during the authorization.
    • message: The message describes the error.

    Declaration

    Swift

    case lineClientError(code: String, message: String?)
  • Failed to verify the state value. The received URL response is not from the original authorization request. Code 3010.

    • expected: Expected state value.
    • got: The state value actually got from URL response.

    Declaration

    Swift

    case responseStateValueNotMatching(expected: String, got: String?)
  • An error occurs in the web login flow during the authorization process. Code 3011.

    • error: Error reason when login with web flow.
    • description: A human readable message to describe the error reason.

    Declaration

    Swift

    case webLoginError(error: String, description: String?)
  • An error occurs while accessing the keychain. It prevents the LINE SDK from loading data from or writing data to the keychain. Code 3012.

    • status: The OSStatus number system gives.

    Declaration

    Swift

    case keychainOperation(status: OSStatus)
  • The retrieved authorization information from the keychain cannot be converted to valid data. Code 3013.

    Declaration

    Swift

    case invalidDataInKeychain
  • The authorization request contains the OpenID scope, but any ID token is not found in or parsed from the server response. Code 3014.

    • raw: Raw value of the ID Token, which cannot be parsed correctly.

    Declaration

    Swift

    case lackOfIDToken(raw: String?)
  • The public key is not found for a give key ID or the key ID does not exist. Code 3015.

    • keyID: The key ID specified in ID Token header which should be used.

    Declaration

    Swift

    case JWTPublicKeyNotFound(keyID: String?)
  • An error occurred at the LINE SDK crypto part. Usually this indicates a malformed certificate or a key, or an unsupported algorithm is used. For more information, see CryptoError. Code 3016.

    Declaration

    Swift

    case cryptoError(error: CryptoError)