Class: MCPClient::Auth::PKCE
- Inherits:
-
Object
- Object
- MCPClient::Auth::PKCE
- Defined in:
- lib/mcp_client/auth.rb
Overview
PKCE (Proof Key for Code Exchange) helper
Instance Attribute Summary collapse
-
#code_challenge ⇒ Object
readonly
Returns the value of attribute code_challenge.
-
#code_challenge_method ⇒ Object
readonly
Returns the value of attribute code_challenge_method.
-
#code_verifier ⇒ Object
readonly
Returns the value of attribute code_verifier.
Instance Method Summary collapse
-
#initialize ⇒ PKCE
constructor
Generate PKCE parameters.
Constructor Details
#initialize ⇒ PKCE
Generate PKCE parameters
291 292 293 294 295 |
# File 'lib/mcp_client/auth.rb', line 291 def initialize @code_verifier = generate_code_verifier @code_challenge = generate_code_challenge(@code_verifier) @code_challenge_method = 'S256' end |
Instance Attribute Details
#code_challenge ⇒ Object (readonly)
Returns the value of attribute code_challenge.
288 289 290 |
# File 'lib/mcp_client/auth.rb', line 288 def code_challenge @code_challenge end |
#code_challenge_method ⇒ Object (readonly)
Returns the value of attribute code_challenge_method.
288 289 290 |
# File 'lib/mcp_client/auth.rb', line 288 def code_challenge_method @code_challenge_method end |
#code_verifier ⇒ Object (readonly)
Returns the value of attribute code_verifier.
288 289 290 |
# File 'lib/mcp_client/auth.rb', line 288 def code_verifier @code_verifier end |