gluu
公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
org.gluu.oxtrust.service.AuthenticationSessionService クラス
org.gluu.oxtrust.service.AuthenticationSessionService の継承関係図
Inheritance graph
org.gluu.oxtrust.service.AuthenticationSessionService 連携図
Collaboration graph

公開メンバ関数

void sessionDestroyed ()
 

非公開変数類

Logger log
 
Identity identity
 
OpenIdService openIdService
 
AppConfiguration appConfiguration
 

静的非公開変数類

static final long serialVersionUID = 8569580900768794363L
 

詳解

関数詳解

◆ sessionDestroyed()

void org.gluu.oxtrust.service.AuthenticationSessionService.sessionDestroyed ( )
inline
45  {
46  OauthData oauthData = identity.getOauthData();
47  if ((oauthData == null) || StringHelper.isEmpty(oauthData.getSessionState())) {
48  return;
49  }
50 
51  String userUid = oauthData.getUserUid();
52  log.debug("Calling oxAuth logout method at the end of HTTP session. User: '{}'", userUid);
53  try {
54  String endSessionState = UUID.randomUUID().toString();
55 
56  EndSessionRequest endSessionRequest = new EndSessionRequest(oauthData.getIdToken(), appConfiguration.getLogoutRedirectUrl(), endSessionState);
57  endSessionRequest.setSessionId(oauthData.getSessionState());
58 
59  EndSessionClient endSessionClient = new EndSessionClient(openIdService.getOpenIdConfiguration().getEndSessionEndpoint());
60  endSessionClient.setRequest(endSessionRequest);
61  EndSessionResponse endSessionResponse = endSessionClient.exec();
62 
63  if ((endSessionResponse == null) || (endSessionResponse.getStatus() != 302)) {
64  log.error("Invalid response code at oxAuth logout. User: '{}'", userUid);
65  }
66  } catch (Exception ex) {
67  log.error("Exception happened at oxAuth logout. User: '{}'", userUid, ex);
68  }
69  }
String getUserUid()
Definition: OauthData.java:38
OpenIdConfigurationResponse getOpenIdConfiguration()
Definition: OpenIdService.java:66
OauthData getOauthData()
Definition: Identity.java:31
AppConfiguration appConfiguration
Definition: AuthenticationSessionService.java:42
Identity identity
Definition: AuthenticationSessionService.java:36
String getEndSessionEndpoint()
Definition: OpenIdConfigurationResponse.java:268
Logger log
Definition: AuthenticationSessionService.java:33
OpenIdService openIdService
Definition: AuthenticationSessionService.java:39

メンバ詳解

◆ appConfiguration

AppConfiguration org.gluu.oxtrust.service.AuthenticationSessionService.appConfiguration
private

◆ identity

Identity org.gluu.oxtrust.service.AuthenticationSessionService.identity
private

◆ log

Logger org.gluu.oxtrust.service.AuthenticationSessionService.log
private

◆ openIdService

OpenIdService org.gluu.oxtrust.service.AuthenticationSessionService.openIdService
private

◆ serialVersionUID

final long org.gluu.oxtrust.service.AuthenticationSessionService.serialVersionUID = 8569580900768794363L
staticprivate

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