Class OpenIdConnectAuthenticator

    • Field Detail

      • OIC_AUTH_SERVER_URL

        protected static final java.lang.String OIC_AUTH_SERVER_URL
        See Also:
        Constant Field Values
      • OIC_REDIRECT_URL

        protected static final java.lang.String OIC_REDIRECT_URL
        See Also:
        Constant Field Values
      • OIC_TOKEN_SERVER_URL

        protected static final java.lang.String OIC_TOKEN_SERVER_URL
        See Also:
        Constant Field Values
      • OIC_CLIENT_SECRET

        protected static final java.lang.String OIC_CLIENT_SECRET
        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
    • Constructor Detail

      • OpenIdConnectAuthenticator

        public OpenIdConnectAuthenticator()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • getAuthUrl

        protected java.lang.String getAuthUrl​(javax.servlet.http.HttpServletRequest request)
      • processCallback

        protected org.lastaflute.web.login.credential.LoginCredential processCallback​(javax.servlet.http.HttpServletRequest request,
                                                                                      java.lang.String code)
      • parseJwtClaim

        protected void parseJwtClaim​(java.lang.String jwtClaim,
                                     java.util.Map<java.lang.String,​java.lang.Object> attributes)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • getTokenUrl

        protected com.google.api.client.auth.oauth2.TokenResponse getTokenUrl​(java.lang.String code)
                                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getOicClientSecret

        protected java.lang.String getOicClientSecret()
      • getOicTokenServerUrl

        protected java.lang.String getOicTokenServerUrl()
      • getOicRedirectUrl

        protected java.lang.String getOicRedirectUrl()
      • getOicScope

        protected java.lang.String getOicScope()
      • getOicClientId

        protected java.lang.String getOicClientId()
      • getOicAuthServerUrl

        protected java.lang.String getOicAuthServerUrl()