Skip to content

OAuth2 Project working with mysql, storing access token and creating new users

Notifications You must be signed in to change notification settings

fabiogodoy/spring-boot-oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

spring-boot-oauth2

OAuth2 Project working with mysql, storing access token and creating new users

It was created using oauth2 password flow

OAuth2 Password Grant Flow

Usage example:

A post to the follow url: http://localhost:8181/oauth/token?grant_type=password&username=xxx&password=xxx

Providing a header with the basic authorization like this: 'Authorization' 'Basic d2ViOnNlY3JldA=='

Here we have client credentials in a base64 format (in our example clientId = web and clientPassword = secret)

Or, my favorite way, you provide user and pass this in a form, with another header: A post to the url http://localhost:8181/oauth/token?grant_type=password

Providing a header with the basic authorization like this: 'Content-Type': 'application/x-www-form-urlencoded' 'Authorization': 'Basic d2ViOnNlY3JldA=='

Inside of the form, the username and password information

About

OAuth2 Project working with mysql, storing access token and creating new users

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages