dokku / dokku-http-auth

dokku plugin that gives the ability to manage HTTP basic auth for an application
MIT License
84 stars 20 forks source link

Feature request: Add ability to set auth on a domain specific, not application wide #20

Open Jarrodsz opened 1 year ago

Jarrodsz commented 1 year ago

Description of problem

Having multiple domain names attached to a single dokku app. The auth is app-wide so every domain gets the password prompt.

How reproducible

Create a new dokku app "my app" Attach 2 domains to it. Add auth plugin and enable it for the app "my app"

Actual Results

Auth works for all domains, its application wide.

Expected Results

Need a way to set only a specific domain.ltd to be activated for auth. So domain1.ltd that links to my app should give auth but domain2.ltd that links to my app should not give the auth.

josegonzalez commented 1 year ago

This isn't a feature of the plugin. Is this something you'd be willing to sponsor? If so, its likely 2 hours of work. See this doc for more details.

Jarrodsz commented 1 year ago

Its not that big of deal, im just a student. but perhaps in the future this would be a nice to have.

josegonzalez commented 1 year ago

Pull requests welcome :)