crownwangguan / springboot-authorization-server-oauth2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SpringBoot2 & Spring Security5 & OAuth2

This project is the basic Oauth2 authentication server implementation.

Getting Started

./gradlew clean bootrun

Send HTTP request to get "access_token"

  • In order to get Authorization header, set Basic Auth: username: crown, password: thisissecret
curl --location --request POST 'http://localhost:8080/auth/oauth/token' \
--header 'Authorization: Basic Y3Jvd246dGhpc2lzc2VjcmV0' \
--header 'Content-Type: multipart/form-data; boundary=--------------------------101092311882977839110112' \
--form 'grant_type=password' \
--form 'scope=webclient' \
--form 'username=john.carnell' \
--form 'password=password'

Reference Documentation

For further reference, please consider the following sections:

Additional Links

These additional references should also help you:

About


Languages

Language:Java 100.0%