Class: A2A::HTTPAuthSecurityScheme

Inherits:
SecuritySchemeBase show all
Defined in:
lib/a2a/types/http_auth_security_scheme.rb

Overview

Defines a security scheme using HTTP authentication.

Instance Method Summary collapse

Methods inherited from SecuritySchemeBase

#description

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#bearer_formatString?

Returns A hint to the client to identify how the bearer token is formatted (e.g., “JWT”). This is primarily for documentation purposes.

Returns:

  • (String, nil)

    A hint to the client to identify how the bearer token is formatted (e.g., “JWT”). This is primarily for documentation purposes.



16
# File 'lib/a2a/types/http_auth_security_scheme.rb', line 16

attribute? :bearer_format, Types::String.optional

#schemeString

Returns The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., “Bearer”). This value should be registered in the IANA Authentication Scheme registry.

Returns:

  • (String)

    The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., “Bearer”). This value should be registered in the IANA Authentication Scheme registry.



12
# File 'lib/a2a/types/http_auth_security_scheme.rb', line 12

attribute :scheme, Types::String

#typeString

Returns The type of the security scheme. Must be ‘http’.

Returns:

  • (String)

    The type of the security scheme. Must be ‘http’.



7
# File 'lib/a2a/types/http_auth_security_scheme.rb', line 7

attribute :type, Types::String.constant('http')