authlete_ruby_test 0.0.1.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 +7 -0
- data/lib/authlete/authorization.rb +1062 -0
- data/lib/authlete/authorization_management.rb +349 -0
- data/lib/authlete/ciba.rb +1064 -0
- data/lib/authlete/client.rb +118 -0
- data/lib/authlete/client_management.rb +1703 -0
- data/lib/authlete/clients.rb +784 -0
- data/lib/authlete/device_flow.rb +647 -0
- data/lib/authlete/dynamic_client_registration.rb +939 -0
- data/lib/authlete/federation.rb +433 -0
- data/lib/authlete/grant_management.rb +198 -0
- data/lib/authlete/hardware_security_keys.rb +620 -0
- data/lib/authlete/introspection.rb +540 -0
- data/lib/authlete/jose_object.rb +196 -0
- data/lib/authlete/jwk_set_endpoint.rb +195 -0
- data/lib/authlete/models/callbacks.rb +12 -0
- data/lib/authlete/models/components/access_token.rb +85 -0
- data/lib/authlete/models/components/access_token.rbi +35 -0
- data/lib/authlete/models/components/application_type.rb +24 -0
- data/lib/authlete/models/components/application_type.rbi +11 -0
- data/lib/authlete/models/components/attachment_type.rb +25 -0
- data/lib/authlete/models/components/attachment_type.rbi +11 -0
- data/lib/authlete/models/components/authorization_details_element.rb +90 -0
- data/lib/authlete/models/components/authorization_details_element.rbi +25 -0
- data/lib/authlete/models/components/authorization_fail_request.rb +45 -0
- data/lib/authlete/models/components/authorization_fail_request.rbi +17 -0
- data/lib/authlete/models/components/authorization_fail_request_reason.rb +35 -0
- data/lib/authlete/models/components/authorization_fail_request_reason.rbi +11 -0
- data/lib/authlete/models/components/authorization_fail_response.rb +47 -0
- data/lib/authlete/models/components/authorization_fail_response.rbi +19 -0
- data/lib/authlete/models/components/authorization_fail_response_action.rb +24 -0
- data/lib/authlete/models/components/authorization_fail_response_action.rbi +11 -0
- data/lib/authlete/models/components/authorization_issue_request.rb +204 -0
- data/lib/authlete/models/components/authorization_issue_request.rbi +47 -0
- data/lib/authlete/models/components/authorization_issue_response.rb +86 -0
- data/lib/authlete/models/components/authorization_issue_response.rbi +33 -0
- data/lib/authlete/models/components/authorization_issue_response_action.rb +24 -0
- data/lib/authlete/models/components/authorization_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/authorization_request.rb +57 -0
- data/lib/authlete/models/components/authorization_request.rbi +17 -0
- data/lib/authlete/models/components/authorization_response.rb +485 -0
- data/lib/authlete/models/components/authorization_response.rbi +93 -0
- data/lib/authlete/models/components/authorization_response_action.rb +26 -0
- data/lib/authlete/models/components/authorization_response_action.rbi +11 -0
- data/lib/authlete/models/components/authorization_ticket_info.rb +34 -0
- data/lib/authlete/models/components/authorization_ticket_info.rbi +13 -0
- data/lib/authlete/models/components/authorization_ticket_info_request.rb +33 -0
- data/lib/authlete/models/components/authorization_ticket_info_request.rbi +13 -0
- data/lib/authlete/models/components/authorization_ticket_info_response.rb +45 -0
- data/lib/authlete/models/components/authorization_ticket_info_response.rbi +19 -0
- data/lib/authlete/models/components/authorization_ticket_info_response_action.rb +24 -0
- data/lib/authlete/models/components/authorization_ticket_info_response_action.rbi +11 -0
- data/lib/authlete/models/components/authorization_ticket_update_request.rb +37 -0
- data/lib/authlete/models/components/authorization_ticket_update_request.rbi +15 -0
- data/lib/authlete/models/components/authorization_ticket_update_response.rb +45 -0
- data/lib/authlete/models/components/authorization_ticket_update_response.rbi +19 -0
- data/lib/authlete/models/components/authorization_ticket_update_response_action.rb +24 -0
- data/lib/authlete/models/components/authorization_ticket_update_response_action.rbi +11 -0
- data/lib/authlete/models/components/authz_details.rb +37 -0
- data/lib/authlete/models/components/authz_details.rbi +13 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_request.rb +142 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_request.rbi +47 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_request_result.rb +25 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_request_result.rbi +11 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_response.rb +186 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_response.rbi +67 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_response_action.rb +24 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_response_action.rbi +11 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_request.rb +56 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_request.rbi +19 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_request_reason.rb +32 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_request_reason.rbi +11 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_response.rb +47 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_response.rbi +19 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_response_action.rb +23 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_response_action.rbi +11 -0
- data/lib/authlete/models/components/backchannel_authentication_issue_request.rb +34 -0
- data/lib/authlete/models/components/backchannel_authentication_issue_request.rbi +13 -0
- data/lib/authlete/models/components/backchannel_authentication_issue_response.rb +63 -0
- data/lib/authlete/models/components/backchannel_authentication_issue_response.rbi +25 -0
- data/lib/authlete/models/components/backchannel_authentication_issue_response_action.rb +23 -0
- data/lib/authlete/models/components/backchannel_authentication_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/backchannel_authentication_request.rb +91 -0
- data/lib/authlete/models/components/backchannel_authentication_request.rbi +27 -0
- data/lib/authlete/models/components/backchannel_authentication_response.rb +272 -0
- data/lib/authlete/models/components/backchannel_authentication_response.rbi +85 -0
- data/lib/authlete/models/components/backchannel_authentication_response_action.rb +24 -0
- data/lib/authlete/models/components/backchannel_authentication_response_action.rbi +11 -0
- data/lib/authlete/models/components/cimd_options.rb +67 -0
- data/lib/authlete/models/components/cimd_options.rbi +17 -0
- data/lib/authlete/models/components/claim_type.rb +23 -0
- data/lib/authlete/models/components/claim_type.rbi +11 -0
- data/lib/authlete/models/components/client.rb +920 -0
- data/lib/authlete/models/components/client.rbi +219 -0
- data/lib/authlete/models/components/client_auth_method.rb +31 -0
- data/lib/authlete/models/components/client_auth_method.rbi +11 -0
- data/lib/authlete/models/components/client_authorization_delete_response.rb +71 -0
- data/lib/authlete/models/components/client_authorization_delete_response.rbi +27 -0
- data/lib/authlete/models/components/client_authorization_get_list_response.rb +59 -0
- data/lib/authlete/models/components/client_authorization_get_list_response.rbi +23 -0
- data/lib/authlete/models/components/client_authorization_update_request.rb +43 -0
- data/lib/authlete/models/components/client_authorization_update_request.rbi +15 -0
- data/lib/authlete/models/components/client_authorization_update_response.rb +37 -0
- data/lib/authlete/models/components/client_authorization_update_response.rbi +15 -0
- data/lib/authlete/models/components/client_extension.rb +94 -0
- data/lib/authlete/models/components/client_extension.rbi +23 -0
- data/lib/authlete/models/components/client_extension_requestable_scopes_get_response.rb +33 -0
- data/lib/authlete/models/components/client_extension_requestable_scopes_get_response.rbi +13 -0
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_request.rb +43 -0
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_request.rbi +13 -0
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_response.rb +33 -0
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_response.rbi +13 -0
- data/lib/authlete/models/components/client_flag_update_request.rb +34 -0
- data/lib/authlete/models/components/client_flag_update_request.rbi +13 -0
- data/lib/authlete/models/components/client_flag_update_response.rb +37 -0
- data/lib/authlete/models/components/client_flag_update_response.rbi +15 -0
- data/lib/authlete/models/components/client_get_list_response.rb +50 -0
- data/lib/authlete/models/components/client_get_list_response.rbi +19 -0
- data/lib/authlete/models/components/client_granted_scopes_delete_response.rb +37 -0
- data/lib/authlete/models/components/client_granted_scopes_delete_response.rbi +15 -0
- data/lib/authlete/models/components/client_input.rb +868 -0
- data/lib/authlete/models/components/client_input.rbi +203 -0
- data/lib/authlete/models/components/client_limited.rb +76 -0
- data/lib/authlete/models/components/client_limited.rbi +29 -0
- data/lib/authlete/models/components/client_limited_authorization.rb +120 -0
- data/lib/authlete/models/components/client_limited_authorization.rbi +41 -0
- data/lib/authlete/models/components/client_registration_response.rb +52 -0
- data/lib/authlete/models/components/client_registration_response.rbi +21 -0
- data/lib/authlete/models/components/client_registration_response_action.rb +28 -0
- data/lib/authlete/models/components/client_registration_response_action.rbi +11 -0
- data/lib/authlete/models/components/client_registration_type.rb +25 -0
- data/lib/authlete/models/components/client_registration_type.rbi +11 -0
- data/lib/authlete/models/components/client_secret_refresh_response.rb +47 -0
- data/lib/authlete/models/components/client_secret_refresh_response.rbi +19 -0
- data/lib/authlete/models/components/client_secret_update_request.rb +35 -0
- data/lib/authlete/models/components/client_secret_update_request.rbi +13 -0
- data/lib/authlete/models/components/client_secret_update_response.rb +47 -0
- data/lib/authlete/models/components/client_secret_update_response.rbi +19 -0
- data/lib/authlete/models/components/client_type.rb +24 -0
- data/lib/authlete/models/components/client_type.rbi +11 -0
- data/lib/authlete/models/components/clientsource.rb +26 -0
- data/lib/authlete/models/components/clientsource.rbi +11 -0
- data/lib/authlete/models/components/credential_issuance_order.rb +51 -0
- data/lib/authlete/models/components/credential_issuance_order.rbi +21 -0
- data/lib/authlete/models/components/credential_issuer_metadata.rb +79 -0
- data/lib/authlete/models/components/credential_issuer_metadata.rbi +29 -0
- data/lib/authlete/models/components/credential_offer_info.rb +136 -0
- data/lib/authlete/models/components/credential_offer_info.rbi +49 -0
- data/lib/authlete/models/components/credential_request_info.rb +49 -0
- data/lib/authlete/models/components/credential_request_info.rbi +21 -0
- data/lib/authlete/models/components/delivery_mode.rb +23 -0
- data/lib/authlete/models/components/delivery_mode.rbi +11 -0
- data/lib/authlete/models/components/device_authorization_request.rb +91 -0
- data/lib/authlete/models/components/device_authorization_request.rbi +27 -0
- data/lib/authlete/models/components/device_authorization_response.rb +243 -0
- data/lib/authlete/models/components/device_authorization_response.rbi +75 -0
- data/lib/authlete/models/components/device_authorization_response_action.rb +24 -0
- data/lib/authlete/models/components/device_authorization_response_action.rbi +11 -0
- data/lib/authlete/models/components/device_complete_request.rb +137 -0
- data/lib/authlete/models/components/device_complete_request.rbi +45 -0
- data/lib/authlete/models/components/device_complete_request_result.rb +25 -0
- data/lib/authlete/models/components/device_complete_request_result.rbi +11 -0
- data/lib/authlete/models/components/device_complete_response.rb +42 -0
- data/lib/authlete/models/components/device_complete_response.rbi +17 -0
- data/lib/authlete/models/components/device_complete_response_action.rb +26 -0
- data/lib/authlete/models/components/device_complete_response_action.rbi +11 -0
- data/lib/authlete/models/components/device_verification_request.rb +34 -0
- data/lib/authlete/models/components/device_verification_request.rbi +13 -0
- data/lib/authlete/models/components/device_verification_response.rb +188 -0
- data/lib/authlete/models/components/device_verification_response.rbi +59 -0
- data/lib/authlete/models/components/device_verification_response_action.rb +24 -0
- data/lib/authlete/models/components/device_verification_response_action.rbi +11 -0
- data/lib/authlete/models/components/display.rb +33 -0
- data/lib/authlete/models/components/display.rbi +11 -0
- data/lib/authlete/models/components/dynamic_scope.rb +37 -0
- data/lib/authlete/models/components/dynamic_scope.rbi +15 -0
- data/lib/authlete/models/components/fapi_mode.rb +26 -0
- data/lib/authlete/models/components/fapi_mode.rbi +11 -0
- data/lib/authlete/models/components/federation_configuration_response.rb +47 -0
- data/lib/authlete/models/components/federation_configuration_response.rbi +19 -0
- data/lib/authlete/models/components/federation_configuration_response_action.rb +23 -0
- data/lib/authlete/models/components/federation_configuration_response_action.rbi +11 -0
- data/lib/authlete/models/components/federation_registration_request.rb +39 -0
- data/lib/authlete/models/components/federation_registration_request.rbi +15 -0
- data/lib/authlete/models/components/federation_registration_response.rb +51 -0
- data/lib/authlete/models/components/federation_registration_response.rbi +21 -0
- data/lib/authlete/models/components/federation_registration_response_action.rb +24 -0
- data/lib/authlete/models/components/federation_registration_response_action.rbi +11 -0
- data/lib/authlete/models/components/g_m_request.rb +90 -0
- data/lib/authlete/models/components/g_m_request.rbi +27 -0
- data/lib/authlete/models/components/g_m_response.rb +53 -0
- data/lib/authlete/models/components/g_m_response.rbi +21 -0
- data/lib/authlete/models/components/g_m_response_action.rb +27 -0
- data/lib/authlete/models/components/g_m_response_action.rbi +11 -0
- data/lib/authlete/models/components/grant.rb +45 -0
- data/lib/authlete/models/components/grant.rbi +17 -0
- data/lib/authlete/models/components/grant_management_action.rb +29 -0
- data/lib/authlete/models/components/grant_management_action.rbi +11 -0
- data/lib/authlete/models/components/grant_scope.rb +39 -0
- data/lib/authlete/models/components/grant_scope.rbi +15 -0
- data/lib/authlete/models/components/grant_type.rb +31 -0
- data/lib/authlete/models/components/grant_type.rbi +11 -0
- data/lib/authlete/models/components/hsk.rb +71 -0
- data/lib/authlete/models/components/hsk.rbi +25 -0
- data/lib/authlete/models/components/hsk_create_request.rb +63 -0
- data/lib/authlete/models/components/hsk_create_request.rbi +21 -0
- data/lib/authlete/models/components/hsk_create_response.rb +46 -0
- data/lib/authlete/models/components/hsk_create_response.rbi +19 -0
- data/lib/authlete/models/components/hsk_create_response_action.rb +24 -0
- data/lib/authlete/models/components/hsk_create_response_action.rbi +11 -0
- data/lib/authlete/models/components/hsk_delete_response.rb +46 -0
- data/lib/authlete/models/components/hsk_delete_response.rbi +19 -0
- data/lib/authlete/models/components/hsk_delete_response_action.rb +24 -0
- data/lib/authlete/models/components/hsk_delete_response_action.rbi +11 -0
- data/lib/authlete/models/components/hsk_get_list_response.rb +45 -0
- data/lib/authlete/models/components/hsk_get_list_response.rbi +19 -0
- data/lib/authlete/models/components/hsk_get_list_response_action.rb +23 -0
- data/lib/authlete/models/components/hsk_get_list_response_action.rbi +11 -0
- data/lib/authlete/models/components/hsk_get_response.rb +46 -0
- data/lib/authlete/models/components/hsk_get_response.rbi +19 -0
- data/lib/authlete/models/components/hsk_get_response_action.rb +24 -0
- data/lib/authlete/models/components/hsk_get_response_action.rbi +11 -0
- data/lib/authlete/models/components/idtoken_reissue_request.rb +82 -0
- data/lib/authlete/models/components/idtoken_reissue_request.rbi +23 -0
- data/lib/authlete/models/components/idtoken_reissue_response.rb +52 -0
- data/lib/authlete/models/components/idtoken_reissue_response.rbi +21 -0
- data/lib/authlete/models/components/idtoken_reissue_response_action.rb +23 -0
- data/lib/authlete/models/components/idtoken_reissue_response_action.rbi +11 -0
- data/lib/authlete/models/components/introspection_request.rb +166 -0
- data/lib/authlete/models/components/introspection_request.rbi +45 -0
- data/lib/authlete/models/components/introspection_response.rb +253 -0
- data/lib/authlete/models/components/introspection_response.rbi +89 -0
- data/lib/authlete/models/components/introspection_response_action.rb +25 -0
- data/lib/authlete/models/components/introspection_response_action.rbi +11 -0
- data/lib/authlete/models/components/jose_verify_request.rb +56 -0
- data/lib/authlete/models/components/jose_verify_request.rbi +21 -0
- data/lib/authlete/models/components/jose_verify_response.rb +62 -0
- data/lib/authlete/models/components/jose_verify_response.rbi +25 -0
- data/lib/authlete/models/components/jwe_alg.rb +44 -0
- data/lib/authlete/models/components/jwe_alg.rbi +11 -0
- data/lib/authlete/models/components/jwe_enc.rb +31 -0
- data/lib/authlete/models/components/jwe_enc.rbi +11 -0
- data/lib/authlete/models/components/jws_alg.rb +42 -0
- data/lib/authlete/models/components/jws_alg.rbi +11 -0
- data/lib/authlete/models/components/named_uri.rb +37 -0
- data/lib/authlete/models/components/named_uri.rbi +15 -0
- data/lib/authlete/models/components/native_sso_logout_request.rb +34 -0
- data/lib/authlete/models/components/native_sso_logout_request.rbi +13 -0
- data/lib/authlete/models/components/native_sso_logout_response.rb +47 -0
- data/lib/authlete/models/components/native_sso_logout_response.rbi +19 -0
- data/lib/authlete/models/components/native_sso_logout_response_action.rb +24 -0
- data/lib/authlete/models/components/native_sso_logout_response_action.rbi +11 -0
- data/lib/authlete/models/components/native_sso_request.rb +97 -0
- data/lib/authlete/models/components/native_sso_request.rbi +27 -0
- data/lib/authlete/models/components/native_sso_response.rb +53 -0
- data/lib/authlete/models/components/native_sso_response.rbi +21 -0
- data/lib/authlete/models/components/native_sso_response_action.rb +24 -0
- data/lib/authlete/models/components/native_sso_response_action.rbi +11 -0
- data/lib/authlete/models/components/pair.rb +37 -0
- data/lib/authlete/models/components/pair.rbi +15 -0
- data/lib/authlete/models/components/prompt.rb +30 -0
- data/lib/authlete/models/components/prompt.rbi +11 -0
- data/lib/authlete/models/components/property.rb +43 -0
- data/lib/authlete/models/components/property.rbi +17 -0
- data/lib/authlete/models/components/pushed_authorization_request.rb +91 -0
- data/lib/authlete/models/components/pushed_authorization_request.rbi +33 -0
- data/lib/authlete/models/components/pushed_authorization_response.rb +65 -0
- data/lib/authlete/models/components/pushed_authorization_response.rbi +25 -0
- data/lib/authlete/models/components/pushed_authorization_response_action.rb +26 -0
- data/lib/authlete/models/components/pushed_authorization_response_action.rbi +11 -0
- data/lib/authlete/models/components/pushed_authorization_response_clientauthmethod.rb +30 -0
- data/lib/authlete/models/components/pushed_authorization_response_clientauthmethod.rbi +11 -0
- data/lib/authlete/models/components/response_type.rb +28 -0
- data/lib/authlete/models/components/response_type.rbi +11 -0
- data/lib/authlete/models/components/responsemode.rb +27 -0
- data/lib/authlete/models/components/responsemode.rbi +11 -0
- data/lib/authlete/models/components/revocation_request.rb +79 -0
- data/lib/authlete/models/components/revocation_request.rbi +25 -0
- data/lib/authlete/models/components/revocation_response.rb +47 -0
- data/lib/authlete/models/components/revocation_response.rbi +19 -0
- data/lib/authlete/models/components/revocation_response_action.rb +24 -0
- data/lib/authlete/models/components/revocation_response_action.rbi +11 -0
- data/lib/authlete/models/components/scope.rb +49 -0
- data/lib/authlete/models/components/scope.rbi +21 -0
- data/lib/authlete/models/components/security.rb +33 -0
- data/lib/authlete/models/components/security.rbi +13 -0
- data/lib/authlete/models/components/service.rb +1634 -0
- data/lib/authlete/models/components/service.rbi +377 -0
- data/lib/authlete/models/components/service_get_list_response.rb +52 -0
- data/lib/authlete/models/components/service_get_list_response.rbi +19 -0
- data/lib/authlete/models/components/service_input.rb +1594 -0
- data/lib/authlete/models/components/service_input.rbi +363 -0
- data/lib/authlete/models/components/service_jwks_get_response.rb +33 -0
- data/lib/authlete/models/components/service_jwks_get_response.rbi +13 -0
- data/lib/authlete/models/components/service_profile.rb +22 -0
- data/lib/authlete/models/components/service_profile.rbi +11 -0
- data/lib/authlete/models/components/sns_credentials.rb +41 -0
- data/lib/authlete/models/components/sns_credentials.rbi +17 -0
- data/lib/authlete/models/components/standard_introspection_request.rb +129 -0
- data/lib/authlete/models/components/standard_introspection_request.rbi +31 -0
- data/lib/authlete/models/components/standard_introspection_response.rb +47 -0
- data/lib/authlete/models/components/standard_introspection_response.rbi +19 -0
- data/lib/authlete/models/components/standard_introspection_response_action.rb +23 -0
- data/lib/authlete/models/components/standard_introspection_response_action.rbi +11 -0
- data/lib/authlete/models/components/subject_type.rb +27 -0
- data/lib/authlete/models/components/subject_type.rbi +11 -0
- data/lib/authlete/models/components/supportedsnse.rb +21 -0
- data/lib/authlete/models/components/supportedsnse.rbi +11 -0
- data/lib/authlete/models/components/tagged_value.rb +37 -0
- data/lib/authlete/models/components/tagged_value.rbi +15 -0
- data/lib/authlete/models/components/token_create_request.rb +206 -0
- data/lib/authlete/models/components/token_create_request.rbi +57 -0
- data/lib/authlete/models/components/token_create_response.rb +135 -0
- data/lib/authlete/models/components/token_create_response.rbi +51 -0
- data/lib/authlete/models/components/token_create_response_action.rb +24 -0
- data/lib/authlete/models/components/token_create_response_action.rbi +11 -0
- data/lib/authlete/models/components/token_fail_request.rb +39 -0
- data/lib/authlete/models/components/token_fail_request.rbi +15 -0
- data/lib/authlete/models/components/token_fail_request_reason.rb +24 -0
- data/lib/authlete/models/components/token_fail_request_reason.rbi +11 -0
- data/lib/authlete/models/components/token_fail_response.rb +47 -0
- data/lib/authlete/models/components/token_fail_response.rbi +19 -0
- data/lib/authlete/models/components/token_fail_response_action.rb +22 -0
- data/lib/authlete/models/components/token_fail_response_action.rbi +11 -0
- data/lib/authlete/models/components/token_get_list_response.rb +58 -0
- data/lib/authlete/models/components/token_get_list_response.rbi +23 -0
- data/lib/authlete/models/components/token_info.rb +89 -0
- data/lib/authlete/models/components/token_info.rbi +37 -0
- data/lib/authlete/models/components/token_issue_request.rb +74 -0
- data/lib/authlete/models/components/token_issue_request.rbi +25 -0
- data/lib/authlete/models/components/token_issue_response.rb +169 -0
- data/lib/authlete/models/components/token_issue_response.rbi +63 -0
- data/lib/authlete/models/components/token_issue_response_action.rb +22 -0
- data/lib/authlete/models/components/token_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/token_request.rb +153 -0
- data/lib/authlete/models/components/token_request.rbi +45 -0
- data/lib/authlete/models/components/token_response.rb +333 -0
- data/lib/authlete/models/components/token_response.rbi +115 -0
- data/lib/authlete/models/components/token_response_action.rb +27 -0
- data/lib/authlete/models/components/token_response_action.rbi +11 -0
- data/lib/authlete/models/components/token_revoke_request.rb +56 -0
- data/lib/authlete/models/components/token_revoke_request.rbi +19 -0
- data/lib/authlete/models/components/token_revoke_response.rb +41 -0
- data/lib/authlete/models/components/token_revoke_response.rbi +17 -0
- data/lib/authlete/models/components/token_type.rb +32 -0
- data/lib/authlete/models/components/token_type.rbi +11 -0
- data/lib/authlete/models/components/token_update_request.rb +133 -0
- data/lib/authlete/models/components/token_update_request.rbi +41 -0
- data/lib/authlete/models/components/token_update_response.rb +89 -0
- data/lib/authlete/models/components/token_update_response.rbi +35 -0
- data/lib/authlete/models/components/token_update_response_action.rb +25 -0
- data/lib/authlete/models/components/token_update_response_action.rbi +11 -0
- data/lib/authlete/models/components/trust_anchor.rb +39 -0
- data/lib/authlete/models/components/trust_anchor.rbi +15 -0
- data/lib/authlete/models/components/user_code_charset.rb +23 -0
- data/lib/authlete/models/components/user_code_charset.rbi +11 -0
- data/lib/authlete/models/components/userinfo_issue_request.rb +127 -0
- data/lib/authlete/models/components/userinfo_issue_request.rbi +25 -0
- data/lib/authlete/models/components/userinfo_issue_response.rb +62 -0
- data/lib/authlete/models/components/userinfo_issue_response.rbi +25 -0
- data/lib/authlete/models/components/userinfo_issue_response_action.rb +26 -0
- data/lib/authlete/models/components/userinfo_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/userinfo_request.rb +128 -0
- data/lib/authlete/models/components/userinfo_request.rbi +33 -0
- data/lib/authlete/models/components/userinfo_response.rb +256 -0
- data/lib/authlete/models/components/userinfo_response.rbi +59 -0
- data/lib/authlete/models/components/userinfo_response_action.rb +25 -0
- data/lib/authlete/models/components/userinfo_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_batch_issue_request.rb +37 -0
- data/lib/authlete/models/components/vci_batch_issue_request.rbi +15 -0
- data/lib/authlete/models/components/vci_batch_issue_response.rb +49 -0
- data/lib/authlete/models/components/vci_batch_issue_response.rbi +19 -0
- data/lib/authlete/models/components/vci_batch_issue_response_action.rb +27 -0
- data/lib/authlete/models/components/vci_batch_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_batch_parse_request.rb +37 -0
- data/lib/authlete/models/components/vci_batch_parse_request.rbi +15 -0
- data/lib/authlete/models/components/vci_batch_parse_response.rb +51 -0
- data/lib/authlete/models/components/vci_batch_parse_response.rbi +21 -0
- data/lib/authlete/models/components/vci_batch_parse_response_action.rb +25 -0
- data/lib/authlete/models/components/vci_batch_parse_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_deferred_issue_request.rb +33 -0
- data/lib/authlete/models/components/vci_deferred_issue_request.rbi +13 -0
- data/lib/authlete/models/components/vci_deferred_issue_response.rb +49 -0
- data/lib/authlete/models/components/vci_deferred_issue_response.rbi +19 -0
- data/lib/authlete/models/components/vci_deferred_issue_response_action.rb +26 -0
- data/lib/authlete/models/components/vci_deferred_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_deferred_parse_request.rb +37 -0
- data/lib/authlete/models/components/vci_deferred_parse_request.rbi +15 -0
- data/lib/authlete/models/components/vci_deferred_parse_response.rb +49 -0
- data/lib/authlete/models/components/vci_deferred_parse_response.rbi +21 -0
- data/lib/authlete/models/components/vci_deferred_parse_response_action.rb +25 -0
- data/lib/authlete/models/components/vci_deferred_parse_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_jwks_request.rb +35 -0
- data/lib/authlete/models/components/vci_jwks_request.rbi +13 -0
- data/lib/authlete/models/components/vci_jwks_response.rb +50 -0
- data/lib/authlete/models/components/vci_jwks_response.rbi +19 -0
- data/lib/authlete/models/components/vci_jwks_response_action.rb +26 -0
- data/lib/authlete/models/components/vci_jwks_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_jwtissuer_request.rb +35 -0
- data/lib/authlete/models/components/vci_jwtissuer_request.rbi +13 -0
- data/lib/authlete/models/components/vci_jwtissuer_response.rb +50 -0
- data/lib/authlete/models/components/vci_jwtissuer_response.rbi +19 -0
- data/lib/authlete/models/components/vci_jwtissuer_response_action.rb +26 -0
- data/lib/authlete/models/components/vci_jwtissuer_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_metadata_request.rb +35 -0
- data/lib/authlete/models/components/vci_metadata_request.rbi +13 -0
- data/lib/authlete/models/components/vci_metadata_response.rb +51 -0
- data/lib/authlete/models/components/vci_metadata_response.rbi +19 -0
- data/lib/authlete/models/components/vci_metadata_response_action.rb +27 -0
- data/lib/authlete/models/components/vci_metadata_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_offer_create_request.rb +172 -0
- data/lib/authlete/models/components/vci_offer_create_request.rbi +39 -0
- data/lib/authlete/models/components/vci_offer_create_response.rb +45 -0
- data/lib/authlete/models/components/vci_offer_create_response.rbi +19 -0
- data/lib/authlete/models/components/vci_offer_create_response_action.rb +24 -0
- data/lib/authlete/models/components/vci_offer_create_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_offer_info_request.rb +33 -0
- data/lib/authlete/models/components/vci_offer_info_request.rbi +13 -0
- data/lib/authlete/models/components/vci_offer_info_response.rb +45 -0
- data/lib/authlete/models/components/vci_offer_info_response.rbi +19 -0
- data/lib/authlete/models/components/vci_offer_info_response_action.rb +25 -0
- data/lib/authlete/models/components/vci_offer_info_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_single_issue_request.rb +37 -0
- data/lib/authlete/models/components/vci_single_issue_request.rbi +15 -0
- data/lib/authlete/models/components/vci_single_issue_response.rb +54 -0
- data/lib/authlete/models/components/vci_single_issue_response.rbi +21 -0
- data/lib/authlete/models/components/vci_single_issue_response_action.rb +28 -0
- data/lib/authlete/models/components/vci_single_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_single_parse_request.rb +37 -0
- data/lib/authlete/models/components/vci_single_parse_request.rbi +15 -0
- data/lib/authlete/models/components/vci_single_parse_response.rb +49 -0
- data/lib/authlete/models/components/vci_single_parse_response.rbi +21 -0
- data/lib/authlete/models/components/vci_single_parse_response_action.rb +25 -0
- data/lib/authlete/models/components/vci_single_parse_response_action.rbi +11 -0
- data/lib/authlete/models/components/verified_claims_validation_schema.rb +23 -0
- data/lib/authlete/models/components/verified_claims_validation_schema.rbi +11 -0
- data/lib/authlete/models/components.rb +221 -0
- data/lib/authlete/models/errors/apierror.rb +37 -0
- data/lib/authlete/models/errors/apierror.rbi +16 -0
- data/lib/authlete/models/errors/result_error.rb +41 -0
- data/lib/authlete/models/errors/result_error.rbi +17 -0
- data/lib/authlete/models/errors.rb +13 -0
- data/lib/authlete/models/operations/auth_authorization_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_authorization_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_authorization_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_authorization_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_authorization_fail_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_authorization_fail_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_authorization_fail_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_authorization_fail_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_authorization_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_authorization_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_authorization_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_authorization_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_introspection_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_introspection_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_introspection_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_introspection_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_introspection_standard_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_introspection_standard_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_introspection_standard_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_introspection_standard_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_revocation_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_revocation_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_revocation_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_revocation_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_token_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_create_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_token_create_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_create_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_create_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_delete_api_request.rb +39 -0
- data/lib/authlete/models/operations/auth_token_delete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_delete_api_response.rb +41 -0
- data/lib/authlete/models/operations/auth_token_delete_api_response.rbi +17 -0
- data/lib/authlete/models/operations/auth_token_fail_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_token_fail_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_fail_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_fail_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_get_list_api_request.rb +52 -0
- data/lib/authlete/models/operations/auth_token_get_list_api_request.rbi +21 -0
- data/lib/authlete/models/operations/auth_token_get_list_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_get_list_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_token_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_revoke_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_token_revoke_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_revoke_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_revoke_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_update_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_token_update_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_userinfo_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_userinfo_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_userinfo_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_userinfo_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_userinfo_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_userinfo_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_userinfo_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_userinfo_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_request.rb +37 -0
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_request.rbi +15 -0
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_response.rb +45 -0
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_response.rbi +19 -0
- data/lib/authlete/models/operations/backchannel_authentication_api_request.rb +37 -0
- data/lib/authlete/models/operations/backchannel_authentication_api_request.rbi +15 -0
- data/lib/authlete/models/operations/backchannel_authentication_api_response.rb +45 -0
- data/lib/authlete/models/operations/backchannel_authentication_api_response.rbi +19 -0
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_request.rb +37 -0
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_response.rb +45 -0
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_response.rbi +19 -0
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_request.rb +37 -0
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_request.rbi +15 -0
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_response.rb +45 -0
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_response.rbi +19 -0
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_request.rb +48 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_request.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_request.rb +57 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_request.rbi +23 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_update_api_request.rb +42 -0
- data/lib/authlete/models/operations/client_authorization_update_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_authorization_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_authorization_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_create_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_create_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_create_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_create_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_delete_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_delete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_delete_api_response.rb +41 -0
- data/lib/authlete/models/operations/client_delete_api_response.rbi +17 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_request.rb +38 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_response.rb +41 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_response.rbi +17 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_request.rb +38 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_request.rb +42 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_flag_update_api_request.rb +41 -0
- data/lib/authlete/models/operations/client_flag_update_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_flag_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_flag_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_get_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_get_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_get_list_api_request.rb +48 -0
- data/lib/authlete/models/operations/client_get_list_api_request.rbi +19 -0
- data/lib/authlete/models/operations/client_get_list_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_get_list_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_request.rb +48 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_request.rbi +19 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_request.rb +48 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_request.rbi +19 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_registration_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_registration_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_registration_api_requestbody.rb +45 -0
- data/lib/authlete/models/operations/client_registration_api_requestbody.rbi +17 -0
- data/lib/authlete/models/operations/client_registration_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_registration_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_registration_delete_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_registration_delete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_registration_delete_api_requestbody.rb +45 -0
- data/lib/authlete/models/operations/client_registration_delete_api_requestbody.rbi +17 -0
- data/lib/authlete/models/operations/client_registration_delete_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_registration_delete_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_registration_get_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_registration_get_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_registration_get_api_requestbody.rb +45 -0
- data/lib/authlete/models/operations/client_registration_get_api_requestbody.rbi +17 -0
- data/lib/authlete/models/operations/client_registration_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_registration_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_registration_update_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_registration_update_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_registration_update_api_requestbody.rb +45 -0
- data/lib/authlete/models/operations/client_registration_update_api_requestbody.rbi +17 -0
- data/lib/authlete/models/operations/client_registration_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_registration_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_secret_refresh_api_request.rb +38 -0
- data/lib/authlete/models/operations/client_secret_refresh_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_secret_refresh_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_secret_refresh_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_secret_update_api_request.rb +42 -0
- data/lib/authlete/models/operations/client_secret_update_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_secret_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_secret_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_update_api_request.rb +41 -0
- data/lib/authlete/models/operations/client_update_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/device_authorization_api_request.rb +37 -0
- data/lib/authlete/models/operations/device_authorization_api_request.rbi +15 -0
- data/lib/authlete/models/operations/device_authorization_api_response.rb +45 -0
- data/lib/authlete/models/operations/device_authorization_api_response.rbi +19 -0
- data/lib/authlete/models/operations/device_complete_api_request.rb +37 -0
- data/lib/authlete/models/operations/device_complete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/device_complete_api_response.rb +45 -0
- data/lib/authlete/models/operations/device_complete_api_response.rbi +19 -0
- data/lib/authlete/models/operations/device_verification_api_request.rb +37 -0
- data/lib/authlete/models/operations/device_verification_api_request.rbi +15 -0
- data/lib/authlete/models/operations/device_verification_api_response.rb +45 -0
- data/lib/authlete/models/operations/device_verification_api_response.rbi +19 -0
- data/lib/authlete/models/operations/federation_configuration_api_request.rb +37 -0
- data/lib/authlete/models/operations/federation_configuration_api_request.rbi +15 -0
- data/lib/authlete/models/operations/federation_configuration_api_requestbody.rb +28 -0
- data/lib/authlete/models/operations/federation_configuration_api_requestbody.rbi +11 -0
- data/lib/authlete/models/operations/federation_configuration_api_response.rb +45 -0
- data/lib/authlete/models/operations/federation_configuration_api_response.rbi +19 -0
- data/lib/authlete/models/operations/federation_registration_api_request.rb +37 -0
- data/lib/authlete/models/operations/federation_registration_api_request.rbi +15 -0
- data/lib/authlete/models/operations/federation_registration_api_response.rb +45 -0
- data/lib/authlete/models/operations/federation_registration_api_response.rbi +19 -0
- data/lib/authlete/models/operations/grant_m_api_request.rb +37 -0
- data/lib/authlete/models/operations/grant_m_api_request.rbi +15 -0
- data/lib/authlete/models/operations/grant_m_api_response.rb +45 -0
- data/lib/authlete/models/operations/grant_m_api_response.rbi +19 -0
- data/lib/authlete/models/operations/hsk_create_api_request.rb +37 -0
- data/lib/authlete/models/operations/hsk_create_api_request.rbi +15 -0
- data/lib/authlete/models/operations/hsk_create_api_response.rb +45 -0
- data/lib/authlete/models/operations/hsk_create_api_response.rbi +19 -0
- data/lib/authlete/models/operations/hsk_delete_api_request.rb +37 -0
- data/lib/authlete/models/operations/hsk_delete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/hsk_delete_api_response.rb +45 -0
- data/lib/authlete/models/operations/hsk_delete_api_response.rbi +19 -0
- data/lib/authlete/models/operations/hsk_get_api_request.rb +37 -0
- data/lib/authlete/models/operations/hsk_get_api_request.rbi +15 -0
- data/lib/authlete/models/operations/hsk_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/hsk_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/hsk_get_list_api_request.rb +33 -0
- data/lib/authlete/models/operations/hsk_get_list_api_request.rbi +13 -0
- data/lib/authlete/models/operations/hsk_get_list_api_response.rb +45 -0
- data/lib/authlete/models/operations/hsk_get_list_api_response.rbi +19 -0
- data/lib/authlete/models/operations/idtoken_reissue_api_request.rb +37 -0
- data/lib/authlete/models/operations/idtoken_reissue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/idtoken_reissue_api_response.rb +45 -0
- data/lib/authlete/models/operations/idtoken_reissue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/jose_verify_api_request.rb +37 -0
- data/lib/authlete/models/operations/jose_verify_api_request.rbi +15 -0
- data/lib/authlete/models/operations/jose_verify_api_response.rb +45 -0
- data/lib/authlete/models/operations/jose_verify_api_response.rbi +19 -0
- data/lib/authlete/models/operations/native_sso_api_request.rb +37 -0
- data/lib/authlete/models/operations/native_sso_api_request.rbi +15 -0
- data/lib/authlete/models/operations/native_sso_api_response.rb +45 -0
- data/lib/authlete/models/operations/native_sso_api_response.rbi +19 -0
- data/lib/authlete/models/operations/native_sso_logout_api_request.rb +37 -0
- data/lib/authlete/models/operations/native_sso_logout_api_request.rbi +15 -0
- data/lib/authlete/models/operations/native_sso_logout_api_response.rb +45 -0
- data/lib/authlete/models/operations/native_sso_logout_api_response.rbi +19 -0
- data/lib/authlete/models/operations/pushed_auth_req_api_request.rb +37 -0
- data/lib/authlete/models/operations/pushed_auth_req_api_request.rbi +15 -0
- data/lib/authlete/models/operations/pushed_auth_req_api_response.rb +45 -0
- data/lib/authlete/models/operations/pushed_auth_req_api_response.rbi +19 -0
- data/lib/authlete/models/operations/service_configuration_api_request.rb +41 -0
- data/lib/authlete/models/operations/service_configuration_api_request.rbi +17 -0
- data/lib/authlete/models/operations/service_configuration_api_response.rb +45 -0
- data/lib/authlete/models/operations/service_configuration_api_response.rbi +19 -0
- data/lib/authlete/models/operations/service_configuration_api_responsebody.rb +29 -0
- data/lib/authlete/models/operations/service_configuration_api_responsebody.rbi +11 -0
- data/lib/authlete/models/operations/service_create_api_response.rb +45 -0
- data/lib/authlete/models/operations/service_create_api_response.rbi +19 -0
- data/lib/authlete/models/operations/service_delete_api_request.rb +33 -0
- data/lib/authlete/models/operations/service_delete_api_request.rbi +13 -0
- data/lib/authlete/models/operations/service_delete_api_response.rb +41 -0
- data/lib/authlete/models/operations/service_delete_api_response.rbi +17 -0
- data/lib/authlete/models/operations/service_get_api_request.rb +33 -0
- data/lib/authlete/models/operations/service_get_api_request.rbi +13 -0
- data/lib/authlete/models/operations/service_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/service_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/service_get_list_api_request.rb +37 -0
- data/lib/authlete/models/operations/service_get_list_api_request.rbi +15 -0
- data/lib/authlete/models/operations/service_get_list_api_response.rb +45 -0
- data/lib/authlete/models/operations/service_get_list_api_response.rbi +19 -0
- data/lib/authlete/models/operations/service_jwks_get_api_request.rb +41 -0
- data/lib/authlete/models/operations/service_jwks_get_api_request.rbi +17 -0
- data/lib/authlete/models/operations/service_jwks_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/service_jwks_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/service_update_api_request.rb +37 -0
- data/lib/authlete/models/operations/service_update_api_request.rbi +15 -0
- data/lib/authlete/models/operations/service_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/service_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/updateauthorizationticket_request.rb +37 -0
- data/lib/authlete/models/operations/updateauthorizationticket_request.rbi +15 -0
- data/lib/authlete/models/operations/updateauthorizationticket_response.rb +45 -0
- data/lib/authlete/models/operations/updateauthorizationticket_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_batch_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_batch_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_batch_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_batch_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_batch_parse_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_batch_parse_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_batch_parse_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_batch_parse_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_deferred_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_deferred_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_deferred_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_deferred_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_deferred_parse_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_deferred_parse_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_deferred_parse_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_deferred_parse_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_jwks_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_jwks_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_jwks_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_jwks_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_jwtissuer_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_jwtissuer_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_jwtissuer_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_jwtissuer_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_metadata_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_metadata_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_metadata_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_metadata_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_offer_create_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_offer_create_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_offer_create_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_offer_create_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_offer_info_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_offer_info_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_offer_info_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_offer_info_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_single_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_single_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_single_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_single_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_single_parse_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_single_parse_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_single_parse_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_single_parse_api_response.rbi +19 -0
- data/lib/authlete/models/operations.rb +166 -0
- data/lib/authlete/native_sso.rb +422 -0
- data/lib/authlete/pushed_authorization.rb +197 -0
- data/lib/authlete/revocation.rb +290 -0
- data/lib/authlete/sdk_hooks/hooks.rb +95 -0
- data/lib/authlete/sdk_hooks/types.rb +170 -0
- data/lib/authlete/sdkconfiguration.rb +107 -0
- data/lib/authlete/sdkconfiguration.rbi +57 -0
- data/lib/authlete/services.rb +923 -0
- data/lib/authlete/token_management.rb +945 -0
- data/lib/authlete/tokens.rb +953 -0
- data/lib/authlete/userinfo.rb +568 -0
- data/lib/authlete/utils/forms.rb +206 -0
- data/lib/authlete/utils/headers.rb +77 -0
- data/lib/authlete/utils/query_params.rb +131 -0
- data/lib/authlete/utils/request_bodies.rb +61 -0
- data/lib/authlete/utils/retries.rb +95 -0
- data/lib/authlete/utils/security.rb +130 -0
- data/lib/authlete/utils/url.rb +100 -0
- data/lib/authlete/utils/utils.rb +187 -0
- data/lib/authlete/verifiable_credentials.rb +1746 -0
- data/lib/authlete_ruby_test.rb +45 -0
- data/lib/crystalline/metadata_fields.rb +209 -0
- data/lib/crystalline/module.rb +92 -0
- data/lib/crystalline/types.rb +78 -0
- data/lib/crystalline/utils.rb +56 -0
- data/lib/crystalline.rb +13 -0
- metadata +997 -0
|
@@ -0,0 +1,939 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
require 'faraday'
|
|
7
|
+
require 'faraday/multipart'
|
|
8
|
+
require 'faraday/retry'
|
|
9
|
+
require 'sorbet-runtime'
|
|
10
|
+
require_relative 'sdk_hooks/hooks'
|
|
11
|
+
require_relative 'utils/retries'
|
|
12
|
+
|
|
13
|
+
module Authlete
|
|
14
|
+
extend T::Sig
|
|
15
|
+
class DynamicClientRegistration
|
|
16
|
+
extend T::Sig
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
sig { params(sdk_config: SDKConfiguration).void }
|
|
21
|
+
def initialize(sdk_config)
|
|
22
|
+
@sdk_configuration = sdk_config
|
|
23
|
+
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
|
|
27
|
+
def get_url(base_url:, url_variables: nil)
|
|
28
|
+
sd_base_url, sd_options = @sdk_configuration.get_server_details
|
|
29
|
+
|
|
30
|
+
if base_url.nil?
|
|
31
|
+
base_url = sd_base_url
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
if url_variables.nil?
|
|
35
|
+
url_variables = sd_options
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
return Utils.template_url base_url, url_variables
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
sig { params(request_body: Models::Operations::ClientRegistrationApiRequestBody, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ClientRegistrationApiResponse) }
|
|
43
|
+
def register(request_body:, service_id:, timeout_ms: nil)
|
|
44
|
+
# register - Register Client
|
|
45
|
+
# Register a client. This API is supposed to be used to implement a client registration endpoint that
|
|
46
|
+
# complies with [RFC 7591](https://datatracker.ietf.org/doc/html/rfc7591) (OAuth 2.0 Dynamic Client
|
|
47
|
+
# Registration Protocol).
|
|
48
|
+
# ### Description
|
|
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
|
+
#
|
|
102
|
+
request = Models::Operations::ClientRegistrationApiRequest.new(
|
|
103
|
+
service_id: service_id,
|
|
104
|
+
request_body: request_body
|
|
105
|
+
)
|
|
106
|
+
url, params = @sdk_configuration.get_server_details
|
|
107
|
+
base_url = Utils.template_url(url, params)
|
|
108
|
+
url = Utils.generate_url(
|
|
109
|
+
Models::Operations::ClientRegistrationApiRequest,
|
|
110
|
+
base_url,
|
|
111
|
+
'/api/{serviceId}/client/registration',
|
|
112
|
+
request
|
|
113
|
+
)
|
|
114
|
+
headers = {}
|
|
115
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
116
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :request_body, :json)
|
|
117
|
+
headers['content-type'] = req_content_type
|
|
118
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
119
|
+
|
|
120
|
+
if form
|
|
121
|
+
body = Utils.encode_form(form)
|
|
122
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
123
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
124
|
+
else
|
|
125
|
+
body = data
|
|
126
|
+
end
|
|
127
|
+
headers['Accept'] = 'application/json'
|
|
128
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
129
|
+
|
|
130
|
+
security = @sdk_configuration.security_source&.call
|
|
131
|
+
|
|
132
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
133
|
+
timeout ||= @sdk_configuration.timeout
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
connection = @sdk_configuration.client
|
|
137
|
+
|
|
138
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
139
|
+
config: @sdk_configuration,
|
|
140
|
+
base_url: base_url,
|
|
141
|
+
oauth2_scopes: [],
|
|
142
|
+
operation_id: 'client_registration_api',
|
|
143
|
+
security_source: @sdk_configuration.security_source
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
147
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
begin
|
|
151
|
+
http_response = T.must(connection).post(url) do |req|
|
|
152
|
+
req.body = body
|
|
153
|
+
req.headers.merge!(headers)
|
|
154
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
155
|
+
Utils.configure_request_security(req, security)
|
|
156
|
+
|
|
157
|
+
@sdk_configuration.hooks.before_request(
|
|
158
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
159
|
+
hook_ctx: hook_ctx
|
|
160
|
+
),
|
|
161
|
+
request: req
|
|
162
|
+
)
|
|
163
|
+
end
|
|
164
|
+
rescue StandardError => e
|
|
165
|
+
error = e
|
|
166
|
+
ensure
|
|
167
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
168
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
169
|
+
error: error,
|
|
170
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
171
|
+
hook_ctx: hook_ctx
|
|
172
|
+
),
|
|
173
|
+
response: http_response
|
|
174
|
+
)
|
|
175
|
+
else
|
|
176
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
177
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
178
|
+
hook_ctx: hook_ctx
|
|
179
|
+
),
|
|
180
|
+
response: http_response
|
|
181
|
+
)
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if http_response.nil?
|
|
185
|
+
raise error if !error.nil?
|
|
186
|
+
raise 'no response'
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
191
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
192
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
193
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
194
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
195
|
+
hook_ctx: hook_ctx
|
|
196
|
+
),
|
|
197
|
+
response: http_response
|
|
198
|
+
)
|
|
199
|
+
response_data = http_response.env.response_body
|
|
200
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::ClientRegistrationResponse)
|
|
201
|
+
response = Models::Operations::ClientRegistrationApiResponse.new(
|
|
202
|
+
status_code: http_response.status,
|
|
203
|
+
content_type: content_type,
|
|
204
|
+
raw_response: http_response,
|
|
205
|
+
client_registration_response: T.unsafe(obj)
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
return response
|
|
209
|
+
else
|
|
210
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
211
|
+
end
|
|
212
|
+
elsif Utils.match_status_code(http_response.status, ['400', '401', '403'])
|
|
213
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
214
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
215
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
216
|
+
hook_ctx: hook_ctx
|
|
217
|
+
),
|
|
218
|
+
response: http_response
|
|
219
|
+
)
|
|
220
|
+
response_data = http_response.env.response_body
|
|
221
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
222
|
+
obj.raw_response = http_response
|
|
223
|
+
throw obj
|
|
224
|
+
else
|
|
225
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
226
|
+
end
|
|
227
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
228
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
229
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
230
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
231
|
+
hook_ctx: hook_ctx
|
|
232
|
+
),
|
|
233
|
+
response: http_response
|
|
234
|
+
)
|
|
235
|
+
response_data = http_response.env.response_body
|
|
236
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
237
|
+
obj.raw_response = http_response
|
|
238
|
+
throw obj
|
|
239
|
+
else
|
|
240
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
241
|
+
end
|
|
242
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
243
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
244
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
245
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
246
|
+
else
|
|
247
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
248
|
+
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
|
|
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)
|
|
255
|
+
# retrieve - Get Client
|
|
256
|
+
# Get a dynamically registered client. This API is supposed to be used to implement a client registration
|
|
257
|
+
# management endpoint that complies with [RFC 7592](https://datatracker.ietf.org/doc/html/rfc7592)
|
|
258
|
+
# (OAuth 2.0 Dynamic Registration Management).
|
|
259
|
+
# ### Description
|
|
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
|
+
#
|
|
332
|
+
request = Models::Operations::ClientRegistrationGetApiRequest.new(
|
|
333
|
+
service_id: service_id,
|
|
334
|
+
request_body: request_body
|
|
335
|
+
)
|
|
336
|
+
url, params = @sdk_configuration.get_server_details
|
|
337
|
+
base_url = Utils.template_url(url, params)
|
|
338
|
+
url = Utils.generate_url(
|
|
339
|
+
Models::Operations::ClientRegistrationGetApiRequest,
|
|
340
|
+
base_url,
|
|
341
|
+
'/api/{serviceId}/client/registration/get',
|
|
342
|
+
request
|
|
343
|
+
)
|
|
344
|
+
headers = {}
|
|
345
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
346
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :request_body, :json)
|
|
347
|
+
headers['content-type'] = req_content_type
|
|
348
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
349
|
+
|
|
350
|
+
if form
|
|
351
|
+
body = Utils.encode_form(form)
|
|
352
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
353
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
354
|
+
else
|
|
355
|
+
body = data
|
|
356
|
+
end
|
|
357
|
+
headers['Accept'] = 'application/json'
|
|
358
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
359
|
+
|
|
360
|
+
security = @sdk_configuration.security_source&.call
|
|
361
|
+
|
|
362
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
363
|
+
timeout ||= @sdk_configuration.timeout
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
connection = @sdk_configuration.client
|
|
367
|
+
|
|
368
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
369
|
+
config: @sdk_configuration,
|
|
370
|
+
base_url: base_url,
|
|
371
|
+
oauth2_scopes: [],
|
|
372
|
+
operation_id: 'client_registration_get_api',
|
|
373
|
+
security_source: @sdk_configuration.security_source
|
|
374
|
+
)
|
|
375
|
+
|
|
376
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
377
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
begin
|
|
381
|
+
http_response = T.must(connection).post(url) do |req|
|
|
382
|
+
req.body = body
|
|
383
|
+
req.headers.merge!(headers)
|
|
384
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
385
|
+
Utils.configure_request_security(req, security)
|
|
386
|
+
|
|
387
|
+
@sdk_configuration.hooks.before_request(
|
|
388
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
389
|
+
hook_ctx: hook_ctx
|
|
390
|
+
),
|
|
391
|
+
request: req
|
|
392
|
+
)
|
|
393
|
+
end
|
|
394
|
+
rescue StandardError => e
|
|
395
|
+
error = e
|
|
396
|
+
ensure
|
|
397
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
398
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
399
|
+
error: error,
|
|
400
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
401
|
+
hook_ctx: hook_ctx
|
|
402
|
+
),
|
|
403
|
+
response: http_response
|
|
404
|
+
)
|
|
405
|
+
else
|
|
406
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
407
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
408
|
+
hook_ctx: hook_ctx
|
|
409
|
+
),
|
|
410
|
+
response: http_response
|
|
411
|
+
)
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
if http_response.nil?
|
|
415
|
+
raise error if !error.nil?
|
|
416
|
+
raise 'no response'
|
|
417
|
+
end
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
421
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
422
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
423
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
424
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
425
|
+
hook_ctx: hook_ctx
|
|
426
|
+
),
|
|
427
|
+
response: http_response
|
|
428
|
+
)
|
|
429
|
+
response_data = http_response.env.response_body
|
|
430
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::ClientRegistrationResponse)
|
|
431
|
+
response = Models::Operations::ClientRegistrationGetApiResponse.new(
|
|
432
|
+
status_code: http_response.status,
|
|
433
|
+
content_type: content_type,
|
|
434
|
+
raw_response: http_response,
|
|
435
|
+
client_registration_response: T.unsafe(obj)
|
|
436
|
+
)
|
|
437
|
+
|
|
438
|
+
return response
|
|
439
|
+
else
|
|
440
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
441
|
+
end
|
|
442
|
+
elsif Utils.match_status_code(http_response.status, ['400', '401', '403'])
|
|
443
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
444
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
445
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
446
|
+
hook_ctx: hook_ctx
|
|
447
|
+
),
|
|
448
|
+
response: http_response
|
|
449
|
+
)
|
|
450
|
+
response_data = http_response.env.response_body
|
|
451
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
452
|
+
obj.raw_response = http_response
|
|
453
|
+
throw obj
|
|
454
|
+
else
|
|
455
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
456
|
+
end
|
|
457
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
458
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
459
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
460
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
461
|
+
hook_ctx: hook_ctx
|
|
462
|
+
),
|
|
463
|
+
response: http_response
|
|
464
|
+
)
|
|
465
|
+
response_data = http_response.env.response_body
|
|
466
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
467
|
+
obj.raw_response = http_response
|
|
468
|
+
throw obj
|
|
469
|
+
else
|
|
470
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
471
|
+
end
|
|
472
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
473
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
474
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
475
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
476
|
+
else
|
|
477
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
478
|
+
|
|
479
|
+
end
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
|
|
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)
|
|
485
|
+
# update - Update Client
|
|
486
|
+
# Update a dynamically registered client. This API is supposed to be used to implement a client
|
|
487
|
+
# registration management endpoint that complies with [RFC 7592](https://datatracker.ietf.org/doc/html/rfc7592)
|
|
488
|
+
# (OAuth 2.0 Dynamic Registration Management).
|
|
489
|
+
# ### Description
|
|
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
|
+
#
|
|
562
|
+
request = Models::Operations::ClientRegistrationUpdateApiRequest.new(
|
|
563
|
+
service_id: service_id,
|
|
564
|
+
request_body: request_body
|
|
565
|
+
)
|
|
566
|
+
url, params = @sdk_configuration.get_server_details
|
|
567
|
+
base_url = Utils.template_url(url, params)
|
|
568
|
+
url = Utils.generate_url(
|
|
569
|
+
Models::Operations::ClientRegistrationUpdateApiRequest,
|
|
570
|
+
base_url,
|
|
571
|
+
'/api/{serviceId}/client/registration/update',
|
|
572
|
+
request
|
|
573
|
+
)
|
|
574
|
+
headers = {}
|
|
575
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
576
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :request_body, :json)
|
|
577
|
+
headers['content-type'] = req_content_type
|
|
578
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
579
|
+
|
|
580
|
+
if form
|
|
581
|
+
body = Utils.encode_form(form)
|
|
582
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
583
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
584
|
+
else
|
|
585
|
+
body = data
|
|
586
|
+
end
|
|
587
|
+
headers['Accept'] = 'application/json'
|
|
588
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
589
|
+
|
|
590
|
+
security = @sdk_configuration.security_source&.call
|
|
591
|
+
|
|
592
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
593
|
+
timeout ||= @sdk_configuration.timeout
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
connection = @sdk_configuration.client
|
|
597
|
+
|
|
598
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
599
|
+
config: @sdk_configuration,
|
|
600
|
+
base_url: base_url,
|
|
601
|
+
oauth2_scopes: [],
|
|
602
|
+
operation_id: 'client_registration_update_api',
|
|
603
|
+
security_source: @sdk_configuration.security_source
|
|
604
|
+
)
|
|
605
|
+
|
|
606
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
607
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
begin
|
|
611
|
+
http_response = T.must(connection).post(url) do |req|
|
|
612
|
+
req.body = body
|
|
613
|
+
req.headers.merge!(headers)
|
|
614
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
615
|
+
Utils.configure_request_security(req, security)
|
|
616
|
+
|
|
617
|
+
@sdk_configuration.hooks.before_request(
|
|
618
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
619
|
+
hook_ctx: hook_ctx
|
|
620
|
+
),
|
|
621
|
+
request: req
|
|
622
|
+
)
|
|
623
|
+
end
|
|
624
|
+
rescue StandardError => e
|
|
625
|
+
error = e
|
|
626
|
+
ensure
|
|
627
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
628
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
629
|
+
error: error,
|
|
630
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
631
|
+
hook_ctx: hook_ctx
|
|
632
|
+
),
|
|
633
|
+
response: http_response
|
|
634
|
+
)
|
|
635
|
+
else
|
|
636
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
637
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
638
|
+
hook_ctx: hook_ctx
|
|
639
|
+
),
|
|
640
|
+
response: http_response
|
|
641
|
+
)
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
if http_response.nil?
|
|
645
|
+
raise error if !error.nil?
|
|
646
|
+
raise 'no response'
|
|
647
|
+
end
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
651
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
652
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
653
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
654
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
655
|
+
hook_ctx: hook_ctx
|
|
656
|
+
),
|
|
657
|
+
response: http_response
|
|
658
|
+
)
|
|
659
|
+
response_data = http_response.env.response_body
|
|
660
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::ClientRegistrationResponse)
|
|
661
|
+
response = Models::Operations::ClientRegistrationUpdateApiResponse.new(
|
|
662
|
+
status_code: http_response.status,
|
|
663
|
+
content_type: content_type,
|
|
664
|
+
raw_response: http_response,
|
|
665
|
+
client_registration_response: T.unsafe(obj)
|
|
666
|
+
)
|
|
667
|
+
|
|
668
|
+
return response
|
|
669
|
+
else
|
|
670
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
671
|
+
end
|
|
672
|
+
elsif Utils.match_status_code(http_response.status, ['400', '401', '403'])
|
|
673
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
674
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
675
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
676
|
+
hook_ctx: hook_ctx
|
|
677
|
+
),
|
|
678
|
+
response: http_response
|
|
679
|
+
)
|
|
680
|
+
response_data = http_response.env.response_body
|
|
681
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
682
|
+
obj.raw_response = http_response
|
|
683
|
+
throw obj
|
|
684
|
+
else
|
|
685
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
686
|
+
end
|
|
687
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
688
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
689
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
690
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
691
|
+
hook_ctx: hook_ctx
|
|
692
|
+
),
|
|
693
|
+
response: http_response
|
|
694
|
+
)
|
|
695
|
+
response_data = http_response.env.response_body
|
|
696
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
697
|
+
obj.raw_response = http_response
|
|
698
|
+
throw obj
|
|
699
|
+
else
|
|
700
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
701
|
+
end
|
|
702
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
703
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
704
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
705
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
706
|
+
else
|
|
707
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
708
|
+
|
|
709
|
+
end
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
|
|
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)
|
|
715
|
+
# destroy - Delete Client
|
|
716
|
+
# Delete a dynamically registered client. This API is supposed to be used to implement a client
|
|
717
|
+
# registration management endpoint that complies with [RFC 7592](https://datatracker.ietf.org/doc/html/rfc7592)
|
|
718
|
+
# (OAuth 2.0 Dynamic Registration Management).
|
|
719
|
+
# ### Description
|
|
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
|
+
#
|
|
789
|
+
request = Models::Operations::ClientRegistrationDeleteApiRequest.new(
|
|
790
|
+
service_id: service_id,
|
|
791
|
+
request_body: request_body
|
|
792
|
+
)
|
|
793
|
+
url, params = @sdk_configuration.get_server_details
|
|
794
|
+
base_url = Utils.template_url(url, params)
|
|
795
|
+
url = Utils.generate_url(
|
|
796
|
+
Models::Operations::ClientRegistrationDeleteApiRequest,
|
|
797
|
+
base_url,
|
|
798
|
+
'/api/{serviceId}/client/registration/delete',
|
|
799
|
+
request
|
|
800
|
+
)
|
|
801
|
+
headers = {}
|
|
802
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
803
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :request_body, :json)
|
|
804
|
+
headers['content-type'] = req_content_type
|
|
805
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
806
|
+
|
|
807
|
+
if form
|
|
808
|
+
body = Utils.encode_form(form)
|
|
809
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
810
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
811
|
+
else
|
|
812
|
+
body = data
|
|
813
|
+
end
|
|
814
|
+
headers['Accept'] = 'application/json'
|
|
815
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
816
|
+
|
|
817
|
+
security = @sdk_configuration.security_source&.call
|
|
818
|
+
|
|
819
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
820
|
+
timeout ||= @sdk_configuration.timeout
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
connection = @sdk_configuration.client
|
|
824
|
+
|
|
825
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
826
|
+
config: @sdk_configuration,
|
|
827
|
+
base_url: base_url,
|
|
828
|
+
oauth2_scopes: [],
|
|
829
|
+
operation_id: 'client_registration_delete_api',
|
|
830
|
+
security_source: @sdk_configuration.security_source
|
|
831
|
+
)
|
|
832
|
+
|
|
833
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
834
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
begin
|
|
838
|
+
http_response = T.must(connection).post(url) do |req|
|
|
839
|
+
req.body = body
|
|
840
|
+
req.headers.merge!(headers)
|
|
841
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
842
|
+
Utils.configure_request_security(req, security)
|
|
843
|
+
|
|
844
|
+
@sdk_configuration.hooks.before_request(
|
|
845
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
846
|
+
hook_ctx: hook_ctx
|
|
847
|
+
),
|
|
848
|
+
request: req
|
|
849
|
+
)
|
|
850
|
+
end
|
|
851
|
+
rescue StandardError => e
|
|
852
|
+
error = e
|
|
853
|
+
ensure
|
|
854
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
855
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
856
|
+
error: error,
|
|
857
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
858
|
+
hook_ctx: hook_ctx
|
|
859
|
+
),
|
|
860
|
+
response: http_response
|
|
861
|
+
)
|
|
862
|
+
else
|
|
863
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
864
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
865
|
+
hook_ctx: hook_ctx
|
|
866
|
+
),
|
|
867
|
+
response: http_response
|
|
868
|
+
)
|
|
869
|
+
end
|
|
870
|
+
|
|
871
|
+
if http_response.nil?
|
|
872
|
+
raise error if !error.nil?
|
|
873
|
+
raise 'no response'
|
|
874
|
+
end
|
|
875
|
+
end
|
|
876
|
+
|
|
877
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
878
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
879
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
880
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
881
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
882
|
+
hook_ctx: hook_ctx
|
|
883
|
+
),
|
|
884
|
+
response: http_response
|
|
885
|
+
)
|
|
886
|
+
response_data = http_response.env.response_body
|
|
887
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::ClientRegistrationResponse)
|
|
888
|
+
response = Models::Operations::ClientRegistrationDeleteApiResponse.new(
|
|
889
|
+
status_code: http_response.status,
|
|
890
|
+
content_type: content_type,
|
|
891
|
+
raw_response: http_response,
|
|
892
|
+
client_registration_response: T.unsafe(obj)
|
|
893
|
+
)
|
|
894
|
+
|
|
895
|
+
return response
|
|
896
|
+
else
|
|
897
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
898
|
+
end
|
|
899
|
+
elsif Utils.match_status_code(http_response.status, ['400', '401', '403'])
|
|
900
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
901
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
902
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
903
|
+
hook_ctx: hook_ctx
|
|
904
|
+
),
|
|
905
|
+
response: http_response
|
|
906
|
+
)
|
|
907
|
+
response_data = http_response.env.response_body
|
|
908
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
909
|
+
obj.raw_response = http_response
|
|
910
|
+
throw obj
|
|
911
|
+
else
|
|
912
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
913
|
+
end
|
|
914
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
915
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
916
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
917
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
918
|
+
hook_ctx: hook_ctx
|
|
919
|
+
),
|
|
920
|
+
response: http_response
|
|
921
|
+
)
|
|
922
|
+
response_data = http_response.env.response_body
|
|
923
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
924
|
+
obj.raw_response = http_response
|
|
925
|
+
throw obj
|
|
926
|
+
else
|
|
927
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
928
|
+
end
|
|
929
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
930
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
931
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
932
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
933
|
+
else
|
|
934
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
935
|
+
|
|
936
|
+
end
|
|
937
|
+
end
|
|
938
|
+
end
|
|
939
|
+
end
|