Skip to content

ajdxjdrnfl/spring_security_jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

spring_security_jwt

implement spring security + toy jwt service

Stacks:

Springboot 2.5.1(Snapshot)

MySQL + SpringBoot JPA

Spring_Security

To implement this code, customize application.properties file to configure sources pertaining to the database.

Implementation Process

1. User requests login access to /login with parameters, ID and pwd.
  1. In TestController, authenticate the user with ID and pwd, then JwtUtil creatToken and response the JWT token with header "Authorization".

  2. With JWT token, User can access "/home" and TestController response "hello world"

About

implement spring security + jwt service

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published