Playing with OmniAuth

However OmniAuth is mainly used for authorization. So let's try a more
lightweight approach with just OpenID.
This commit is contained in:
Christoph Haas 2017-04-15 23:08:25 +02:00
parent 8d15711c0f
commit 898dd81c6b
15 changed files with 219 additions and 21 deletions

View file

@ -276,10 +276,21 @@ Devise.setup do |config|
# config.omniauth :launchpad, 'debshots'
config.omniauth :google_oauth2, '398593918966-0fpmit0pb6ptio1ndsie5dfcnqhei63l.apps.googleusercontent.com', 'uRQq_dLs1kx7l5sYIyEyPVRc', :client_options => {:ssl => {:ca_path => '/etc/ssl/certs'}}
config.omniauth :launchpad, 'Debian Screenshots', :client_options => {:ssl => {:ca_path => '/etc/ssl/certs'}}
# config.omniauth :launchpad, 'Debian Screenshots', :client_options => {:ssl => {:ca_path => '/etc/ssl/certs'}}
config.omniauth :amazon, 'amzn1.application-oa2-client.78d832919fc24456b0636762cf18efd9', '8c495d0940ca4100313c03e93b8b4240eef256d2fdbe672718506f29f5a20f61', :client_options => {:ssl => {:ca_path => '/etc/ssl/certs'}}
config.omniauth :openid, :client_options => {
name: :launchpad,
identifier: 'https://login.ubuntu.com'
# # scope: [:openid, :email],
# response_type: :code,
# client_options: {
# port: 443,
# scheme: "https",
# host: "login.ubuntu.com" }
}
end
# OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE