Closed
Description
I would like to use SwaggerClient.PasswordAuthorization
by specifying a "basicAuth" authorization type in an API declaration.
I realized that there are a couple of problems with the implementation:
- Values of username and password cannot be read because the selectors are wrong: Fix reading values of username and password from the basic authwntication form #1774
- Clicking on the toggling icon quickly shows and then hides again the authentication form: Fix toggling of the basic authentication form #1775
- When using the schema version 1.2, authorizations of the type "basicAuth" got lost during the conversion to the 2.0 version, which is used internally in the swagger-ui: Fix converting basicAuth authorization from 1.2 to 2.0 schema version #1776
The authentication form is not styled and does not show up by default. I made it appear by adding its parent element and providing icon and styling:
<div class="auth_main_container"></div>
The fixes above and customizing the index.html
helped me to get the Basic Authentication working. Is it the scenario supposed to be used only with the HTML customizatoin?
Metadata
Metadata
Assignees
Labels
No labels