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:
Enable optional built-in basic auth plug for restriction web application
Example:
TODO: