Class: Authlete::Model::Client

Inherits:
Base
  • Object
show all
Includes:
Hashable, Utility
Defined in:
lib/authlete/model/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utility

#extract_access_token, #get_parsed_array, #to_rack_response_json, #to_rack_response_www_authenticate

Methods included from Hashable

#to_hash

Methods inherited from Base

parse

Instance Attribute Details

#applicationTypeObject Also known as: application_type

Returns the value of attribute applicationType.



67
68
69
# File 'lib/authlete/model/client.rb', line 67

def applicationType
  @applicationType
end

#attributesObject

Returns the value of attribute attributes.



293
294
295
# File 'lib/authlete/model/client.rb', line 293

def attributes
  @attributes
end

#authorizationDetailsTypesObject Also known as: authorization_details_types

Returns the value of attribute authorizationDetailsTypes.



281
282
283
# File 'lib/authlete/model/client.rb', line 281

def authorizationDetailsTypes
  @authorizationDetailsTypes
end

#authorizationEncryptionAlgObject Also known as: authorization_encryption_alg

Returns the value of attribute authorizationEncryptionAlg.



249
250
251
# File 'lib/authlete/model/client.rb', line 249

def authorizationEncryptionAlg
  @authorizationEncryptionAlg
end

#authorizationEncryptionEncObject Also known as: authorization_encryption_enc

Returns the value of attribute authorizationEncryptionEnc.



253
254
255
# File 'lib/authlete/model/client.rb', line 253

def authorizationEncryptionEnc
  @authorizationEncryptionEnc
end

#authorizationSignAlgObject Also known as: authorization_sign_alg

Returns the value of attribute authorizationSignAlg.



245
246
247
# File 'lib/authlete/model/client.rb', line 245

def authorizationSignAlg
  @authorizationSignAlg
end

#authTimeRequiredObject Also known as: auth_time_required

Returns the value of attribute authTimeRequired.



183
184
185
# File 'lib/authlete/model/client.rb', line 183

def authTimeRequired
  @authTimeRequired
end

#automaticallyRegisteredObject Also known as: automatically_registered

Returns the value of attribute automaticallyRegistered.



327
328
329
# File 'lib/authlete/model/client.rb', line 327

def automaticallyRegistered
  @automaticallyRegistered
end

#bcDeliveryModeObject Also known as: bc_delivery_mode

Returns the value of attribute bcDeliveryMode.



257
258
259
# File 'lib/authlete/model/client.rb', line 257

def bcDeliveryMode
  @bcDeliveryMode
end

#bcNotificationEndpointObject Also known as: bc_notification_endpoint

Returns the value of attribute bcNotificationEndpoint.



261
262
263
# File 'lib/authlete/model/client.rb', line 261

def bcNotificationEndpoint
  @bcNotificationEndpoint
end

#bcRequestSignAlgObject Also known as: bc_request_sign_alg

Returns the value of attribute bcRequestSignAlg.



265
266
267
# File 'lib/authlete/model/client.rb', line 265

def bcRequestSignAlg
  @bcRequestSignAlg
end

#bcUserCodeRequiredObject Also known as: bc_user_code_required

Returns the value of attribute bcUserCodeRequired.



269
270
271
# File 'lib/authlete/model/client.rb', line 269

def bcUserCodeRequired
  @bcUserCodeRequired
end

#clientIdObject Also known as: client_id

Returns the value of attribute clientId.



35
36
37
# File 'lib/authlete/model/client.rb', line 35

def clientId
  @clientId
end

#clientIdAliasObject Also known as: client_id_alias

Returns the value of attribute clientIdAlias.



39
40
41
# File 'lib/authlete/model/client.rb', line 39

def clientIdAlias
  @clientIdAlias
end

#clientIdAliasEnabledObject Also known as: client_id_alias_enabled

Returns the value of attribute clientIdAliasEnabled.



43
44
45
# File 'lib/authlete/model/client.rb', line 43

def clientIdAliasEnabled
  @clientIdAliasEnabled
end

#clientNameObject Also known as: client_name

Returns the value of attribute clientName.



73
74
75
# File 'lib/authlete/model/client.rb', line 73

def clientName
  @clientName
end

#clientNamesObject Also known as: client_names

Returns the value of attribute clientNames.



77
78
79
# File 'lib/authlete/model/client.rb', line 77

def clientNames
  @clientNames
end

#clientSecretObject Also known as: client_secret

Returns the value of attribute clientSecret.



47
48
49
# File 'lib/authlete/model/client.rb', line 47

def clientSecret
  @clientSecret
end

#clientTypeObject Also known as: client_type

Returns the value of attribute clientType.



51
52
53
# File 'lib/authlete/model/client.rb', line 51

def clientType
  @clientType
end

#clientUriObject Also known as: client_uri

Returns the value of attribute clientUri.



89
90
91
# File 'lib/authlete/model/client.rb', line 89

def clientUri
  @clientUri
end

#clientUrisObject Also known as: client_uris

Returns the value of attribute clientUris.



93
94
95
# File 'lib/authlete/model/client.rb', line 93

def clientUris
  @clientUris
end

#contactsObject

Returns the value of attribute contacts.



71
72
73
# File 'lib/authlete/model/client.rb', line 71

def contacts
  @contacts
end

#createdAtObject Also known as: created_at

Returns the value of attribute createdAt.



199
200
201
# File 'lib/authlete/model/client.rb', line 199

def createdAt
  @createdAt
end

#customMetadataObject Also known as: custom_metadata

Returns the value of attribute customMetadata.



295
296
297
# File 'lib/authlete/model/client.rb', line 295

def 
  @customMetadata
end

#defaultAcrsObject Also known as: default_acrs

Returns the value of attribute defaultAcrs.



179
180
181
# File 'lib/authlete/model/client.rb', line 179

def defaultAcrs
  @defaultAcrs
end

#defaultMaxAgeObject Also known as: default_max_age

Returns the value of attribute defaultMaxAge.



175
176
177
# File 'lib/authlete/model/client.rb', line 175

def defaultMaxAge
  @defaultMaxAge
end

#derivedSectorIdentifierObject Also known as: derived_sector_identifier

Returns the value of attribute derivedSectorIdentifier.



119
120
121
# File 'lib/authlete/model/client.rb', line 119

def derivedSectorIdentifier
  @derivedSectorIdentifier
end

#descriptionObject

Returns the value of attribute description.



195
196
197
# File 'lib/authlete/model/client.rb', line 195

def description
  @description
end

#descriptionsObject

Returns the value of attribute descriptions.



197
198
199
# File 'lib/authlete/model/client.rb', line 197

def descriptions
  @descriptions
end

#developerObject

Returns the value of attribute developer.



33
34
35
# File 'lib/authlete/model/client.rb', line 33

def developer
  @developer
end

#digestAlgorithmObject Also known as: digest_algorithm

Returns the value of attribute digestAlgorithm.



311
312
313
# File 'lib/authlete/model/client.rb', line 311

def digestAlgorithm
  @digestAlgorithm
end

#dpopRequiredObject Also known as: dpop_required

Returns the value of attribute dpopRequired.



335
336
337
# File 'lib/authlete/model/client.rb', line 335

def dpopRequired
  @dpopRequired
end

#dynamicallyRegisteredObject Also known as: dynamically_registered

Returns the value of attribute dynamicallyRegistered.



273
274
275
# File 'lib/authlete/model/client.rb', line 273

def dynamicallyRegistered
  @dynamicallyRegistered
end

#explicitlyRegisteredObject Also known as: explicitly_registered

Returns the value of attribute explicitlyRegistered.



331
332
333
# File 'lib/authlete/model/client.rb', line 331

def explicitlyRegistered
  @explicitlyRegistered
end

#extensionObject

Returns the value of attribute extension.



207
208
209
# File 'lib/authlete/model/client.rb', line 207

def extension
  @extension
end

#frontChannelRequestObjectEncryptionRequiredObject Also known as: front_channel_request_object_encryption_required

Returns the value of attribute frontChannelRequestObjectEncryptionRequired.



