Class: RubyLLM::MCP::Auth::GrantStrategies::ClientCredentials

Inherits:
Base
  • Object
show all
Defined in:
lib/ruby_llm/mcp/auth/grant_strategies/client_credentials.rb

Overview

Client Credentials grant strategy Used for application authentication without user interaction

Instance Method Summary collapse

Instance Method Details

#auth_methodString

Client credentials require client_secret

Returns:

  • (String)

    "client_secret_post"



12
13
14
# File 'lib/ruby_llm/mcp/auth/grant_strategies/client_credentials.rb', line 12

def auth_method
  "client_secret_post"
end

#grant_types_listArray<String>

Client credentials and refresh token grants

Returns:

  • (Array<String>)

    grant types



18
19
20
# File 'lib/ruby_llm/mcp/auth/grant_strategies/client_credentials.rb', line 18

def grant_types_list
  %w[client_credentials refresh_token]
end

#response_types_listArray<String>

No response types for client credentials flow (no redirect)

Returns:

  • (Array<String>)

    response types (empty)



24
25
26
# File 'lib/ruby_llm/mcp/auth/grant_strategies/client_credentials.rb', line 24

def response_types_list
  []
end