gluu
公開メンバ関数 | 非公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl クラス
org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl の継承関係図
Inheritance graph
org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl 連携図
Collaboration graph

公開メンバ関数

Response requestEndSession (String idTokenHint, String postLogoutRedirectUri, String state, String sessionId, HttpServletRequest httpRequest, HttpServletResponse httpResponse, SecurityContext sec)
 
Response httpBased (String postLogoutRedirectUri, String state, Pair< SessionId, AuthorizationGrant > pair)
 
Response requestEndSession ( @QueryParam(EndSessionRequestParam.ID_TOKEN_HINT) @ApiParam(value="Previously issued ID Token (id_token) passed to the logout endpoint as a hint about the End-User's current authenticated session with the Client. This is used as an indication of the identity of the End-User that the RP is requesting be logged out by the OP. The OP need not be listed as an audience of the ID Token when it is used as an id_token_hint value.", required=true) String idTokenHint, @QueryParam(EndSessionRequestParam.POST_LOGOUT_REDIRECT_URI) @ApiParam(value="URL to which the RP is requesting that the End-User's User Agent be redirected after a logout has been performed. The value MUST have been previously registered with the OP, either using the post_logout_redirect_uris Registration parameter or via another mechanism. If supplied, the OP SHOULD honor this request following the logout.", required=false) String postLogoutRedirectUri, @QueryParam(EndSessionRequestParam.STATE) @ApiParam(value="Opaque value used by the RP to maintain state between the logout request and the callback to the endpoint specified by the post_logout_redirect_uri parameter. If included in the logout request, the OP passes this value back to the RP using the state query parameter when redirecting the User Agent back to the RP.", required=false) String state, @QueryParam("session_id") @ApiParam(value="Session Id", required=false) String sessionId, @Context HttpServletRequest httpRequest, @Context HttpServletResponse httpResponse, @Context SecurityContext securityContext)
 

非公開メンバ関数

void validateSessionIdRequestParameter (String sessionId)
 
void validateIdTokenHint (String idTokenHint)
 
String validatePostLogoutRedirectUri (String postLogoutRedirectUri, Pair< SessionId, AuthorizationGrant > pair)
 
Pair< SessionId, AuthorizationGrantendSession (String idTokenHint, String sessionId, HttpServletRequest httpRequest, HttpServletResponse httpResponse)
 
Set< String > getRpFrontchannelLogoutUris (Pair< SessionId, AuthorizationGrant > pair)
 
SessionId removeSessionId (String sessionId, HttpServletRequest httpRequest, HttpServletResponse httpResponse)
 
SessionId removeConsentSessionId (HttpServletRequest httpRequest, HttpServletResponse httpResponse)
 
String constructPage (Set< String > logoutUris, String postLogoutUrl, String state)
 
void auditLogging (HttpServletRequest request, Pair< SessionId, AuthorizationGrant > pair)
 

非公開変数類

Logger log
 
ErrorResponseFactory errorResponseFactory
 
RedirectionUriService redirectionUriService
 
AuthorizationGrantList authorizationGrantList
 
ExternalApplicationSessionService externalApplicationSessionService
 
SessionIdService sessionIdService
 
ClientService clientService
 
GrantService grantService
 
Identity identity
 
ApplicationAuditLogger applicationAuditLogger
 
AppConfiguration appConfiguration
 

詳解

著者
Javier Rojas Blum
Yuriy Movchan
Yuriy Zabrovarnyy
バージョン
August 9, 2017

関数詳解

◆ auditLogging()

void org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.auditLogging ( HttpServletRequest  request,
Pair< SessionId, AuthorizationGrant pair 
)
inlineprivate
354  {
355  SessionId sessionId = pair.getFirst();
356  AuthorizationGrant authorizationGrant = pair.getSecond();
357 
358  OAuth2AuditLog oAuth2AuditLog = new OAuth2AuditLog(ServerUtil.getIpAddress(request), Action.SESSION_DESTROYED);
359  oAuth2AuditLog.setSuccess(true);
360 
361  if (authorizationGrant != null) {
362  oAuth2AuditLog.setClientId(authorizationGrant.getClientId());
363  oAuth2AuditLog.setScope(StringUtils.join(authorizationGrant.getScopes(), " "));
364  oAuth2AuditLog.setUsername(authorizationGrant.getUserId());
365  } else if (sessionId != null) {
366  oAuth2AuditLog.setClientId(sessionId.getPermissionGrantedMap().getClientIds(true).toString());
367  oAuth2AuditLog.setScope(sessionId.getSessionAttributes().get(AuthorizeRequestParam.SCOPE));
368  oAuth2AuditLog.setUsername(sessionId.getUserDn());
369  }
370 
371  applicationAuditLogger.sendMessage(oAuth2AuditLog);
372  }
void sendMessage(OAuth2AuditLog oAuth2AuditLog)
Definition: ApplicationAuditLogger.java:78
ApplicationAuditLogger applicationAuditLogger
Definition: EndSessionRestWebServiceImpl.java:86

◆ constructPage()

String org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.constructPage ( Set< String >  logoutUris,
String  postLogoutUrl,
String  state 
)
inlineprivate
317  {
318  String iframes = "";
319  for (String logoutUri : logoutUris) {
320  iframes = iframes + String.format("<iframe height=\"0\" width=\"0\" src=\"%s\"></iframe>", logoutUri);
321  }
322 
323  String html = "<!DOCTYPE html>" +
324  "<html>" +
325  "<head>";
326 
327  if (!Util.isNullOrEmpty(postLogoutUrl)) {
328 
329  if (!Util.isNullOrEmpty(state)) {
330  if (postLogoutUrl.contains("?")) {
331  postLogoutUrl += "&state=" + state;
332  } else {
333  postLogoutUrl += "?state=" + state;
334  }
335  }
336 
337  html += "<script>" +
338  "window.onload=function() {" +
339  "window.location='" + postLogoutUrl + "'" +
340  "}" +
341  "</script>";
342  }
343 
344  html += "<title>Gluu Generated logout page</title>" +
345  "</head>" +
346  "<body>" +
347  "Logout requests sent.<br/>" +
348  iframes +
349  "</body>" +
350  "</html>";
351  return html;
352  }

◆ endSession()

Pair<SessionId, AuthorizationGrant> org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.endSession ( String  idTokenHint,
String  sessionId,
HttpServletRequest  httpRequest,
HttpServletResponse  httpResponse 
)
inlineprivate
175  {
176  AuthorizationGrant authorizationGrant = authorizationGrantList.getAuthorizationGrantByIdToken(idTokenHint);
177  if (authorizationGrant == null) {
178  Boolean endSessionWithAccessToken = appConfiguration.getEndSessionWithAccessToken();
179  if ((endSessionWithAccessToken != null) && endSessionWithAccessToken) {
180  authorizationGrant = authorizationGrantList.getAuthorizationGrantByAccessToken(idTokenHint);
181  }
182  }
183 
184  SessionId ldapSessionId = removeSessionId(sessionId, httpRequest, httpResponse);
185  if ((authorizationGrant == null) && (ldapSessionId == null)) {
186  log.info("Failed to find out authorization grant for id_token_hint '{}' and session_id '{}'", idTokenHint, sessionId);
187 
188  //see https://github.com/GluuFederation/oxAuth/issues/575
189  return new Pair<SessionId, AuthorizationGrant>(null, null);
190  }
191 
192  // Clean up authorization session
193  removeConsentSessionId(httpRequest, httpResponse);
194 
195  boolean isExternalLogoutPresent;
196  boolean externalLogoutResult = false;
197 
198  isExternalLogoutPresent = externalApplicationSessionService.isEnabled();
199  if (isExternalLogoutPresent && (ldapSessionId != null)) {
200  String userName = ldapSessionId.getSessionAttributes().get(Constants.AUTHENTICATED_USER);
201  externalLogoutResult = externalApplicationSessionService.executeExternalEndSessionMethods(httpRequest, ldapSessionId);
202  log.info("End session result for '{}': '{}'", userName, "logout", externalLogoutResult);
203  }
204 
205  boolean isGrantAndExternalLogoutSuccessful = isExternalLogoutPresent && externalLogoutResult;
206  if (isExternalLogoutPresent && !isGrantAndExternalLogoutSuccessful) {
207  errorResponseFactory.throwUnauthorizedException(EndSessionErrorResponseType.INVALID_GRANT);
208  }
209 
210  if (ldapSessionId != null) {
211  grantService.removeAllTokensBySession(ldapSessionId.getDn());
212  }
213 
214  if (identity != null) {
215  identity.logout();
216  }
217 
218  return new Pair<SessionId, AuthorizationGrant>(ldapSessionId, authorizationGrant);
219  }
boolean executeExternalEndSessionMethods(HttpServletRequest httpRequest, SessionId sessionId)
Definition: ExternalApplicationSessionService.java:82
AppConfiguration appConfiguration
Definition: EndSessionRestWebServiceImpl.java:89
void removeAllTokensBySession(String sessionDn)
Definition: GrantService.java:353
Identity identity
Definition: EndSessionRestWebServiceImpl.java:83
AuthorizationGrantList authorizationGrantList
Definition: EndSessionRestWebServiceImpl.java:68
ErrorResponseFactory errorResponseFactory
Definition: EndSessionRestWebServiceImpl.java:62
void throwUnauthorizedException(IErrorType type)
Definition: ErrorResponseFactory.java:96
SessionId removeSessionId(String sessionId, HttpServletRequest httpRequest, HttpServletResponse httpResponse)
Definition: EndSessionRestWebServiceImpl.java:264
SessionId removeConsentSessionId(HttpServletRequest httpRequest, HttpServletResponse httpResponse)
Definition: EndSessionRestWebServiceImpl.java:292
AuthorizationGrant getAuthorizationGrantByIdToken(String idToken)
Definition: AuthorizationGrantList.java:179
Logger log
Definition: EndSessionRestWebServiceImpl.java:59
AuthorizationGrant getAuthorizationGrantByAccessToken(String accessToken)
Definition: AuthorizationGrantList.java:166
GrantService grantService
Definition: EndSessionRestWebServiceImpl.java:80
ExternalApplicationSessionService externalApplicationSessionService
Definition: EndSessionRestWebServiceImpl.java:71
Boolean getEndSessionWithAccessToken()
Definition: AppConfiguration.java:1209

