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

Security Option: Add Basic Auth #22

Open
1 task
nesimtunc opened this issue Jun 13, 2020 · 0 comments
Open
1 task

Security Option: Add Basic Auth #22

nesimtunc opened this issue Jun 13, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@nesimtunc
Copy link
Member

Enable optional built-in basic auth plug for restriction web application

Example:

# lib/my_app_web/router.ex
use MyAppWeb, :router
import Plug.BasicAuth
import Phoenix.LiveDashboard.Router

...

pipeline :admins_only do
  plug :basic_auth, username: "admin", password: "a very special secret"
end

scope "/" do
  pipe_through [:browser, :admins_only]
  live_dashboard "/dashboard"
end

TODO:

  • Get Basic Auth from Environment Values
@nesimtunc nesimtunc added enhancement New feature or request good first issue Good for newcomers labels Jun 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant