authlete_ruby_sdk 0.0.2.beta → 0.0.5.pre.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/authlete/authorization.rb +24 -563
- data/lib/authlete/authorization_management.rb +15 -7
- data/lib/authlete/ciba.rb +35 -414
- data/lib/authlete/client.rb +4 -2
- data/lib/authlete/client_management.rb +1292 -95
- data/lib/authlete/clients.rb +47 -27
- data/lib/authlete/device_flow.rb +24 -147
- data/lib/authlete/dynamic_client_registration.rb +31 -283
- data/lib/authlete/federation.rb +17 -66
- data/lib/authlete/grant_management.rb +10 -5
- data/lib/authlete/hardware_security_keys.rb +24 -10
- data/lib/authlete/introspection.rb +17 -195
- data/lib/authlete/jose_object.rb +10 -5
- data/lib/authlete/jwk_set_endpoint.rb +24 -7
- data/lib/authlete/lifecycle.rb +151 -0
- data/lib/authlete/models/components/access_token.rb +9 -10
- data/lib/authlete/models/components/access_token.rbi +1 -1
- data/lib/authlete/models/components/application_type.rb +1 -4
- data/lib/authlete/models/components/application_type.rbi +1 -1
- data/lib/authlete/models/components/attachment_type.rb +1 -4
- data/lib/authlete/models/components/attachment_type.rbi +1 -1
- data/lib/authlete/models/components/authorization_details_element.rb +16 -17
- data/lib/authlete/models/components/authorization_details_element.rbi +1 -1
- data/lib/authlete/models/components/authorization_fail_request.rb +4 -5
- data/lib/authlete/models/components/authorization_fail_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_fail_request_reason.rb +1 -4
- data/lib/authlete/models/components/authorization_fail_request_reason.rbi +1 -1
- data/lib/authlete/models/components/authorization_fail_response.rb +2 -3
- data/lib/authlete/models/components/authorization_fail_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_fail_response_action.rb +0 -3
- data/lib/authlete/models/components/authorization_fail_response_action.rbi +1 -1
- data/lib/authlete/models/components/authorization_issue_request.rb +19 -84
- data/lib/authlete/models/components/authorization_issue_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_issue_response.rb +8 -9
- data/lib/authlete/models/components/authorization_issue_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_issue_response_action.rb +0 -3
- data/lib/authlete/models/components/authorization_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/authorization_request.rb +7 -8
- data/lib/authlete/models/components/authorization_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_response.rb +86 -186
- data/lib/authlete/models/components/authorization_response.rbi +1 -3
- data/lib/authlete/models/components/authorization_response_action.rb +0 -3
- data/lib/authlete/models/components/authorization_response_action.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_info.rb +1 -2
- data/lib/authlete/models/components/authorization_ticket_info.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_info_request.rb +0 -1
- data/lib/authlete/models/components/authorization_ticket_info_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_info_response.rb +1 -2
- data/lib/authlete/models/components/authorization_ticket_info_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_info_response_action.rb +0 -3
- data/lib/authlete/models/components/authorization_ticket_info_response_action.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_update_request.rb +0 -1
- data/lib/authlete/models/components/authorization_ticket_update_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_update_response.rb +4 -5
- data/lib/authlete/models/components/authorization_ticket_update_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_update_response_action.rb +0 -3
- data/lib/authlete/models/components/authorization_ticket_update_response_action.rbi +1 -1
- data/lib/authlete/models/components/authz_details.rb +2 -3
- data/lib/authlete/models/components/authz_details.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_request.rb +23 -24
- data/lib/authlete/models/components/backchannel_authentication_complete_request.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_request_result.rb +1 -4
- data/lib/authlete/models/components/backchannel_authentication_complete_request_result.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_response.rb +30 -31
- data/lib/authlete/models/components/backchannel_authentication_complete_response.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_response_action.rb +1 -4
- data/lib/authlete/models/components/backchannel_authentication_complete_response_action.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_request.rb +5 -6
- data/lib/authlete/models/components/backchannel_authentication_fail_request.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_request_reason.rb +1 -4
- data/lib/authlete/models/components/backchannel_authentication_fail_request_reason.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_response.rb +2 -3
- data/lib/authlete/models/components/backchannel_authentication_fail_response.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_response_action.rb +0 -3
- data/lib/authlete/models/components/backchannel_authentication_fail_response_action.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_issue_request.rb +1 -2
- data/lib/authlete/models/components/backchannel_authentication_issue_request.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_issue_response.rb +5 -6
- data/lib/authlete/models/components/backchannel_authentication_issue_response.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_issue_response_action.rb +0 -3
- data/lib/authlete/models/components/backchannel_authentication_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_request.rb +12 -13
- data/lib/authlete/models/components/backchannel_authentication_request.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_response.rb +47 -57
- data/lib/authlete/models/components/backchannel_authentication_response.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_response_action.rb +0 -3
- data/lib/authlete/models/components/backchannel_authentication_response_action.rbi +1 -1
- data/lib/authlete/models/components/cimd_options.rb +15 -16
- data/lib/authlete/models/components/cimd_options.rbi +1 -1
- data/lib/authlete/models/components/claim_type.rb +0 -3
- data/lib/authlete/models/components/claim_type.rbi +1 -1
- data/lib/authlete/models/components/client.rb +160 -310
- data/lib/authlete/models/components/client.rbi +1 -1
- data/lib/authlete/models/components/client_auth_method.rb +1 -4
- data/lib/authlete/models/components/client_auth_method.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_delete_response.rb +4 -5
- data/lib/authlete/models/components/client_authorization_delete_response.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_get_list_request.rb +44 -0
- data/lib/authlete/models/components/client_authorization_get_list_request.rbi +19 -0
- data/lib/authlete/models/components/client_authorization_get_list_response.rb +6 -7
- data/lib/authlete/models/components/client_authorization_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_update_request.rb +2 -3
- data/lib/authlete/models/components/client_authorization_update_request.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_update_response.rb +0 -1
- data/lib/authlete/models/components/client_authorization_update_response.rbi +1 -1
- data/lib/authlete/models/components/{clientsource.rb → client_clientsource.rb} +3 -6
- data/lib/authlete/models/components/client_clientsource.rbi +11 -0
- data/lib/authlete/models/components/client_extension.rb +9 -20
- data/lib/authlete/models/components/client_extension.rbi +1 -1
- data/lib/authlete/models/components/client_extension_requestable_scopes_get_response.rb +2 -2
- data/lib/authlete/models/components/client_extension_requestable_scopes_get_response.rbi +1 -1
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_request.rb +4 -5
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_request.rbi +1 -1
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_response.rb +0 -1
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_response.rbi +1 -1
- data/lib/authlete/models/components/client_flag_update_request.rb +1 -2
- data/lib/authlete/models/components/client_flag_update_request.rbi +1 -1
- data/lib/authlete/models/components/client_flag_update_response.rb +0 -1
- data/lib/authlete/models/components/client_flag_update_response.rbi +1 -1
- data/lib/authlete/models/components/client_get_list_response.rb +4 -5
- data/lib/authlete/models/components/client_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/client_granted_scopes_delete_response.rb +0 -1
- data/lib/authlete/models/components/client_granted_scopes_delete_response.rbi +1 -1
- data/lib/authlete/models/components/client_input.rb +155 -295
- data/lib/authlete/models/components/client_input.rbi +1 -1
- data/lib/authlete/models/components/client_limited.rb +7 -8
- data/lib/authlete/models/components/client_limited.rbi +1 -1
- data/lib/authlete/models/components/client_limited_authorization.rb +217 -20
- data/lib/authlete/models/components/client_limited_authorization.rbi +65 -1
- data/lib/authlete/models/components/client_limited_authorization_clientsource.rb +23 -0
- data/lib/authlete/models/components/client_limited_authorization_clientsource.rbi +11 -0
- data/lib/authlete/models/components/client_registration_response.rb +3 -4
- data/lib/authlete/models/components/client_registration_response.rbi +1 -1
- data/lib/authlete/models/components/client_registration_response_action.rb +1 -4
- data/lib/authlete/models/components/client_registration_response_action.rbi +1 -1
- data/lib/authlete/models/components/client_registration_type.rb +1 -4
- data/lib/authlete/models/components/client_registration_type.rbi +1 -1
- data/lib/authlete/models/components/client_secret_refresh_response.rb +2 -3
- data/lib/authlete/models/components/client_secret_refresh_response.rbi +1 -1
- data/lib/authlete/models/components/client_secret_update_request.rb +1 -2
- data/lib/authlete/models/components/client_secret_update_request.rbi +1 -1
- data/lib/authlete/models/components/client_secret_update_response.rb +2 -3
- data/lib/authlete/models/components/client_secret_update_response.rbi +1 -1
- data/lib/authlete/models/components/client_type.rb +1 -4
- data/lib/authlete/models/components/client_type.rbi +1 -1
- data/lib/authlete/models/components/credential_issuance_order.rb +1 -2
- data/lib/authlete/models/components/credential_issuance_order.rbi +1 -1
- data/lib/authlete/models/components/credential_issuer_metadata.rb +5 -6
- data/lib/authlete/models/components/credential_issuer_metadata.rbi +1 -1
- data/lib/authlete/models/components/credential_offer_info.rb +12 -21
- data/lib/authlete/models/components/credential_offer_info.rbi +1 -1
- data/lib/authlete/models/components/credential_request_info.rb +0 -1
- data/lib/authlete/models/components/credential_request_info.rbi +1 -1
- data/lib/authlete/models/components/delivery_mode.rb +0 -3
- data/lib/authlete/models/components/delivery_mode.rbi +1 -1
- data/lib/authlete/models/components/device_authorization_request.rb +12 -13
- data/lib/authlete/models/components/device_authorization_request.rbi +1 -1
- data/lib/authlete/models/components/device_authorization_response.rb +39 -49
- data/lib/authlete/models/components/device_authorization_response.rbi +1 -1
- data/lib/authlete/models/components/device_authorization_response_action.rb +0 -3
- data/lib/authlete/models/components/device_authorization_response_action.rbi +1 -1
- data/lib/authlete/models/components/device_complete_request.rb +22 -23
- data/lib/authlete/models/components/device_complete_request.rbi +1 -1
- data/lib/authlete/models/components/device_complete_request_result.rb +1 -4
- data/lib/authlete/models/components/device_complete_request_result.rbi +1 -1
- data/lib/authlete/models/components/device_complete_response.rb +2 -3
- data/lib/authlete/models/components/device_complete_response.rbi +1 -1
- data/lib/authlete/models/components/device_complete_response_action.rb +1 -4
- data/lib/authlete/models/components/device_complete_response_action.rbi +1 -1
- data/lib/authlete/models/components/device_verification_request.rb +1 -2
- data/lib/authlete/models/components/device_verification_request.rbi +1 -1
- data/lib/authlete/models/components/device_verification_response.rb +32 -33
- data/lib/authlete/models/components/device_verification_response.rbi +1 -1
- data/lib/authlete/models/components/device_verification_response_action.rb +0 -3
- data/lib/authlete/models/components/device_verification_response_action.rbi +1 -1
- data/lib/authlete/models/components/display.rb +3 -6
- data/lib/authlete/models/components/display.rbi +1 -1
- data/lib/authlete/models/components/dynamic_scope.rb +0 -1
- data/lib/authlete/models/components/dynamic_scope.rbi +1 -1
- data/lib/authlete/models/components/fapi_mode.rb +0 -3
- data/lib/authlete/models/components/fapi_mode.rbi +1 -1
- data/lib/authlete/models/components/federation_configuration_response.rb +2 -3
- data/lib/authlete/models/components/federation_configuration_response.rbi +1 -1
- data/lib/authlete/models/components/federation_configuration_response_action.rb +0 -3
- data/lib/authlete/models/components/federation_configuration_response_action.rbi +1 -1
- data/lib/authlete/models/components/federation_registration_request.rb +2 -3
- data/lib/authlete/models/components/federation_registration_request.rbi +1 -1
- data/lib/authlete/models/components/federation_registration_response.rb +2 -3
- data/lib/authlete/models/components/federation_registration_response.rbi +1 -1
- data/lib/authlete/models/components/federation_registration_response_action.rb +0 -3
- data/lib/authlete/models/components/federation_registration_response_action.rbi +1 -1
- data/lib/authlete/models/components/g_m_request.rb +13 -14
- data/lib/authlete/models/components/g_m_request.rbi +1 -1
- data/lib/authlete/models/components/g_m_response.rb +3 -4
- data/lib/authlete/models/components/g_m_response.rbi +1 -1
- data/lib/authlete/models/components/g_m_response_action.rb +0 -3
- data/lib/authlete/models/components/g_m_response_action.rbi +1 -1
- data/lib/authlete/models/components/grant.rb +2 -3
- data/lib/authlete/models/components/grant.rbi +1 -1
- data/lib/authlete/models/components/grant_management_action.rb +2 -5
- data/lib/authlete/models/components/grant_management_action.rbi +1 -1
- data/lib/authlete/models/components/grant_scope.rb +2 -3
- data/lib/authlete/models/components/grant_scope.rbi +1 -1
- data/lib/authlete/models/components/grant_type.rb +1 -4
- data/lib/authlete/models/components/grant_type.rbi +1 -1
- data/lib/authlete/models/components/hsk.rb +8 -9
- data/lib/authlete/models/components/hsk.rbi +1 -1
- data/lib/authlete/models/components/hsk_create_request.rb +6 -7
- data/lib/authlete/models/components/hsk_create_request.rbi +1 -1
- data/lib/authlete/models/components/hsk_create_response.rb +2 -3
- data/lib/authlete/models/components/hsk_create_response.rbi +1 -1
- data/lib/authlete/models/components/hsk_create_response_action.rb +0 -3
- data/lib/authlete/models/components/hsk_create_response_action.rbi +1 -1
- data/lib/authlete/models/components/hsk_delete_response.rb +2 -3
- data/lib/authlete/models/components/hsk_delete_response.rbi +1 -1
- data/lib/authlete/models/components/hsk_delete_response_action.rb +0 -3
- data/lib/authlete/models/components/hsk_delete_response_action.rbi +1 -1
- data/lib/authlete/models/components/hsk_get_list_response.rb +1 -2
- data/lib/authlete/models/components/hsk_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/hsk_get_list_response_action.rb +0 -3
- data/lib/authlete/models/components/hsk_get_list_response_action.rbi +1 -1
- data/lib/authlete/models/components/hsk_get_response.rb +2 -3
- data/lib/authlete/models/components/hsk_get_response.rbi +1 -1
- data/lib/authlete/models/components/hsk_get_response_action.rb +0 -3
- data/lib/authlete/models/components/hsk_get_response_action.rbi +1 -1
- data/lib/authlete/models/components/idtoken_reissue_request.rb +7 -8
- data/lib/authlete/models/components/idtoken_reissue_request.rbi +1 -1
- data/lib/authlete/models/components/idtoken_reissue_response.rb +3 -4
- data/lib/authlete/models/components/idtoken_reissue_response.rbi +1 -1
- data/lib/authlete/models/components/idtoken_reissue_response_action.rb +0 -3
- data/lib/authlete/models/components/idtoken_reissue_response_action.rbi +1 -1
- data/lib/authlete/models/components/introspection_request.rb +24 -41
- data/lib/authlete/models/components/introspection_request.rbi +1 -1
- data/lib/authlete/models/components/introspection_response.rb +36 -46
- data/lib/authlete/models/components/introspection_response.rbi +1 -1
- data/lib/authlete/models/components/introspection_response_action.rb +0 -3
- data/lib/authlete/models/components/introspection_response_action.rbi +1 -1
- data/lib/authlete/models/components/jose_verify_request.rb +5 -6
- data/lib/authlete/models/components/jose_verify_request.rbi +1 -1
- data/lib/authlete/models/components/jose_verify_response.rb +5 -6
- data/lib/authlete/models/components/jose_verify_response.rbi +1 -1
- data/lib/authlete/models/components/jwe_alg.rb +2 -5
- data/lib/authlete/models/components/jwe_alg.rbi +1 -1
- data/lib/authlete/models/components/jwe_enc.rb +1 -4
- data/lib/authlete/models/components/jwe_enc.rbi +1 -1
- data/lib/authlete/models/components/jws_alg.rb +2 -5
- data/lib/authlete/models/components/jws_alg.rbi +1 -1
- data/lib/authlete/models/components/named_uri.rb +0 -1
- data/lib/authlete/models/components/named_uri.rbi +1 -1
- data/lib/authlete/models/components/native_sso_logout_request.rb +1 -2
- data/lib/authlete/models/components/native_sso_logout_request.rbi +1 -1
- data/lib/authlete/models/components/native_sso_logout_response.rb +3 -4
- data/lib/authlete/models/components/native_sso_logout_response.rbi +1 -1
- data/lib/authlete/models/components/native_sso_logout_response_action.rb +1 -4
- data/lib/authlete/models/components/native_sso_logout_response_action.rbi +1 -1
- data/lib/authlete/models/components/native_sso_request.rb +8 -25
- data/lib/authlete/models/components/native_sso_request.rbi +1 -1
- data/lib/authlete/models/components/native_sso_response.rb +4 -5
- data/lib/authlete/models/components/native_sso_response.rbi +1 -1
- data/lib/authlete/models/components/native_sso_response_action.rb +1 -4
- data/lib/authlete/models/components/native_sso_response_action.rbi +1 -1
- data/lib/authlete/models/components/pair.rb +0 -1
- data/lib/authlete/models/components/pair.rbi +1 -1
- data/lib/authlete/models/components/prompt.rb +3 -6
- data/lib/authlete/models/components/prompt.rbi +1 -1
- data/lib/authlete/models/components/property.rb +1 -2
- data/lib/authlete/models/components/property.rbi +1 -1
- data/lib/authlete/models/components/pushed_authorization_request.rb +11 -12
- data/lib/authlete/models/components/pushed_authorization_request.rbi +1 -1
- data/lib/authlete/models/components/pushed_authorization_response.rb +6 -7
- data/lib/authlete/models/components/pushed_authorization_response.rbi +1 -1
- data/lib/authlete/models/components/pushed_authorization_response_action.rb +0 -3
- data/lib/authlete/models/components/pushed_authorization_response_action.rbi +1 -1
- data/lib/authlete/models/components/pushed_authorization_response_clientauthmethod.rb +2 -4
- data/lib/authlete/models/components/pushed_authorization_response_clientauthmethod.rbi +1 -1
- data/lib/authlete/models/components/response_type.rb +0 -3
- data/lib/authlete/models/components/response_type.rbi +1 -1
- data/lib/authlete/models/components/responsemode.rb +0 -3
- data/lib/authlete/models/components/responsemode.rbi +1 -1
- data/lib/authlete/models/components/revocation_request.rb +10 -11
- data/lib/authlete/models/components/revocation_request.rbi +1 -1
- data/lib/authlete/models/components/revocation_response.rb +2 -3
- data/lib/authlete/models/components/revocation_response.rbi +1 -1
- data/lib/authlete/models/components/revocation_response_action.rb +0 -3
- data/lib/authlete/models/components/revocation_response_action.rbi +1 -1
- data/lib/authlete/models/components/scope.rb +0 -1
- data/lib/authlete/models/components/scope.rbi +1 -1
- data/lib/authlete/models/components/security.rb +3 -4
- data/lib/authlete/models/components/security.rbi +1 -1
- data/lib/authlete/models/components/service.rb +248 -600
- data/lib/authlete/models/components/service.rbi +1 -1
- data/lib/authlete/models/components/service_get_list_response.rb +4 -5
- data/lib/authlete/models/components/service_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/service_input.rb +242 -594
- data/lib/authlete/models/components/service_input.rbi +1 -1
- data/lib/authlete/models/components/service_jwks_get_response.rb +0 -1
- data/lib/authlete/models/components/service_jwks_get_response.rbi +1 -1
- data/lib/authlete/models/components/service_profile.rb +0 -3
- data/lib/authlete/models/components/service_profile.rbi +1 -1
- data/lib/authlete/models/components/sns_credentials.rb +0 -1
- data/lib/authlete/models/components/sns_credentials.rbi +1 -1
- data/lib/authlete/models/components/standard_introspection_request.rb +22 -23
- data/lib/authlete/models/components/standard_introspection_request.rbi +1 -1
- data/lib/authlete/models/components/standard_introspection_response.rb +2 -3
- data/lib/authlete/models/components/standard_introspection_response.rbi +1 -1
- data/lib/authlete/models/components/standard_introspection_response_action.rb +1 -3
- data/lib/authlete/models/components/standard_introspection_response_action.rbi +1 -1
- data/lib/authlete/models/components/subject_type.rb +2 -5
- data/lib/authlete/models/components/subject_type.rbi +1 -1
- data/lib/authlete/models/components/supportedsnse.rb +0 -3
- data/lib/authlete/models/components/supportedsnse.rbi +1 -1
- data/lib/authlete/models/components/tagged_value.rb +0 -1
- data/lib/authlete/models/components/tagged_value.rbi +1 -1
- data/lib/authlete/models/components/token_create_request.rb +30 -63
- data/lib/authlete/models/components/token_create_request.rbi +1 -1
- data/lib/authlete/models/components/token_create_response.rb +18 -19
- data/lib/authlete/models/components/token_create_response.rbi +1 -1
- data/lib/authlete/models/components/token_create_response_action.rb +0 -3
- data/lib/authlete/models/components/token_create_response_action.rbi +1 -1
- data/lib/authlete/models/components/token_fail_request.rb +3 -4
- data/lib/authlete/models/components/token_fail_request.rbi +1 -1
- data/lib/authlete/models/components/token_fail_request_reason.rb +1 -4
- data/lib/authlete/models/components/token_fail_request_reason.rbi +1 -1
- data/lib/authlete/models/components/token_fail_response.rb +2 -3
- data/lib/authlete/models/components/token_fail_response.rbi +1 -1
- data/lib/authlete/models/components/token_fail_response_action.rb +0 -3
- data/lib/authlete/models/components/token_fail_response_action.rbi +1 -1
- data/lib/authlete/models/components/token_get_list_response.rb +5 -6
- data/lib/authlete/models/components/token_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/token_info.rb +8 -9
- data/lib/authlete/models/components/token_info.rbi +1 -1
- data/lib/authlete/models/components/token_issue_request.rb +9 -10
- data/lib/authlete/models/components/token_issue_request.rbi +1 -1
- data/lib/authlete/models/components/token_issue_response.rb +21 -22
- data/lib/authlete/models/components/token_issue_response.rbi +1 -1
- data/lib/authlete/models/components/token_issue_response_action.rb +0 -3
- data/lib/authlete/models/components/token_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/token_request.rb +27 -28
- data/lib/authlete/models/components/token_request.rbi +1 -1
- data/lib/authlete/models/components/token_response.rb +55 -63
- data/lib/authlete/models/components/token_response.rbi +3 -1
- data/lib/authlete/models/components/token_response_action.rb +2 -3
- data/lib/authlete/models/components/token_response_action.rbi +1 -1
- data/lib/authlete/models/components/token_revoke_request.rb +7 -8
- data/lib/authlete/models/components/token_revoke_request.rbi +1 -1
- data/lib/authlete/models/components/token_revoke_response.rb +0 -1
- data/lib/authlete/models/components/token_revoke_response.rbi +1 -1
- data/lib/authlete/models/components/token_type.rb +1 -4
- data/lib/authlete/models/components/token_type.rbi +1 -1
- data/lib/authlete/models/components/token_update_request.rb +19 -20
- data/lib/authlete/models/components/token_update_request.rbi +1 -1
- data/lib/authlete/models/components/token_update_response.rb +9 -10
- data/lib/authlete/models/components/token_update_response.rbi +1 -1
- data/lib/authlete/models/components/token_update_response_action.rb +0 -3
- data/lib/authlete/models/components/token_update_response_action.rbi +1 -1
- data/lib/authlete/models/components/trust_anchor.rb +2 -3
- data/lib/authlete/models/components/trust_anchor.rbi +1 -1
- data/lib/authlete/models/components/user_code_charset.rb +1 -4
- data/lib/authlete/models/components/user_code_charset.rbi +1 -1
- data/lib/authlete/models/components/userinfo_issue_request.rb +7 -68
- data/lib/authlete/models/components/userinfo_issue_request.rbi +1 -1
- data/lib/authlete/models/components/userinfo_issue_response.rb +5 -6
- data/lib/authlete/models/components/userinfo_issue_response.rbi +1 -1
- data/lib/authlete/models/components/userinfo_issue_response_action.rb +0 -3
- data/lib/authlete/models/components/userinfo_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/userinfo_request.rb +15 -41
- data/lib/authlete/models/components/userinfo_request.rbi +1 -1
- data/lib/authlete/models/components/userinfo_response.rb +46 -90
- data/lib/authlete/models/components/userinfo_response.rbi +1 -1
- data/lib/authlete/models/components/userinfo_response_action.rb +0 -3
- data/lib/authlete/models/components/userinfo_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_issue_request.rb +0 -1
- data/lib/authlete/models/components/vci_batch_issue_request.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_issue_response.rb +3 -4
- data/lib/authlete/models/components/vci_batch_issue_response.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_issue_response_action.rb +1 -4
- data/lib/authlete/models/components/vci_batch_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_parse_request.rb +0 -1
- data/lib/authlete/models/components/vci_batch_parse_request.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_parse_response.rb +2 -3
- data/lib/authlete/models/components/vci_batch_parse_response.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_parse_response_action.rb +0 -3
- data/lib/authlete/models/components/vci_batch_parse_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_issue_request.rb +0 -1
- data/lib/authlete/models/components/vci_deferred_issue_request.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_issue_response.rb +3 -4
- data/lib/authlete/models/components/vci_deferred_issue_response.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_issue_response_action.rb +1 -4
- data/lib/authlete/models/components/vci_deferred_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_parse_request.rb +0 -1
- data/lib/authlete/models/components/vci_deferred_parse_request.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_parse_response.rb +1 -2
- data/lib/authlete/models/components/vci_deferred_parse_response.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_parse_response_action.rb +0 -3
- data/lib/authlete/models/components/vci_deferred_parse_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_jwks_request.rb +1 -2
- data/lib/authlete/models/components/vci_jwks_request.rbi +1 -1
- data/lib/authlete/models/components/vci_jwks_response.rb +3 -4
- data/lib/authlete/models/components/vci_jwks_response.rbi +1 -1
- data/lib/authlete/models/components/vci_jwks_response_action.rb +1 -4
- data/lib/authlete/models/components/vci_jwks_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_jwtissuer_request.rb +1 -2
- data/lib/authlete/models/components/vci_jwtissuer_request.rbi +1 -1
- data/lib/authlete/models/components/vci_jwtissuer_response.rb +3 -4
- data/lib/authlete/models/components/vci_jwtissuer_response.rbi +1 -1
- data/lib/authlete/models/components/vci_jwtissuer_response_action.rb +1 -4
- data/lib/authlete/models/components/vci_jwtissuer_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_metadata_request.rb +1 -2
- data/lib/authlete/models/components/vci_metadata_request.rbi +1 -1
- data/lib/authlete/models/components/vci_metadata_response.rb +3 -4
- data/lib/authlete/models/components/vci_metadata_response.rbi +1 -1
- data/lib/authlete/models/components/vci_metadata_response_action.rb +1 -4
- data/lib/authlete/models/components/vci_metadata_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_create_request.rb +10 -80
- data/lib/authlete/models/components/vci_offer_create_request.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_create_response.rb +1 -2
- data/lib/authlete/models/components/vci_offer_create_response.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_create_response_action.rb +0 -3
- data/lib/authlete/models/components/vci_offer_create_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_info_request.rb +0 -1
- data/lib/authlete/models/components/vci_offer_info_request.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_info_response.rb +1 -2
- data/lib/authlete/models/components/vci_offer_info_response.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_info_response_action.rb +0 -3
- data/lib/authlete/models/components/vci_offer_info_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_single_issue_request.rb +0 -1
- data/lib/authlete/models/components/vci_single_issue_request.rbi +1 -1
- data/lib/authlete/models/components/vci_single_issue_response.rb +4 -5
- data/lib/authlete/models/components/vci_single_issue_response.rbi +1 -1
- data/lib/authlete/models/components/vci_single_issue_response_action.rb +1 -4
- data/lib/authlete/models/components/vci_single_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_single_parse_request.rb +0 -1
- data/lib/authlete/models/components/vci_single_parse_request.rbi +1 -1
- data/lib/authlete/models/components/vci_single_parse_response.rb +1 -2
- data/lib/authlete/models/components/vci_single_parse_response.rbi +1 -1
- data/lib/authlete/models/components/vci_single_parse_response_action.rb +0 -3
- data/lib/authlete/models/components/vci_single_parse_response_action.rbi +1 -1
- data/lib/authlete/models/components/verified_claims_validation_schema.rb +1 -4
- data/lib/authlete/models/components/verified_claims_validation_schema.rbi +1 -1
- data/lib/authlete/models/components.rb +3 -1
- data/lib/authlete/models/errors/apierror.rbi +2 -1
- data/lib/authlete/models/errors/result_error.rb +0 -1
- data/lib/authlete/models/errors/result_error.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_authorization_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_authorization_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_fail_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_authorization_fail_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_fail_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_authorization_fail_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_authorization_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_authorization_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_introspection_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_introspection_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_introspection_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_introspection_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_introspection_standard_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_introspection_standard_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_introspection_standard_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_introspection_standard_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_revocation_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_revocation_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_revocation_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_revocation_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_token_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_create_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_token_create_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_create_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_delete_api_request.rb +1 -2
- data/lib/authlete/models/operations/auth_token_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_fail_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_token_fail_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_fail_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_fail_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_get_list_api_request.rb +3 -4
- data/lib/authlete/models/operations/auth_token_get_list_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_get_list_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_get_list_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_token_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_revoke_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_token_revoke_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_revoke_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_revoke_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_update_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_token_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_userinfo_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_userinfo_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_userinfo_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_userinfo_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_userinfo_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_userinfo_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_userinfo_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_userinfo_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_request.rb +0 -1
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_request.rbi +1 -1
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_response.rb +0 -1
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_response.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_api_request.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_api_request.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_api_response.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_api_response.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_request.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_response.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_request.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_request.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_response.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_response.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_delete_api_post_request.rb +41 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_post_request.rbi +17 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_post_requestbody.rb +32 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_post_requestbody.rbi +13 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_post_response.rb +44 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_post_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_request.rb +7 -13
- data/lib/authlete/models/operations/client_authorization_delete_api_request.rbi +3 -5
- data/lib/authlete/models/operations/client_authorization_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_authorization_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_request.rb +42 -0
- data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_response.rb +44 -0
- data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_post_request.rb +36 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_post_request.rbi +15 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_post_response.rb +44 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_post_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_request.rb +8 -14
- data/lib/authlete/models/operations/client_authorization_get_list_api_request.rbi +3 -5
- data/lib/authlete/models/operations/client_authorization_get_list_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_authorization_get_list_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_request.rb +51 -0
- data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_request.rbi +21 -0
- data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_response.rb +44 -0
- data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_update_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_authorization_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_authorization_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_create_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_create_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_create_api_response.rb +1 -2
- data/lib/authlete/models/operations/client_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_delete_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_request.rb +41 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_request.rbi +17 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_response.rb +44 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_response.rbi +19 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_flag_update_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_flag_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_flag_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_flag_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_get_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_get_list_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_get_list_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_get_list_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_get_list_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_request.rb +7 -13
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_request.rbi +3 -5
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_request.rb +42 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_response.rb +44 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_request.rb +41 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_request.rbi +17 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_requestbody.rb +32 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_requestbody.rbi +13 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_response.rb +44 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_response.rbi +19 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_request.rb +7 -13
- data/lib/authlete/models/operations/client_granted_scopes_get_api_request.rbi +3 -5
- data/lib/authlete/models/operations/client_granted_scopes_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_granted_scopes_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_request.rb +42 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_response.rb +44 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_registration_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_registration_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_api_requestbody.rb +3 -4
- data/lib/authlete/models/operations/client_registration_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_registration_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_delete_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_registration_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_delete_api_requestbody.rb +3 -4
- data/lib/authlete/models/operations/client_registration_delete_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_registration_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_get_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_registration_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_get_api_requestbody.rb +3 -4
- data/lib/authlete/models/operations/client_registration_get_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_registration_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_update_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_registration_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_update_api_requestbody.rb +3 -4
- data/lib/authlete/models/operations/client_registration_update_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_registration_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_secret_refresh_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_secret_refresh_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_secret_refresh_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_secret_refresh_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_secret_update_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_secret_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_secret_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_secret_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_update_api_form_request.rb +0 -1
- data/lib/authlete/models/operations/client_update_api_form_request.rbi +1 -1
- data/lib/authlete/models/operations/client_update_api_form_response.rb +0 -1
- data/lib/authlete/models/operations/client_update_api_form_response.rbi +1 -1
- data/lib/authlete/models/operations/client_update_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/device_authorization_api_request.rb +0 -1
- data/lib/authlete/models/operations/device_authorization_api_request.rbi +1 -1
- data/lib/authlete/models/operations/device_authorization_api_response.rb +0 -1
- data/lib/authlete/models/operations/device_authorization_api_response.rbi +1 -1
- data/lib/authlete/models/operations/device_complete_api_request.rb +0 -1
- data/lib/authlete/models/operations/device_complete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/device_complete_api_response.rb +0 -1
- data/lib/authlete/models/operations/device_complete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/device_verification_api_request.rb +0 -1
- data/lib/authlete/models/operations/device_verification_api_request.rbi +1 -1
- data/lib/authlete/models/operations/device_verification_api_response.rb +0 -1
- data/lib/authlete/models/operations/device_verification_api_response.rbi +1 -1
- data/lib/authlete/models/operations/federation_configuration_api_request.rb +0 -1
- data/lib/authlete/models/operations/federation_configuration_api_request.rbi +1 -1
- data/lib/authlete/models/operations/federation_configuration_api_requestbody.rb +0 -1
- data/lib/authlete/models/operations/federation_configuration_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/federation_configuration_api_response.rb +0 -1
- data/lib/authlete/models/operations/federation_configuration_api_response.rbi +1 -1
- data/lib/authlete/models/operations/federation_registration_api_request.rb +0 -1
- data/lib/authlete/models/operations/federation_registration_api_request.rbi +1 -1
- data/lib/authlete/models/operations/federation_registration_api_response.rb +0 -1
- data/lib/authlete/models/operations/federation_registration_api_response.rbi +1 -1
- data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_request.rb +33 -0
- data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_request.rbi +13 -0
- data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_response.rb +44 -0
- data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_response.rbi +19 -0
- data/lib/authlete/models/operations/grant_m_api_request.rb +0 -1
- data/lib/authlete/models/operations/grant_m_api_request.rbi +1 -1
- data/lib/authlete/models/operations/grant_m_api_response.rb +0 -1
- data/lib/authlete/models/operations/grant_m_api_response.rbi +1 -1
- data/lib/authlete/models/operations/hsk_create_api_request.rb +0 -1
- data/lib/authlete/models/operations/hsk_create_api_request.rbi +1 -1
- data/lib/authlete/models/operations/hsk_create_api_response.rb +0 -1
- data/lib/authlete/models/operations/hsk_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/hsk_delete_api_request.rb +0 -1
- data/lib/authlete/models/operations/hsk_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/hsk_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/hsk_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/hsk_get_api_request.rb +0 -1
- data/lib/authlete/models/operations/hsk_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/hsk_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/hsk_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/hsk_get_list_api_request.rb +0 -1
- data/lib/authlete/models/operations/hsk_get_list_api_request.rbi +1 -1
- data/lib/authlete/models/operations/hsk_get_list_api_response.rb +0 -1
- data/lib/authlete/models/operations/hsk_get_list_api_response.rbi +1 -1
- data/lib/authlete/models/operations/idtoken_reissue_api_request.rb +0 -1
- data/lib/authlete/models/operations/idtoken_reissue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/idtoken_reissue_api_response.rb +0 -1
- data/lib/authlete/models/operations/idtoken_reissue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/jose_verify_api_request.rb +0 -1
- data/lib/authlete/models/operations/jose_verify_api_request.rbi +1 -1
- data/lib/authlete/models/operations/jose_verify_api_response.rb +0 -1
- data/lib/authlete/models/operations/jose_verify_api_response.rbi +1 -1
- data/lib/authlete/models/operations/native_sso_api_request.rb +0 -1
- data/lib/authlete/models/operations/native_sso_api_request.rbi +1 -1
- data/lib/authlete/models/operations/native_sso_api_response.rb +0 -1
- data/lib/authlete/models/operations/native_sso_api_response.rbi +1 -1
- data/lib/authlete/models/operations/native_sso_logout_api_request.rb +0 -1
- data/lib/authlete/models/operations/native_sso_logout_api_request.rbi +1 -1
- data/lib/authlete/models/operations/native_sso_logout_api_response.rb +0 -1
- data/lib/authlete/models/operations/native_sso_logout_api_response.rbi +1 -1
- data/lib/authlete/models/operations/pushed_auth_req_api_request.rb +0 -1
- data/lib/authlete/models/operations/pushed_auth_req_api_request.rbi +1 -1
- data/lib/authlete/models/operations/pushed_auth_req_api_response.rb +0 -1
- data/lib/authlete/models/operations/pushed_auth_req_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_configuration_api_request.rb +0 -1
- data/lib/authlete/models/operations/service_configuration_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_configuration_api_response.rb +0 -1
- data/lib/authlete/models/operations/service_configuration_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_create_api_response.rb +1 -2
- data/lib/authlete/models/operations/service_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_delete_api_request.rb +0 -1
- data/lib/authlete/models/operations/service_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/service_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_get_api_request.rb +0 -1
- data/lib/authlete/models/operations/service_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/service_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_get_list_api_request.rb +0 -1
- data/lib/authlete/models/operations/service_get_list_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_get_list_api_response.rb +0 -1
- data/lib/authlete/models/operations/service_get_list_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_jwks_get_api_request.rb +0 -1
- data/lib/authlete/models/operations/service_jwks_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_jwks_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/service_jwks_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_update_api_request.rb +0 -1
- data/lib/authlete/models/operations/service_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/service_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/updateauthorizationticket_request.rb +0 -1
- data/lib/authlete/models/operations/updateauthorizationticket_request.rbi +1 -1
- data/lib/authlete/models/operations/updateauthorizationticket_response.rb +0 -1
- data/lib/authlete/models/operations/updateauthorizationticket_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_batch_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_batch_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_batch_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_batch_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_batch_parse_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_batch_parse_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_batch_parse_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_batch_parse_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_deferred_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_deferred_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_deferred_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_deferred_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_deferred_parse_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_deferred_parse_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_deferred_parse_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_deferred_parse_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_jwks_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_jwks_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_jwks_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_jwks_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_jwtissuer_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_jwtissuer_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_jwtissuer_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_jwtissuer_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_metadata_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_metadata_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_metadata_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_metadata_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_offer_create_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_offer_create_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_offer_create_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_offer_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_offer_info_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_offer_info_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_offer_info_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_offer_info_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_single_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_single_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_single_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_single_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_single_parse_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_single_parse_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_single_parse_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_single_parse_api_response.rbi +1 -1
- data/lib/authlete/models/operations.rb +20 -0
- data/lib/authlete/native_sso.rb +17 -69
- data/lib/authlete/pushed_authorization.rb +10 -5
- data/lib/authlete/revocation.rb +10 -98
- data/lib/authlete/sdkconfiguration.rb +3 -3
- data/lib/authlete/services.rb +48 -28
- data/lib/authlete/token_management.rb +44 -24
- data/lib/authlete/tokens.rb +24 -454
- data/lib/authlete/userinfo.rb +17 -224
- data/lib/authlete/utils/request_bodies.rb +8 -3
- data/lib/authlete/utils/security.rb +10 -0
- data/lib/authlete/utils/url.rb +11 -5
- data/lib/authlete/utils/utils.rb +45 -3
- data/lib/authlete/verifiable_credentials.rb +69 -34
- data/lib/authlete_ruby_sdk.rb +1 -0
- data/lib/crystalline/enum.rbi +17 -0
- data/lib/crystalline/metadata_fields.rb +85 -22
- data/lib/crystalline/module.rb +99 -13
- data/lib/crystalline/types.rb +90 -3
- metadata +66 -6
- data/lib/authlete/models/components/clientsource.rbi +0 -11
|
@@ -39,66 +39,15 @@ module Authlete
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(request_body: Models::Operations::ClientRegistrationApiRequestBody, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ClientRegistrationApiResponse) }
|
|
45
|
+
def register(request_body:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# register - Register Client
|
|
45
47
|
# Register a client. This API is supposed to be used to implement a client registration endpoint that
|
|
46
48
|
# complies with [RFC 7591](https://datatracker.ietf.org/doc/html/rfc7591) (OAuth 2.0 Dynamic Client
|
|
47
49
|
# Registration Protocol).
|
|
48
|
-
#
|
|
49
|
-
# This API is supposed to be called from the within the implementation of the client registration
|
|
50
|
-
# endpoint of the authorization server. The authorization server implementation should retrieve
|
|
51
|
-
# the value of `action` from the response and take the following steps according to the value.
|
|
52
|
-
# **INTERNAL\_SERVER\_ERROR**
|
|
53
|
-
# When the value of `action` is `INTERNAL\_SERVER\_ERROR`, it means that the API call from the authorization
|
|
54
|
-
# server implementation was wrong or that an error occurred in Authlete.
|
|
55
|
-
# In either case, from a viewpoint of the client or developer, it is an error on the server side.
|
|
56
|
-
# Therefore, the authorization server implementation should generate a response with "500 Internal
|
|
57
|
-
# Server Error"s and `application/json`.
|
|
58
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used as
|
|
59
|
-
# the entity body of the response.
|
|
60
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
61
|
-
# and return to the client or developer.
|
|
62
|
-
# ```
|
|
63
|
-
# HTTP/1.1 500 Internal Server Error
|
|
64
|
-
# Content-Type: application/json
|
|
65
|
-
# Cache-Control: no-store
|
|
66
|
-
# Pragma: no-cache
|
|
67
|
-
# {responseContent}
|
|
68
|
-
# ```
|
|
69
|
-
# The endpoint implementation may return another different response to the client or developer since
|
|
70
|
-
# "500 Internal Server Error" is not required by the specification.
|
|
71
|
-
# **BAD\_REQUEST**
|
|
72
|
-
# When the value of `action` is `BAD\_REQUEST`, it means that the request from the client or developer
|
|
73
|
-
# was wrong.
|
|
74
|
-
# The authorization server implementation should generate a response with "400 Bad Request" and `application/json`.
|
|
75
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used
|
|
76
|
-
# as the entity body of the response.
|
|
77
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
78
|
-
# and return to the client or developer.
|
|
79
|
-
# ```
|
|
80
|
-
# HTTP/1.1 400 Bad Request
|
|
81
|
-
# Content-Type: application/json
|
|
82
|
-
# Cache-Control: no-store
|
|
83
|
-
# Pragma: no-cache
|
|
84
|
-
# {responseContent}
|
|
85
|
-
# ```
|
|
86
|
-
# **CREATED**
|
|
87
|
-
# When the value of `action` is `CREATED`, it means that the request from the client or developer is
|
|
88
|
-
# valid.
|
|
89
|
-
# The authorization server implementation should generate a response to the client or developer with
|
|
90
|
-
# "201 CREATED" and `application/json`.
|
|
91
|
-
# The `responseContent` a JSON string which can be used as the entity body of the response.
|
|
92
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
93
|
-
# and return to the client or developer.
|
|
94
|
-
# ```
|
|
95
|
-
# HTTP/1.1 201 CREATED
|
|
96
|
-
# Content-Type: application/json
|
|
97
|
-
# Cache-Control: no-store
|
|
98
|
-
# Pragma: no-cache
|
|
99
|
-
# {responseContent}
|
|
100
|
-
# ```
|
|
101
|
-
#
|
|
50
|
+
#
|
|
102
51
|
request = Models::Operations::ClientRegistrationApiRequest.new(
|
|
103
52
|
service_id: service_id,
|
|
104
53
|
request_body: request_body
|
|
@@ -117,7 +66,7 @@ module Authlete
|
|
|
117
66
|
headers['content-type'] = req_content_type
|
|
118
67
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
119
68
|
|
|
120
|
-
if form
|
|
69
|
+
if form && !form.empty?
|
|
121
70
|
body = Utils.encode_form(form)
|
|
122
71
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
123
72
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -153,6 +102,9 @@ module Authlete
|
|
|
153
102
|
req.headers.merge!(headers)
|
|
154
103
|
req.options.timeout = timeout unless timeout.nil?
|
|
155
104
|
Utils.configure_request_security(req, security)
|
|
105
|
+
http_headers&.each do |key, value|
|
|
106
|
+
req.headers[key.to_s] = value
|
|
107
|
+
end
|
|
156
108
|
|
|
157
109
|
@sdk_configuration.hooks.before_request(
|
|
158
110
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -250,85 +202,13 @@ module Authlete
|
|
|
250
202
|
end
|
|
251
203
|
|
|
252
204
|
|
|
253
|
-
sig { params(request_body: Models::Operations::ClientRegistrationGetApiRequestBody, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ClientRegistrationGetApiResponse) }
|
|
254
|
-
def retrieve(request_body:, service_id:, timeout_ms: nil)
|
|
205
|
+
sig { params(request_body: Models::Operations::ClientRegistrationGetApiRequestBody, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ClientRegistrationGetApiResponse) }
|
|
206
|
+
def retrieve(request_body:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
255
207
|
# retrieve - Get Client
|
|
256
208
|
# Get a dynamically registered client. This API is supposed to be used to implement a client registration
|
|
257
209
|
# management endpoint that complies with [RFC 7592](https://datatracker.ietf.org/doc/html/rfc7592)
|
|
258
210
|
# (OAuth 2.0 Dynamic Registration Management).
|
|
259
|
-
#
|
|
260
|
-
# This API is supposed to be called from the within the implementation of the client registration
|
|
261
|
-
# management endpoint of the authorization server. The authorization server implementation should
|
|
262
|
-
# retrieve the value of `action` from the response and take the following steps according to the value.
|
|
263
|
-
# **INTERNAL\_SERVER\_ERROR**
|
|
264
|
-
# When the value of `action` is `INTERNAL\_SERVER\_ERROR`, it means that the API call from the authorization
|
|
265
|
-
# server implementation was wrong or that an error occurred in Authlete.
|
|
266
|
-
# In either case, from a viewpoint of the client or developer, it is an error on the server side.
|
|
267
|
-
# Therefore, the authorization server implementation should generate a response to the client or developer
|
|
268
|
-
# with "500 Internal Server Error"s and `application/json`.
|
|
269
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used as
|
|
270
|
-
# the entity body of the response.
|
|
271
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
272
|
-
# and return to the client or developer.
|
|
273
|
-
# ```
|
|
274
|
-
# HTTP/1.1 500 Internal Server Error
|
|
275
|
-
# Content-Type: application/json
|
|
276
|
-
# Cache-Control: no-store
|
|
277
|
-
# Pragma: no-cache
|
|
278
|
-
# {responseContent}
|
|
279
|
-
# ```
|
|
280
|
-
# The endpoint implementation may return another different response to the client or developer since
|
|
281
|
-
# "500 Internal Server Error" is not required by the specification.
|
|
282
|
-
# **BAD\_REQUEST**
|
|
283
|
-
# When the value of `action` is `BAD\_REQUEST`, it means that the request from the client or developer
|
|
284
|
-
# was wrong.
|
|
285
|
-
# The authorization server implementation should generate a response to the client or developer with
|
|
286
|
-
# "400 Bad Request" and `application/json`.
|
|
287
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used as
|
|
288
|
-
# the entity body of the response.
|
|
289
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
290
|
-
# and return to the client or developer.
|
|
291
|
-
# ```
|
|
292
|
-
# HTTP/1.1 400 Bad Request
|
|
293
|
-
# Content-Type: application/json
|
|
294
|
-
# Cache-Control: no-store
|
|
295
|
-
# Pragma: no-cache
|
|
296
|
-
# {responseContent}
|
|
297
|
-
# ```
|
|
298
|
-
# **UNAUTHORIZED**
|
|
299
|
-
# When the value of `action` is `UNAUTHORIZED`, it means that the registration access token used by
|
|
300
|
-
# the client configuration request (RFC 7592) is invalid, or the client application which the token
|
|
301
|
-
# is tied to does not exist any longer or is invalid.
|
|
302
|
-
# The HTTP status of the response returned to the client application must be "401 Unauthorized" and
|
|
303
|
-
# the content type must be `application/json`.
|
|
304
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used as
|
|
305
|
-
# the entity body of the response.
|
|
306
|
-
# The following illustrates the response which the endpoint implementation should generate and return
|
|
307
|
-
# to the client application.
|
|
308
|
-
# ```
|
|
309
|
-
# HTTP/1.1 401 Unauthorized
|
|
310
|
-
# Content-Type: application/json
|
|
311
|
-
# Cache-Control: no-store
|
|
312
|
-
# Pragma: no-cache
|
|
313
|
-
# {responseContent}
|
|
314
|
-
# ```
|
|
315
|
-
# NOTE: The `UNAUTHORIZED` value was added in October, 2021. See the description of
|
|
316
|
-
# `Service.unauthorizedOnClientConfigSupported` for details.
|
|
317
|
-
# **OK**
|
|
318
|
-
# When the value of `action` is `OK`, it means that the request from the client or developer is valid.
|
|
319
|
-
# The authorization server implementation should generate a response to the client or developer with
|
|
320
|
-
# "200 OK" and `application/json`.
|
|
321
|
-
# The `responseContent` a JSON string which can be used as the entity body of the response.
|
|
322
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
323
|
-
# and return to the client or developer.
|
|
324
|
-
# ```
|
|
325
|
-
# HTTP/1.1 200 OK
|
|
326
|
-
# Content-Type: application/json
|
|
327
|
-
# Cache-Control: no-store
|
|
328
|
-
# Pragma: no-cache
|
|
329
|
-
# {responseContent}
|
|
330
|
-
# ```
|
|
331
|
-
#
|
|
211
|
+
#
|
|
332
212
|
request = Models::Operations::ClientRegistrationGetApiRequest.new(
|
|
333
213
|
service_id: service_id,
|
|
334
214
|
request_body: request_body
|
|
@@ -347,7 +227,7 @@ module Authlete
|
|
|
347
227
|
headers['content-type'] = req_content_type
|
|
348
228
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
349
229
|
|
|
350
|
-
if form
|
|
230
|
+
if form && !form.empty?
|
|
351
231
|
body = Utils.encode_form(form)
|
|
352
232
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
353
233
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -383,6 +263,9 @@ module Authlete
|
|
|
383
263
|
req.headers.merge!(headers)
|
|
384
264
|
req.options.timeout = timeout unless timeout.nil?
|
|
385
265
|
Utils.configure_request_security(req, security)
|
|
266
|
+
http_headers&.each do |key, value|
|
|
267
|
+
req.headers[key.to_s] = value
|
|
268
|
+
end
|
|
386
269
|
|
|
387
270
|
@sdk_configuration.hooks.before_request(
|
|
388
271
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -480,85 +363,13 @@ module Authlete
|
|
|
480
363
|
end
|
|
481
364
|
|
|
482
365
|
|
|
483
|
-
sig { params(request_body: Models::Operations::ClientRegistrationUpdateApiRequestBody, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ClientRegistrationUpdateApiResponse) }
|
|
484
|
-
def update(request_body:, service_id:, timeout_ms: nil)
|
|
366
|
+
sig { params(request_body: Models::Operations::ClientRegistrationUpdateApiRequestBody, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ClientRegistrationUpdateApiResponse) }
|
|
367
|
+
def update(request_body:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
485
368
|
# update - Update Client
|
|
486
369
|
# Update a dynamically registered client. This API is supposed to be used to implement a client
|
|
487
370
|
# registration management endpoint that complies with [RFC 7592](https://datatracker.ietf.org/doc/html/rfc7592)
|
|
488
371
|
# (OAuth 2.0 Dynamic Registration Management).
|
|
489
|
-
#
|
|
490
|
-
# This API is supposed to be called from the within the implementation of the client registration
|
|
491
|
-
# management endpoint of the authorization server. The authorization server implementation should
|
|
492
|
-
# retrieve the value of `action` from the response and take the following steps according to the value.
|
|
493
|
-
# **INTERNAL\_SERVER\_ERROR**
|
|
494
|
-
# When the value of `action` is `INTERNAL\_SERVER\_ERROR`, it means that the API call from the authorization
|
|
495
|
-
# server implementation was wrong or that an error occurred in Authlete.
|
|
496
|
-
# In either case, from a viewpoint of the client or developer, it is an error on the server side.
|
|
497
|
-
# Therefore, the authorization server implementation should generate a response with "500 Internal
|
|
498
|
-
# Server Error"s and `application/json`.
|
|
499
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used as
|
|
500
|
-
# the entity body of the response.
|
|
501
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
502
|
-
# and return to the client or developer.
|
|
503
|
-
# ```
|
|
504
|
-
# HTTP/1.1 500 Internal Server Error
|
|
505
|
-
# Content-Type: application/json
|
|
506
|
-
# Cache-Control: no-store
|
|
507
|
-
# Pragma: no-cache
|
|
508
|
-
# {responseContent}
|
|
509
|
-
# ```
|
|
510
|
-
# The endpoint implementation may return another different response to the client or developer since
|
|
511
|
-
# "500 Internal Server Error" is not required by the specification.
|
|
512
|
-
# **BAD\_REQUEST**
|
|
513
|
-
# When the value of `action` is `BAD\_REQUEST`, it means that the request from the client or developer
|
|
514
|
-
# was wrong.
|
|
515
|
-
# The authorization server implementation should generate a response with "400 Bad Request" and `application/json`.
|
|
516
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used as
|
|
517
|
-
# the entity body of the response.
|
|
518
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
519
|
-
# and return to the client or developer.
|
|
520
|
-
# ```
|
|
521
|
-
# HTTP/1.1 400 Bad Request
|
|
522
|
-
# Content-Type: application/json
|
|
523
|
-
# Cache-Control: no-store
|
|
524
|
-
# Pragma: no-cache
|
|
525
|
-
# {responseContent}
|
|
526
|
-
# ```
|
|
527
|
-
# **UNAUTHORIZED**
|
|
528
|
-
# When the value of `action` is `UNAUTHORIZED`, it means that the registration access token used by
|
|
529
|
-
# the client configuration request (RFC 7592) is invalid, or the client application which the token
|
|
530
|
-
# is tied to does not exist any longer or is invalid.
|
|
531
|
-
# The HTTP status of the response returned to the client application must be "401 Unauthorized" and
|
|
532
|
-
# the content type must be `application/json`.
|
|
533
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used as
|
|
534
|
-
# the entity body of the response.
|
|
535
|
-
# The following illustrates the response which the endpoint implementation should generate and return
|
|
536
|
-
# to the client application.
|
|
537
|
-
# ```
|
|
538
|
-
# HTTP/1.1 401 Unauthorized
|
|
539
|
-
# Content-Type: application/json
|
|
540
|
-
# Cache-Control: no-store
|
|
541
|
-
# Pragma: no-cache
|
|
542
|
-
# {responseContent}
|
|
543
|
-
# ```
|
|
544
|
-
# NOTE: The `UNAUTHORIZED` value was added in October, 2021. See the description of
|
|
545
|
-
# `Service.unauthorizedOnClientConfigSupported` for details.
|
|
546
|
-
# **UPDATED**
|
|
547
|
-
# When the value of `action` is `UPDATED`, it means that the request from the client or developer is
|
|
548
|
-
# valid.
|
|
549
|
-
# The authorization server implementation should generate a response to the client or developer with
|
|
550
|
-
# "200 OK" and `application/json`.
|
|
551
|
-
# The `responseContent` a JSON string which can be used as the entity body of the response.
|
|
552
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
553
|
-
# and return to the client or developer.
|
|
554
|
-
# ```
|
|
555
|
-
# HTTP/1.1 200 OK
|
|
556
|
-
# Content-Type: application/json
|
|
557
|
-
# Cache-Control: no-store
|
|
558
|
-
# Pragma: no-cache
|
|
559
|
-
# {responseContent}
|
|
560
|
-
# ```
|
|
561
|
-
#
|
|
372
|
+
#
|
|
562
373
|
request = Models::Operations::ClientRegistrationUpdateApiRequest.new(
|
|
563
374
|
service_id: service_id,
|
|
564
375
|
request_body: request_body
|
|
@@ -577,7 +388,7 @@ module Authlete
|
|
|
577
388
|
headers['content-type'] = req_content_type
|
|
578
389
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
579
390
|
|
|
580
|
-
if form
|
|
391
|
+
if form && !form.empty?
|
|
581
392
|
body = Utils.encode_form(form)
|
|
582
393
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
583
394
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -613,6 +424,9 @@ module Authlete
|
|
|
613
424
|
req.headers.merge!(headers)
|
|
614
425
|
req.options.timeout = timeout unless timeout.nil?
|
|
615
426
|
Utils.configure_request_security(req, security)
|
|
427
|
+
http_headers&.each do |key, value|
|
|
428
|
+
req.headers[key.to_s] = value
|
|
429
|
+
end
|
|
616
430
|
|
|
617
431
|
@sdk_configuration.hooks.before_request(
|
|
618
432
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -710,82 +524,13 @@ module Authlete
|
|
|
710
524
|
end
|
|
711
525
|
|
|
712
526
|
|
|
713
|
-
sig { params(request_body: Models::Operations::ClientRegistrationDeleteApiRequestBody, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ClientRegistrationDeleteApiResponse) }
|
|
714
|
-
def destroy(request_body:, service_id:, timeout_ms: nil)
|
|
527
|
+
sig { params(request_body: Models::Operations::ClientRegistrationDeleteApiRequestBody, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ClientRegistrationDeleteApiResponse) }
|
|
528
|
+
def destroy(request_body:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
715
529
|
# destroy - Delete Client
|
|
716
530
|
# Delete a dynamically registered client. This API is supposed to be used to implement a client
|
|
717
531
|
# registration management endpoint that complies with [RFC 7592](https://datatracker.ietf.org/doc/html/rfc7592)
|
|
718
532
|
# (OAuth 2.0 Dynamic Registration Management).
|
|
719
|
-
#
|
|
720
|
-
# This API is supposed to be called from the within the implementation of the client registration
|
|
721
|
-
# management endpoint of the authorization server. The authorization server implementation should
|
|
722
|
-
# retrieve the value of `action` from the response and take the following steps according to the value.
|
|
723
|
-
# **INTERNAL\_SERVER\_ERROR**
|
|
724
|
-
# When the value of `action` is `INTERNAL\_SERVER\_ERROR`, it means that the API call from the authorization
|
|
725
|
-
# server implementation was wrong or that an error occurred in Authlete.
|
|
726
|
-
# In either case, from a viewpoint of the client or developer, it is an error on the server side.
|
|
727
|
-
# Therefore, the authorization server implementation should generate a response with "500 Internal
|
|
728
|
-
# Server Error"s and `application/json`.
|
|
729
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used as
|
|
730
|
-
# the entity body of the response.
|
|
731
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
732
|
-
# and return to the client or developer.
|
|
733
|
-
# ```
|
|
734
|
-
# HTTP/1.1 500 Internal Server Error
|
|
735
|
-
# Content-Type: application/json
|
|
736
|
-
# Cache-Control: no-store
|
|
737
|
-
# Pragma: no-cache
|
|
738
|
-
# {responseContent}
|
|
739
|
-
# ```
|
|
740
|
-
# The endpoint implementation may return another different response to the client or developer since
|
|
741
|
-
# "500 Internal Server Error" is not required by the specification.
|
|
742
|
-
# **BAD\_REQUEST**
|
|
743
|
-
# When the value of `action` is `BAD\_REQUEST`, it means that the request from the client or developer
|
|
744
|
-
# was wrong.
|
|
745
|
-
# The authorization server implementation should generate a response with "400 Bad Request" and `application/json`.
|
|
746
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used as
|
|
747
|
-
# the entity body of the response.
|
|
748
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
749
|
-
# and return to the client or developer.
|
|
750
|
-
# ```
|
|
751
|
-
# HTTP/1.1 400 Bad Request
|
|
752
|
-
# Content-Type: application/json
|
|
753
|
-
# Cache-Control: no-store
|
|
754
|
-
# Pragma: no-cache
|
|
755
|
-
# {responseContent}
|
|
756
|
-
# ```
|
|
757
|
-
# **UNAUTHORIZED**
|
|
758
|
-
# When the value of `action` is `UNAUTHORIZED`, it means that the registration access token used by
|
|
759
|
-
# the client configuration request (RFC 7592) is invalid, or the client application which the token
|
|
760
|
-
# is tied to does not exist any longer or is invalid.
|
|
761
|
-
# The HTTP status of the response returned to the client application must be "401 Unauthorized" and
|
|
762
|
-
# the content type must be `application/json`.
|
|
763
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used as
|
|
764
|
-
# the entity body of the response.
|
|
765
|
-
# The following illustrates the response which the endpoint implementation should generate and return
|
|
766
|
-
# to the client application.
|
|
767
|
-
# ```
|
|
768
|
-
# HTTP/1.1 401 Unauthorized
|
|
769
|
-
# Content-Type: application/json
|
|
770
|
-
# Cache-Control: no-store
|
|
771
|
-
# Pragma: no-cache
|
|
772
|
-
# {responseContent}
|
|
773
|
-
# ```
|
|
774
|
-
# NOTE: The `UNAUTHORIZED` value was added in October, 2021. See the description of
|
|
775
|
-
# `Service.unauthorizedOnClientConfigSupported` for details.
|
|
776
|
-
# **DELETED**
|
|
777
|
-
# When the value of `action` is `DELETED`, it means that the request from the client or developer is
|
|
778
|
-
# valid.
|
|
779
|
-
# The authorization server implementation should generate a response to the client or developer with
|
|
780
|
-
# "204 No Content".
|
|
781
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
782
|
-
# and return to the client or developer.
|
|
783
|
-
# ```
|
|
784
|
-
# HTTP/1.1 204 No Content
|
|
785
|
-
# Cache-Control: no-store
|
|
786
|
-
# Pragma: no-cache
|
|
787
|
-
# ```
|
|
788
|
-
#
|
|
533
|
+
#
|
|
789
534
|
request = Models::Operations::ClientRegistrationDeleteApiRequest.new(
|
|
790
535
|
service_id: service_id,
|
|
791
536
|
request_body: request_body
|
|
@@ -804,7 +549,7 @@ module Authlete
|
|
|
804
549
|
headers['content-type'] = req_content_type
|
|
805
550
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
806
551
|
|
|
807
|
-
if form
|
|
552
|
+
if form && !form.empty?
|
|
808
553
|
body = Utils.encode_form(form)
|
|
809
554
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
810
555
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -840,6 +585,9 @@ module Authlete
|
|
|
840
585
|
req.headers.merge!(headers)
|
|
841
586
|
req.options.timeout = timeout unless timeout.nil?
|
|
842
587
|
Utils.configure_request_security(req, security)
|
|
588
|
+
http_headers&.each do |key, value|
|
|
589
|
+
req.headers[key.to_s] = value
|
|
590
|
+
end
|
|
843
591
|
|
|
844
592
|
@sdk_configuration.hooks.before_request(
|
|
845
593
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -935,5 +683,5 @@ module Authlete
|
|
|
935
683
|
|
|
936
684
|
end
|
|
937
685
|
end
|
|
938
|
-
|
|
686
|
+
end
|
|
939
687
|
end
|
data/lib/authlete/federation.rb
CHANGED
|
@@ -39,72 +39,17 @@ module Authlete
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(service_id: ::String, request_body: T.nilable(Models::Operations::FederationConfigurationApiRequestBody), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::FederationConfigurationApiResponse) }
|
|
45
|
+
def configuration(service_id:, request_body: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# configuration - Process Entity Configuration Request
|
|
45
47
|
# This API gathers the federation configuration about a service.
|
|
46
48
|
# The authorization server implementation should
|
|
47
49
|
# retrieve the value of the `action`
|
|
48
50
|
# response parameter from the API response and take the following steps
|
|
49
51
|
# according to the value.
|
|
50
|
-
#
|
|
51
|
-
# When the value of the `action` response
|
|
52
|
-
# parameter is `OK`, it means that Authlete
|
|
53
|
-
# could prepare an entity configuration successfully.
|
|
54
|
-
# In this case, the implementation of the entity configuration endpoint of the
|
|
55
|
-
# authorization server should return an HTTP response to the client application
|
|
56
|
-
# with the HTTP status code "`200 OK`" and the content type
|
|
57
|
-
# "`application/entity-statement+jwt`". The message body (= an entity
|
|
58
|
-
# configuration in the JWT format) of the response has been prepared by
|
|
59
|
-
# Authlete's `/federation/configuration` API and it is available as the
|
|
60
|
-
# `responseContent` response parameter.
|
|
61
|
-
# The implementation of the entity configuration endpoint can construct an
|
|
62
|
-
# HTTP response by doing like below.
|
|
63
|
-
# ```
|
|
64
|
-
# 200 OK
|
|
65
|
-
# Content-Type: application/entity-statement+jwt
|
|
66
|
-
# (Other HTTP headers)
|
|
67
|
-
# (the value of the responseContent response parameter)
|
|
68
|
-
# ```
|
|
69
|
-
# ### `NOT_FOUND`
|
|
70
|
-
# When the value of the `action` response
|
|
71
|
-
# parameter is `NOT_FOUND`, it means that
|
|
72
|
-
# the service configuration has not enabled the feature of [OpenID Connect
|
|
73
|
-
# Federation 1.0](https://openid.net/specs/openid-connect-federation-1_0.html) and so the client application should have not access the
|
|
74
|
-
# entity configuration endpoint.
|
|
75
|
-
# In this case, the implementation of the entity configuration endpoint of the
|
|
76
|
-
# authorization server should return an HTTP response to the client application
|
|
77
|
-
# with the HTTP status code "`404 Not Found`" and the content type
|
|
78
|
-
# "`application/json`". The message body (= error information in the JSON
|
|
79
|
-
# format) of the response has been prepared by Authlete's
|
|
80
|
-
# `/federation/configuration` API and it is available as the
|
|
81
|
-
# `responseContent` response parameter.
|
|
82
|
-
# The implementation of the entity configuration endpoint can construct an
|
|
83
|
-
# HTTP response by doing like below.
|
|
84
|
-
# ```
|
|
85
|
-
# 404 Not Found
|
|
86
|
-
# Content-Type: application/json
|
|
87
|
-
# (Other HTTP headers)
|
|
88
|
-
# (the value of the responseContent response parameter)
|
|
89
|
-
# ```
|
|
90
|
-
# ### `INTERNAL_SERVER_ERROR`
|
|
91
|
-
# could prepare an entity configuration successfully.
|
|
92
|
-
# In this case, the implementation of the entity configuration endpoint of the
|
|
93
|
-
# authorization server should return an HTTP response to the client application
|
|
94
|
-
# with the HTTP status code "`200 OK`" and the content type
|
|
95
|
-
# "`application/entity-statement+jwt`". The message body (= an entity
|
|
96
|
-
# configuration in the JWT format) of the response has been prepared by
|
|
97
|
-
# Authlete's `/federation/configuration` API and it is available as the
|
|
98
|
-
# `responseContent` response parameter.
|
|
99
|
-
# The implementation of the entity configuration endpoint can construct an
|
|
100
|
-
# HTTP response by doing like below.
|
|
101
|
-
# ```
|
|
102
|
-
# 200 OK
|
|
103
|
-
# Content-Type: application/entity-statement+jwt
|
|
104
|
-
# (Other HTTP headers)
|
|
105
|
-
# (the value of the responseContent response parameter)
|
|
106
|
-
# ```
|
|
107
|
-
#
|
|
52
|
+
#
|
|
108
53
|
request = Models::Operations::FederationConfigurationApiRequest.new(
|
|
109
54
|
service_id: service_id,
|
|
110
55
|
request_body: request_body
|
|
@@ -122,7 +67,7 @@ module Authlete
|
|
|
122
67
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :request_body, :json)
|
|
123
68
|
headers['content-type'] = req_content_type
|
|
124
69
|
|
|
125
|
-
if form
|
|
70
|
+
if form && !form.empty?
|
|
126
71
|
body = Utils.encode_form(form)
|
|
127
72
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
128
73
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -158,6 +103,9 @@ module Authlete
|
|
|
158
103
|
req.headers.merge!(headers)
|
|
159
104
|
req.options.timeout = timeout unless timeout.nil?
|
|
160
105
|
Utils.configure_request_security(req, security)
|
|
106
|
+
http_headers&.each do |key, value|
|
|
107
|
+
req.headers[key.to_s] = value
|
|
108
|
+
end
|
|
161
109
|
|
|
162
110
|
@sdk_configuration.hooks.before_request(
|
|
163
111
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -255,8 +203,8 @@ module Authlete
|
|
|
255
203
|
end
|
|
256
204
|
|
|
257
205
|
|
|
258
|
-
sig { params(federation_registration_request: Models::Components::FederationRegistrationRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::FederationRegistrationApiResponse) }
|
|
259
|
-
def registration(federation_registration_request:, service_id:, timeout_ms: nil)
|
|
206
|
+
sig { params(federation_registration_request: Models::Components::FederationRegistrationRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::FederationRegistrationApiResponse) }
|
|
207
|
+
def registration(federation_registration_request:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
260
208
|
# registration - Process Federation Registration Request
|
|
261
209
|
# The Authlete API is for implementations of the **federation registration
|
|
262
210
|
# endpoint** that accepts "explicit client registration". Its details are
|
|
@@ -279,7 +227,7 @@ module Authlete
|
|
|
279
227
|
# federation registration endpoint should call Authlete's
|
|
280
228
|
# `/federation/registration` API with the trust chain set to the
|
|
281
229
|
# `trustChain` request parameter.
|
|
282
|
-
#
|
|
230
|
+
#
|
|
283
231
|
request = Models::Operations::FederationRegistrationApiRequest.new(
|
|
284
232
|
service_id: service_id,
|
|
285
233
|
federation_registration_request: federation_registration_request
|
|
@@ -298,7 +246,7 @@ module Authlete
|
|
|
298
246
|
headers['content-type'] = req_content_type
|
|
299
247
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
300
248
|
|
|
301
|
-
if form
|
|
249
|
+
if form && !form.empty?
|
|
302
250
|
body = Utils.encode_form(form)
|
|
303
251
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
304
252
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -334,6 +282,9 @@ module Authlete
|
|
|
334
282
|
req.headers.merge!(headers)
|
|
335
283
|
req.options.timeout = timeout unless timeout.nil?
|
|
336
284
|
Utils.configure_request_security(req, security)
|
|
285
|
+
http_headers&.each do |key, value|
|
|
286
|
+
req.headers[key.to_s] = value
|
|
287
|
+
end
|
|
337
288
|
|
|
338
289
|
@sdk_configuration.hooks.before_request(
|
|
339
290
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -429,5 +380,5 @@ module Authlete
|
|
|
429
380
|
|
|
430
381
|
end
|
|
431
382
|
end
|
|
432
|
-
|
|
383
|
+
end
|
|
433
384
|
end
|
|
@@ -39,12 +39,14 @@ module Authlete
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(g_m_request: Models::Components::GMRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GrantMApiResponse) }
|
|
45
|
+
def process_request(g_m_request:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# process_request - Process Grant Management Request
|
|
45
47
|
# The API is for the implementation of the grant management endpoint which is
|
|
46
48
|
# defined in "[Grant Management for OAuth 2.0](https://openid.net/specs/fapi-grant-management.html)".
|
|
47
|
-
#
|
|
49
|
+
#
|
|
48
50
|
request = Models::Operations::GrantMApiRequest.new(
|
|
49
51
|
service_id: service_id,
|
|
50
52
|
g_m_request: g_m_request
|
|
@@ -63,7 +65,7 @@ module Authlete
|
|
|
63
65
|
headers['content-type'] = req_content_type
|
|
64
66
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
65
67
|
|
|
66
|
-
if form
|
|
68
|
+
if form && !form.empty?
|
|
67
69
|
body = Utils.encode_form(form)
|
|
68
70
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
69
71
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -99,6 +101,9 @@ module Authlete
|
|
|
99
101
|
req.headers.merge!(headers)
|
|
100
102
|
req.options.timeout = timeout unless timeout.nil?
|
|
101
103
|
Utils.configure_request_security(req, security)
|
|
104
|
+
http_headers&.each do |key, value|
|
|
105
|
+
req.headers[key.to_s] = value
|
|
106
|
+
end
|
|
102
107
|
|
|
103
108
|
@sdk_configuration.hooks.before_request(
|
|
104
109
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -194,5 +199,5 @@ module Authlete
|
|
|
194
199
|
|
|
195
200
|
end
|
|
196
201
|
end
|
|
197
|
-
|
|
202
|
+
end
|
|
198
203
|
end
|