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

cmd/gf: if env is production,swagger or openapi set auth config,eg: auth or password #3898

Open
FTLLOVE opened this issue Oct 29, 2024 · 2 comments
Labels
feature help wanted inactive planned This issue/proposal is planned into our next steps.

Comments

@FTLLOVE
Copy link
Contributor

FTLLOVE commented Oct 29, 2024

What do you want to ask?

swagger setting auth config

@FTLLOVE FTLLOVE changed the title if env is production,swagger or openapi set auth config,eg: auth or password cmd/gf: if env is production,swagger or openapi set auth config,eg: auth or password Oct 29, 2024
@gqcn
Copy link
Member

gqcn commented Nov 14, 2024

I spent two hours thinking and figured out, he wants an authentication mechanism for swagger api path when he takes the whole project online in public.

We might provide basic auth mechanism in ghttp.Server/Request/Respose to validate the visitor.

@github-actions github-actions bot removed the inactive label Nov 14, 2024
@gqcn gqcn added feature help wanted inactive planned This issue/proposal is planned into our next steps. and removed question labels Nov 14, 2024
Copy link

Hello @FTLLOVE. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it!
你好 @FTLLOVE。我们喜欢您的提案/反馈,并希望您或其他社区成员通过拉取请求做出贡献。我们提前感谢您的贡献,并期待对其进行审查。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature help wanted inactive planned This issue/proposal is planned into our next steps.
Projects
None yet
Development

No branches or pull requests

2 participants