Class: OAuth2::Storages::Strategy
- Inherits:
-
Object
- Object
- OAuth2::Storages::Strategy
- Defined in:
- lib/oauth20/storages/strategy.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#access_token_find_by_key(key) ⇒ Object
Find access token by given key.
-
#access_token_save(access_token) ⇒ Object
Save new access token.
-
#auth_code_find_by_key(key) ⇒ Object
Find authorization code by the given key.
-
#auth_code_save(auth_code) ⇒ Object
Save new authorization code.
- #client_find_by_key(key) ⇒ Object
- #client_find_by_secret(secret) ⇒ Object
-
#client_save(client) ⇒ Object
Save new client.
Instance Method Details
#access_token_find_by_key(key) ⇒ Object
Find access token by given key.
17 18 19 |
# File 'lib/oauth20/storages/strategy.rb', line 17 def access_token_find_by_key(key) raise NotImplementedError end |
#access_token_save(access_token) ⇒ Object
Save new access token.
9 10 11 |
# File 'lib/oauth20/storages/strategy.rb', line 9 def access_token_save(access_token) raise NotImplementedError end |
#auth_code_find_by_key(key) ⇒ Object
Find authorization code by the given key.
33 34 35 |
# File 'lib/oauth20/storages/strategy.rb', line 33 def auth_code_find_by_key(key) raise NotImplementedError end |
#auth_code_save(auth_code) ⇒ Object
Save new authorization code.
25 26 27 |
# File 'lib/oauth20/storages/strategy.rb', line 25 def auth_code_save(auth_code) raise NotImplementedError end |
#client_find_by_key(key) ⇒ Object
46 47 48 |
# File 'lib/oauth20/storages/strategy.rb', line 46 def client_find_by_key(key) raise NotImplementedError end |
#client_find_by_secret(secret) ⇒ Object
50 51 52 |
# File 'lib/oauth20/storages/strategy.rb', line 50 def client_find_by_secret(secret) raise NotImplementedError end |
#client_save(client) ⇒ Object
Save new client.
42 43 44 |
# File 'lib/oauth20/storages/strategy.rb', line 42 def client_save(client) raise NotImplementedError end |