Package org.codelibs.fess.sso.oic
Class OpenIdConnectAuthenticator
- java.lang.Object
-
- org.codelibs.fess.sso.oic.OpenIdConnectAuthenticator
-
- All Implemented Interfaces:
SsoAuthenticator
public class OpenIdConnectAuthenticator extends Object implements SsoAuthenticator
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.api.client.http.HttpTransporthttpTransportprotected com.google.api.client.json.JsonFactoryjsonFactoryprotected static StringOIC_AUTH_SERVER_URLprotected static StringOIC_CLIENT_IDprotected static StringOIC_CLIENT_SECRETprotected static StringOIC_REDIRECT_URLprotected static StringOIC_SCOPEprotected static StringOIC_STATEprotected static StringOIC_TOKEN_SERVER_URL
-
Constructor Summary
Constructors Constructor Description OpenIdConnectAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetAuthUrl(javax.servlet.http.HttpServletRequest request)org.lastaflute.web.login.credential.LoginCredentialgetLoginCredential()protected StringgetOicAuthServerUrl()protected StringgetOicClientId()protected StringgetOicClientSecret()protected StringgetOicRedirectUrl()protected StringgetOicScope()protected StringgetOicTokenServerUrl()protected com.google.api.client.auth.oauth2.TokenResponsegetTokenUrl(String code)voidinit()protected voidparseJwtClaim(String jwtClaim, Map<String,Object> attributes)protected org.lastaflute.web.login.credential.LoginCredentialprocessCallback(javax.servlet.http.HttpServletRequest request, String code)voidresolveCredential(FessLoginAssist.LoginCredentialResolver resolver)
-
-
-
Field Detail
-
OIC_AUTH_SERVER_URL
protected static final String OIC_AUTH_SERVER_URL
- See Also:
- Constant Field Values
-
OIC_CLIENT_ID
protected static final String OIC_CLIENT_ID
- See Also:
- Constant Field Values
-
OIC_SCOPE
protected static final String OIC_SCOPE
- See Also:
- Constant Field Values
-
OIC_REDIRECT_URL
protected static final String OIC_REDIRECT_URL
- See Also:
- Constant Field Values
-
OIC_TOKEN_SERVER_URL
protected static final String OIC_TOKEN_SERVER_URL
- See Also:
- Constant Field Values
-
OIC_CLIENT_SECRET
protected static final String OIC_CLIENT_SECRET
- See Also:
- Constant Field Values
-
OIC_STATE
protected static final String OIC_STATE
- See Also:
- Constant Field Values
-
httpTransport
protected final com.google.api.client.http.HttpTransport httpTransport
-
jsonFactory
protected final com.google.api.client.json.JsonFactory jsonFactory
-
-
Method Detail
-
init
@PostConstruct public void init()
-
getLoginCredential
public org.lastaflute.web.login.credential.LoginCredential getLoginCredential()
- Specified by:
getLoginCredentialin interfaceSsoAuthenticator
-
getAuthUrl
protected String getAuthUrl(javax.servlet.http.HttpServletRequest request)
-
processCallback
protected org.lastaflute.web.login.credential.LoginCredential processCallback(javax.servlet.http.HttpServletRequest request, String code)
-
parseJwtClaim
protected void parseJwtClaim(String jwtClaim, Map<String,Object> attributes) throws IOException
- Throws:
IOException
-
getTokenUrl
protected com.google.api.client.auth.oauth2.TokenResponse getTokenUrl(String code) throws IOException
- Throws:
IOException
-
getOicClientSecret
protected String getOicClientSecret()
-
getOicTokenServerUrl
protected String getOicTokenServerUrl()
-
getOicRedirectUrl
protected String getOicRedirectUrl()
-
getOicScope
protected String getOicScope()
-
getOicClientId
protected String getOicClientId()
-
getOicAuthServerUrl
protected String getOicAuthServerUrl()
-
resolveCredential
public void resolveCredential(FessLoginAssist.LoginCredentialResolver resolver)
- Specified by:
resolveCredentialin interfaceSsoAuthenticator
-
-