fix(authorization): include oauth endpoint description (#7195)
This commit is contained in:
@@ -43,7 +43,8 @@ export const definitionsToAuthorize = onlyOAS3(createSelector(
|
||||
authorizationUrl: flowVal.get("authorizationUrl"),
|
||||
tokenUrl: flowVal.get("tokenUrl"),
|
||||
scopes: flowVal.get("scopes"),
|
||||
type: definition.get("type")
|
||||
type: definition.get("type"),
|
||||
description: definition.get("description")
|
||||
})
|
||||
|
||||
list = list.push(new Map({
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user