Skip to content

Commit

Permalink
CVE-2015-9284: follow-up for restoring single authentication method a…
Browse files Browse the repository at this point in the history
…nd LDAP (bigbluebutton#3376)

* CVE-2015-9284: follow-up for resotoring single authentication method and ldap

* CVE-2015-9284: follow-up for resotoring ldap
  • Loading branch information
jfederico authored Apr 7, 2022
1 parent 6ba1fae commit 86ba280
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ gem 'random_password', '~> 0.1.1'
gem "recaptcha", '~> 5.7.0'
gem 'redcarpet', '~> 3.5.1'
gem 'remote_syslog_logger', '~> 1.0.4'
gem 'repost', '~> 0.3.8'
gem 'rubocop', '~> 1.10.0'
gem 'sassc-rails', '~> 2.1.2'
gem 'sprockets', '~> 3.7.2'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ GEM
regexp_parser (2.1.1)
remote_syslog_logger (1.0.4)
syslog_protocol
repost (0.3.8)
representable (3.0.4)
declarative (< 0.1.0)
declarative-option (< 0.2.0)
Expand Down Expand Up @@ -508,6 +509,7 @@ DEPENDENCIES
redcarpet (~> 3.5.1)
redis (~> 4.2.5)
remote_syslog_logger (~> 1.0.4)
repost (~> 0.3.8)
rspec-rails (~> 3.7)
rubocop (~> 1.10.0)
sassc-rails (~> 2.1.2)
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def signin
"#{Rails.configuration.relative_url_root}/auth/#{@providers.first}"
end

redirect_to provider_path
redirect_post(provider_path, options: { authenticity_token: :auto })
end
end

Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
get '/signin', to: 'sessions#signin', as: :signin
get '/signup', to: 'sessions#new', as: :signup
post '/signup', to: 'users#create', as: :create_user
get '/ldap_signin', to: 'sessions#ldap_signin', as: :ldap_signin
match '/ldap_signin', to: 'sessions#ldap_signin', as: :ldap_signin, via: [:get, :post]

# Redirect to terms page
match '/terms', to: 'users#terms', via: [:get, :post]
Expand Down

0 comments on commit 86ba280

Please sign in to comment.