Class: Clerk::Models::Operations::CreateOAuthApplicationRequest

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/operations/createoauthapplication_request.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(name:, token_exchange_enabled: nil, adopt_audience_resource: nil, redirect_uris: nil, callback_url: nil, audience_uri: nil, public: nil, scopes: 'profile email', consent_screen_enabled: true, pkce_required: false, device_authorization_grant_enabled: false) ⇒ CreateOAuthApplicationRequest

Returns a new instance of CreateOAuthApplicationRequest.



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/clerk/models/operations/createoauthapplication_request.rb', line 42

def initialize(name:, token_exchange_enabled: nil, adopt_audience_resource: nil, redirect_uris: nil, callback_url: nil, audience_uri: nil, public: nil, scopes: 'profile email', consent_screen_enabled: true, pkce_required: false, device_authorization_grant_enabled: false)
  @name = name
  @token_exchange_enabled = token_exchange_enabled
  @adopt_audience_resource = adopt_audience_resource
  @redirect_uris = redirect_uris
  @callback_url = callback_url
  @audience_uri = audience_uri
  @public = public
  @scopes = scopes
  @consent_screen_enabled = consent_screen_enabled
  @pkce_required = pkce_required
  @device_authorization_grant_enabled = device_authorization_grant_enabled
end

Instance Method Details

#==(other) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/clerk/models/operations/createoauthapplication_request.rb', line 57

def ==(other)
  return false unless other.is_a? self.class
  return false unless @name == other.name
  return false unless @token_exchange_enabled == other.token_exchange_enabled
  return false unless @adopt_audience_resource == other.adopt_audience_resource
  return false unless @redirect_uris == other.redirect_uris
  return false unless @callback_url == other.callback_url
  return false unless @audience_uri == other.audience_uri
  return false unless @public == other.public
  return false unless @scopes == other.scopes
  return false unless @consent_screen_enabled == other.consent_screen_enabled
  return false unless @pkce_required == other.pkce_required
  return false unless @device_authorization_grant_enabled == other.device_authorization_grant_enabled
  true
end