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

@preauthorize not working at controller level. #1

Open
santhosh-athreya opened this issue Nov 14, 2021 · 0 comments
Open

@preauthorize not working at controller level. #1

santhosh-athreya opened this issue Nov 14, 2021 · 0 comments

Comments

@santhosh-athreya
Copy link

Hi @akhileshmalini,

Great article!!! I read your blog on Medium. I was new to JWT and Spring Security your article gave me a greater perspective on the concepts. Thank you.

I have been working on a Management Information System application.
I have implemented JWT based Authentication and role-based authorization with help of your example and signup and login works fine.
There is one feature that I have planned - Admin Dashboard API which is an authorization only to users with Admin role.
I observer @PreAuthorize is not working at the controller level.
I have followed all the necessary actions, but no luck :( I have attached my GitHub repo. Kindly review it, and please let me know where I'm going wrong.

Thanks in Advance.!

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

1 participant