Guest User

Untitled

a guest
Feb 6th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # config/routes.rb
  2. flipper_auth_app = Flipper::UI.app(Flipper.instance) do |builder|
  3. builder.use Rack::Auth::Basic do |username, password|
  4. if username == ENV['FLIPPER_USERNAME'] && password == ENV['FLIPPER_PASSWORD']
  5. true
  6. else
  7. false
  8. end
  9. end
  10. end
  11.  
  12. mount flipper_auth_app, at: '/flipper'
Add Comment
Please, Sign In to add comment