Class: StandardId::Oauth::ClientRegistration::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/standard_id/oauth/client_registration.rb

Overview

Minimal result object mirroring the gem’s ‘result.success?` / `result.value` convention. `client_secret` is the one-time plaintext for confidential clients (nil for public clients).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client

Returns:

  • (Object)

    the current value of client



34
35
36
# File 'lib/standard_id/oauth/client_registration.rb', line 34

def client
  @client
end

#client_secretObject

Returns the value of attribute client_secret

Returns:

  • (Object)

    the current value of client_secret



34
35
36
# File 'lib/standard_id/oauth/client_registration.rb', line 34

def client_secret
  @client_secret
end

#token_endpoint_auth_methodObject

Returns the value of attribute token_endpoint_auth_method

Returns:

  • (Object)

    the current value of token_endpoint_auth_method



34
35
36
# File 'lib/standard_id/oauth/client_registration.rb', line 34

def token_endpoint_auth_method
  @token_endpoint_auth_method
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


35
# File 'lib/standard_id/oauth/client_registration.rb', line 35

def success? = true

#valueObject



36
# File 'lib/standard_id/oauth/client_registration.rb', line 36

def value = client