◆ getRpFrontchannelLogoutUris()

Set<String> org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.getRpFrontchannelLogoutUris ( Pair< SessionId, AuthorizationGrant pair)
inlineprivate
221  {
222  final Set<String> result = Sets.newHashSet();
223 
224  SessionId sessionId = pair.getFirst();
225  AuthorizationGrant authorizationGrant = pair.getSecond();
226  if (sessionId == null) {
227  log.error("session_id is not passed to endpoint (as cookie or manually). Therefore unable to match clients for session_id." +
228  "Http based html will contain no iframes.");
229  return result;
230  }
231 
232  final Set<Client> clientsByDns = sessionId.getPermissionGrantedMap() != null ?
233  clientService.getClient(sessionId.getPermissionGrantedMap().getClientIds(true), true) :
234  Sets.<Client>newHashSet();
235  if (authorizationGrant != null) {
236  clientsByDns.add(authorizationGrant.getClient());
237  }
238 
239  for (Client client : clientsByDns) {
240  String[] logoutUris = client.getFrontChannelLogoutUri();
241 
242  if (logoutUris == null) {
243  continue;
244  }
245 
246  for (String logoutUri : logoutUris) {
247  if (Util.isNullOrEmpty(logoutUri)) {
248  continue; // skip client if logout_uri is blank
249  }
250 
251  if (client.getFrontChannelLogoutSessionRequired() != null && client.getFrontChannelLogoutSessionRequired()) {
252  if (logoutUri.contains("?")) {
253  logoutUri = logoutUri + "&sid=" + sessionId.getId();
254  } else {
255  logoutUri = logoutUri + "?sid=" + sessionId.getId();
256  }
257  }
258  result.add(logoutUri);
259  }
260  }
261  return result;
262  }
ClientService clientService
Definition: EndSessionRestWebServiceImpl.java:77
Set< Client > getClient(Collection< String > clientIds, boolean silent)
Definition: ClientService.java:123
Logger log
Definition: EndSessionRestWebServiceImpl.java:59

◆ httpBased()

Response org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.httpBased ( String  postLogoutRedirectUri,
String  state,
Pair< SessionId, AuthorizationGrant pair 
)
inline
163  {
164  final String redirectUri = validatePostLogoutRedirectUri(postLogoutRedirectUri, pair);
165  final Set<String> frontchannelLogoutUris = getRpFrontchannelLogoutUris(pair);
166  final String html = constructPage(frontchannelLogoutUris, redirectUri, state);
167  log.debug("Constructed http logout page: " + html);
168  return Response.ok().
169  cacheControl(ServerUtil.cacheControl(true, true)).
170  header("Pragma", "no-cache").
171  type(MediaType.TEXT_HTML_TYPE).entity(html).
172  build();
173  }
Set< String > getRpFrontchannelLogoutUris(Pair< SessionId, AuthorizationGrant > pair)
Definition: EndSessionRestWebServiceImpl.java:221
String constructPage(Set< String > logoutUris, String postLogoutUrl, String state)
Definition: EndSessionRestWebServiceImpl.java:317
String validatePostLogoutRedirectUri(String postLogoutRedirectUri, Pair< SessionId, AuthorizationGrant > pair)
Definition: EndSessionRestWebServiceImpl.java:144
Logger log
Definition: EndSessionRestWebServiceImpl.java:59

◆ removeConsentSessionId()

SessionId org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.removeConsentSessionId ( HttpServletRequest  httpRequest,
HttpServletResponse  httpResponse 
)
inlineprivate
292  {
293  SessionId ldapSessionId = null;
294 
295  try {
296  String id = sessionIdService.getConsentSessionIdFromCookie(httpRequest);
297 
298  if (StringHelper.isNotEmpty(id)) {
299  ldapSessionId = sessionIdService.getSessionId(id);
300  if (ldapSessionId != null) {
301  boolean result = sessionIdService.remove(ldapSessionId);
302  if (!result) {
303  log.error("Failed to remove consent_session_id '{}'", id);
304  }
305  } else {
306  log.error("Failed to load session by consent_session_id: '{}'", id);
307  }
308  }
309  } catch (Exception e) {
310  log.error(e.getMessage(), e);
311  } finally {
313  }
314  return ldapSessionId;
315  }
void removeConsentSessionIdCookie(HttpServletResponse httpResponse)
Definition: SessionIdService.java:353
SessionId getSessionId()
Definition: SessionIdService.java:360
String getConsentSessionIdFromCookie(HttpServletRequest request)
Definition: SessionIdService.java:245
SessionIdService sessionIdService
Definition: EndSessionRestWebServiceImpl.java:74
boolean remove(SessionId sessionId)
Definition: SessionIdService.java:683
Logger log
Definition: EndSessionRestWebServiceImpl.java:59

◆ removeSessionId()

SessionId org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.removeSessionId ( String  sessionId,
HttpServletRequest  httpRequest,
HttpServletResponse  httpResponse 
)
inlineprivate
264  {
265  SessionId ldapSessionId = null;
266 
267  try {
268  String id = sessionId;
269  if (StringHelper.isEmpty(id)) {
270  id = sessionIdService.getSessionIdFromCookie(httpRequest);
271  }
272 
273  if (StringHelper.isNotEmpty(id)) {
274  ldapSessionId = sessionIdService.getSessionId(id);
275  if (ldapSessionId != null) {
276  boolean result = sessionIdService.remove(ldapSessionId);
277  if (!result) {
278  log.error("Failed to remove session_id '{}'", id);
279  }
280  } else {
281  log.error("Failed to load session by session_id: '{}'", id);
282  }
283  }
284  } catch (Exception e) {
285  log.error(e.getMessage(), e);
286  } finally {
288  }
289  return ldapSessionId;
290  }
void removeSessionIdCookie(HttpServletResponse httpResponse)
Definition: SessionIdService.java:339
SessionId getSessionId()
Definition: SessionIdService.java:360
SessionIdService sessionIdService
Definition: EndSessionRestWebServiceImpl.java:74
boolean remove(SessionId sessionId)
Definition: SessionIdService.java:683
Logger log
Definition: EndSessionRestWebServiceImpl.java:59
String getSessionIdFromCookie(HttpServletRequest request)
Definition: SessionIdService.java:237

◆ requestEndSession() [1/2]

