Class: Hydra::Keycloak::CodeVerifier

Inherits:
Object
  • Object
show all
Defined in:
lib/hydra/keycloak/code_verifier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#code_challengeObject (readonly)

Returns the value of attribute code_challenge.



12
13
14
# File 'lib/hydra/keycloak/code_verifier.rb', line 12

def code_challenge
  @code_challenge
end

#valueObject (readonly)

Returns the value of attribute value.



12
13
14
# File 'lib/hydra/keycloak/code_verifier.rb', line 12

def value
  @value
end

Instance Method Details

#generateObject



14
15
16
17
# File 'lib/hydra/keycloak/code_verifier.rb', line 14

def generate
  @value = _generate
  @code_challenge = _generate_pkce(@value)
end