Module: OpenAuth2
- Defined in:
- lib/open_auth2/provider.rb,
lib/open_auth2.rb,
lib/open_auth2/token.rb,
lib/open_auth2/client.rb,
lib/open_auth2/config.rb,
lib/open_auth2/version.rb,
lib/open_auth2/connection.rb,
lib/open_auth2/provider/base.rb,
lib/open_auth2/provider/google.rb,
lib/open_auth2/provider/default.rb,
lib/open_auth2/provider/facebook.rb,
lib/open_auth2/delegate_to_config.rb
Overview
Contains various providers & their config info stored in Options hash. When user sets a provider, we copy over its Options to Config.
The reason for this setup is b/c various OAuth servers accept & return different options & values. This way users can contribute their own providers, i.e. a very simple plugin system.
Acceptable providers are modules defined under OpenAuth2::Provider, have Options hash.
Examples:
module OpenAuth2::Providers::YourProviderName
Options = {
:authorize_url => 'https://your_provider_name.com'
}
end
Defined Under Namespace
Modules: Connection, DelegateToConfig, Provider Classes: Client, Config, Token, UnknownProvider
Constant Summary collapse
- VERSION =
'0.10.0'