S
S
Sergey2018-06-24 14:45:53
Java
Sergey, 2018-06-24 14:45:53

How to fix infinite redirect when using Spring Oauth2?

I'm setting up OAuth2 through spring boot 2, but after entering my login and password, I'm constantly being redirected to the login form. In the http client, I traced the cap, but I did not see an error that would indicate that the password was not correct.
1) localhost:4002/hello/user [GET]
2) localhost:4002/login [GET]
3) localhost:5000/oauth/authorize?client_id=browser&r... [GET]
4) localhost:5000/login [GET] ]
5) localhost:5000/login [POST] form username=bleser;password=123
6) localhost:5000/oauth/authorize?client_id=browser&r... [GET]
7) localhost:4002/login?code=GnffIl&state= c7jCbQ
8) item 2
Code example

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question