299
300
301
# File 'lib/authlete/model/client.rb', line 299

def frontChannelRequestObjectEncryptionRequired
  @frontChannelRequestObjectEncryptionRequired
end

#grantTypesObject Also known as: grant_types

Returns the value of attribute grantTypes.



63
64
65
# File 'lib/authlete/model/client.rb', line 63

def grantTypes
  @grantTypes
end

#idTokenEncryptionAlgObject Also known as: id_token_encryption_alg

Returns the value of attribute idTokenEncryptionAlg.



135
136
137
# File 'lib/authlete/model/client.rb', line 135

def idTokenEncryptionAlg
  @idTokenEncryptionAlg
end

#idTokenEncryptionEncObject Also known as: id_token_encryption_enc

Returns the value of attribute idTokenEncryptionEnc.



139
140
141
# File 'lib/authlete/model/client.rb', line 139

def idTokenEncryptionEnc
  @idTokenEncryptionEnc
end

#idTokenSignAlgObject Also known as: id_token_sign_alg

Returns the value of attribute idTokenSignAlg.



131
132
133
# File 'lib/authlete/model/client.rb', line 131

def idTokenSignAlg
  @idTokenSignAlg
end

#jwksObject

Returns the value of attribute jwks.



117
118
119
# File 'lib/authlete/model/client.rb', line 117

def jwks
  @jwks
end

#jwksUriObject Also known as: jwks_uri

Returns the value of attribute jwksUri.



113
114
115
# File 'lib/authlete/model/client.rb', line 113

def jwksUri
  @jwksUri
end

#lockedObject

Returns the value of attribute locked.



339
340
341
# File 'lib/authlete/model/client.rb', line 339

def locked
  @locked
end

#loginUriObject Also known as: login_uri

Returns the value of attribute loginUri.



187
188
189
# File 'lib/authlete/model/client.rb', line 187

def loginUri
  @loginUri
end

#logoUriObject Also known as: logo_uri

Returns the value of attribute logoUri.



81
82
83
# File 'lib/authlete/model/client.rb', line 81

def logoUri
  @logoUri
end

#logoUrisObject Also known as: logo_uris

Returns the value of attribute logoUris.



85
86
87
# File 'lib/authlete/model/client.rb', line 85

def logoUris
  @logoUris
end

#modifiedAtObject Also known as: modified_at

Returns the value of attribute modifiedAt.



203
204
205
# File 'lib/authlete/model/client.rb', line 203

def modifiedAt
  @modifiedAt
end

#numberObject

Returns the value of attribute number.



27
28
29
# File 'lib/authlete/model/client.rb', line 27

def number
  @number
end

#parRequiredObject Also known as: par_required

Returns the value of attribute parRequired.



285
286
287
# File 'lib/authlete/model/client.rb', line 285

def parRequired
  @parRequired
end

#pkceRequiredObject Also known as: pkce_required

Returns the value of attribute pkceRequired.



319
320
321
# File 'lib/authlete/model/client.rb', line 319

def pkceRequired
  @pkceRequired
end

#pkceS256RequiredObject Also known as: pkce_s256_required

Returns the value of attribute pkceS256Required.



323
324
325
# File 'lib/authlete/model/client.rb', line 323

def pkceS256Required
  @pkceS256Required
end

#policyUriObject Also known as: policy_uri

Returns the value of attribute policyUri.



97
98
99
# File 'lib/authlete/model/client.rb', line 97

def policyUri
  @policyUri
end

#policyUrisObject Also known as: policy_uris

Returns the value of attribute policyUris.



101
102
103
# File 'lib/authlete/model/client.rb', line 101

def policyUris
  @policyUris
end

#redirectUrisObject Also known as: redirect_uris

Returns the value of attribute redirectUris.



55
56
57
# File 'lib/authlete/model/client.rb', line 55

def redirectUris
  @redirectUris
end

#registrationAccessTokenHashObject Also known as: registration_access_token_hash

Returns the value of attribute registrationAccessTokenHash.



