got 403 forbidden, can't pass the SecurityFilterChain
So, I am try to hardcoded information on UserDetails to get know how it will pass the authentication by validating if it has "USER" role. but when I try to make request to it I got 403 forbidden.
10 Replies
⌛
This post has been reserved for your question.
Hey @Tea Time! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
Hi,
put these in your application.properties and let's see what is happening.
logging.level.org.springframework.web=trace
logging.level.org.springframework.security=trace
Also share the complete log and what steps you tried to do
@GOLDMAN
I try to hardcoded information such as roles on userDetail to pass the authentication
Just want to try to pass the authentication based on roles, before i connect it with jwt
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
it probably should be
addFilterAfter
not before
at least if your aim is to reuse UsernamePasswordAuthenticationToken
if you created a custom kind of token for your jwt thing that gets authenticated by your custom authentication provider this order wouldn't matter, I thinkOke lemme try
@Mandagus Šernas still got 403
Well I already figure out the problem
Post Closed
This post has been closed by <@541246766872526859>.