Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.18 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.18 KB

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