Module: Fakturoid::Oauth::Flow::Base
- Included in:
- AuthorizationCode, ClientCredentials
- Defined in:
- lib/fakturoid/oauth/flow/base.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #authorization_uri(state: nil) ⇒ Object
- #authorize(code:) ⇒ Object
- #authorized? ⇒ Boolean
- #fetch_access_token ⇒ Object
- #initialize(client) ⇒ Object
- #revoke_access ⇒ Object
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
7 8 9 |
# File 'lib/fakturoid/oauth/flow/base.rb', line 7 def client @client end |
Instance Method Details
#authorization_uri(state: nil) ⇒ Object
13 14 15 |
# File 'lib/fakturoid/oauth/flow/base.rb', line 13 def (state: nil) raise NotImplementedError, "Authorization path is not supported" end |
#authorize(code:) ⇒ Object
17 18 19 |
# File 'lib/fakturoid/oauth/flow/base.rb', line 17 def (code:) raise NotImplementedError, "Authorize is not supported" end |
#authorized? ⇒ Boolean
29 30 31 |
# File 'lib/fakturoid/oauth/flow/base.rb', line 29 def raise NotImplementedError, "Authorized is not supported" end |
#fetch_access_token ⇒ Object
21 22 23 |
# File 'lib/fakturoid/oauth/flow/base.rb', line 21 def fetch_access_token raise NotImplementedError, "Fetch access token is not supported" end |
#initialize(client) ⇒ Object
9 10 11 |
# File 'lib/fakturoid/oauth/flow/base.rb', line 9 def initialize(client) @client = client end |
#revoke_access ⇒ Object
25 26 27 |
# File 'lib/fakturoid/oauth/flow/base.rb', line 25 def revoke_access raise NotImplementedError, "Revoke access is not supported" end |