forked from External/greenlight
GRN2-30: Add custom ldap sign in page (#619)
* Add custom ldap signin page * Remove old omniauth-ldap gem * Use new bn gems
This commit is contained in:
committed by
Jesus Federico
parent
09afd9154f
commit
523d9a38f2
@ -29,6 +29,7 @@ Rails.application.routes.draw do
|
||||
get '/signin', to: 'users#signin', as: :signin
|
||||
get '/signup', to: 'users#new', as: :signup
|
||||
post '/signup', to: 'users#create', as: :create_user
|
||||
get '/ldap_signin', to: 'users#ldap_signin', as: :ldap_signin
|
||||
|
||||
# Redirect to terms page
|
||||
match '/terms', to: 'users#terms', via: [:get, :post]
|
||||
@ -88,6 +89,7 @@ Rails.application.routes.draw do
|
||||
# Handles Omniauth authentication.
|
||||
match '/auth/:provider/callback', to: 'sessions#omniauth', via: [:get, :post], as: :omniauth_session
|
||||
get '/auth/failure', to: 'sessions#omniauth_fail'
|
||||
post '/auth/ldap', to: 'sessions#ldap', as: :ldap_callback
|
||||
|
||||
# Room resources.
|
||||
resources :rooms, only: [:create, :show, :destroy], param: :room_uid, path: '/'
|
||||
|
Reference in New Issue
Block a user