Add OAuth2 docs

This commit is contained in:
yzx9
2023-11-25 12:41:01 +08:00
parent f2f629e3ee
commit d5bf3e5d1c
5 changed files with 60 additions and 7 deletions

View File

@@ -300,7 +300,7 @@ const AuthenticationController = {
}
try {
const contentType = process.env.OAUTH2_AUTHORIZATION_CONTENT_TYPE || 'application/x-www-form-urlencoded'
const contentType = process.env.OAUTH2_TOKEN_CONTENT_TYPE || 'application/x-www-form-urlencoded'
const bodyParams = {
grant_type: "authorization_code",
client_id: process.env.OAUTH2_CLIENT_ID,