Class: A2A::OAuth2SecurityScheme

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

Overview

Defines a security scheme using OAuth 2.0.

Instance Method Summary collapse

Methods inherited from SecuritySchemeBase

#description

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#flowsOAuthFlows

Returns An object containing configuration information for the supported OAuth 2.0 flows.

Returns:

  • (OAuthFlows)

    An object containing configuration information for the supported OAuth 2.0 flows.



10
# File 'lib/a2a/types/oauth2_security_scheme.rb', line 10

attribute :flows, Types::Constructor(OAuthFlows)

#oauth2_metadata_urlURI?

Returns URL to the oauth2 authorization server metadata RFC8414. TLS is required.

Returns:

  • (URI, nil)

    URL to the oauth2 authorization server metadata RFC8414. TLS is required.



14
# File 'lib/a2a/types/oauth2_security_scheme.rb', line 14

attribute? :oauth2_metadata_url, Types::URI.optional

#typeString

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

Returns:

  • (String)

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



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

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