Skip to content

get2ashish/spring-secure-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This sample application shows how spring security works :)
There are 4 resources
1 public resource : no authorization needed can be accessed

2 Admin resource which can be only accessed by users having ADMIN authority
3 User resource can be accessed by USER as well as ADMIN
Auth controller creates JWTs. If role= admin the creates JWT with authority ADMIN else USER

Ideally Auth controller will have a more complex logic like getting authority from LDAP etc but for this POC this is OK :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages