public static enum BackchannelAuthenticationFailRequest.Reason extends Enum<BackchannelAuthenticationFailRequest.Reason>
| Enum Constant and Description |
|---|
ACCESS_DENIED
The resource owner or the authorization server denied the request.
|
EXPIRED_LOGIN_HINT_TOKEN
The
login_hint_token included in the backchannel
authentication request is not valid because it has expired. |
INVALID_BINDING_MESSAGE
The binding message is invalid or unacceptable for use in the
context of the given backchannel authentication request.
|
INVALID_USER_CODE
The user code included in the authentication request is invalid.
|
MISSING_USER_CODE
A user code is required but the backchannel authentication request
does not contain it.
|
SERVER_ERROR
The backchannel authentication request cannot be processed
successfully due to a server-side error.
|
UNAUTHORIZED_CLIENT
The client is not authorized to use the CIBA flow.
|
UNKNOWN_USER_ID
The authorization server is not able to identify which end-user the
client wishes to be authenticated by means of the hint
(
login_hint_token, id_token_hint or login_hint)
included in the backchannel authentication request. |
| Modifier and Type | Method and Description |
|---|---|
static BackchannelAuthenticationFailRequest.Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackchannelAuthenticationFailRequest.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BackchannelAuthenticationFailRequest.Reason EXPIRED_LOGIN_HINT_TOKEN
login_hint_token included in the backchannel
authentication request is not valid because it has expired.
Note that the CIBA Core specification does not describe the format
of login_hint_token and how to detect expiration.
Using this reason will result in
"error":"expired_login_hint_token".
public static final BackchannelAuthenticationFailRequest.Reason UNKNOWN_USER_ID
login_hint_token, id_token_hint or login_hint)
included in the backchannel authentication request.
Using this reason will result in
"error":"unknown_user_id".
public static final BackchannelAuthenticationFailRequest.Reason UNAUTHORIZED_CLIENT
Note that /api/backchannel/authentication API does not
return action=USER_IDENTIFICATION in cases where the client
does not exist or client authentication has failed. Therefore, the
authorization server implementation will never have to call
/api/backchannel/authentication/fail API with
reason=UNAUTHORIZED_CLIENT unless the server has intentionally
implemented custom rules to reject backchannel authentication
requests from particular clients.
Using this reason will result in
"error":"unauthorized_client".
public static final BackchannelAuthenticationFailRequest.Reason MISSING_USER_CODE
Note that /api/backchannel/authentication API does not
return action=USER_IDENTIFICATION when both the
backchannel_user_code_parameter_supported metadata of the
server and the backchannel_user_code_parameter metadata of
the client are true and the backchannel authentication
request does not include the user_code request parameter.
In this case, /api/backchannel/authentication API returns
action=BAD_REQUEST with JSON containing
"error":"missing_user_code".
Therefore, the authorization server implementation will never have
to call /api/backchannel/authentication/fail API with
reason=MISSING_USER_CODE unless the server has intentionally
implemented custom rules to require a user code even in the case
where the backchannel_user_code_parameter metadata of the
client which has made the backchannel authentication request is
false.
Using this reason will result in
"error":"missing_user_code".
public static final BackchannelAuthenticationFailRequest.Reason INVALID_USER_CODE
Using this reason will result in
"error":"invalid_user_code".
public static final BackchannelAuthenticationFailRequest.Reason INVALID_BINDING_MESSAGE
Using this reason will result in
"error":"invalid_binding_message".
public static final BackchannelAuthenticationFailRequest.Reason ACCESS_DENIED
Calling /api/backchannel/authentication/fail API with this
reason implies that the backchannel authentication endpoint is going
to return an error of access_denied to the client application
without asking the end-user whether she authorizes or rejects the
request.
Using this reason will result in
"error":"access_denied".
public static final BackchannelAuthenticationFailRequest.Reason SERVER_ERROR
Using this reason will result in
"error":"server_error".
public static BackchannelAuthenticationFailRequest.Reason[] values()
for (BackchannelAuthenticationFailRequest.Reason c : BackchannelAuthenticationFailRequest.Reason.values()) System.out.println(c);
public static BackchannelAuthenticationFailRequest.Reason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2019. All rights reserved.