Skip to content

Commit

Permalink
Merge branch 'master' into use-channel-address-in-sidebar-for-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored Jul 25, 2024
2 parents 0fe2269 + 88882d4 commit 814a06a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/react-component",
"version": "2.1.0",
"version": "2.1.1",
"private": false,
"description": "A React component for AsyncAPI specification.",
"repository": {
Expand Down
15 changes: 15 additions & 0 deletions library/src/__tests__/docs/v3/streetlights-mqtt.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
},
{
"$ref": "#/components/securitySchemes/openIdConnectWellKnown"
},
{
"$ref": "#/components/securitySchemes/oauth2Password"
}
],
"tags": [
Expand Down Expand Up @@ -348,6 +351,18 @@
"openIdConnectWellKnown": {
"type": "openIdConnect",
"openIdConnectUrl": "https://authserver.example/.well-known"
},
"oauth2Password": {
"type": "oauth2",
"description": "Flows to support OAuth 2.0",
"flows": {
"password": {
"tokenUrl": "https://authserver.example/token",
"availableScopes": {
"streetlights:on": "Ability to switch lights on"
}
}
}
}
},
"parameters": {
Expand Down
2 changes: 1 addition & 1 deletion library/src/containers/Servers/Security.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const SecurityItem: React.FunctionComponent<SecurityItemProps> = ({
unwrappedFlows.clientCredentials = flows.clientCredentials()!;
}
if (flows?.hasPassword()) {
unwrappedFlows.password = flows.implicit()!;
unwrappedFlows.password = flows.password()!;
}
const renderedFlows = Object.entries(unwrappedFlows).map(
([flowName, flow]) => {
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions web-component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/web-component",
"version": "2.1.0",
"version": "2.1.1",
"private": false,
"description": "A web component for AsyncAPI specification. Based on @asyncapi/react-component.",
"repository": {
Expand Down Expand Up @@ -44,7 +44,7 @@
"install:reactcomp": "chmod +x ./bump-react-comp.sh && ./bump-react-comp.sh"
},
"dependencies": {
"@asyncapi/react-component": "^2.1.0",
"@asyncapi/react-component": "^2.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"web-react-components": "^1.4.2"
Expand Down

0 comments on commit 814a06a

Please sign in to comment.