Class: Keycardai::OAuth::ClientRegistrationResponse

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

Overview

The result of registering a client (RFC 7591 ยง3.2.1). The server's full response, including echoed metadata and AS-specific fields, is preserved in raw.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#client_idObject (readonly)

Returns the value of attribute client_id

Returns:

  • (Object)

    the current value of client_id



11
12
13
# File 'lib/keycardai/oauth/registration.rb', line 11

def client_id
  @client_id
end

#client_id_issued_atObject (readonly)

Returns the value of attribute client_id_issued_at

Returns:

  • (Object)

    the current value of client_id_issued_at



11
12
13
# File 'lib/keycardai/oauth/registration.rb', line 11

def client_id_issued_at
  @client_id_issued_at
end

#client_secretObject (readonly)

Returns the value of attribute client_secret

Returns:

  • (Object)

    the current value of client_secret



11
12
13
# File 'lib/keycardai/oauth/registration.rb', line 11

def client_secret
  @client_secret
end

#client_secret_expires_atObject (readonly)

Returns the value of attribute client_secret_expires_at

Returns:

  • (Object)

    the current value of client_secret_expires_at



11
12
13
# File 'lib/keycardai/oauth/registration.rb', line 11

def client_secret_expires_at
  @client_secret_expires_at
end

#rawObject (readonly)

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



11
12
13
# File 'lib/keycardai/oauth/registration.rb', line 11

def raw
  @raw
end

#registration_access_tokenObject (readonly)

Returns the value of attribute registration_access_token

Returns:

  • (Object)

    the current value of registration_access_token



11
12
13
# File 'lib/keycardai/oauth/registration.rb', line 11

def registration_access_token
  @registration_access_token
end

#registration_client_uriObject (readonly)

Returns the value of attribute registration_client_uri

Returns:

  • (Object)

    the current value of registration_client_uri



11
12
13
# File 'lib/keycardai/oauth/registration.rb', line 11

def registration_client_uri
  @registration_client_uri
end

Instance Method Details

#[](field) ⇒ Object?

Returns the field's value from the full response body.

Parameters:

  • field (String)

    a response field name

Returns:

  • (Object, nil)

    the field's value from the full response body



17
18
19
# File 'lib/keycardai/oauth/registration.rb', line 17

def [](field)
  raw[field]
end