Skip to content

This project try to provide a easy way to use JWT in your Spring Security implementation

License

Notifications You must be signed in to change notification settings

clau-lopez/spring-security-jwt-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Security JWT Integration

This project is a library that allow connect a Spring application using Spring Security and JWT easily.

Maven Dependency

<dependency>
    <groupId>com.github.colopezfuentes</groupId>
    <artifactId>spring-security-jwt-integration</artifactId>
    <version>0.0.1-RELEASE</version>
</dependency>

How to Use it

 {
    "user":"myUser",
    "password":"myPassword"
 }

  • To request to any other secure endpoint include a header "Authorization" with the token.

Suggestions

  • Re implement a bean for DefaultPasswordEncoder
  • Re implement a bean for DefaultUserDetailService
  • Re implement a bean for DefaultWebSecurityConfig (optional)

These implementations are provided with a not secure default logic

Properties

security.jwt.secret-key=
security.jwt.expiration-date=  #In seconds
security.jwt.default-password=
security.jwt.default-user=

Authors

@colopezfuentes @diegosep

About

This project try to provide a easy way to use JWT in your Spring Security implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages