I have to pass the access token and refresh token in the cookie and not in body I am not able to find out a way out, can you please explain where I can set the cookie in response and remove the tokens from the response body?
Asked
Active
Viewed 754 times
2
-
did you see https://stackoverflow.com/a/40241038/175554 – ozkanpakdil Feb 27 '20 at 12:30
-
@özkanpakdil I have gone through the link, it tells to explicitly add a cookie to the response and add your parameters like "accessToken" in my case, while the problem statement is, the oauth2 tokens get generated in the response body when we use spring boot AuthorizationServerConfiguration and WebSecurityConfiguration, I need the tokens to be implicitly generated in the form of cookies not in the response body. – Shubham Parmar Feb 28 '20 at 08:27
-
@Shubham parmar Did you find the answer? – ammy Jun 13 '20 at 12:34