OAuth2 callback URL is now configurable
This commit is contained in:
parent
114ea469ee
commit
afa90e3927
4 changed files with 13 additions and 3 deletions
|
|
@ -300,12 +300,13 @@ Devise.setup do |config|
|
|||
host: "salsa.debian.org",
|
||||
identifier: ENV['GITLAB_OAUTH_KEY'],
|
||||
secret: ENV['GITLAB_OAUTH_SECRET'],
|
||||
redirect_uri: "http://localhost:3000/users/auth/salsa/callback",
|
||||
#redirect_uri: "http://localhost:3000/users/auth/salsa/callback",
|
||||
redirect_uri: "#{Rails.configuration.base_url}/users/auth/salsa/callback",
|
||||
ssl: { ca_path: '/etc/ssl/certs'}
|
||||
}
|
||||
}
|
||||
OpenIDConnect.logger = Rails.logger
|
||||
OmniAuth.config.logger = Rails.logger if Rails.env.development?
|
||||
#OpenIDConnect.logger = Rails.logger
|
||||
#OmniAuth.config.logger = Rails.logger if Rails.env.development?
|
||||
|
||||
# config.omniauth :google_oauth2, ENV["GOOGLE_CLIENT_ID"], ENV["GOOGLE_CLIENT_SECRET"],
|
||||
# :client_options => {:ssl => {:ca_path => '/etc/ssl/certs'}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue