Package org.codelibs.fess.sso.oic
Class OpenIdConnectAuthenticator
java.lang.Object
org.codelibs.fess.sso.oic.OpenIdConnectAuthenticator
- All Implemented Interfaces:
SsoAuthenticator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.google.api.client.http.HttpTransportprotected final com.google.api.client.json.JsonFactoryprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetAuthUrl(javax.servlet.http.HttpServletRequest request) org.lastaflute.web.login.credential.LoginCredentialprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringorg.lastaflute.web.response.ActionResponsegetResponse(SsoResponseType responseType) protected com.google.api.client.auth.oauth2.TokenResponsegetTokenUrl(String code) voidinit()logout(FessUserBean user) protected voidparseJwtClaim(String jwtClaim, Map<String, Object> attributes) protected org.lastaflute.web.login.credential.LoginCredentialprocessCallback(javax.servlet.http.HttpServletRequest request, String code) void
-
Field Details
-
OIC_AUTH_SERVER_URL
- See Also:
-
OIC_CLIENT_ID
- See Also:
-
OIC_SCOPE
- See Also:
-
OIC_REDIRECT_URL
- See Also:
-
OIC_TOKEN_SERVER_URL
- See Also:
-
OIC_CLIENT_SECRET
- See Also:
-
OIC_STATE
- See Also:
-
httpTransport
protected final com.google.api.client.http.HttpTransport httpTransport -
jsonFactory
protected final com.google.api.client.json.JsonFactory jsonFactory
-
-
Constructor Details
-
OpenIdConnectAuthenticator
public OpenIdConnectAuthenticator()
-
-
Method Details
-
init
@PostConstruct public void init() -
getLoginCredential
public org.lastaflute.web.login.credential.LoginCredential getLoginCredential()- Specified by:
getLoginCredentialin interfaceSsoAuthenticator
-
getAuthUrl
-
processCallback
protected org.lastaflute.web.login.credential.LoginCredential processCallback(javax.servlet.http.HttpServletRequest request, String code) -
parseJwtClaim
- Throws:
IOException
-
getTokenUrl
protected com.google.api.client.auth.oauth2.TokenResponse getTokenUrl(String code) throws IOException - Throws:
IOException
-
getOicClientSecret
-
getOicTokenServerUrl
-
getOicRedirectUrl
-
getOicScope
-
getOicClientId
-
getOicAuthServerUrl
-
resolveCredential
- Specified by:
resolveCredentialin interfaceSsoAuthenticator
-
getResponse
- Specified by:
getResponsein interfaceSsoAuthenticator
-
logout
- Specified by:
logoutin interfaceSsoAuthenticator
-