277
278
279
# File 'lib/authlete/model/client.rb', line 277

def registrationAccessTokenHash
  @registrationAccessTokenHash
end

#requestEncryptionAlgObject Also known as: request_encryption_alg

Returns the value of attribute requestEncryptionAlg.



159
160
161
# File 'lib/authlete/model/client.rb', line 159

def requestEncryptionAlg
  @requestEncryptionAlg
end

#requestEncryptionEncObject Also known as: request_encryption_enc

Returns the value of attribute requestEncryptionEnc.



163
164
165
# File 'lib/authlete/model/client.rb', line 163

def requestEncryptionEnc
  @requestEncryptionEnc
end

#requestObjectEncryptionAlgMatchRequiredObject Also known as: request_object_encryption_alg_match_required

Returns the value of attribute requestObjectEncryptionAlgMatchRequired.



303
304
305
# File 'lib/authlete/model/client.rb', line 303

def requestObjectEncryptionAlgMatchRequired
  @requestObjectEncryptionAlgMatchRequired
end

#requestObjectEncryptionEncMatchRequiredObject Also known as: request_object_encryption_enc_match_required

Returns the value of attribute requestObjectEncryptionEncMatchRequired.



307
308
309
# File 'lib/authlete/model/client.rb', line 307

def requestObjectEncryptionEncMatchRequired
  @requestObjectEncryptionEncMatchRequired
end

#requestObjectRequiredObject Also known as: request_object_required

Returns the value of attribute requestObjectRequired.



289
290
291
# File 'lib/authlete/model/client.rb', line 289

def requestObjectRequired
  @requestObjectRequired
end

#requestSignAlgObject Also known as: request_sign_alg

Returns the value of attribute requestSignAlg.



155
156
157
# File 'lib/authlete/model/client.rb', line 155

def requestSignAlg
  @requestSignAlg
end

#requestUrisObject Also known as: request_uris

Returns the value of attribute requestUris.



191
192
193
# File 'lib/authlete/model/client.rb', line 191

def requestUris
  @requestUris
end

#responseTypesObject Also known as: response_types

Returns the value of attribute responseTypes.



59
60
61
# File 'lib/authlete/model/client.rb', line 59

def responseTypes
  @responseTypes
end

#rsRequestSignedObject Also known as: rs_request_signed

Returns the value of attribute rsRequestSigned.



346
347
348
# File 'lib/authlete/model/client.rb', line 346

def rsRequestSigned
  @rsRequestSigned
end

#sectorIdentifierObject Also known as: sector_identifier

This is required for backward compatibility.



342
343
344
# File 'lib/authlete/model/client.rb', line 342

def sectorIdentifier
  @sectorIdentifier
end

#sectorIdentifierUriObject Also known as: sector_identifier_uri

Returns the value of attribute sectorIdentifierUri.



123
124
125
# File 'lib/authlete/model/client.rb', line 123

def sectorIdentifierUri
  @sectorIdentifierUri
end

#selfSignedCertificateKeyIdObject Also known as: self_signed_certificate_key_id

Returns the value of attribute selfSignedCertificateKeyId.



233
234
235
# File 'lib/authlete/model/client.rb', line 233

def selfSignedCertificateKeyId
  @selfSignedCertificateKeyId
end

#serviceNumberObject Also known as: service_number

Returns the value of attribute serviceNumber.



29
30
31
# File 'lib/authlete/model/client.rb', line 29

def serviceNumber
  @serviceNumber
end

#singleAccessTokenPerSubjectObject Also known as: single_access_token_per_subject

Returns the value of attribute singleAccessTokenPerSubject.



315
316
317
# File 'lib/authlete/model/client.rb', line 315

def singleAccessTokenPerSubject
  @singleAccessTokenPerSubject
end

#softwareIdObject Also known as: software_id

Returns the value of attribute softwareId.



237
238
239
# File 'lib/authlete/model/client.rb', line 237

def softwareId
  @softwareId
end

#softwareVersionObject Also known as: software_version

Returns the value of attribute softwareVersion.



241
242
243
# File 'lib/authlete/model/client.rb', line 241

