Sha256: b164f738fc796627a6308ac83d0998fd0ca19eb935770703eb314f19fe60e9ce

Contents?: true

Size: 687 Bytes

Versions: 6

Compression:

Stored size: 687 Bytes

Contents

RailsSso.configure do |config|
  # include RailsSso::Helpers to ActionController::Base
  config.magic_enabled = true
  # url of entity provider
  config.provider_url = 'https://example.com'
  # name of oauth2 provider
  config.provider_name = 'example'
  # oauth keys for omniauth-example
  config.provider_key = ENV['PROVIDER_KEY']
  config.provider_secret = ENV['PROVIDER_SECRET']
  # path for fetching user data
  config.provider_profile_path = '/api/v1/profile'
  # set if you support single sign out
  config.provider_sign_out_path = '/api/v1/session'
  # enable cache (will use Rails.cache store)
  config.use_cache = Rails.application.config.action_controller.perform_caching
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_sso-0.7.5 lib/generators/templates/sso.rb
rails_sso-0.7.4 lib/generators/templates/sso.rb
rails_sso-0.7.3 lib/generators/templates/sso.rb
rails_sso-0.7.2 lib/generators/templates/sso.rb
rails_sso-0.7.1 lib/generators/templates/sso.rb
rails_sso-0.7.0 lib/generators/templates/sso.rb