Class BackchannelLogoutTokenResponse
- java.lang.Object
-
- com.authlete.common.dto.ApiResponse
-
- com.authlete.common.dto.BackchannelLogoutTokenResponse
-
- All Implemented Interfaces:
Serializable
public class BackchannelLogoutTokenResponse extends ApiResponse
Response from Authlete's/apiAPI./{serivce-id} /backchannel /logout /token The Authlete API generates a Logout Token that complies with the OpenID Connect Back-Channel Logout 1.0 specification.
If the value of the
actionparameter in the response from the Authlete API isOK, it indicates that a Logout Token has been generated successfully. In this case, your server is expected to send a Back-Channel Logout Request containing the generated Logout Token to the client's Backchannel Logout URI.The
logoutTokenparameter in the API response contains the generated Logout Token, and thebackchannelparameter contains the client's Back-Channel Logout URI, which corresponds to theLogout Uri backchannel_client metadata parameter. Using these values, the Back-Channel Logout Request can be constructed as follows.logout_ uri POST
getBackchannelLogoutUri()HTTP/1.1 Content-Type: application/x-www-form-urlencoded Content-Length: ... logout_token=getLogoutToken()
Note that the Authlete API does not verify whether the client's
backchannel_metadata parameter is configured properly. Therefore, the value of thelogout_ uri backchannelresponse parameter may not be a valid HTTP-accessible URL. It may even beLogout Uri null.Also note that the API call does not revoke any refresh tokens. If necessary, the client itself should trigger refresh token revocation (e.g., by calling the revocation endpoint).
- Since:
- 4.43, Authlete 3.0.32
- See Also:
- OpenID Connect Back-Channel Logout 1.0, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackchannelLogoutTokenResponse.ActionThe next action that the API caller should take.
-
Constructor Summary
Constructors Constructor Description BackchannelLogoutTokenResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackchannelLogoutTokenResponse.ActiongetAction()Get the next action that the API caller should take.URIgetBackchannelLogoutUri()Get the client's Back-Channel Logout URI, which corresponds to thebackchannel_client metadata parameter defined in the OpenID Connect Back-Channel Logout 1.0 specification.logout_ uri StringgetLogoutToken()Get the issued Logout Token.BackchannelLogoutTokenResponsesetAction(BackchannelLogoutTokenResponse.Action action)Set the next action that API caller should take.BackchannelLogoutTokenResponsesetBackchannelLogoutUri(URI uri)Set the client's Back-Channel Logout URI, which corresponds to thebackchannel_client metadata parameter defined in the OpenID Connect Back-Channel Logout 1.0 specification.logout_ uri BackchannelLogoutTokenResponsesetLogoutToken(String logoutToken)Set the issued Logout Token.-
Methods inherited from class com.authlete.common.dto.ApiResponse
getResponseHeaders, getResultCode, getResultMessage, setResponseHeaders, setResultCode, setResultMessage
-
-
-
-
Method Detail
-
getAction
public BackchannelLogoutTokenResponse.Action getAction()
Get the next action that the API caller should take. In practice, this value represents the result of the API call.- Returns:
- The next action that the API caller should take.
-
setAction
public BackchannelLogoutTokenResponse setAction(BackchannelLogoutTokenResponse.Action action)
Set the next action that API caller should take. In practice, this value represents the result of the API call.- Parameters:
action- The next action that the API caller should take.- Returns:
thisobject.
-
getLogoutToken
public String getLogoutToken()
Get the issued Logout Token.- Returns:
- The issued Logout Token.
-
setLogoutToken
public BackchannelLogoutTokenResponse setLogoutToken(String logoutToken)
Set the issued Logout Token.- Parameters:
logoutToken- The issued Logout Token.- Returns:
thisobject.
-
getBackchannelLogoutUri
public URI getBackchannelLogoutUri()
Get the client's Back-Channel Logout URI, which corresponds to thebackchannel_client metadata parameter defined in the OpenID Connect Back-Channel Logout 1.0 specification.logout_ uri - Returns:
- The client's Back-Channel Logout URI.
-
setBackchannelLogoutUri
public BackchannelLogoutTokenResponse setBackchannelLogoutUri(URI uri)
Set the client's Back-Channel Logout URI, which corresponds to thebackchannel_client metadata parameter defined in the OpenID Connect Back-Channel Logout 1.0 specification.logout_ uri - Parameters:
uri- The client's Back-Channel Logout URI.- Returns:
thisobject.
-
-