Class: HaveAPI::Authentication::OAuth2::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/haveapi/authentication/oauth2/provider.rb

Overview

Abstract class describing the client and what methods it must respond to

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#client_idString (readonly)

Returns:

  • (String)


9
10
11
# File 'lib/haveapi/authentication/oauth2/provider.rb', line 9

def client_id
  @client_id
end

#redirect_uriString (readonly)

Returns:

  • (String)


12
13
14
# File 'lib/haveapi/authentication/oauth2/provider.rb', line 12

def redirect_uri
  @redirect_uri
end

Instance Method Details

#check_secret(client_secret) ⇒ Boolean

Parameters:

  • client_secret (String)

Returns:

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/haveapi/authentication/oauth2/provider.rb', line 16

def check_secret(client_secret)
  raise NotImplementedError
end