Module: Sorcery::Controller::Submodules::External::Providers::Liveid

Defined in:
lib/sorcery/controller/submodules/external/providers/liveid.rb

Overview

This module adds support for OAuth with microsoft liveid When included in the ‘config.providers’ option, it adds a new option, ‘config.liveid’. Via this new option you can configure LiveId specific settings like your app’s key and secret.

config.liveid.key = <key>
config.liveid.secret = <secret>
...

Defined Under Namespace

Modules: LiveidClient

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/sorcery/controller/submodules/external/providers/liveid.rb', line 15

def self.included(base)
  base.module_eval do
    class << self
      attr_reader :liveid                           # access to liveid_client.

      def merge_liveid_defaults!
        @defaults.merge!(:@liveid => LiveidClient)
      end
    end
    merge_liveid_defaults!
    update!
  end
end