Module: Googl::OAuth2
- Extended by:
- OAuth2
- Included in:
- OAuth2
- Defined in:
- lib/googl.rb,
lib/googl/oauth2/utils.rb,
lib/googl/oauth2/native.rb,
lib/googl/oauth2/server.rb
Overview
OAuth 2.0
Google supports three flows of OAuth 2.0
-
client-side
-
server-side
-
native application
Now, gem googl support only client-side and native application.
Defined Under Namespace
Modules: Utils Classes: Native, Server
Instance Method Summary collapse
-
#native(client_id, client_secret) ⇒ Object
OAuth 2.0 for native applications.
-
#server(client_id, client_secret, redirect_uri) ⇒ Object
OAuth 2.0 for server-side web applications.
Instance Method Details
#native(client_id, client_secret) ⇒ Object
137 138 139 |
# File 'lib/googl.rb', line 137 def native(client_id, client_secret) Googl::OAuth2::Native.new(client_id, client_secret) end |