Exception: MCP::Server::OAuth::MissingTokenError

Inherits:
InvalidTokenError show all
Defined in:
lib/mcp/server/oauth/errors.rb

Overview

The request carried no credentials at all. A subclass of InvalidTokenError so existing rescue clauses keep working, but distinguished because RFC 6750 Section 3.1 says the challenge answering a credential-less request should not include an error code.

Instance Attribute Summary

Attributes inherited from Error

#error_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Missing Authorization header") ⇒ MissingTokenError

Returns a new instance of MissingTokenError.



41
42
43
# File 'lib/mcp/server/oauth/errors.rb', line 41

def initialize(message = "Missing Authorization header")
  super
end