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.
No description
No description
10 Replies
JavaBot
JavaBot2w ago
This post has been reserved for your question.
Hey @Tea Time! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
GOLDMAN
GOLDMAN2w ago
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
miporin1780
miporin1780OP2w ago
@GOLDMAN
miporin1780
miporin1780OP2w ago
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
JavaBot
JavaBot2w ago
💤 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.
Mandagus Šernas
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 think
miporin1780
miporin1780OP2w ago
Oke lemme try
miporin1780
miporin1780OP2w ago
@Mandagus Šernas still got 403
miporin1780
miporin1780OP2w ago
Well I already figure out the problem
JavaBot
JavaBot2w ago
Post Closed
This post has been closed by <@541246766872526859>.
Want results from more Discord servers?
Add your server