front_end_builds icon indicating copy to clipboard operation
front_end_builds copied to clipboard

Add basic http auth for admin

Open samselikoff opened this issue 9 years ago • 2 comments

When user first sets up feb with a backend, if there's no app they need some way to authenticate to access the admin

front_end_admin http_auth: true

samselikoff avatar Jun 22 '15 19:06 samselikoff

:+1: often have the rails app setup just to host the ember app for staging purposes. def need this!

hhff avatar Jun 22 '15 19:06 hhff

Until this feature is added, use this

protected_app = Rack::Auth::Basic.new(FrontEndBuilds::Engine) do |username, password|
   username == ENV['username'] && password == ENV['password']
end

mount protected_app, at: '/admin'

anilmaurya avatar Jun 23 '15 13:06 anilmaurya