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

OpenAPI: Username and password input for Basic HTTP Authentication header #1336

Open
Baldomo opened this issue Jan 29, 2025 · 1 comment
Open
Labels
enhancement New feature or request PR welcome Feature Request approved

Comments

@Baldomo
Copy link

Baldomo commented Jan 29, 2025

What problem will this feature address?

Other mainstream documentation frameworks provide a simple UX trick when Basic HTTP Auth is required on an endpoint, where the user can input a username and a password instead of the serialized token.

The username and passwords are then serialized as base64("username:password") and sent along with the request.

Image

Describe the solution you'd like

I would be nice for Fumadocs to include this little change, although not strictly necessary.

Image

Or at least make it possible to customize the renderCustomField function.

Describe alternatives you've considered

I tried patching the APIPlayground component but it would require extensive work due to it not being made with this functionality in mind. Please let me know if there are other alternatives.

Additional context

No response

@Baldomo Baldomo added the enhancement New feature or request label Jan 29, 2025
@fuma-nama fuma-nama added the PR welcome Feature Request approved label Jan 30, 2025
@fuma-nama
Copy link
Owner

Will be released on next major together with other bug fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR welcome Feature Request approved
Projects
None yet
Development

No branches or pull requests

2 participants