Class: Platforms::Yammer::OmniAuthSetup
- Inherits:
-
Core::OmniAuthSetup
- Object
- Core::OmniAuthSetup
- Platforms::Yammer::OmniAuthSetup
- Defined in:
- lib/platforms/yammer/omni_auth_setup.rb
Overview
Yammer-specific requirements for OmniAuth setup. Sets the default certificate to the Configuration values. Setting Client ID and Client Secret are done in Platforms::Core:OmniAuthSetup
Instance Method Summary collapse
-
#default_certificate ⇒ Platforms::Certificate
Create a Certificate with the default configuration setup according to the Configuration for client_id and client_secret, usually specified in the gem’s initializer.
Instance Method Details
#default_certificate ⇒ Platforms::Certificate
Create a Certificate with the default configuration setup according to the Configuration for client_id and client_secret, usually specified in the gem’s initializer. This can be used if there is no Certificate saved in the database.
22 23 24 25 26 27 |
# File 'lib/platforms/yammer/omni_auth_setup.rb', line 22 def default_certificate Certificate.new do |c| c.client_id = Platforms::Yammer.configuration.client_id c.client_secret = Platforms::Yammer.configuration.client_secret end end |