Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout doesn't work #34

Open
Pryanic opened this issue Mar 6, 2018 · 1 comment
Open

Logout doesn't work #34

Pryanic opened this issue Mar 6, 2018 · 1 comment

Comments

@Pryanic
Copy link

Pryanic commented Mar 6, 2018

I tried to use your project. I run this application. After that I move to localhost:8765/dummy authorized and got hello world but after I logout and went to localhost:8765/dummy and I got hello world page. Is it expect?

@tndsuperch
Copy link

Hi,Pryanic

To make logout work, you need to make some minor changes to the project.

  1. Add the following code to SecurityConfiguration in api-gateway
.logout().logoutRequestMatcher(new AntPathRequestMatcher("/logout"))
.logoutSuccessUrl("/uaa/logout")
  1. Add the following code to LoginConfiguration in uaa-service
.logout().logoutRequestMatcher(new AntPathRequestMatcher("/logout"))
.logoutSuccessUrl("/login")

It has been tested and can work normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants