Skip to content

wali-eldin-hassan/jwt-springBoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Demo Is Using Jwt Auth + Basic Auth That came With Spring Security

Build Status Coverage Status License

Minimal Spring Boot sample app.

Requirements

For building and running the application you need:

Running the application locally

There are several ways to run a Spring Boot application on your local machine. One way is to execute the main method in the java.wali.hassan.jwtmicroServics.JwtMicroServicsApplication class from your IDE.

How To Use ? :shipit:

 - Run your server
 - Open postman
 - Visit localhost:8080 or if you have custom port you can use it
 - The Respond will be 401 Unauthorized
 - That mean you have to login wth Basic auth using the given credential below
 - To get token you can send post request to localhost:8080/token 
 - and use Basic auth with user:admin and password:password
 - This will give you a token that will be valid for 1 hour
 - Now you can use token to visit url like localhost:8080
 - The response of this api will hi , admin

Copyright

Released under the Apache License 2.0. See the LICENSE file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages