Skip to content
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

Basic Auth credentials are not encoded #758

Closed
lafrech opened this issue May 25, 2022 · 0 comments
Closed

Basic Auth credentials are not encoded #758

lafrech opened this issue May 25, 2022 · 0 comments

Comments

@lafrech
Copy link

lafrech commented May 25, 2022

Hi.

We discovered this today. The "try it" feature is broken for credentials using non-ASCII characters.

Server-side, we expect utf-8 credentials. To be fair, there doesn't seem to be a consensus about which encoding to use:

Anyway, here's a link to the very same issue on Swagger-UI that explains things better than I would: swagger-api/swagger-ui#2456. Spoiler: they internalized btoa and used utf-8.

Thanks again for RapiDoc. Our OpenAPI UI of choice. Have a nice day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant