Class OidcRequestAuthenticator

    • Method Detail

      • getTokenString

        public String getTokenString()
      • getRefreshToken

        public String getRefreshToken()
      • getIDTokenString

        public String getIDTokenString()
      • setIDTokenString

        public void setIDTokenString​(String idTokenString)
      • getIDToken

        public IDToken getIDToken()
      • setIDToken

        public void setIDToken​(IDToken idToken)
      • getStrippedOauthParametersRequestUri

        public String getStrippedOauthParametersRequestUri()
      • setStrippedOauthParametersRequestUri

        public void setStrippedOauthParametersRequestUri​(String strippedOauthParametersRequestUri)
      • getRequestUrl

        protected String getRequestUrl()
      • isRequestSecure

        protected boolean isRequestSecure()
      • getCookieValue

        protected String getCookieValue​(String cookieName)
      • getError

        protected String getError()
      • getCode

        protected String getCode()
      • getRedirectUri

        protected String getRedirectUri​(String state)
      • getSSLRedirectPort

        protected int getSSLRedirectPort()
      • getStateCode

        protected String getStateCode()
      • resolveCode

        protected AuthChallenge resolveCode​(String code)
        Start or continue the oauth login process.

        If code query parameter is not present, then browser is redirected to authUrl. The redirect URL will be the URL of the current request.

        If code query parameter is present, then an access token is obtained by invoking a secure request to the codeUrl. If the access token is obtained, the browser is again redirected to the current request URL, but any OAuth protocol specific query parameters are removed.

        Returns:
        null if an access token was obtained, otherwise a challenge is returned
      • stripOauthParametersFromRedirect

        private static String stripOauthParametersFromRedirect​(String uri)
      • rewrittenRedirectUri

        private String rewrittenRedirectUri​(String originalUri)
      • addOidcScopeIfNeeded

        private static String addOidcScopeIfNeeded​(String scope)
      • hasScope

        private static boolean hasScope​(String scopeParam,
                                        String targetScope)