Class: Platforms::Yammer::OmniAuthSetup

Inherits:
Core::OmniAuthSetup
  • Object
show all
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

See Also:

Author:

  • Benjamin Elias

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#default_certificatePlatforms::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.

Returns:

  • (Platforms::Certificate)

    the Certificate to use by default

Since:

  • 0.1.0



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