Module: Moura::OneLogin
- Defined in:
- lib/moura/onelogin.rb
Class Method Summary collapse
Class Method Details
.client ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/moura/onelogin.rb', line 7 def self.client ::OneLogin.configure do |config| config.host = ENV.fetch("ONELOGIN_API_DOMAIN") config.debugging = ENV.fetch("ONELOGIN_DEBUG", false) end client_id = ENV.fetch("ONELOGIN_CLIENT_ID") client_secret = ENV.fetch("ONELOGIN_CLIENT_SECRET") ::OneLogin::Api.new(client_id, client_secret) end |