Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class OAuth2ErrorCodes
- Object
- OAuth2ErrorCodes
The error codes this layer answers with: those of RFC 6749, RFC 6750, RFC
7009 and RFC 8628, and the ones a sign-in through another provider fails with.
Fields
Inherited methods
Field details
INVALID_REQUEST
public static final String INVALID_REQUEST = "invalid_request"The request is missing a parameter, repeats one, or is otherwise
malformed.
INVALID_TOKEN
public static final String INVALID_TOKEN = "invalid_token"The access token is expired, revoked, malformed or otherwise not valid.
INSUFFICIENT_SCOPE
public static final String INSUFFICIENT_SCOPE = "insufficient_scope"The request needs more than the access token grants.
SERVER_ERROR
public static final String SERVER_ERROR = "server_error"The server met something that stopped it answering.
INVALID_CLIENT
public static final String INVALID_CLIENT = "invalid_client"The client is unknown, or did not authenticate as itself.
INVALID_GRANT
public static final String INVALID_GRANT = "invalid_grant"The grant – an authorization code, a refresh token, a device code – is
not valid, has expired, was used already or was issued to another client.
UNAUTHORIZED_CLIENT
public static final String UNAUTHORIZED_CLIENT = "unauthorized_client"The client may not use this grant.
UNSUPPORTED_GRANT_TYPE
public static final String UNSUPPORTED_GRANT_TYPE = "unsupported_grant_type"The server does not issue tokens for this grant.
UNSUPPORTED_RESPONSE_TYPE
public static final String UNSUPPORTED_RESPONSE_TYPE = "unsupported_response_type"The server does not answer this response type.
INVALID_SCOPE
public static final String INVALID_SCOPE = "invalid_scope"A scope asked for is unknown, malformed or more than the client may have.
ACCESS_DENIED
public static final String ACCESS_DENIED = "access_denied"The user, or the server, refused the request.
TEMPORARILY_UNAVAILABLE
public static final String TEMPORARILY_UNAVAILABLE = "temporarily_unavailable"The server cannot answer for now.
UNSUPPORTED_TOKEN_TYPE
public static final String UNSUPPORTED_TOKEN_TYPE = "unsupported_token_type"The token type is one the server does not revoke.
AUTHORIZATION_PENDING
public static final String AUTHORIZATION_PENDING = "authorization_pending"RFC 8628: the user has not answered yet; ask again after the interval.
SLOW_DOWN
public static final String SLOW_DOWN = "slow_down"RFC 8628: the client asks too often; the interval is now five seconds longer.
EXPIRED_TOKEN
public static final String EXPIRED_TOKEN = "expired_token"RFC 8628: the device code ran out before the user answered.
LOGIN_REQUIRED
public static final String LOGIN_REQUIRED = "login_required"OpenID Connect: the user is not signed in and the client cannot show a page.
INVALID_REDIRECT_URI
public static final String INVALID_REDIRECT_URI = "invalid_redirect_uri"The redirect address is not one the client registered.
INVALID_STATE_PARAMETER
public static final String INVALID_STATE_PARAMETER = "invalid_state_parameter"The
state that came back is not the one that was sent.AUTHORIZATION_REQUEST_NOT_FOUND
public static final String AUTHORIZATION_REQUEST_NOT_FOUND = "authorization_request_not_found"No request for authorization was waiting for this answer.
INVALID_TOKEN_RESPONSE
public static final String INVALID_TOKEN_RESPONSE = "invalid_token_response"The identity provider’s answer could not be used.
INVALID_ID_TOKEN
public static final String INVALID_ID_TOKEN = "invalid_id_token"The ID token did not verify.
INVALID_NONCE
public static final String INVALID_NONCE = "invalid_nonce"The
nonce of the ID token is not the one that was sent.INVALID_ISSUER
public static final String INVALID_ISSUER = "invalid_issuer"The answer a browser came back with names another issuer than the
provider it was sent to, or none where the provider always names one.
INVALID_USER_INFO_RESPONSE
public static final String INVALID_USER_INFO_RESPONSE = "invalid_user_info_response"The user’s attributes could not be read from the identity provider.
INVALID_TARGET
public static final String INVALID_TARGET = "invalid_target"A
resource asked for is not an absolute address, or not one the
client may have tokens for (RFC 8707).