class Platforms::Yammer::OmniAuthSetup

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

@author Benjamin Elias @since 0.1.0 @see www.createdbypete.com/dynamic-omniauth-provider-setup/ Dynamic providers. @see github.com/omniauth/omniauth/wiki/Setup-Phase OmniAuth Setup Phase

Public Instance Methods

default_certificate() click to toggle source

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. @return [Platforms::Certificate] the Certificate to use by default

# 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