Module: Passport::Oauth::Authorizable::InstanceMethods
- Defined in:
- lib/passport/oauth/client/authorizable.rb
Instance Attribute Summary collapse
-
#authorize_url ⇒ Object
key is a way to 100% uniquely identify a user, even if token or secret change “token” passed from provider oauth “secret” passed from provider.
Instance Method Summary collapse
Instance Attribute Details
#authorize_url ⇒ Object
key is a way to 100% uniquely identify a user, even if token or secret change “token” passed from provider oauth “secret” passed from provider
59 60 61 |
# File 'lib/passport/oauth/client/authorizable.rb', line 59 def @authorize_url end |
Instance Method Details
#access(options) ⇒ Object
69 70 71 72 73 74 75 76 |
# File 'lib/passport/oauth/client/authorizable.rb', line 69 def access() = {:token => self.token, :secret => self.secret}.merge() hash = self.class.access() self.key = hash[:key] self.token = hash[:token] self.secret = hash[:secret] hash end |
#authorize(callback_url, options = {}) ⇒ Object
61 62 63 64 65 66 67 |
# File 'lib/passport/oauth/client/authorizable.rb', line 61 def (callback_url, = {}) hash = self.class.(callback_url, ) self. = hash[:url] self.token = hash[:token] self.secret = hash[:secret] hash end |
#credentials ⇒ Object
78 79 80 |
# File 'lib/passport/oauth/client/authorizable.rb', line 78 def credentials self.class.credentials end |