Response org.xdi.oxauth.session.ws.rs.EndSessionRestWebService.requestEndSession ( @QueryParam(EndSessionRequestParam.ID_TOKEN_HINT) @ApiParam(value="Previously issued ID Token (id_token) passed to the logout endpoint as a hint about the End-User's current authenticated session with the Client. This is used as an indication of the identity of the End-User that the RP is requesting be logged out by the OP. The OP need not be listed as an audience of the ID Token when it is used as an id_token_hint value.", required=true) String  idTokenHint,
@QueryParam(EndSessionRequestParam.POST_LOGOUT_REDIRECT_URI) @ApiParam(value="URL to which the RP is requesting that the End-User's User Agent be redirected after a logout has been performed. The value MUST have been previously registered with the OP, either using the post_logout_redirect_uris Registration parameter or via another mechanism. If supplied, the OP SHOULD honor this request following the logout.", required=false) String  postLogoutRedirectUri,
@QueryParam(EndSessionRequestParam.STATE) @ApiParam(value="Opaque value used by the RP to maintain state between the logout request and the callback to the endpoint specified by the post_logout_redirect_uri parameter. If included in the logout request, the OP passes this value back to the RP using the state query parameter when redirecting the User Agent back to the RP.", required=false) String  state,
@QueryParam("session_id") @ApiParam(value="Session Id", required=false) String  sessionId,
@Context HttpServletRequest  httpRequest,
@Context HttpServletResponse  httpResponse,
@Context SecurityContext  securityContext 
)
inherited

◆ requestEndSession() [2/2]

Response org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.requestEndSession ( String  idTokenHint,
String  postLogoutRedirectUri,
String  state,
String  sessionId,
HttpServletRequest  httpRequest,
HttpServletResponse  httpResponse,
SecurityContext  sec 
)
inline
93  {
94  log.debug("Attempting to end session, idTokenHint: {}, postLogoutRedirectUri: {}, sessionId: {}, Is Secure = {}",
95  idTokenHint, postLogoutRedirectUri, sessionId, sec.isSecure());
96 
97  validateIdTokenHint(idTokenHint);
99 
100  final Pair<SessionId, AuthorizationGrant> pair = endSession(idTokenHint, sessionId, httpRequest, httpResponse);
101 
102  auditLogging(httpRequest, pair);
103 
104  //Perform redirect to RP if id_token is expired (see https://github.com/GluuFederation/oxAuth/issues/575)
105  // yuriyz : we have to re-visit this since it doesn't look safe to redirect error to uri which is not validated.
106  if (pair.getFirst() == null && pair.getSecond() == null && StringUtils.isNotBlank(postLogoutRedirectUri)) {
107  try {
108  String error = errorResponseFactory.getErrorAsJson(EndSessionErrorResponseType.INVALID_GRANT_AND_SESSION);
109  return Response.temporaryRedirect(new URI(postLogoutRedirectUri)).entity(error).build();
110  } catch (URISyntaxException e) {
111  log.error("Can't perform redirect", e);
112  }
113  }
114 
115  return httpBased(postLogoutRedirectUri, state, pair);
116  }
String getErrorAsJson(IErrorType p_type)
Definition: ErrorResponseFactory.java:86
Pair< SessionId, AuthorizationGrant > endSession(String idTokenHint, String sessionId, HttpServletRequest httpRequest, HttpServletResponse httpResponse)
Definition: EndSessionRestWebServiceImpl.java:175
void auditLogging(HttpServletRequest request, Pair< SessionId, AuthorizationGrant > pair)
Definition: EndSessionRestWebServiceImpl.java:354
ErrorResponseFactory errorResponseFactory
Definition: EndSessionRestWebServiceImpl.java:62
void validateSessionIdRequestParameter(String sessionId)
Definition: EndSessionRestWebServiceImpl.java:118
Logger log
Definition: EndSessionRestWebServiceImpl.java:59
Response httpBased(String postLogoutRedirectUri, String state, Pair< SessionId, AuthorizationGrant > pair)
Definition: EndSessionRestWebServiceImpl.java:163
void validateIdTokenHint(String idTokenHint)
Definition: EndSessionRestWebServiceImpl.java:131

◆ validateIdTokenHint()

void org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.validateIdTokenHint ( String  idTokenHint)
inlineprivate
131  {
132  // id_token_hint is not required but if it is present then we must validate it #831
133  if (StringUtils.isNotBlank(idTokenHint)) {
134  AuthorizationGrant authorizationGrant = authorizationGrantList.getAuthorizationGrantByIdToken(idTokenHint);
135  if (authorizationGrant == null) {
136  final String reason = "id_token_hint is not valid. Logout is rejected. id_token_hint can be skipped or otherwise valid value must be provided.";
137  log.error(reason);
138  throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST).entity(
139  errorResponseFactory.errorAsJson(EndSessionErrorResponseType.INVALID_GRANT_AND_SESSION, reason)).build());
140  }
141  }
142  }
AuthorizationGrantList authorizationGrantList
Definition: EndSessionRestWebServiceImpl.java:68
String errorAsJson(IErrorType p_type, String reason)
Definition: ErrorResponseFactory.java:90
ErrorResponseFactory errorResponseFactory
Definition: EndSessionRestWebServiceImpl.java:62
AuthorizationGrant getAuthorizationGrantByIdToken(String idToken)
Definition: AuthorizationGrantList.java:179
Logger log
Definition: EndSessionRestWebServiceImpl.java:59

