Class: PkceChallenge::Challenge
- Inherits:
-
Object
- Object
- PkceChallenge::Challenge
- Defined in:
- lib/pkce_challenge/challenge.rb
Constant Summary collapse
- CHAR_LENGTH =
constants definition
{ default: 48, max: 128, min: 43, }.freeze
Instance Attribute Summary collapse
-
#code_challenge ⇒ Object
Returns the value of attribute code_challenge.
-
#code_verifier ⇒ Object
Returns the value of attribute code_verifier.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Challenge
constructor
A new instance of Challenge.
Constructor Details
#initialize(options = {}) ⇒ Challenge
Returns a new instance of Challenge.
10 11 12 13 14 |
# File 'lib/pkce_challenge/challenge.rb', line 10 def initialize( = {}) @options = @code_verifier = generate_code_verifier @code_challenge = generate_pkce_challenge end |
Instance Attribute Details
#code_challenge ⇒ Object
Returns the value of attribute code_challenge.
8 9 10 |
# File 'lib/pkce_challenge/challenge.rb', line 8 def code_challenge @code_challenge end |
#code_verifier ⇒ Object
Returns the value of attribute code_verifier.
8 9 10 |
# File 'lib/pkce_challenge/challenge.rb', line 8 def code_verifier @code_verifier end |