Class OAuth2AndCookieSessionIdResolver

java.lang.Object
io.jmix.sessions.resolver.OAuth2AndCookieSessionIdResolver
All Implemented Interfaces:
org.springframework.session.web.http.HttpSessionIdResolver

public class OAuth2AndCookieSessionIdResolver extends Object implements org.springframework.session.web.http.HttpSessionIdResolver
Uses oauth2 access token and cookies to search session id.
  • Field Details

    • tokenStore

      protected org.springframework.security.oauth2.provider.token.TokenStore tokenStore
    • cookieHttpSessionIdResolver

      protected org.springframework.session.web.http.HttpSessionIdResolver cookieHttpSessionIdResolver
    • sessionDataProvider

      protected org.springframework.beans.factory.ObjectProvider<SessionData> sessionDataProvider
  • Constructor Details

    • OAuth2AndCookieSessionIdResolver

      public OAuth2AndCookieSessionIdResolver()
  • Method Details

    • resolveSessionIds

      public List<String> resolveSessionIds(javax.servlet.http.HttpServletRequest request)
      Specified by:
      resolveSessionIds in interface org.springframework.session.web.http.HttpSessionIdResolver
    • setSessionId

      public void setSessionId(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String sessionId)
      Specified by:
      setSessionId in interface org.springframework.session.web.http.HttpSessionIdResolver
    • expireSession

      public void expireSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Specified by:
      expireSession in interface org.springframework.session.web.http.HttpSessionIdResolver
    • resolveOAuth2SessionIds

      protected List<String> resolveOAuth2SessionIds(javax.servlet.http.HttpServletRequest request)
    • setOAuth2SessionId

      protected void setOAuth2SessionId(javax.servlet.http.HttpServletRequest request, String sessionId)
    • expireOAuth2Session

      protected void expireOAuth2Session(javax.servlet.http.HttpServletRequest request)
    • isOAuth2Request

      protected boolean isOAuth2Request(javax.servlet.http.HttpServletRequest request)
    • isRefreshTokenRequest

      protected boolean isRefreshTokenRequest(javax.servlet.http.HttpServletRequest request)
    • isAccessTokenRequest

      protected boolean isAccessTokenRequest(javax.servlet.http.HttpServletRequest request)
    • getAccessToken

      protected String getAccessToken(javax.servlet.http.HttpServletRequest request)
    • getRefreshToken

      protected String getRefreshToken(javax.servlet.http.HttpServletRequest request)
    • setTokenStore

      @Autowired public void setTokenStore(org.springframework.security.oauth2.provider.token.TokenStore tokenStore)
    • setSessionDataProvider

      @Autowired public void setSessionDataProvider(org.springframework.beans.factory.ObjectProvider<SessionData> sessionDataProvider)