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

Configurable Auth Methods #680

Open
thoward27 opened this issue Jul 31, 2024 · 1 comment
Open

Configurable Auth Methods #680

thoward27 opened this issue Jul 31, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@thoward27
Copy link

Feature Request

Sometimes folks may not want to use JWT auth. I for one, prefer ProxyAuth when working on personal projects, others may want basic auth, or even an ability to disable auth in environments (a la Grafana Anonymous authentication).

Locally, I've got a generic auth middleware implementation that can be configured via the YAML file to work with different auth methods. What I have works for me- it does ProxyAuth and Anonymous auth.

I'd like to contribute what I have to this project, I think some folks may benefit from the ability to quickly change their authentication layer depending on what environment they are running in (who really has time to set up ProxyAuth for local dev??).

If the team is open to it, I'd be happy to open a PR and discuss what else would be necessary to contribute what I've written upstream.

@thoward27 thoward27 added the enhancement New feature or request label Jul 31, 2024
@kaplanelad
Copy link
Contributor

You can configure different authentication methods per environment (See the location here), but currently only for JWT. You can set the JWT location toBearer,Query, orCookie in the environment config file.

However, once you configure an authentication method, you cannot disable it in a different environment since the controller signature expects auth.

You are more than welcome to open a pull request. We look forward to discussing your suggestions there.

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

No branches or pull requests

2 participants