Method: Authlete::Model::Client#standard_metadata

Defined in:
lib/authlete/model/client.rb

#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