Sha256: 9501e0e64b4a69f40b55ebf86058c6e972e0dbaddd82ee97d20aaf8d16ac8184

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

# -*- encoding : utf-8 -*-
Rails.application.config.middleware.use OmniAuth::Builder do
  config = LS_OMNIAUTH.config

  if config.valid?
    provider :google_oauth2, config[:client_id], config[:client_secret], {:access_type => 'online', :approval_prompt => 'auto'}
  else
    Rails.logger.error("ERROR: ls-omniauth.yml is missing or not properly configured. Please ensure that both a client id and client secret have been set.")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ls-omniauth-3.0.3 config/initializers/ls-omniauth.rb