Module: Fakturoid::Oauth::Flow::Base

Included in:
AuthorizationCode, ClientCredentials
Defined in:
lib/fakturoid/oauth/flow/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject (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

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/fakturoid/oauth/flow/base.rb', line 13

def authorization_uri(state: nil)
  raise NotImplementedError, "Authorization path is not supported"
end

#authorize(code:) ⇒ Object

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/fakturoid/oauth/flow/base.rb', line 17

def authorize(code:)
  raise NotImplementedError, "Authorize is not supported"
end

#authorized?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


29
30
31
# File 'lib/fakturoid/oauth/flow/base.rb', line 29

def authorized?
  raise NotImplementedError, "Authorized is not supported"
end

#fetch_access_tokenObject

Raises:

  • (NotImplementedError)


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_accessObject

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/fakturoid/oauth/flow/base.rb', line 25

def revoke_access
  raise NotImplementedError, "Revoke access is not supported"
end