-
-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Fails to render the specification if it contains oauth2 security scheme with password flow #1007
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
@pltod2 can you open a PR? normally |
@derberg I will try. If I manage to submit PR by tomorrow and it is approved, do you know when the fix will be released? |
we use conventional commits with supporting automation, so once you submit a PR, with PR title containing prefix "fix: ", after merging, patch automatically goes out in few minutes. longest takes review and getting PR accepted for merge - this is hard to predict |
yeah, release takes like 15min after merging PR -> #1019 (comment) |
🎉 This issue has been resolved in version 2.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
When the specification contains securityScheme of type oauth2 that contains password flow and that scheme is referred in the document the spec fails to render. It happens in all the major browsers.
Expected result
The specification must be rendered successfully.
Actual result
The specification is not rendered, we get blank screen instead.
Steps to reproduce
The fastest way to reproduce is in async api studio which uses this component under the hood.
Add the following under components/securitySchemes:
Just adding the scheme is ok but if we further refer the scheme it will result in browser rendering a blank page. The error that can be seen in the console is:
Troubleshooting
As described in the spec the authorizationUrl does not apply to password flow.
However in the code it is handled as always present, which causes "undefined is not an object (evaluating 'i.authorizationUrl')" error.
The text was updated successfully, but these errors were encountered: