File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 69
69
},
70
70
{
71
71
"$ref" : " #/components/securitySchemes/openIdConnectWellKnown"
72
+ },
73
+ {
74
+ "$ref" : " #/components/securitySchemes/oauth2Password"
72
75
}
73
76
],
74
77
"tags" : [
348
351
"openIdConnectWellKnown" : {
349
352
"type" : " openIdConnect" ,
350
353
"openIdConnectUrl" : " https://authserver.example/.well-known"
354
+ },
355
+ "oauth2Password" : {
356
+ "type" : " oauth2" ,
357
+ "description" : " Flows to support OAuth 2.0" ,
358
+ "flows" : {
359
+ "password" : {
360
+ "tokenUrl" : " https://authserver.example/token" ,
361
+ "availableScopes" : {
362
+ "streetlights:on" : " Ability to switch lights on"
363
+ }
364
+ }
365
+ }
351
366
}
352
367
},
353
368
"parameters" : {
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ const SecurityItem: React.FunctionComponent<SecurityItemProps> = ({
164
164
unwrappedFlows . clientCredentials = flows . clientCredentials ( ) ! ;
165
165
}
166
166
if ( flows ?. hasPassword ( ) ) {
167
- unwrappedFlows . password = flows . implicit ( ) ! ;
167
+ unwrappedFlows . password = flows . password ( ) ! ;
168
168
}
169
169
const renderedFlows = Object . entries ( unwrappedFlows ) . map (
170
170
( [ flowName , flow ] ) => {
You can’t perform that action at this time.
0 commit comments