Class: OAuthAdapter::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/oauth_adapter/config.rb

Instance Method Summary collapse

Instance Method Details

#provider(name, client_id, client_secret, site) ⇒ Object



15
16
17
18
# File 'lib/oauth_adapter/config.rb', line 15

def provider(name, client_id, client_secret, site)
  app = Application.new(client_id, client_secret, site)
  OAuthAdapter.providers[name] = app
end