def softwareVersion
  @softwareVersion
end

#subjectTypeObject Also known as: subject_type

Returns the value of attribute subjectType.



127
128
129
# File 'lib/authlete/model/client.rb', line 127

def subjectType
  @subjectType
end

#tlsClientAuthSanDnsObject Also known as: tls_client_auth_san_dns

Returns the value of attribute tlsClientAuthSanDns.



213
214
215
# File 'lib/authlete/model/client.rb', line 213

def tlsClientAuthSanDns
  @tlsClientAuthSanDns
end

#tlsClientAuthSanEmailObject Also known as: tls_client_auth_san_email

Returns the value of attribute tlsClientAuthSanEmail.



225
226
227
# File 'lib/authlete/model/client.rb', line 225

def tlsClientAuthSanEmail
  @tlsClientAuthSanEmail
end

#tlsClientAuthSanIpObject Also known as: tls_client_auth_san_ip

Returns the value of attribute tlsClientAuthSanIp.



221
222
223
# File 'lib/authlete/model/client.rb', line 221

def tlsClientAuthSanIp
  @tlsClientAuthSanIp
end

#tlsClientAuthSanUriObject Also known as: tls_client_auth_san_uri

Returns the value of attribute tlsClientAuthSanUri.



217
218
219
# File 'lib/authlete/model/client.rb', line 217

def tlsClientAuthSanUri
  @tlsClientAuthSanUri
end

#tlsClientAuthSubjectDnObject Also known as: tls_client_auth_subject_dn

Returns the value of attribute tlsClientAuthSubjectDn.



209
210
211
# File 'lib/authlete/model/client.rb', line 209

def tlsClientAuthSubjectDn
  @tlsClientAuthSubjectDn
end

#tlsClientCertificateBoundAccessTokensObject Also known as: tls_client_certificate_bound_access_tokens

Returns the value of attribute tlsClientCertificateBoundAccessTokens.



229
230
231
# File 'lib/authlete/model/client.rb', line 229

def tlsClientCertificateBoundAccessTokens
  @tlsClientCertificateBoundAccessTokens
end

#tokenAuthMethodObject Also known as: token_auth_method

Returns the value of attribute tokenAuthMethod.



167
168
169
# File 'lib/authlete/model/client.rb', line 167

def tokenAuthMethod
  @tokenAuthMethod
end

#tokenAuthSignAlgObject Also known as: token_auth_sign_alg

Returns the value of attribute tokenAuthSignAlg.



171
172
173
# File 'lib/authlete/model/client.rb', line 171

def tokenAuthSignAlg
  @tokenAuthSignAlg
end

#tosUriObject Also known as: tos_uri

Returns the value of attribute tosUri.



105
106
107
# File 'lib/authlete/model/client.rb', line 105

def tosUri
  @tosUri
end

#tosUrisObject Also known as: tos_uris

Returns the value of attribute tosUris.



109
110
111
# File 'lib/authlete/model/client.rb', line 109

def tosUris
  @tosUris
end

#trustChainExpiresAtObject Also known as: trust_chain_expires_at

Returns the value of attribute trustChainExpiresAt.



350
351
352
# File 'lib/authlete/model/client.rb', line 350

def trustChainExpiresAt
  @trustChainExpiresAt
end

#trustChainUpdatedAtObject Also known as: trust_chain_updated_at

Returns the value of attribute trustChainUpdatedAt.



354
355
356
# File 'lib/authlete/model/client.rb', line 354

def trustChainUpdatedAt
  @trustChainUpdatedAt
end

#userInfoEncryptionAlgObject Also known as: user_info_encryption_alg

Returns the value of attribute userInfoEncryptionAlg.



147
148
149
# File 'lib/authlete/model/client.rb', line 147

def userInfoEncryptionAlg
  @userInfoEncryptionAlg
end

#userInfoEncryptionEncObject Also known as: user_info_encryption_enc

Returns the value of attribute userInfoEncryptionEnc.



151
152
153
# File 'lib/authlete/model/client.rb', line 151

