Skip to content

Simple project for learning JWT Authentication with Spring

Notifications You must be signed in to change notification settings

jmermar/Spring-JWT-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

I've been learning JWT authentication with Spring Security and thus created this simple RestFul API.

How it works

It consists of 3 Endpoints, "/users/register" will generate an user with an email and a password. "/users/login" will log the user and generate the session token. Finally, "/users/aboutme" is a secured endpoint that will display the user entry in database and will read the user email from a valid user token.

Run it

The database is bundled as a docker compose file in order to simplify configuration. For running the aplication (on port 3000) do this:

docker compose up
mvnw spring-boot:run

Then you should be able to do the corresponding requests with a http client like postman.

About

Simple project for learning JWT Authentication with Spring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages