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,647 @@
|
|
|
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 DeviceFlow
|
|
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(device_authorization_request: Models::Components::DeviceAuthorizationRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::DeviceAuthorizationApiResponse) }
|
|
43
|
+
def authorization(device_authorization_request:, service_id:, timeout_ms: nil)
|
|
44
|
+
# authorization - Process Device Authorization Request
|
|
45
|
+
# This API parses request parameters of a [device authorization request](https://datatracker.ietf.org/doc/html/rfc8628#section-3.1)
|
|
46
|
+
# and returns necessary data for the authorization server implementation to process the device authorization
|
|
47
|
+
# request further.
|
|
48
|
+
# ### Description
|
|
49
|
+
# This API is supposed to be called from the within the implementation of the device authorization
|
|
50
|
+
# endpoint of the service. The service implementation should retrieve the value of `action` from the
|
|
51
|
+
# 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 application, it is an error on the server side.
|
|
56
|
+
# Therefore, the authorization server implementation should generate a response to the client application
|
|
57
|
+
# with "500 Internal Server Error"s and `application/json`.
|
|
58
|
+
# The value of `responseContent` is a JSON string which describes t he error, so it can be
|
|
59
|
+
# used as 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 application.
|
|
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
|
+
# **BAD\_REQUEST**
|
|
70
|
+
# When the value of `action` is `BAD\_REQUEST`, it means that the request from the client application
|
|
71
|
+
# is wrong.
|
|
72
|
+
# The authorization server implementation should generate a response to the client application with
|
|
73
|
+
# "400 Bad Request" and `application/json`.
|
|
74
|
+
# The value of `responseContent` is a JSON string which describes the error, so it can be used as
|
|
75
|
+
# the entity body of the response.
|
|
76
|
+
# The following illustrates the response which the service implementation should generate and return
|
|
77
|
+
# to the client application.
|
|
78
|
+
# ```
|
|
79
|
+
# HTTP/1.1 400 Bad Request
|
|
80
|
+
# Content-Type: application/json
|
|
81
|
+
# Cache-Control: no-store
|
|
82
|
+
# Pragma: no-cache
|
|
83
|
+
# {responseContent}
|
|
84
|
+
# ```
|
|
85
|
+
# **UNAUTHORIZED**
|
|
86
|
+
# When the value of `action` is `UNAUTHORIZED`, it means that client authentication of the device authorization
|
|
87
|
+
# request failed.
|
|
88
|
+
# The authorization server implementation should generate a response to the client application with
|
|
89
|
+
# "401 Unauthorized" and `application/json`.
|
|
90
|
+
# The value of `responseContent` is a JSON string which describes the error, so it can be used as
|
|
91
|
+
# the entity body of the response.
|
|
92
|
+
# The following illustrates the response which the service implementation must generate and return
|
|
93
|
+
# to the client application.
|
|
94
|
+
# ```
|
|
95
|
+
# HTTP/1.1 401 Unauthorized
|
|
96
|
+
# WWW-Authenticate: (challenge)
|
|
97
|
+
# Content-Type: application/json
|
|
98
|
+
# Cache-Control: no-store
|
|
99
|
+
# Pragma: no-cache
|
|
100
|
+
# {responseContent}
|
|
101
|
+
# ```
|
|
102
|
+
# **OK**
|
|
103
|
+
# When the value of `action` is `OK`, it means that the device authorization request from the client
|
|
104
|
+
# application is valid.
|
|
105
|
+
# The authorization server implementation should generate a response to the client application with
|
|
106
|
+
# "200 OK" and `application/json`.
|
|
107
|
+
# The `responseContent` is a JSON string which can be used as the entity body of the response.
|
|
108
|
+
# The following illustrates the response which the authorization server implementation should generate
|
|
109
|
+
# and return to the client application.
|
|
110
|
+
#
|
|
111
|
+
request = Models::Operations::DeviceAuthorizationApiRequest.new(
|
|
112
|
+
service_id: service_id,
|
|
113
|
+
device_authorization_request: device_authorization_request
|
|
114
|
+
)
|
|
115
|
+
url, params = @sdk_configuration.get_server_details
|
|
116
|
+
base_url = Utils.template_url(url, params)
|
|
117
|
+
url = Utils.generate_url(
|
|
118
|
+
Models::Operations::DeviceAuthorizationApiRequest,
|
|
119
|
+
base_url,
|
|
120
|
+
'/api/{serviceId}/device/authorization',
|
|
121
|
+
request
|
|
122
|
+
)
|
|
123
|
+
headers = {}
|
|
124
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
125
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :device_authorization_request, :json)
|
|
126
|
+
headers['content-type'] = req_content_type
|
|
127
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
128
|
+
|
|
129
|
+
if form
|
|
130
|
+
body = Utils.encode_form(form)
|
|
131
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
132
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
133
|
+
else
|
|
134
|
+
body = data
|
|
135
|
+
end
|
|
136
|
+
headers['Accept'] = 'application/json'
|
|
137
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
138
|
+
|
|
139
|
+
security = @sdk_configuration.security_source&.call
|
|
140
|
+
|
|
141
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
142
|
+
timeout ||= @sdk_configuration.timeout
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
connection = @sdk_configuration.client
|
|
146
|
+
|
|
147
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
148
|
+
config: @sdk_configuration,
|
|
149
|
+
base_url: base_url,
|
|
150
|
+
oauth2_scopes: [],
|
|
151
|
+
operation_id: 'device_authorization_api',
|
|
152
|
+
security_source: @sdk_configuration.security_source
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
156
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
begin
|
|
160
|
+
http_response = T.must(connection).post(url) do |req|
|
|
161
|
+
req.body = body
|
|
162
|
+
req.headers.merge!(headers)
|
|
163
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
164
|
+
Utils.configure_request_security(req, security)
|
|
165
|
+
|
|
166
|
+
@sdk_configuration.hooks.before_request(
|
|
167
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
168
|
+
hook_ctx: hook_ctx
|
|
169
|
+
),
|
|
170
|
+
request: req
|
|
171
|
+
)
|
|
172
|
+
end
|
|
173
|
+
rescue StandardError => e
|
|
174
|
+
error = e
|
|
175
|
+
ensure
|
|
176
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
177
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
178
|
+
error: error,
|
|
179
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
180
|
+
hook_ctx: hook_ctx
|
|
181
|
+
),
|
|
182
|
+
response: http_response
|
|
183
|
+
)
|
|
184
|
+
else
|
|
185
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
186
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
187
|
+
hook_ctx: hook_ctx
|
|
188
|
+
),
|
|
189
|
+
response: http_response
|
|
190
|
+
)
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if http_response.nil?
|
|
194
|
+
raise error if !error.nil?
|
|
195
|
+
raise 'no response'
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
200
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
201
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
202
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
203
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
204
|
+
hook_ctx: hook_ctx
|
|
205
|
+
),
|
|
206
|
+
response: http_response
|
|
207
|
+
)
|
|
208
|
+
response_data = http_response.env.response_body
|
|
209
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::DeviceAuthorizationResponse)
|
|
210
|
+
response = Models::Operations::DeviceAuthorizationApiResponse.new(
|
|
211
|
+
status_code: http_response.status,
|
|
212
|
+
content_type: content_type,
|
|
213
|
+
raw_response: http_response,
|
|
214
|
+
device_authorization_response: T.unsafe(obj)
|
|
215
|
+
)
|
|
216
|
+
|
|
217
|
+
return response
|
|
218
|
+
else
|
|
219
|
+
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'
|
|
220
|
+
end
|
|
221
|
+
elsif Utils.match_status_code(http_response.status, ['400', '401', '403'])
|
|
222
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
223
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
224
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
225
|
+
hook_ctx: hook_ctx
|
|
226
|
+
),
|
|
227
|
+
response: http_response
|
|
228
|
+
)
|
|
229
|
+
response_data = http_response.env.response_body
|
|
230
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
231
|
+
obj.raw_response = http_response
|
|
232
|
+
throw obj
|
|
233
|
+
else
|
|
234
|
+
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'
|
|
235
|
+
end
|
|
236
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
237
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
238
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
239
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
240
|
+
hook_ctx: hook_ctx
|
|
241
|
+
),
|
|
242
|
+
response: http_response
|
|
243
|
+
)
|
|
244
|
+
response_data = http_response.env.response_body
|
|
245
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
246
|
+
obj.raw_response = http_response
|
|
247
|
+
throw obj
|
|
248
|
+
else
|
|
249
|
+
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'
|
|
250
|
+
end
|
|
251
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
252
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
253
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
254
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
255
|
+
else
|
|
256
|
+
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'
|
|
257
|
+
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
sig { params(device_verification_request: Models::Components::DeviceVerificationRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::DeviceVerificationApiResponse) }
|
|
263
|
+
def verification(device_verification_request:, service_id:, timeout_ms: nil)
|
|
264
|
+
# verification - Process Device Verification Request
|
|
265
|
+
# The API returns information associated with a user code.
|
|
266
|
+
# ### Description
|
|
267
|
+
# After receiving a response from the device authorization endpoint of the authorization server,
|
|
268
|
+
# the client application shows the end-user the user code and the verification URI which are included
|
|
269
|
+
# in the device authorization response. Then, the end-user will access the verification URI using
|
|
270
|
+
# a web browser on another device (typically, a smart phone). In normal implementations, the verification
|
|
271
|
+
# endpoint will return an HTML page with an input form where the end-user inputs a user code. The
|
|
272
|
+
# authorization server will receive a user code from the form.
|
|
273
|
+
# After receiving a user code, the authorization server should call Authlete's `/device/verification`
|
|
274
|
+
# API with the user code. And then, the authorization server implementation should retrieve the value
|
|
275
|
+
# of `action` parameter from the API response and take the following steps according to the value.
|
|
276
|
+
# **SERVER\_ERROR**
|
|
277
|
+
# When the value of `action` is `SERVER\_ERROR`, it means that an error occurred on Authlete side. The
|
|
278
|
+
# authorization server implementation should tell the end-user that something wrong happened and
|
|
279
|
+
# urge her to re-initiate a device flow.
|
|
280
|
+
# **NOT\_EXIST**
|
|
281
|
+
# When the value of `action` is `NOT\_EXIST`, it means that the user code does not exist. The authorization
|
|
282
|
+
# server implementation should tell the end-user that the user code is invalid and urge her to retry
|
|
283
|
+
# to input a valid user code.
|
|
284
|
+
# **EXPIRED**
|
|
285
|
+
# When the value of `action` is `EXPIRED`, it means that the user code has expired. The authorization
|
|
286
|
+
# server implementation should tell the end-user that the user code has expired and urge her to
|
|
287
|
+
# re-initiate a device flow.
|
|
288
|
+
# **VALID**
|
|
289
|
+
# When the value of `action` is `VALID`, it means that the user code exists, has not expired, and
|
|
290
|
+
# belongs to the service. The authorization server implementation should interact with the end-user
|
|
291
|
+
# to ask whether she approves or rejects the authorization request from the device.
|
|
292
|
+
#
|
|
293
|
+
request = Models::Operations::DeviceVerificationApiRequest.new(
|
|
294
|
+
service_id: service_id,
|
|
295
|
+
device_verification_request: device_verification_request
|
|
296
|
+
)
|
|
297
|
+
url, params = @sdk_configuration.get_server_details
|
|
298
|
+
base_url = Utils.template_url(url, params)
|
|
299
|
+
url = Utils.generate_url(
|
|
300
|
+
Models::Operations::DeviceVerificationApiRequest,
|
|
301
|
+
base_url,
|
|
302
|
+
'/api/{serviceId}/device/verification',
|
|
303
|
+
request
|
|
304
|
+
)
|
|
305
|
+
headers = {}
|
|
306
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
307
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :device_verification_request, :json)
|
|
308
|
+
headers['content-type'] = req_content_type
|
|
309
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
310
|
+
|
|
311
|
+
if form
|
|
312
|
+
body = Utils.encode_form(form)
|
|
313
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
314
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
315
|
+
else
|
|
316
|
+
body = data
|
|
317
|
+
end
|
|
318
|
+
headers['Accept'] = 'application/json'
|
|
319
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
320
|
+
|
|
321
|
+
security = @sdk_configuration.security_source&.call
|
|
322
|
+
|
|
323
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
324
|
+
timeout ||= @sdk_configuration.timeout
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
connection = @sdk_configuration.client
|
|
328
|
+
|
|
329
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
330
|
+
config: @sdk_configuration,
|
|
331
|
+
base_url: base_url,
|
|
332
|
+
oauth2_scopes: [],
|
|
333
|
+
operation_id: 'device_verification_api',
|
|
334
|
+
security_source: @sdk_configuration.security_source
|
|
335
|
+
)
|
|
336
|
+
|
|
337
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
338
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
begin
|
|
342
|
+
http_response = T.must(connection).post(url) do |req|
|
|
343
|
+
req.body = body
|
|
344
|
+
req.headers.merge!(headers)
|
|
345
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
346
|
+
Utils.configure_request_security(req, security)
|
|
347
|
+
|
|
348
|
+
@sdk_configuration.hooks.before_request(
|
|
349
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
350
|
+
hook_ctx: hook_ctx
|
|
351
|
+
),
|
|
352
|
+
request: req
|
|
353
|
+
)
|
|
354
|
+
end
|
|
355
|
+
rescue StandardError => e
|
|
356
|
+
error = e
|
|
357
|
+
ensure
|
|
358
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
359
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
360
|
+
error: error,
|
|
361
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
362
|
+
hook_ctx: hook_ctx
|
|
363
|
+
),
|
|
364
|
+
response: http_response
|
|
365
|
+
)
|
|
366
|
+
else
|
|
367
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
368
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
369
|
+
hook_ctx: hook_ctx
|
|
370
|
+
),
|
|
371
|
+
response: http_response
|
|
372
|
+
)
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
if http_response.nil?
|
|
376
|
+
raise error if !error.nil?
|
|
377
|
+
raise 'no response'
|
|
378
|
+
end
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
382
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
383
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
384
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
385
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
386
|
+
hook_ctx: hook_ctx
|
|
387
|
+
),
|
|
388
|
+
response: http_response
|
|
389
|
+
)
|
|
390
|
+
response_data = http_response.env.response_body
|
|
391
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::DeviceVerificationResponse)
|
|
392
|
+
response = Models::Operations::DeviceVerificationApiResponse.new(
|
|
393
|
+
status_code: http_response.status,
|
|
394
|
+
content_type: content_type,
|
|
395
|
+
raw_response: http_response,
|
|
396
|
+
device_verification_response: T.unsafe(obj)
|
|
397
|
+
)
|
|
398
|
+
|
|
399
|
+
return response
|
|
400
|
+
else
|
|
401
|
+
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'
|
|
402
|
+
end
|
|
403
|
+
elsif Utils.match_status_code(http_response.status, ['400', '401', '403'])
|
|
404
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
405
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
406
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
407
|
+
hook_ctx: hook_ctx
|
|
408
|
+
),
|
|
409
|
+
response: http_response
|
|
410
|
+
)
|
|
411
|
+
response_data = http_response.env.response_body
|
|
412
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
413
|
+
obj.raw_response = http_response
|
|
414
|
+
throw obj
|
|
415
|
+
else
|
|
416
|
+
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'
|
|
417
|
+
end
|
|
418
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
419
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
420
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
421
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
422
|
+
hook_ctx: hook_ctx
|
|
423
|
+
),
|
|
424
|
+
response: http_response
|
|
425
|
+
)
|
|
426
|
+
response_data = http_response.env.response_body
|
|
427
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
428
|
+
obj.raw_response = http_response
|
|
429
|
+
throw obj
|
|
430
|
+
else
|
|
431
|
+
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'
|
|
432
|
+
end
|
|
433
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
434
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
435
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
436
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
437
|
+
else
|
|
438
|
+
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'
|
|
439
|
+
|
|
440
|
+
end
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
sig { params(device_complete_request: Models::Components::DeviceCompleteRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::DeviceCompleteApiResponse) }
|
|
445
|
+
def complete_request(device_complete_request:, service_id:, timeout_ms: nil)
|
|
446
|
+
# complete_request - Complete Device Authorization
|
|
447
|
+
# This API returns information about what action the authorization server should take after it receives
|
|
448
|
+
# the result of end-user's decision about whether the end-user has approved or rejected a client
|
|
449
|
+
# application's request.
|
|
450
|
+
# ### Description
|
|
451
|
+
# In the device flow, an end-user accesses the verification endpoint of the authorization server where
|
|
452
|
+
# she interacts with the verification endpoint and inputs a user code. The verification endpoint checks
|
|
453
|
+
# if the user code is valid and then asks the end-user whether she approves or rejects the authorization
|
|
454
|
+
# request which the user code represents.
|
|
455
|
+
# After the authorization server receives the decision of the end-user, it should call Authlete's
|
|
456
|
+
# `/device/complete` API to tell Authlete the decision.
|
|
457
|
+
# When the end-user was authenticated and authorization was granted to the client by the end-user,
|
|
458
|
+
# the authorization server should call the API with `result=AUTHORIZED`. In this successful case,
|
|
459
|
+
# the subject request parameter is mandatory. The API will update the database record so that `/auth/token`
|
|
460
|
+
# API can generate an access token later.
|
|
461
|
+
# If the `scope` parameter of the device authorization request included the openid scope, an ID token
|
|
462
|
+
# is generated. In this case, `sub`, `authTime`, `acr` and `claims` request parameters in the API
|
|
463
|
+
# call to `/device/complete` affect the ID token.
|
|
464
|
+
# When the authorization server receives the decision of the end-user and it indicates that she has
|
|
465
|
+
# rejected to give authorization to the client, the authorization server should call the API with
|
|
466
|
+
# `result=ACCESS\_DENIED`. In this case, the API will update the database record so that the `/auth/token`
|
|
467
|
+
# API can generate an error response later. If `errorDescription` and `errorUri` request parameters
|
|
468
|
+
# are given to the `/device/complete` API, they will be used as the values of `error\_description`
|
|
469
|
+
# and `error\_uri` response parameters in the error response from the token endpoint.
|
|
470
|
+
# When the authorization server could not get decision from the end-user for some reasons, the authorization
|
|
471
|
+
# server should call the API with `result=TRANSACTION\_FAILED`. In this error case, the API will behave
|
|
472
|
+
# in the same way as in the case of `ACCESS\_DENIED`. The only difference is that `expired\_token` is
|
|
473
|
+
# used as the value of the `error` response parameter instead of `access\_denied`.
|
|
474
|
+
# After receiving a response from the `/device/complete` API, the implementation of the authorization
|
|
475
|
+
# server should retrieve the value of `action` from the response and take the following steps according
|
|
476
|
+
# to the value.
|
|
477
|
+
# **SERVER\_ERROR**
|
|
478
|
+
# When the value of `action` is `SERVER\_ERROR`, it means that an error occurred on Authlete side. The
|
|
479
|
+
# authorization server implementation should tell the end-user that something wrong happened and
|
|
480
|
+
# urge her to re-initiate a device flow.
|
|
481
|
+
# **USER\_CODE\_NOT\_EXIST**
|
|
482
|
+
# When the value of `action` is `USER\_CODE\_NOT\_EXIST`, it means that the user code included in the API
|
|
483
|
+
# call does not exist. The authorization server implementation should tell the end-user that the user
|
|
484
|
+
# code has been invalidated and urge her to re-initiate a device flow.
|
|
485
|
+
# **USER\_CODE\_EXPIRED**
|
|
486
|
+
# When the value of `action` is `USER\_CODE\_EXPIRED`, it means that the user code included in the API
|
|
487
|
+
# call has expired. The authorization server implementation should tell the end-user that the user
|
|
488
|
+
# code has expired and urge her to re-initiate a device flow.
|
|
489
|
+
# **INVALID\_REQUEST**
|
|
490
|
+
# When the value of `action` is `INVALID\_REQUEST`, it means that the API call is invalid. Probably,
|
|
491
|
+
# the authorization server implementation has some bugs.
|
|
492
|
+
# **SUCCESS**
|
|
493
|
+
# When the value of `action` is `SUCCESS`, it means that the API call has been processed successfully.
|
|
494
|
+
# The authorization server should return a successful response to the web browser the end-user is
|
|
495
|
+
# using.
|
|
496
|
+
#
|
|
497
|
+
request = Models::Operations::DeviceCompleteApiRequest.new(
|
|
498
|
+
service_id: service_id,
|
|
499
|
+
device_complete_request: device_complete_request
|
|
500
|
+
)
|
|
501
|
+
url, params = @sdk_configuration.get_server_details
|
|
502
|
+
base_url = Utils.template_url(url, params)
|
|
503
|
+
url = Utils.generate_url(
|
|
504
|
+
Models::Operations::DeviceCompleteApiRequest,
|
|
505
|
+
base_url,
|
|
506
|
+
'/api/{serviceId}/device/complete',
|
|
507
|
+
request
|
|
508
|
+
)
|
|
509
|
+
headers = {}
|
|
510
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
511
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :device_complete_request, :json)
|
|
512
|
+
headers['content-type'] = req_content_type
|
|
513
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
514
|
+
|
|
515
|
+
if form
|
|
516
|
+
body = Utils.encode_form(form)
|
|
517
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
518
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
519
|
+
else
|
|
520
|
+
body = data
|
|
521
|
+
end
|
|
522
|
+
headers['Accept'] = 'application/json'
|
|
523
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
524
|
+
|
|
525
|
+
security = @sdk_configuration.security_source&.call
|
|
526
|
+
|
|
527
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
528
|
+
timeout ||= @sdk_configuration.timeout
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
connection = @sdk_configuration.client
|
|
532
|
+
|
|
533
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
534
|
+
config: @sdk_configuration,
|
|
535
|
+
base_url: base_url,
|
|
536
|
+
oauth2_scopes: [],
|
|
537
|
+
operation_id: 'device_complete_api',
|
|
538
|
+
security_source: @sdk_configuration.security_source
|
|
539
|
+
)
|
|
540
|
+
|
|
541
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
542
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
begin
|
|
546
|
+
http_response = T.must(connection).post(url) do |req|
|
|
547
|
+
req.body = body
|
|
548
|
+
req.headers.merge!(headers)
|
|
549
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
550
|
+
Utils.configure_request_security(req, security)
|
|
551
|
+
|
|
552
|
+
@sdk_configuration.hooks.before_request(
|
|
553
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
554
|
+
hook_ctx: hook_ctx
|
|
555
|
+
),
|
|
556
|
+
request: req
|
|
557
|
+
)
|
|
558
|
+
end
|
|
559
|
+
rescue StandardError => e
|
|
560
|
+
error = e
|
|
561
|
+
ensure
|
|
562
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
563
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
564
|
+
error: error,
|
|
565
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
566
|
+
hook_ctx: hook_ctx
|
|
567
|
+
),
|
|
568
|
+
response: http_response
|
|
569
|
+
)
|
|
570
|
+
else
|
|
571
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
572
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
573
|
+
hook_ctx: hook_ctx
|
|
574
|
+
),
|
|
575
|
+
response: http_response
|
|
576
|
+
)
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
if http_response.nil?
|
|
580
|
+
raise error if !error.nil?
|
|
581
|
+
raise 'no response'
|
|
582
|
+
end
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
586
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
587
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
588
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
589
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
590
|
+
hook_ctx: hook_ctx
|
|
591
|
+
),
|
|
592
|
+
response: http_response
|
|
593
|
+
)
|
|
594
|
+
response_data = http_response.env.response_body
|
|
595
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::DeviceCompleteResponse)
|
|
596
|
+
response = Models::Operations::DeviceCompleteApiResponse.new(
|
|
597
|
+
status_code: http_response.status,
|
|
598
|
+
content_type: content_type,
|
|
599
|
+
raw_response: http_response,
|
|
600
|
+
device_complete_response: T.unsafe(obj)
|
|
601
|
+
)
|
|
602
|
+
|
|
603
|
+
return response
|
|
604
|
+
else
|
|
605
|
+
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'
|
|
606
|
+
end
|
|
607
|
+
elsif Utils.match_status_code(http_response.status, ['400', '401', '403'])
|
|
608
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
609
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
610
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
611
|
+
hook_ctx: hook_ctx
|
|
612
|
+
),
|
|
613
|
+
response: http_response
|
|
614
|
+
)
|
|
615
|
+
response_data = http_response.env.response_body
|
|
616
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
617
|
+
obj.raw_response = http_response
|
|
618
|
+
throw obj
|
|
619
|
+
else
|
|
620
|
+
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'
|
|
621
|
+
end
|
|
622
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
623
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
624
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
625
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
626
|
+
hook_ctx: hook_ctx
|
|
627
|
+
),
|
|
628
|
+
response: http_response
|
|
629
|
+
)
|
|
630
|
+
response_data = http_response.env.response_body
|
|
631
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
632
|
+
obj.raw_response = http_response
|
|
633
|
+
throw obj
|
|
634
|
+
else
|
|
635
|
+
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'
|
|
636
|
+
end
|
|
637
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
638
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
639
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
640
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
641
|
+
else
|
|
642
|
+
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'
|
|
643
|
+
|
|
644
|
+
end
|
|
645
|
+
end
|
|
646
|
+
end
|
|
647
|
+
end
|