◆ validatePostLogoutRedirectUri()

String org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.validatePostLogoutRedirectUri ( String  postLogoutRedirectUri,
Pair< SessionId, AuthorizationGrant pair 
)
inlineprivate
144  {
145  try {
146  if (pair.getSecond() == null) {
147  return redirectionUriService.validatePostLogoutRedirectUri(pair.getFirst(), postLogoutRedirectUri);
148  } else {
149  return redirectionUriService.validatePostLogoutRedirectUri(pair.getSecond().getClient().getClientId(), postLogoutRedirectUri);
150  }
151  } catch (WebApplicationException e) {
152  if (pair.getFirst() != null) { // session_id was found and removed
153  String reason = "Session was removed successfully but redirect to post_logout_redirect_uri fails since AS failed to validate it against clients associated with session (which was just removed).";
154  log.error(reason, e);
155  throw new WebApplicationException(Response.status(Response.Status.OK).entity(
156  errorResponseFactory.errorAsJson(EndSessionErrorResponseType.POST_LOGOUT_URI_NOT_ASSOCIATED_WITH_CLIENT, reason)).build());
157  } else {
158  throw e;
159  }
160  }
161  }
String validatePostLogoutRedirectUri(String clientId, String postLogoutRedirectUri)
Definition: RedirectionUriService.java:111
RedirectionUriService redirectionUriService
Definition: EndSessionRestWebServiceImpl.java:65
String errorAsJson(IErrorType p_type, String reason)
Definition: ErrorResponseFactory.java:90
ErrorResponseFactory errorResponseFactory
Definition: EndSessionRestWebServiceImpl.java:62
Logger log
Definition: EndSessionRestWebServiceImpl.java:59

◆ validateSessionIdRequestParameter()

void org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.validateSessionIdRequestParameter ( String  sessionId)
inlineprivate
118  {
119  // session_id is not required but if it is present then we must validate it #831
120  if (StringUtils.isNotBlank(sessionId)) {
121  SessionId sessionIdObject = sessionIdService.getSessionId(sessionId);;
122  if (sessionIdObject == null) {
123  final String reason = "session_id parameter in request is not valid. Logout is rejected. session_id parameter in request can be skipped or otherwise valid value must be provided.";
124  log.error(reason);
125  throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST).entity(
126  errorResponseFactory.errorAsJson(EndSessionErrorResponseType.INVALID_GRANT_AND_SESSION, reason)).build());
127  }
128  }
129  }
SessionId getSessionId()
Definition: SessionIdService.java:360
SessionIdService sessionIdService
Definition: EndSessionRestWebServiceImpl.java:74
String errorAsJson(IErrorType p_type, String reason)
Definition: ErrorResponseFactory.java:90
ErrorResponseFactory errorResponseFactory
Definition: EndSessionRestWebServiceImpl.java:62
Logger log
Definition: EndSessionRestWebServiceImpl.java:59

メンバ詳解

◆ appConfiguration

AppConfiguration org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.appConfiguration
private

◆ applicationAuditLogger

ApplicationAuditLogger org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.applicationAuditLogger
private

◆ authorizationGrantList

AuthorizationGrantList org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.authorizationGrantList
private

◆ clientService

ClientService org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.clientService
private

◆ errorResponseFactory

ErrorResponseFactory org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.errorResponseFactory
private

◆ externalApplicationSessionService

ExternalApplicationSessionService org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.externalApplicationSessionService
private

◆ grantService

GrantService org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.grantService
private

◆ identity

Identity org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.identity
private

◆ log

Logger org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.log
private

◆ redirectionUriService

RedirectionUriService org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.redirectionUriService
private

◆ sessionIdService

SessionIdService org.xdi.oxauth.session.ws.rs.EndSessionRestWebServiceImpl.sessionIdService
private

このクラス詳解は次のファイルから抽出されました: