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

Support enabling/disabling basic auth at runtime #443

Open
rettrich opened this issue May 7, 2024 · 5 comments
Open

Support enabling/disabling basic auth at runtime #443

rettrich opened this issue May 7, 2024 · 5 comments
Labels
awaiting details Waiting for feedback from the issue author, i.e. reproduction enhancement New feature or request
Milestone

Comments

@rettrich
Copy link

rettrich commented May 7, 2024

Is your feature request related to a problem? Please describe.

In my app I want to enable / disable basic auth based on environment variables at boot time. I want to build the app only once and configure it dynamically at runtime. Currently, this is not possible, as basic auth can only be set at build time. The "nuxt-security:routeRules" hook does not respect changes to the basic Auth setting.

Describe the solution you'd like

Similar to the "nuxt-security:routeRules" hook, I want to be able to enable/disable basic auth at runtime.

@rettrich rettrich added the enhancement New feature or request label May 7, 2024
@Baroshem
Copy link
Collaborator

Baroshem commented May 7, 2024

Hey, thanks for this feature idea. I am not sure now how it could work as it is currently enabled globally as you mentioned. Do you maybe have an idea how this could be implemented?

Maybe you would be interested in contributing by creating a Proof of Concept branch with this feature? I can provide all help needed :)

@rettrich
Copy link
Author

rettrich commented May 7, 2024

Sure, from taking a look at the current implementation I am also not sure how to do it. But I can try creating a PoC, probably won't get around to it though in the next 2 weeks or so.

@Baroshem Baroshem added this to the 2.0.0 milestone May 8, 2024
@Baroshem
Copy link
Collaborator

Baroshem commented Jun 7, 2024

Hey there, if you need my help, please let me know :)

@Baroshem
Copy link
Collaborator

Hey @rettrich can I help you in any way? :)

@Baroshem Baroshem added the awaiting details Waiting for feedback from the issue author, i.e. reproduction label Jul 16, 2024
@Baroshem
Copy link
Collaborator

@rettrich bumping the topic :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting details Waiting for feedback from the issue author, i.e. reproduction enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants