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"),
|
authorizationUrl: flowVal.get("authorizationUrl"),
|
||||||
tokenUrl: flowVal.get("tokenUrl"),
|
tokenUrl: flowVal.get("tokenUrl"),
|
||||||
scopes: flowVal.get("scopes"),
|
scopes: flowVal.get("scopes"),
|
||||||
type: definition.get("type")
|
type: definition.get("type"),
|
||||||
|
description: definition.get("description")
|
||||||
})
|
})
|
||||||
|
|
||||||
list = list.push(new Map({
|
list = list.push(new Map({
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ describe("oas3 plugin - auth extensions - wrapSelectors", function(){
|
|||||||
return fromJS({
|
return fromJS({
|
||||||
"oauth2AuthorizationCode": {
|
"oauth2AuthorizationCode": {
|
||||||
"type": "oauth2",
|
"type": "oauth2",
|
||||||
|
"description": "Some Oauth2 endpoint",
|
||||||
"flows": {
|
"flows": {
|
||||||
"authorizationCode": {
|
"authorizationCode": {
|
||||||
"authorizationUrl": "http://google.com/",
|
"authorizationUrl": "http://google.com/",
|
||||||
@@ -105,7 +106,8 @@ describe("oas3 plugin - auth extensions - wrapSelectors", function(){
|
|||||||
scopes: {
|
scopes: {
|
||||||
"myScope": "our only scope"
|
"myScope": "our only scope"
|
||||||
},
|
},
|
||||||
type: "oauth2"
|
type: "oauth2",
|
||||||
|
description: "Some Oauth2 endpoint"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user