Sha256: a9ce42d25de629c111c50dc10f9c829c1fa259b479fb5c7727659d0b07f09735

Contents?: true

Size: 743 Bytes

Versions: 4

Compression:

Stored size: 743 Bytes

Contents

Capcoauth.configure do |config|

  raise 'CapcOAuth Client ID not found' if ENV['CAPCOAUTH_CLIENT_ID'].nil?
  raise 'CapcOAuth Client secret not found' if ENV['CAPCOAUTH_CLIENT_SECRET'].nil?

  # CapcOAuth Client ID
  config.client_id ENV['CAPCOAUTH_CLIENT_ID']

  # CapcOAuth Client Secret
  config.client_secret ENV['CAPCOAUTH_CLIENT_SECRET']

  # Configures how often to check CapcOAuth for access token validity, in seconds.  If this value is too high,
  # application will continue to serve requests to users even after the token is revoked
  # config.token_verify_ttl 10

  # Configure CapcOAuth service URL
  # config.capcoauth_url ENV['CAPCOAUTH_URL']

  # Configure the logger to use for OAuth events
  config.logger Rails.logger
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
capcoauth-0.2.3 lib/generators/capcoauth/templates/initializer.rb
capcoauth-0.2.2 lib/generators/capcoauth/templates/initializer.rb
capcoauth-0.2.1 lib/generators/capcoauth/templates/initializer.rb
capcoauth-0.2.0 lib/generators/capcoauth/templates/initializer.rb