File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 6969 },
7070 {
7171 "$ref" : " #/components/securitySchemes/openIdConnectWellKnown"
72+ },
73+ {
74+ "$ref" : " #/components/securitySchemes/oauth2Password"
7275 }
7376 ],
7477 "tags" : [
348351 "openIdConnectWellKnown" : {
349352 "type" : " openIdConnect" ,
350353 "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+ }
351366 }
352367 },
353368 "parameters" : {
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ const SecurityItem: React.FunctionComponent<SecurityItemProps> = ({
164164 unwrappedFlows . clientCredentials = flows . clientCredentials ( ) ! ;
165165 }
166166 if ( flows ?. hasPassword ( ) ) {
167- unwrappedFlows . password = flows . implicit ( ) ! ;
167+ unwrappedFlows . password = flows . password ( ) ! ;
168168 }
169169 const renderedFlows = Object . entries ( unwrappedFlows ) . map (
170170 ( [ flowName , flow ] ) => {
You can’t perform that action at this time.
0 commit comments