Module: Sorcery::Controller::Submodules::External::Providers::Github
- Defined in:
- lib/sorcery/controller/submodules/external/providers/github.rb
Overview
This module adds support for OAuth with github.com. When included in the ‘config.providers’ option, it adds a new option, ‘config.github’. Via this new option you can configure Github specific settings like your app’s key and secret.
config.github.key = <key>
config.github.secret = <secret>
...
Defined Under Namespace
Modules: GithubClient
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/github.rb', line 15 def self.included(base) base.module_eval do class << self attr_reader :github # access to github_client. def merge_github_defaults! @defaults.merge!(:@github => GithubClient) end end merge_github_defaults! update! end end |