Class: MCPClient::Auth::PKCE

Inherits:
Object
  • Object
show all
Defined in:
lib/mcp_client/auth.rb

Overview

PKCE (Proof Key for Code Exchange) helper

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePKCE

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_challengeObject (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_methodObject (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_verifierObject (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