use APP_BASE_URL to create oauth callback URLs
This commit is contained in:
parent
0e5c20118f
commit
587baf0e7b
1 changed files with 1 additions and 1 deletions
|
|
@ -310,7 +310,7 @@ Devise.setup do |config|
|
||||||
identifier: ENV['SALSA_OAUTH_KEY'],
|
identifier: ENV['SALSA_OAUTH_KEY'],
|
||||||
secret: ENV['SALSA_OAUTH_SECRET'],
|
secret: ENV['SALSA_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",
|
redirect_uri: "#{ENV['APP_BASE_URL']}/users/auth/salsa/callback",
|
||||||
ssl: { ca_path: '/etc/ssl/certs' }
|
ssl: { ca_path: '/etc/ssl/certs' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue