Class: HaveAPI::Authentication::OAuth2::Authorization

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

Overview

Abstract class describing ongoing authorization and what methods it must respond to

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#code_challengeString? (readonly)

Returns:

  • (String, nil)


39
40
41
# File 'lib/haveapi/authentication/oauth2/provider.rb', line 39

def code_challenge
  @code_challenge
end

#code_challenge_methodString? (readonly)

Returns:

  • (String, nil)


42
43
44
# File 'lib/haveapi/authentication/oauth2/provider.rb', line 42

def code_challenge_method
  @code_challenge_method
end

#redirect_uriString (readonly)

Returns:

  • (String)


45
46
47
# File 'lib/haveapi/authentication/oauth2/provider.rb', line 45

def redirect_uri
  @redirect_uri
end

Instance Method Details

#check_code_validity(redirect_uri) ⇒ Boolean

Parameters:

  • redirect_uri (String)

Returns:

Raises:

  • (NotImplementedError)


49
50
51
# File 'lib/haveapi/authentication/oauth2/provider.rb', line 49

def check_code_validity(redirect_uri)
  raise NotImplementedError
end