Class: Keycardai::OAuth::AuthorizationServerMetadata

Inherits:
Data
  • Object
show all
Defined in:
lib/keycardai/oauth/discovery.rb

Overview

OAuth 2.0 authorization-server metadata (RFC 8414). Standard fields are first-class members; the complete document, including unknown fields, is preserved in raw and reachable through [].

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authorization_endpointObject (readonly)

Returns the value of attribute authorization_endpoint

Returns:

  • (Object)

    the current value of authorization_endpoint



13
14
15
# File 'lib/keycardai/oauth/discovery.rb', line 13

def authorization_endpoint
  @authorization_endpoint
end

#grant_types_supportedObject (readonly)

Returns the value of attribute grant_types_supported

Returns:

  • (Object)

    the current value of grant_types_supported



13
14
15
# File 'lib/keycardai/oauth/discovery.rb', line 13

def grant_types_supported
  @grant_types_supported
end

#issuerObject (readonly)

Returns the value of attribute issuer

Returns:

  • (Object)

    the current value of issuer



13
14
15
# File 'lib/keycardai/oauth/discovery.rb', line 13

def issuer
  @issuer
end

#jwks_uriObject (readonly)

Returns the value of attribute jwks_uri

Returns:

  • (Object)

    the current value of jwks_uri



13
14
15
# File 'lib/keycardai/oauth/discovery.rb', line 13

def jwks_uri
  @jwks_uri
end

#rawObject (readonly)

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



13
14
15
# File 'lib/keycardai/oauth/discovery.rb', line 13

def raw
  @raw
end

#registration_endpointObject (readonly)

Returns the value of attribute registration_endpoint

Returns:

  • (Object)

    the current value of registration_endpoint



13
14
15
# File 'lib/keycardai/oauth/discovery.rb', line 13

def registration_endpoint
  @registration_endpoint
end

#response_types_supportedObject (readonly)

Returns the value of attribute response_types_supported

Returns:

  • (Object)

    the current value of response_types_supported



13
14
15
# File 'lib/keycardai/oauth/discovery.rb', line 13

def response_types_supported
  @response_types_supported
end

#token_endpointObject (readonly)

Returns the value of attribute token_endpoint

Returns:

  • (Object)

    the current value of token_endpoint



13
14
15
# File 'lib/keycardai/oauth/discovery.rb', line 13

def token_endpoint
  @token_endpoint
end

#token_endpoint_auth_methods_supportedObject (readonly)

Returns the value of attribute token_endpoint_auth_methods_supported

Returns:

  • (Object)

    the current value of token_endpoint_auth_methods_supported



13
14
15
# File 'lib/keycardai/oauth/discovery.rb', line 13

def token_endpoint_auth_methods_supported
  @token_endpoint_auth_methods_supported
end

Instance Method Details

#[](field) ⇒ Object?

Returns the field's value from the full document.

Parameters:

  • field (String)

    a metadata field name

Returns:

  • (Object, nil)

    the field's value from the full document



19
20
21
# File 'lib/keycardai/oauth/discovery.rb', line 19

def [](field)
  raw[field]
end