We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In file https://github.com/spring-guides/tut-bookmarks/blob/master/security/src/main/java/bookmarks/Application.java#L143, AuthorityUtils.createAuthorityList("USER", "write") should be AuthorityUtils.createAuthorityList("ROLE_USER", "write") as Spring Security uses role ROLE_USER to check. This causes basic authentication to fail with 403 error.
AuthorityUtils.createAuthorityList("USER", "write")
AuthorityUtils.createAuthorityList("ROLE_USER", "write")
ROLE_USER
403
Actually in the OAuth2 configuration (https://github.com/spring-guides/tut-bookmarks/blob/master/security/src/main/java/bookmarks/Application.java#L180), it's using the correct ROLE_USER.
The text was updated successfully, but these errors were encountered:
USER
This tutorial was completely rewritten as of 63d3937.
I suggest you read it from the top and be sure to let us know if you spot any issues!
Sorry, something went wrong.
No branches or pull requests
In file https://github.com/spring-guides/tut-bookmarks/blob/master/security/src/main/java/bookmarks/Application.java#L143,
AuthorityUtils.createAuthorityList("USER", "write")
should beAuthorityUtils.createAuthorityList("ROLE_USER", "write")
as Spring Security uses roleROLE_USER
to check. This causes basic authentication to fail with403
error.Actually in the OAuth2 configuration (https://github.com/spring-guides/tut-bookmarks/blob/master/security/src/main/java/bookmarks/Application.java#L180), it's using the correct
ROLE_USER
.The text was updated successfully, but these errors were encountered: