Class: Supabase::Auth::Types::OAuthClient
- Inherits:
-
Struct
- Object
- Struct
- Supabase::Auth::Types::OAuthClient
- Defined in:
- lib/supabase/auth/types.rb
Overview
OAuth 2.1 server: client object returned by admin OAuth endpoints.
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_name ⇒ Object
Returns the value of attribute client_name.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#client_type ⇒ Object
Returns the value of attribute client_type.
-
#client_uri ⇒ Object
Returns the value of attribute client_uri.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#grant_types ⇒ Object
Returns the value of attribute grant_types.
-
#logo_uri ⇒ Object
Returns the value of attribute logo_uri.
-
#redirect_uris ⇒ Object
Returns the value of attribute redirect_uris.
-
#registration_type ⇒ Object
Returns the value of attribute registration_type.
-
#response_types ⇒ Object
Returns the value of attribute response_types.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#token_endpoint_auth_method ⇒ Object
Returns the value of attribute token_endpoint_auth_method.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def client_id @client_id end |
#client_name ⇒ Object
Returns the value of attribute client_name
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def client_name @client_name end |
#client_secret ⇒ Object
Returns the value of attribute client_secret
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def client_secret @client_secret end |
#client_type ⇒ Object
Returns the value of attribute client_type
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def client_type @client_type end |
#client_uri ⇒ Object
Returns the value of attribute client_uri
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def client_uri @client_uri end |
#created_at ⇒ Object
Returns the value of attribute created_at
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def created_at @created_at end |
#grant_types ⇒ Object
Returns the value of attribute grant_types
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def grant_types @grant_types end |
#logo_uri ⇒ Object
Returns the value of attribute logo_uri
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def logo_uri @logo_uri end |
#redirect_uris ⇒ Object
Returns the value of attribute redirect_uris
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def redirect_uris @redirect_uris end |
#registration_type ⇒ Object
Returns the value of attribute registration_type
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def registration_type @registration_type end |
#response_types ⇒ Object
Returns the value of attribute response_types
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def response_types @response_types end |
#scope ⇒ Object
Returns the value of attribute scope
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def scope @scope end |
#token_endpoint_auth_method ⇒ Object
Returns the value of attribute token_endpoint_auth_method
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def token_endpoint_auth_method @token_endpoint_auth_method end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
441 442 443 |
# File 'lib/supabase/auth/types.rb', line 441 def updated_at @updated_at end |
Class Method Details
.from_hash(hash) ⇒ Object
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 |
# File 'lib/supabase/auth/types.rb', line 458 def self.from_hash(hash) return nil if hash.nil? new( client_id: hash["client_id"] || hash[:client_id], client_name: hash["client_name"] || hash[:client_name], client_secret: hash["client_secret"] || hash[:client_secret], client_type: hash["client_type"] || hash[:client_type], token_endpoint_auth_method: hash["token_endpoint_auth_method"] || hash[:token_endpoint_auth_method], registration_type: hash["registration_type"] || hash[:registration_type], client_uri: hash["client_uri"] || hash[:client_uri], logo_uri: hash["logo_uri"] || hash[:logo_uri], redirect_uris: hash["redirect_uris"] || hash[:redirect_uris] || [], grant_types: hash["grant_types"] || hash[:grant_types] || [], response_types: hash["response_types"] || hash[:response_types] || [], scope: hash["scope"] || hash[:scope], created_at: hash["created_at"] || hash[:created_at], updated_at: hash["updated_at"] || hash[:updated_at] ) end |