Omniauth::CV
An OmniAuth strategy for connecting to the CV Identity service.
Add this to config/initializers/devise.rb
Devise.setup do |config|
...
config.omniauth :cv, APP_ID, APP_SECRET
end
To change the endpoint of the provider, make use of the setup
option
available to Rack::Builder
.
Devise.setup do |config|
config.omniauth :cv, APP_ID, APP_SECRET,
setup: lambda { |env|
env['omniauth.strategy'].[:client_options].site = "http://your-identity.provider.com"
}
end