Skip to content

🔑 Generate and revoke tokens in the DB. Utilizing token-based authentication.

Notifications You must be signed in to change notification settings

chardmd/spring-oauth2-dbtoken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-oauth2-dbtoken

Spring OAuth2 application that generates and revoke tokens in the database. This module protects your REST API with the help of token-based authentication.

Request a token:

/oauth/token?grant_type=client_credentials&client_id=[clientId]&client_secret=[clientSecret]

Sample usage:

localhost:8080/oauth2/oauth/token?grant_type=client_credentials&client_id=admin@test.com
                                                                  &client_secret=admin123

Revoke access token:

/rest/api/revoke_token

Sample usage:

* set Authorization Header: Bearer <accessToken>
localhost:8080/oauth2/rest/api/revoke_token

Your custom API:

* set Authorization Header: Bearer <accessToken>
localhost:8080/oauth2/rest/api/customapi  

About

🔑 Generate and revoke tokens in the DB. Utilizing token-based authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages