Closed yabola closed 3 years ago
@jgrandja please help take a look, thanks~
@jgrandja can you give me any suggestions on such problem? I think the solution in the Stackoverflow is not that good. I think we should expose such function in OAuth2ClientAuthenticationProcessingFilter
. thanks~
@yabola
I want to store refreshToken & accessToken in cookie
This is not recommended as this exposes you to cookie tampering attacks.
I think we should expose such function in
OAuth2ClientAuthenticationProcessingFilter
This project is scheduled to reach EOL. Please see the announcement for further details.
I want to store refreshToken & accessToken in cookie with my defined name( i use stateless here ), I check here
OAuth2ClientAuthenticationProcessingFilter
will retrieve new token/refreshToken if accessToken is invalid. I wantOAuth2ClientAuthenticationProcessingFilter
to have this ability to expose this function. but https://github.com/spring-projects/spring-security-oauth/blob/main/spring-security-oauth2/src/main/java/org/springframework/security/oauth2/client/filter/OAuth2ClientAuthenticationProcessingFilter.java#L116 will only get accessToken value which is not enough.can you help me find a way to do that? or I can try to modify the existing implementation.