fix(authorization): include oauth endpoint description (#7195)

This commit is contained in:
Michael Zangl
2021-04-21 01:39:11 +02:00
committed by GitHub
parent f239965cbc
commit 5906dfae02
2 changed files with 6 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ describe("oas3 plugin - auth extensions - wrapSelectors", function(){
return fromJS({
"oauth2AuthorizationCode": {
"type": "oauth2",
"description": "Some Oauth2 endpoint",
"flows": {
"authorizationCode": {
"authorizationUrl": "http://google.com/",
@@ -105,7 +106,8 @@ describe("oas3 plugin - auth extensions - wrapSelectors", function(){
scopes: {
"myScope": "our only scope"
},
type: "oauth2"
type: "oauth2",
description: "Some Oauth2 endpoint"
}
},
{
@@ -201,7 +203,7 @@ describe("oas3 plugin - auth extensions - wrapSelectors", function(){
// OPTIONAL. JSON array containing a list of the OAuth 2.0 Grant Type values that
// this OP supports. Dynamic OpenID Providers MUST support the authorization_code
// and implicit Grant Type values and MAY support other Grant Types. If omitted,
// the default value is ["authorization_code", "implicit"].
// the default value is ["authorization_code", "implicit"].
oidcNoGrant: {
flow: "authorization_code",
authorizationUrl: "https://accounts.google.com/o/oauth2/v2/auth",