def userInfoEncryptionEnc
  @userInfoEncryptionEnc
end

#userInfoSignAlgObject Also known as: user_info_sign_alg

Returns the value of attribute userInfoSignAlg.



143
144
145
# File 'lib/authlete/model/client.rb', line 143

def userInfoSignAlg
  @userInfoSignAlg
end

Instance Method Details

#standard_metadata(delete_zero = true, delete_false = true, delete_nil = true) ⇒ Object



558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
# File 'lib/authlete/model/client.rb', line 558

def (delete_zero = true, delete_false = true, delete_nil = true)
   = {
    client_id:                                      "#{@clientId}",
    redirect_uris:                                  @redirectUris,
    response_types:                                 standard_response_types(@responseTypes),
    grant_types:                                    standard_grant_types(@grantTypes),
    application_type:                               from_application_type(@applicationType),
    contacts:                                       @contacts,
    client_name:                                    @clientName,
    logo_uri:                                       @logoUri,
    client_uri:                                     @clientUri,
    policy_uri:                                     @policyUri,
    tos_uri:                                        @tosUri,
    jwks_uri:                                       @jwksUri,
    jwks:                                           json_parse(@jwks),
    sector_identifier_uri:                          @sectorIdentifierUri,
    subject_type:                                   from_subject_type(@subjectType),
    id_token_signed_response_alg:                   from_jwsalg(@idTokenSignAlg),
    id_token_encrypted_response_alg:                from_jwealg(@idTokenEncryptionAlg),
    id_token_encrypted_response_enc:                from_jweenc(@idTokenEncryptionEnc),
    userinfo_signed_response_alg:                   from_jwsalg(@userInfoSignAlg),
    userinfo_encrypted_response_alg:                from_jwealg(@userInfoEncryptionAlg),
    userinfo_encrypted_response_enc:                from_jweenc(@userInfoEncryptionEnc),
    request_object_signing_alg:                     from_jwsalg(@requestSignAlg),
    request_object_encryption_alg:                  from_jwealg(@requestEncryptionAlg),
    request_object_encryption_enc:                  from_jweenc(@requestEncryptionEnc),
    token_endpoint_auth_method:                     from_client_auth_method(@tokenAuthMethod),
    token_endpoint_auth_signing_alg:                from_jwsalg(@tokenAuthSignAlg),
    default_max_age:                                @defaultMaxAge,
    default_acr_values:                             @defaultAcrs,
    require_auth_time:                              @authTimeRequired,
    initiate_login_uri:                             @loginUri,
    request_uris:                                   @requestUris,
    tls_client_auth_subject_dn:                     @tlsClientAuthSubjectDn,
    tls_client_auth_san_dns:                        @tlsClientAuthSanDns,
    tls_client_auth_san_uri:                        @tlsClientAuthSanUri,
    tls_client_auth_san_ip:                         @tlsClientAuthSanIp,
    tls_client_auth_san_email:                      @tlsClientAuthSanEmail,
    tls_client_certificate_bound_access_tokens:     @tlsClientCertificateBoundAccessTokens,
    software_id:                                    @softwareId,
    software_version:                               @softwareVersion,
    authorization_signed_response_alg:              from_jwsalg(@authorizationSignAlg),
    authorization_encrypted_response_alg:           from_jwealg(@authorizationEncryptionAlg),
    authorization_encrypted_response_enc:           from_jweenc(@authorizationEncryptionEnc),
    backchannel_token_delivery_mode:                from_delivery_mode(@bcDeliveryMode),
    backchannel_client_notification_endpoint:       @bcNotificationEndpoint,
    backchannel_authentication_request_signing_alg: from_jwsalg(@bcRequestSignAlg),
    backchannel_user_code_parameter:                @bcUserCodeRequired,
    authorization_details_types:                    @authorizationDetailsTypes,
    digest_algorithm:                               @digestAlgorithm
  }

  if delete_nil
    .compact!
  end

  if delete_false
     = .delete_if {|key, value| value == false}
  end

  if delete_zero
     = .delete_if {|key, value| value == 0}
  end

  
end