authlete_ruby_sdk 0.0.2.beta → 0.0.5.pre.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/authlete/authorization.rb +24 -563
- data/lib/authlete/authorization_management.rb +15 -7
- data/lib/authlete/ciba.rb +35 -414
- data/lib/authlete/client.rb +4 -2
- data/lib/authlete/client_management.rb +1292 -95
- data/lib/authlete/clients.rb +47 -27
- data/lib/authlete/device_flow.rb +24 -147
- data/lib/authlete/dynamic_client_registration.rb +31 -283
- data/lib/authlete/federation.rb +17 -66
- data/lib/authlete/grant_management.rb +10 -5
- data/lib/authlete/hardware_security_keys.rb +24 -10
- data/lib/authlete/introspection.rb +17 -195
- data/lib/authlete/jose_object.rb +10 -5
- data/lib/authlete/jwk_set_endpoint.rb +24 -7
- data/lib/authlete/lifecycle.rb +151 -0
- data/lib/authlete/models/components/access_token.rb +9 -10
- data/lib/authlete/models/components/access_token.rbi +1 -1
- data/lib/authlete/models/components/application_type.rb +1 -4
- data/lib/authlete/models/components/application_type.rbi +1 -1
- data/lib/authlete/models/components/attachment_type.rb +1 -4
- data/lib/authlete/models/components/attachment_type.rbi +1 -1
- data/lib/authlete/models/components/authorization_details_element.rb +16 -17
- data/lib/authlete/models/components/authorization_details_element.rbi +1 -1
- data/lib/authlete/models/components/authorization_fail_request.rb +4 -5
- data/lib/authlete/models/components/authorization_fail_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_fail_request_reason.rb +1 -4
- data/lib/authlete/models/components/authorization_fail_request_reason.rbi +1 -1
- data/lib/authlete/models/components/authorization_fail_response.rb +2 -3
- data/lib/authlete/models/components/authorization_fail_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_fail_response_action.rb +0 -3
- data/lib/authlete/models/components/authorization_fail_response_action.rbi +1 -1
- data/lib/authlete/models/components/authorization_issue_request.rb +19 -84
- data/lib/authlete/models/components/authorization_issue_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_issue_response.rb +8 -9
- data/lib/authlete/models/components/authorization_issue_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_issue_response_action.rb +0 -3
- data/lib/authlete/models/components/authorization_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/authorization_request.rb +7 -8
- data/lib/authlete/models/components/authorization_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_response.rb +86 -186
- data/lib/authlete/models/components/authorization_response.rbi +1 -3
- data/lib/authlete/models/components/authorization_response_action.rb +0 -3
- data/lib/authlete/models/components/authorization_response_action.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_info.rb +1 -2
- data/lib/authlete/models/components/authorization_ticket_info.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_info_request.rb +0 -1
- data/lib/authlete/models/components/authorization_ticket_info_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_info_response.rb +1 -2
- data/lib/authlete/models/components/authorization_ticket_info_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_info_response_action.rb +0 -3
- data/lib/authlete/models/components/authorization_ticket_info_response_action.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_update_request.rb +0 -1
- data/lib/authlete/models/components/authorization_ticket_update_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_update_response.rb +4 -5
- data/lib/authlete/models/components/authorization_ticket_update_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_update_response_action.rb +0 -3
- data/lib/authlete/models/components/authorization_ticket_update_response_action.rbi +1 -1
- data/lib/authlete/models/components/authz_details.rb +2 -3
- data/lib/authlete/models/components/authz_details.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_request.rb +23 -24
- data/lib/authlete/models/components/backchannel_authentication_complete_request.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_request_result.rb +1 -4
- data/lib/authlete/models/components/backchannel_authentication_complete_request_result.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_response.rb +30 -31
- data/lib/authlete/models/components/backchannel_authentication_complete_response.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_response_action.rb +1 -4
- data/lib/authlete/models/components/backchannel_authentication_complete_response_action.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_request.rb +5 -6
- data/lib/authlete/models/components/backchannel_authentication_fail_request.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_request_reason.rb +1 -4
- data/lib/authlete/models/components/backchannel_authentication_fail_request_reason.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_response.rb +2 -3
- data/lib/authlete/models/components/backchannel_authentication_fail_response.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_response_action.rb +0 -3
- data/lib/authlete/models/components/backchannel_authentication_fail_response_action.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_issue_request.rb +1 -2
- data/lib/authlete/models/components/backchannel_authentication_issue_request.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_issue_response.rb +5 -6
- data/lib/authlete/models/components/backchannel_authentication_issue_response.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_issue_response_action.rb +0 -3
- data/lib/authlete/models/components/backchannel_authentication_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_request.rb +12 -13
- data/lib/authlete/models/components/backchannel_authentication_request.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_response.rb +47 -57
- data/lib/authlete/models/components/backchannel_authentication_response.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_response_action.rb +0 -3
- data/lib/authlete/models/components/backchannel_authentication_response_action.rbi +1 -1
- data/lib/authlete/models/components/cimd_options.rb +15 -16
- data/lib/authlete/models/components/cimd_options.rbi +1 -1
- data/lib/authlete/models/components/claim_type.rb +0 -3
- data/lib/authlete/models/components/claim_type.rbi +1 -1
- data/lib/authlete/models/components/client.rb +160 -310
- data/lib/authlete/models/components/client.rbi +1 -1
- data/lib/authlete/models/components/client_auth_method.rb +1 -4
- data/lib/authlete/models/components/client_auth_method.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_delete_response.rb +4 -5
- data/lib/authlete/models/components/client_authorization_delete_response.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_get_list_request.rb +44 -0
- data/lib/authlete/models/components/client_authorization_get_list_request.rbi +19 -0
- data/lib/authlete/models/components/client_authorization_get_list_response.rb +6 -7
- data/lib/authlete/models/components/client_authorization_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_update_request.rb +2 -3
- data/lib/authlete/models/components/client_authorization_update_request.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_update_response.rb +0 -1
- data/lib/authlete/models/components/client_authorization_update_response.rbi +1 -1
- data/lib/authlete/models/components/{clientsource.rb → client_clientsource.rb} +3 -6
- data/lib/authlete/models/components/client_clientsource.rbi +11 -0
- data/lib/authlete/models/components/client_extension.rb +9 -20
- data/lib/authlete/models/components/client_extension.rbi +1 -1
- data/lib/authlete/models/components/client_extension_requestable_scopes_get_response.rb +2 -2
- data/lib/authlete/models/components/client_extension_requestable_scopes_get_response.rbi +1 -1
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_request.rb +4 -5
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_request.rbi +1 -1
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_response.rb +0 -1
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_response.rbi +1 -1
- data/lib/authlete/models/components/client_flag_update_request.rb +1 -2
- data/lib/authlete/models/components/client_flag_update_request.rbi +1 -1
- data/lib/authlete/models/components/client_flag_update_response.rb +0 -1
- data/lib/authlete/models/components/client_flag_update_response.rbi +1 -1
- data/lib/authlete/models/components/client_get_list_response.rb +4 -5
- data/lib/authlete/models/components/client_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/client_granted_scopes_delete_response.rb +0 -1
- data/lib/authlete/models/components/client_granted_scopes_delete_response.rbi +1 -1
- data/lib/authlete/models/components/client_input.rb +155 -295
- data/lib/authlete/models/components/client_input.rbi +1 -1
- data/lib/authlete/models/components/client_limited.rb +7 -8
- data/lib/authlete/models/components/client_limited.rbi +1 -1
- data/lib/authlete/models/components/client_limited_authorization.rb +217 -20
- data/lib/authlete/models/components/client_limited_authorization.rbi +65 -1
- data/lib/authlete/models/components/client_limited_authorization_clientsource.rb +23 -0
- data/lib/authlete/models/components/client_limited_authorization_clientsource.rbi +11 -0
- data/lib/authlete/models/components/client_registration_response.rb +3 -4
- data/lib/authlete/models/components/client_registration_response.rbi +1 -1
- data/lib/authlete/models/components/client_registration_response_action.rb +1 -4
- data/lib/authlete/models/components/client_registration_response_action.rbi +1 -1
- data/lib/authlete/models/components/client_registration_type.rb +1 -4
- data/lib/authlete/models/components/client_registration_type.rbi +1 -1
- data/lib/authlete/models/components/client_secret_refresh_response.rb +2 -3
- data/lib/authlete/models/components/client_secret_refresh_response.rbi +1 -1
- data/lib/authlete/models/components/client_secret_update_request.rb +1 -2
- data/lib/authlete/models/components/client_secret_update_request.rbi +1 -1
- data/lib/authlete/models/components/client_secret_update_response.rb +2 -3
- data/lib/authlete/models/components/client_secret_update_response.rbi +1 -1
- data/lib/authlete/models/components/client_type.rb +1 -4
- data/lib/authlete/models/components/client_type.rbi +1 -1
- data/lib/authlete/models/components/credential_issuance_order.rb +1 -2
- data/lib/authlete/models/components/credential_issuance_order.rbi +1 -1
- data/lib/authlete/models/components/credential_issuer_metadata.rb +5 -6
- data/lib/authlete/models/components/credential_issuer_metadata.rbi +1 -1
- data/lib/authlete/models/components/credential_offer_info.rb +12 -21
- data/lib/authlete/models/components/credential_offer_info.rbi +1 -1
- data/lib/authlete/models/components/credential_request_info.rb +0 -1
- data/lib/authlete/models/components/credential_request_info.rbi +1 -1
- data/lib/authlete/models/components/delivery_mode.rb +0 -3
- data/lib/authlete/models/components/delivery_mode.rbi +1 -1
- data/lib/authlete/models/components/device_authorization_request.rb +12 -13
- data/lib/authlete/models/components/device_authorization_request.rbi +1 -1
- data/lib/authlete/models/components/device_authorization_response.rb +39 -49
- data/lib/authlete/models/components/device_authorization_response.rbi +1 -1
- data/lib/authlete/models/components/device_authorization_response_action.rb +0 -3
- data/lib/authlete/models/components/device_authorization_response_action.rbi +1 -1
- data/lib/authlete/models/components/device_complete_request.rb +22 -23
- data/lib/authlete/models/components/device_complete_request.rbi +1 -1
- data/lib/authlete/models/components/device_complete_request_result.rb +1 -4
- data/lib/authlete/models/components/device_complete_request_result.rbi +1 -1
- data/lib/authlete/models/components/device_complete_response.rb +2 -3
- data/lib/authlete/models/components/device_complete_response.rbi +1 -1
- data/lib/authlete/models/components/device_complete_response_action.rb +1 -4
- data/lib/authlete/models/components/device_complete_response_action.rbi +1 -1
- data/lib/authlete/models/components/device_verification_request.rb +1 -2
- data/lib/authlete/models/components/device_verification_request.rbi +1 -1
- data/lib/authlete/models/components/device_verification_response.rb +32 -33
- data/lib/authlete/models/components/device_verification_response.rbi +1 -1
- data/lib/authlete/models/components/device_verification_response_action.rb +0 -3
- data/lib/authlete/models/components/device_verification_response_action.rbi +1 -1
- data/lib/authlete/models/components/display.rb +3 -6
- data/lib/authlete/models/components/display.rbi +1 -1
- data/lib/authlete/models/components/dynamic_scope.rb +0 -1
- data/lib/authlete/models/components/dynamic_scope.rbi +1 -1
- data/lib/authlete/models/components/fapi_mode.rb +0 -3
- data/lib/authlete/models/components/fapi_mode.rbi +1 -1
- data/lib/authlete/models/components/federation_configuration_response.rb +2 -3
- data/lib/authlete/models/components/federation_configuration_response.rbi +1 -1
- data/lib/authlete/models/components/federation_configuration_response_action.rb +0 -3
- data/lib/authlete/models/components/federation_configuration_response_action.rbi +1 -1
- data/lib/authlete/models/components/federation_registration_request.rb +2 -3
- data/lib/authlete/models/components/federation_registration_request.rbi +1 -1
- data/lib/authlete/models/components/federation_registration_response.rb +2 -3
- data/lib/authlete/models/components/federation_registration_response.rbi +1 -1
- data/lib/authlete/models/components/federation_registration_response_action.rb +0 -3
- data/lib/authlete/models/components/federation_registration_response_action.rbi +1 -1
- data/lib/authlete/models/components/g_m_request.rb +13 -14
- data/lib/authlete/models/components/g_m_request.rbi +1 -1
- data/lib/authlete/models/components/g_m_response.rb +3 -4
- data/lib/authlete/models/components/g_m_response.rbi +1 -1
- data/lib/authlete/models/components/g_m_response_action.rb +0 -3
- data/lib/authlete/models/components/g_m_response_action.rbi +1 -1
- data/lib/authlete/models/components/grant.rb +2 -3
- data/lib/authlete/models/components/grant.rbi +1 -1
- data/lib/authlete/models/components/grant_management_action.rb +2 -5
- data/lib/authlete/models/components/grant_management_action.rbi +1 -1
- data/lib/authlete/models/components/grant_scope.rb +2 -3
- data/lib/authlete/models/components/grant_scope.rbi +1 -1
- data/lib/authlete/models/components/grant_type.rb +1 -4
- data/lib/authlete/models/components/grant_type.rbi +1 -1
- data/lib/authlete/models/components/hsk.rb +8 -9
- data/lib/authlete/models/components/hsk.rbi +1 -1
- data/lib/authlete/models/components/hsk_create_request.rb +6 -7
- data/lib/authlete/models/components/hsk_create_request.rbi +1 -1
- data/lib/authlete/models/components/hsk_create_response.rb +2 -3
- data/lib/authlete/models/components/hsk_create_response.rbi +1 -1
- data/lib/authlete/models/components/hsk_create_response_action.rb +0 -3
- data/lib/authlete/models/components/hsk_create_response_action.rbi +1 -1
- data/lib/authlete/models/components/hsk_delete_response.rb +2 -3
- data/lib/authlete/models/components/hsk_delete_response.rbi +1 -1
- data/lib/authlete/models/components/hsk_delete_response_action.rb +0 -3
- data/lib/authlete/models/components/hsk_delete_response_action.rbi +1 -1
- data/lib/authlete/models/components/hsk_get_list_response.rb +1 -2
- data/lib/authlete/models/components/hsk_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/hsk_get_list_response_action.rb +0 -3
- data/lib/authlete/models/components/hsk_get_list_response_action.rbi +1 -1
- data/lib/authlete/models/components/hsk_get_response.rb +2 -3
- data/lib/authlete/models/components/hsk_get_response.rbi +1 -1
- data/lib/authlete/models/components/hsk_get_response_action.rb +0 -3
- data/lib/authlete/models/components/hsk_get_response_action.rbi +1 -1
- data/lib/authlete/models/components/idtoken_reissue_request.rb +7 -8
- data/lib/authlete/models/components/idtoken_reissue_request.rbi +1 -1
- data/lib/authlete/models/components/idtoken_reissue_response.rb +3 -4
- data/lib/authlete/models/components/idtoken_reissue_response.rbi +1 -1
- data/lib/authlete/models/components/idtoken_reissue_response_action.rb +0 -3
- data/lib/authlete/models/components/idtoken_reissue_response_action.rbi +1 -1
- data/lib/authlete/models/components/introspection_request.rb +24 -41
- data/lib/authlete/models/components/introspection_request.rbi +1 -1
- data/lib/authlete/models/components/introspection_response.rb +36 -46
- data/lib/authlete/models/components/introspection_response.rbi +1 -1
- data/lib/authlete/models/components/introspection_response_action.rb +0 -3
- data/lib/authlete/models/components/introspection_response_action.rbi +1 -1
- data/lib/authlete/models/components/jose_verify_request.rb +5 -6
- data/lib/authlete/models/components/jose_verify_request.rbi +1 -1
- data/lib/authlete/models/components/jose_verify_response.rb +5 -6
- data/lib/authlete/models/components/jose_verify_response.rbi +1 -1
- data/lib/authlete/models/components/jwe_alg.rb +2 -5
- data/lib/authlete/models/components/jwe_alg.rbi +1 -1
- data/lib/authlete/models/components/jwe_enc.rb +1 -4
- data/lib/authlete/models/components/jwe_enc.rbi +1 -1
- data/lib/authlete/models/components/jws_alg.rb +2 -5
- data/lib/authlete/models/components/jws_alg.rbi +1 -1
- data/lib/authlete/models/components/named_uri.rb +0 -1
- data/lib/authlete/models/components/named_uri.rbi +1 -1
- data/lib/authlete/models/components/native_sso_logout_request.rb +1 -2
- data/lib/authlete/models/components/native_sso_logout_request.rbi +1 -1
- data/lib/authlete/models/components/native_sso_logout_response.rb +3 -4
- data/lib/authlete/models/components/native_sso_logout_response.rbi +1 -1
- data/lib/authlete/models/components/native_sso_logout_response_action.rb +1 -4
- data/lib/authlete/models/components/native_sso_logout_response_action.rbi +1 -1
- data/lib/authlete/models/components/native_sso_request.rb +8 -25
- data/lib/authlete/models/components/native_sso_request.rbi +1 -1
- data/lib/authlete/models/components/native_sso_response.rb +4 -5
- data/lib/authlete/models/components/native_sso_response.rbi +1 -1
- data/lib/authlete/models/components/native_sso_response_action.rb +1 -4
- data/lib/authlete/models/components/native_sso_response_action.rbi +1 -1
- data/lib/authlete/models/components/pair.rb +0 -1
- data/lib/authlete/models/components/pair.rbi +1 -1
- data/lib/authlete/models/components/prompt.rb +3 -6
- data/lib/authlete/models/components/prompt.rbi +1 -1
- data/lib/authlete/models/components/property.rb +1 -2
- data/lib/authlete/models/components/property.rbi +1 -1
- data/lib/authlete/models/components/pushed_authorization_request.rb +11 -12
- data/lib/authlete/models/components/pushed_authorization_request.rbi +1 -1
- data/lib/authlete/models/components/pushed_authorization_response.rb +6 -7
- data/lib/authlete/models/components/pushed_authorization_response.rbi +1 -1
- data/lib/authlete/models/components/pushed_authorization_response_action.rb +0 -3
- data/lib/authlete/models/components/pushed_authorization_response_action.rbi +1 -1
- data/lib/authlete/models/components/pushed_authorization_response_clientauthmethod.rb +2 -4
- data/lib/authlete/models/components/pushed_authorization_response_clientauthmethod.rbi +1 -1
- data/lib/authlete/models/components/response_type.rb +0 -3
- data/lib/authlete/models/components/response_type.rbi +1 -1
- data/lib/authlete/models/components/responsemode.rb +0 -3
- data/lib/authlete/models/components/responsemode.rbi +1 -1
- data/lib/authlete/models/components/revocation_request.rb +10 -11
- data/lib/authlete/models/components/revocation_request.rbi +1 -1
- data/lib/authlete/models/components/revocation_response.rb +2 -3
- data/lib/authlete/models/components/revocation_response.rbi +1 -1
- data/lib/authlete/models/components/revocation_response_action.rb +0 -3
- data/lib/authlete/models/components/revocation_response_action.rbi +1 -1
- data/lib/authlete/models/components/scope.rb +0 -1
- data/lib/authlete/models/components/scope.rbi +1 -1
- data/lib/authlete/models/components/security.rb +3 -4
- data/lib/authlete/models/components/security.rbi +1 -1
- data/lib/authlete/models/components/service.rb +248 -600
- data/lib/authlete/models/components/service.rbi +1 -1
- data/lib/authlete/models/components/service_get_list_response.rb +4 -5
- data/lib/authlete/models/components/service_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/service_input.rb +242 -594
- data/lib/authlete/models/components/service_input.rbi +1 -1
- data/lib/authlete/models/components/service_jwks_get_response.rb +0 -1
- data/lib/authlete/models/components/service_jwks_get_response.rbi +1 -1
- data/lib/authlete/models/components/service_profile.rb +0 -3
- data/lib/authlete/models/components/service_profile.rbi +1 -1
- data/lib/authlete/models/components/sns_credentials.rb +0 -1
- data/lib/authlete/models/components/sns_credentials.rbi +1 -1
- data/lib/authlete/models/components/standard_introspection_request.rb +22 -23
- data/lib/authlete/models/components/standard_introspection_request.rbi +1 -1
- data/lib/authlete/models/components/standard_introspection_response.rb +2 -3
- data/lib/authlete/models/components/standard_introspection_response.rbi +1 -1
- data/lib/authlete/models/components/standard_introspection_response_action.rb +1 -3
- data/lib/authlete/models/components/standard_introspection_response_action.rbi +1 -1
- data/lib/authlete/models/components/subject_type.rb +2 -5
- data/lib/authlete/models/components/subject_type.rbi +1 -1
- data/lib/authlete/models/components/supportedsnse.rb +0 -3
- data/lib/authlete/models/components/supportedsnse.rbi +1 -1
- data/lib/authlete/models/components/tagged_value.rb +0 -1
- data/lib/authlete/models/components/tagged_value.rbi +1 -1
- data/lib/authlete/models/components/token_create_request.rb +30 -63
- data/lib/authlete/models/components/token_create_request.rbi +1 -1
- data/lib/authlete/models/components/token_create_response.rb +18 -19
- data/lib/authlete/models/components/token_create_response.rbi +1 -1
- data/lib/authlete/models/components/token_create_response_action.rb +0 -3
- data/lib/authlete/models/components/token_create_response_action.rbi +1 -1
- data/lib/authlete/models/components/token_fail_request.rb +3 -4
- data/lib/authlete/models/components/token_fail_request.rbi +1 -1
- data/lib/authlete/models/components/token_fail_request_reason.rb +1 -4
- data/lib/authlete/models/components/token_fail_request_reason.rbi +1 -1
- data/lib/authlete/models/components/token_fail_response.rb +2 -3
- data/lib/authlete/models/components/token_fail_response.rbi +1 -1
- data/lib/authlete/models/components/token_fail_response_action.rb +0 -3
- data/lib/authlete/models/components/token_fail_response_action.rbi +1 -1
- data/lib/authlete/models/components/token_get_list_response.rb +5 -6
- data/lib/authlete/models/components/token_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/token_info.rb +8 -9
- data/lib/authlete/models/components/token_info.rbi +1 -1
- data/lib/authlete/models/components/token_issue_request.rb +9 -10
- data/lib/authlete/models/components/token_issue_request.rbi +1 -1
- data/lib/authlete/models/components/token_issue_response.rb +21 -22
- data/lib/authlete/models/components/token_issue_response.rbi +1 -1
- data/lib/authlete/models/components/token_issue_response_action.rb +0 -3
- data/lib/authlete/models/components/token_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/token_request.rb +27 -28
- data/lib/authlete/models/components/token_request.rbi +1 -1
- data/lib/authlete/models/components/token_response.rb +55 -63
- data/lib/authlete/models/components/token_response.rbi +3 -1
- data/lib/authlete/models/components/token_response_action.rb +2 -3
- data/lib/authlete/models/components/token_response_action.rbi +1 -1
- data/lib/authlete/models/components/token_revoke_request.rb +7 -8
- data/lib/authlete/models/components/token_revoke_request.rbi +1 -1
- data/lib/authlete/models/components/token_revoke_response.rb +0 -1
- data/lib/authlete/models/components/token_revoke_response.rbi +1 -1
- data/lib/authlete/models/components/token_type.rb +1 -4
- data/lib/authlete/models/components/token_type.rbi +1 -1
- data/lib/authlete/models/components/token_update_request.rb +19 -20
- data/lib/authlete/models/components/token_update_request.rbi +1 -1
- data/lib/authlete/models/components/token_update_response.rb +9 -10
- data/lib/authlete/models/components/token_update_response.rbi +1 -1
- data/lib/authlete/models/components/token_update_response_action.rb +0 -3
- data/lib/authlete/models/components/token_update_response_action.rbi +1 -1
- data/lib/authlete/models/components/trust_anchor.rb +2 -3
- data/lib/authlete/models/components/trust_anchor.rbi +1 -1
- data/lib/authlete/models/components/user_code_charset.rb +1 -4
- data/lib/authlete/models/components/user_code_charset.rbi +1 -1
- data/lib/authlete/models/components/userinfo_issue_request.rb +7 -68
- data/lib/authlete/models/components/userinfo_issue_request.rbi +1 -1
- data/lib/authlete/models/components/userinfo_issue_response.rb +5 -6
- data/lib/authlete/models/components/userinfo_issue_response.rbi +1 -1
- data/lib/authlete/models/components/userinfo_issue_response_action.rb +0 -3
- data/lib/authlete/models/components/userinfo_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/userinfo_request.rb +15 -41
- data/lib/authlete/models/components/userinfo_request.rbi +1 -1
- data/lib/authlete/models/components/userinfo_response.rb +46 -90
- data/lib/authlete/models/components/userinfo_response.rbi +1 -1
- data/lib/authlete/models/components/userinfo_response_action.rb +0 -3
- data/lib/authlete/models/components/userinfo_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_issue_request.rb +0 -1
- data/lib/authlete/models/components/vci_batch_issue_request.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_issue_response.rb +3 -4
- data/lib/authlete/models/components/vci_batch_issue_response.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_issue_response_action.rb +1 -4
- data/lib/authlete/models/components/vci_batch_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_parse_request.rb +0 -1
- data/lib/authlete/models/components/vci_batch_parse_request.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_parse_response.rb +2 -3
- data/lib/authlete/models/components/vci_batch_parse_response.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_parse_response_action.rb +0 -3
- data/lib/authlete/models/components/vci_batch_parse_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_issue_request.rb +0 -1
- data/lib/authlete/models/components/vci_deferred_issue_request.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_issue_response.rb +3 -4
- data/lib/authlete/models/components/vci_deferred_issue_response.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_issue_response_action.rb +1 -4
- data/lib/authlete/models/components/vci_deferred_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_parse_request.rb +0 -1
- data/lib/authlete/models/components/vci_deferred_parse_request.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_parse_response.rb +1 -2
- data/lib/authlete/models/components/vci_deferred_parse_response.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_parse_response_action.rb +0 -3
- data/lib/authlete/models/components/vci_deferred_parse_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_jwks_request.rb +1 -2
- data/lib/authlete/models/components/vci_jwks_request.rbi +1 -1
- data/lib/authlete/models/components/vci_jwks_response.rb +3 -4
- data/lib/authlete/models/components/vci_jwks_response.rbi +1 -1
- data/lib/authlete/models/components/vci_jwks_response_action.rb +1 -4
- data/lib/authlete/models/components/vci_jwks_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_jwtissuer_request.rb +1 -2
- data/lib/authlete/models/components/vci_jwtissuer_request.rbi +1 -1
- data/lib/authlete/models/components/vci_jwtissuer_response.rb +3 -4
- data/lib/authlete/models/components/vci_jwtissuer_response.rbi +1 -1
- data/lib/authlete/models/components/vci_jwtissuer_response_action.rb +1 -4
- data/lib/authlete/models/components/vci_jwtissuer_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_metadata_request.rb +1 -2
- data/lib/authlete/models/components/vci_metadata_request.rbi +1 -1
- data/lib/authlete/models/components/vci_metadata_response.rb +3 -4
- data/lib/authlete/models/components/vci_metadata_response.rbi +1 -1
- data/lib/authlete/models/components/vci_metadata_response_action.rb +1 -4
- data/lib/authlete/models/components/vci_metadata_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_create_request.rb +10 -80
- data/lib/authlete/models/components/vci_offer_create_request.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_create_response.rb +1 -2
- data/lib/authlete/models/components/vci_offer_create_response.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_create_response_action.rb +0 -3
- data/lib/authlete/models/components/vci_offer_create_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_info_request.rb +0 -1
- data/lib/authlete/models/components/vci_offer_info_request.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_info_response.rb +1 -2
- data/lib/authlete/models/components/vci_offer_info_response.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_info_response_action.rb +0 -3
- data/lib/authlete/models/components/vci_offer_info_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_single_issue_request.rb +0 -1
- data/lib/authlete/models/components/vci_single_issue_request.rbi +1 -1
- data/lib/authlete/models/components/vci_single_issue_response.rb +4 -5
- data/lib/authlete/models/components/vci_single_issue_response.rbi +1 -1
- data/lib/authlete/models/components/vci_single_issue_response_action.rb +1 -4
- data/lib/authlete/models/components/vci_single_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_single_parse_request.rb +0 -1
- data/lib/authlete/models/components/vci_single_parse_request.rbi +1 -1
- data/lib/authlete/models/components/vci_single_parse_response.rb +1 -2
- data/lib/authlete/models/components/vci_single_parse_response.rbi +1 -1
- data/lib/authlete/models/components/vci_single_parse_response_action.rb +0 -3
- data/lib/authlete/models/components/vci_single_parse_response_action.rbi +1 -1
- data/lib/authlete/models/components/verified_claims_validation_schema.rb +1 -4
- data/lib/authlete/models/components/verified_claims_validation_schema.rbi +1 -1
- data/lib/authlete/models/components.rb +3 -1
- data/lib/authlete/models/errors/apierror.rbi +2 -1
- data/lib/authlete/models/errors/result_error.rb +0 -1
- data/lib/authlete/models/errors/result_error.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_authorization_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_authorization_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_fail_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_authorization_fail_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_fail_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_authorization_fail_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_authorization_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_authorization_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_introspection_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_introspection_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_introspection_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_introspection_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_introspection_standard_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_introspection_standard_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_introspection_standard_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_introspection_standard_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_revocation_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_revocation_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_revocation_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_revocation_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_token_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_create_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_token_create_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_create_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_delete_api_request.rb +1 -2
- data/lib/authlete/models/operations/auth_token_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_fail_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_token_fail_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_fail_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_fail_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_get_list_api_request.rb +3 -4
- data/lib/authlete/models/operations/auth_token_get_list_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_get_list_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_get_list_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_token_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_revoke_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_token_revoke_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_revoke_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_revoke_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_update_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_token_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_token_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_userinfo_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_userinfo_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_userinfo_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_userinfo_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_userinfo_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/auth_userinfo_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_userinfo_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/auth_userinfo_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_request.rb +0 -1
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_request.rbi +1 -1
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_response.rb +0 -1
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_response.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_api_request.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_api_request.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_api_response.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_api_response.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_request.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_response.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_request.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_request.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_response.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_response.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_delete_api_post_request.rb +41 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_post_request.rbi +17 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_post_requestbody.rb +32 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_post_requestbody.rbi +13 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_post_response.rb +44 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_post_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_request.rb +7 -13
- data/lib/authlete/models/operations/client_authorization_delete_api_request.rbi +3 -5
- data/lib/authlete/models/operations/client_authorization_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_authorization_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_request.rb +42 -0
- data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_response.rb +44 -0
- data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_post_request.rb +36 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_post_request.rbi +15 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_post_response.rb +44 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_post_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_request.rb +8 -14
- data/lib/authlete/models/operations/client_authorization_get_list_api_request.rbi +3 -5
- data/lib/authlete/models/operations/client_authorization_get_list_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_authorization_get_list_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_request.rb +51 -0
- data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_request.rbi +21 -0
- data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_response.rb +44 -0
- data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_update_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_authorization_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_authorization_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_create_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_create_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_create_api_response.rb +1 -2
- data/lib/authlete/models/operations/client_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_delete_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_request.rb +41 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_request.rbi +17 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_response.rb +44 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_response.rbi +19 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_flag_update_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_flag_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_flag_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_flag_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_get_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_get_list_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_get_list_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_get_list_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_get_list_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_request.rb +7 -13
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_request.rbi +3 -5
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_request.rb +42 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_response.rb +44 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_request.rb +41 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_request.rbi +17 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_requestbody.rb +32 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_requestbody.rbi +13 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_response.rb +44 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_response.rbi +19 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_request.rb +7 -13
- data/lib/authlete/models/operations/client_granted_scopes_get_api_request.rbi +3 -5
- data/lib/authlete/models/operations/client_granted_scopes_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_granted_scopes_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_request.rb +42 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_response.rb +44 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_registration_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_registration_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_api_requestbody.rb +3 -4
- data/lib/authlete/models/operations/client_registration_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_registration_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_delete_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_registration_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_delete_api_requestbody.rb +3 -4
- data/lib/authlete/models/operations/client_registration_delete_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_registration_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_get_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_registration_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_get_api_requestbody.rb +3 -4
- data/lib/authlete/models/operations/client_registration_get_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_registration_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_update_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_registration_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_update_api_requestbody.rb +3 -4
- data/lib/authlete/models/operations/client_registration_update_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_registration_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_secret_refresh_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_secret_refresh_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_secret_refresh_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_secret_refresh_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_secret_update_api_request.rb +1 -2
- data/lib/authlete/models/operations/client_secret_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_secret_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_secret_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_update_api_form_request.rb +0 -1
- data/lib/authlete/models/operations/client_update_api_form_request.rbi +1 -1
- data/lib/authlete/models/operations/client_update_api_form_response.rb +0 -1
- data/lib/authlete/models/operations/client_update_api_form_response.rbi +1 -1
- data/lib/authlete/models/operations/client_update_api_request.rb +0 -1
- data/lib/authlete/models/operations/client_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/client_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/device_authorization_api_request.rb +0 -1
- data/lib/authlete/models/operations/device_authorization_api_request.rbi +1 -1
- data/lib/authlete/models/operations/device_authorization_api_response.rb +0 -1
- data/lib/authlete/models/operations/device_authorization_api_response.rbi +1 -1
- data/lib/authlete/models/operations/device_complete_api_request.rb +0 -1
- data/lib/authlete/models/operations/device_complete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/device_complete_api_response.rb +0 -1
- data/lib/authlete/models/operations/device_complete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/device_verification_api_request.rb +0 -1
- data/lib/authlete/models/operations/device_verification_api_request.rbi +1 -1
- data/lib/authlete/models/operations/device_verification_api_response.rb +0 -1
- data/lib/authlete/models/operations/device_verification_api_response.rbi +1 -1
- data/lib/authlete/models/operations/federation_configuration_api_request.rb +0 -1
- data/lib/authlete/models/operations/federation_configuration_api_request.rbi +1 -1
- data/lib/authlete/models/operations/federation_configuration_api_requestbody.rb +0 -1
- data/lib/authlete/models/operations/federation_configuration_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/federation_configuration_api_response.rb +0 -1
- data/lib/authlete/models/operations/federation_configuration_api_response.rbi +1 -1
- data/lib/authlete/models/operations/federation_registration_api_request.rb +0 -1
- data/lib/authlete/models/operations/federation_registration_api_request.rbi +1 -1
- data/lib/authlete/models/operations/federation_registration_api_response.rb +0 -1
- data/lib/authlete/models/operations/federation_registration_api_response.rbi +1 -1
- data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_request.rb +33 -0
- data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_request.rbi +13 -0
- data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_response.rb +44 -0
- data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_response.rbi +19 -0
- data/lib/authlete/models/operations/grant_m_api_request.rb +0 -1
- data/lib/authlete/models/operations/grant_m_api_request.rbi +1 -1
- data/lib/authlete/models/operations/grant_m_api_response.rb +0 -1
- data/lib/authlete/models/operations/grant_m_api_response.rbi +1 -1
- data/lib/authlete/models/operations/hsk_create_api_request.rb +0 -1
- data/lib/authlete/models/operations/hsk_create_api_request.rbi +1 -1
- data/lib/authlete/models/operations/hsk_create_api_response.rb +0 -1
- data/lib/authlete/models/operations/hsk_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/hsk_delete_api_request.rb +0 -1
- data/lib/authlete/models/operations/hsk_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/hsk_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/hsk_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/hsk_get_api_request.rb +0 -1
- data/lib/authlete/models/operations/hsk_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/hsk_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/hsk_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/hsk_get_list_api_request.rb +0 -1
- data/lib/authlete/models/operations/hsk_get_list_api_request.rbi +1 -1
- data/lib/authlete/models/operations/hsk_get_list_api_response.rb +0 -1
- data/lib/authlete/models/operations/hsk_get_list_api_response.rbi +1 -1
- data/lib/authlete/models/operations/idtoken_reissue_api_request.rb +0 -1
- data/lib/authlete/models/operations/idtoken_reissue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/idtoken_reissue_api_response.rb +0 -1
- data/lib/authlete/models/operations/idtoken_reissue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/jose_verify_api_request.rb +0 -1
- data/lib/authlete/models/operations/jose_verify_api_request.rbi +1 -1
- data/lib/authlete/models/operations/jose_verify_api_response.rb +0 -1
- data/lib/authlete/models/operations/jose_verify_api_response.rbi +1 -1
- data/lib/authlete/models/operations/native_sso_api_request.rb +0 -1
- data/lib/authlete/models/operations/native_sso_api_request.rbi +1 -1
- data/lib/authlete/models/operations/native_sso_api_response.rb +0 -1
- data/lib/authlete/models/operations/native_sso_api_response.rbi +1 -1
- data/lib/authlete/models/operations/native_sso_logout_api_request.rb +0 -1
- data/lib/authlete/models/operations/native_sso_logout_api_request.rbi +1 -1
- data/lib/authlete/models/operations/native_sso_logout_api_response.rb +0 -1
- data/lib/authlete/models/operations/native_sso_logout_api_response.rbi +1 -1
- data/lib/authlete/models/operations/pushed_auth_req_api_request.rb +0 -1
- data/lib/authlete/models/operations/pushed_auth_req_api_request.rbi +1 -1
- data/lib/authlete/models/operations/pushed_auth_req_api_response.rb +0 -1
- data/lib/authlete/models/operations/pushed_auth_req_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_configuration_api_request.rb +0 -1
- data/lib/authlete/models/operations/service_configuration_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_configuration_api_response.rb +0 -1
- data/lib/authlete/models/operations/service_configuration_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_create_api_response.rb +1 -2
- data/lib/authlete/models/operations/service_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_delete_api_request.rb +0 -1
- data/lib/authlete/models/operations/service_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_delete_api_response.rb +0 -1
- data/lib/authlete/models/operations/service_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_get_api_request.rb +0 -1
- data/lib/authlete/models/operations/service_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/service_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_get_list_api_request.rb +0 -1
- data/lib/authlete/models/operations/service_get_list_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_get_list_api_response.rb +0 -1
- data/lib/authlete/models/operations/service_get_list_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_jwks_get_api_request.rb +0 -1
- data/lib/authlete/models/operations/service_jwks_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_jwks_get_api_response.rb +0 -1
- data/lib/authlete/models/operations/service_jwks_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_update_api_request.rb +0 -1
- data/lib/authlete/models/operations/service_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_update_api_response.rb +0 -1
- data/lib/authlete/models/operations/service_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/updateauthorizationticket_request.rb +0 -1
- data/lib/authlete/models/operations/updateauthorizationticket_request.rbi +1 -1
- data/lib/authlete/models/operations/updateauthorizationticket_response.rb +0 -1
- data/lib/authlete/models/operations/updateauthorizationticket_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_batch_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_batch_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_batch_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_batch_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_batch_parse_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_batch_parse_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_batch_parse_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_batch_parse_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_deferred_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_deferred_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_deferred_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_deferred_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_deferred_parse_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_deferred_parse_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_deferred_parse_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_deferred_parse_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_jwks_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_jwks_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_jwks_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_jwks_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_jwtissuer_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_jwtissuer_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_jwtissuer_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_jwtissuer_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_metadata_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_metadata_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_metadata_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_metadata_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_offer_create_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_offer_create_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_offer_create_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_offer_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_offer_info_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_offer_info_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_offer_info_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_offer_info_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_single_issue_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_single_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_single_issue_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_single_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_single_parse_api_request.rb +0 -1
- data/lib/authlete/models/operations/vci_single_parse_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_single_parse_api_response.rb +0 -1
- data/lib/authlete/models/operations/vci_single_parse_api_response.rbi +1 -1
- data/lib/authlete/models/operations.rb +20 -0
- data/lib/authlete/native_sso.rb +17 -69
- data/lib/authlete/pushed_authorization.rb +10 -5
- data/lib/authlete/revocation.rb +10 -98
- data/lib/authlete/sdkconfiguration.rb +3 -3
- data/lib/authlete/services.rb +48 -28
- data/lib/authlete/token_management.rb +44 -24
- data/lib/authlete/tokens.rb +24 -454
- data/lib/authlete/userinfo.rb +17 -224
- data/lib/authlete/utils/request_bodies.rb +8 -3
- data/lib/authlete/utils/security.rb +10 -0
- data/lib/authlete/utils/url.rb +11 -5
- data/lib/authlete/utils/utils.rb +45 -3
- data/lib/authlete/verifiable_credentials.rb +69 -34
- data/lib/authlete_ruby_sdk.rb +1 -0
- data/lib/crystalline/enum.rbi +17 -0
- data/lib/crystalline/metadata_fields.rb +85 -22
- data/lib/crystalline/module.rb +99 -13
- data/lib/crystalline/types.rb +90 -3
- metadata +66 -6
- data/lib/authlete/models/components/clientsource.rbi +0 -11
|
@@ -39,8 +39,10 @@ module Authlete
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(hsk_create_request: Models::Components::HskCreateRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::HskCreateApiResponse) }
|
|
45
|
+
def create(hsk_create_request:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# create - Create Security Key
|
|
45
47
|
request = Models::Operations::HskCreateApiRequest.new(
|
|
46
48
|
service_id: service_id,
|
|
@@ -60,7 +62,7 @@ module Authlete
|
|
|
60
62
|
headers['content-type'] = req_content_type
|
|
61
63
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
62
64
|
|
|
63
|
-
if form
|
|
65
|
+
if form && !form.empty?
|
|
64
66
|
body = Utils.encode_form(form)
|
|
65
67
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
66
68
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -96,6 +98,9 @@ module Authlete
|
|
|
96
98
|
req.headers.merge!(headers)
|
|
97
99
|
req.options.timeout = timeout unless timeout.nil?
|
|
98
100
|
Utils.configure_request_security(req, security)
|
|
101
|
+
http_headers&.each do |key, value|
|
|
102
|
+
req.headers[key.to_s] = value
|
|
103
|
+
end
|
|
99
104
|
|
|
100
105
|
@sdk_configuration.hooks.before_request(
|
|
101
106
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -193,8 +198,8 @@ module Authlete
|
|
|
193
198
|
end
|
|
194
199
|
|
|
195
200
|
|
|
196
|
-
sig { params(service_id: ::String, handle: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::HskDeleteApiResponse) }
|
|
197
|
-
def destroy(service_id:, handle:, timeout_ms: nil)
|
|
201
|
+
sig { params(service_id: ::String, handle: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::HskDeleteApiResponse) }
|
|
202
|
+
def destroy(service_id:, handle:, timeout_ms: nil, http_headers: nil)
|
|
198
203
|
# destroy - Delete Security Key
|
|
199
204
|
request = Models::Operations::HskDeleteApiRequest.new(
|
|
200
205
|
service_id: service_id,
|
|
@@ -238,6 +243,9 @@ module Authlete
|
|
|
238
243
|
req.headers.merge!(headers)
|
|
239
244
|
req.options.timeout = timeout unless timeout.nil?
|
|
240
245
|
Utils.configure_request_security(req, security)
|
|
246
|
+
http_headers&.each do |key, value|
|
|
247
|
+
req.headers[key.to_s] = value
|
|
248
|
+
end
|
|
241
249
|
|
|
242
250
|
@sdk_configuration.hooks.before_request(
|
|
243
251
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -335,8 +343,8 @@ module Authlete
|
|
|
335
343
|
end
|
|
336
344
|
|
|
337
345
|
|
|
338
|
-
sig { params(service_id: ::String, handle: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::HskGetApiResponse) }
|
|
339
|
-
def retrieve(service_id:, handle:, timeout_ms: nil)
|
|
346
|
+
sig { params(service_id: ::String, handle: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::HskGetApiResponse) }
|
|
347
|
+
def retrieve(service_id:, handle:, timeout_ms: nil, http_headers: nil)
|
|
340
348
|
# retrieve - Get Security Key
|
|
341
349
|
request = Models::Operations::HskGetApiRequest.new(
|
|
342
350
|
service_id: service_id,
|
|
@@ -380,6 +388,9 @@ module Authlete
|
|
|
380
388
|
req.headers.merge!(headers)
|
|
381
389
|
req.options.timeout = timeout unless timeout.nil?
|
|
382
390
|
Utils.configure_request_security(req, security)
|
|
391
|
+
http_headers&.each do |key, value|
|
|
392
|
+
req.headers[key.to_s] = value
|
|
393
|
+
end
|
|
383
394
|
|
|
384
395
|
@sdk_configuration.hooks.before_request(
|
|
385
396
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -477,8 +488,8 @@ module Authlete
|
|
|
477
488
|
end
|
|
478
489
|
|
|
479
490
|
|
|
480
|
-
sig { params(service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::HskGetListApiResponse) }
|
|
481
|
-
def list(service_id:, timeout_ms: nil)
|
|
491
|
+
sig { params(service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::HskGetListApiResponse) }
|
|
492
|
+
def list(service_id:, timeout_ms: nil, http_headers: nil)
|
|
482
493
|
# list - List Security Keys
|
|
483
494
|
request = Models::Operations::HskGetListApiRequest.new(
|
|
484
495
|
service_id: service_id
|
|
@@ -521,6 +532,9 @@ module Authlete
|
|
|
521
532
|
req.headers.merge!(headers)
|
|
522
533
|
req.options.timeout = timeout unless timeout.nil?
|
|
523
534
|
Utils.configure_request_security(req, security)
|
|
535
|
+
http_headers&.each do |key, value|
|
|
536
|
+
req.headers[key.to_s] = value
|
|
537
|
+
end
|
|
524
538
|
|
|
525
539
|
@sdk_configuration.hooks.before_request(
|
|
526
540
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -616,5 +630,5 @@ module Authlete
|
|
|
616
630
|
|
|
617
631
|
end
|
|
618
632
|
end
|
|
619
|
-
|
|
633
|
+
end
|
|
620
634
|
end
|
|
@@ -39,134 +39,13 @@ module Authlete
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(introspection_request: Models::Components::IntrospectionRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::AuthIntrospectionApiResponse) }
|
|
45
|
+
def process_request(introspection_request:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# process_request - Process Introspection Request
|
|
45
47
|
# This API gathers information about an access token.
|
|
46
|
-
#
|
|
47
|
-
# This API is supposed to be called from within the implementations of protected resource endpoints
|
|
48
|
-
# of the authorization server implementation in order to get information about the access token which
|
|
49
|
-
# was presented by the client application.
|
|
50
|
-
# In general, a client application accesses a protected resource endpoint of a service with an access
|
|
51
|
-
# token, and the implementation of the endpoint checks whether the presented access token has enough
|
|
52
|
-
# privileges (= scopes) to access the protected resource before returning the protected resource to
|
|
53
|
-
# the client application. To achieve this flow, the endpoint implementation has to know detailed
|
|
54
|
-
# information about the access token. Authlete `/auth/introspection` API can be used to get such information.
|
|
55
|
-
# The response from `/auth/introspection` API has some parameters. Among them, it is `action` parameter
|
|
56
|
-
# that the authorization server implementation should check first because it denotes the next action
|
|
57
|
-
# that the authorization server implementation should take. According to the value of `action`, the
|
|
58
|
-
# authorization server implementation must take the steps described below.
|
|
59
|
-
# **INTERNAL\_SERVER\_ERROR**
|
|
60
|
-
# When the value of `action` is `INTERNAL\_SERVER\_ERROR`, it means that the request from the authorization
|
|
61
|
-
# server implementation was wrong or that an error occurred in Authlete.
|
|
62
|
-
# In either case, from the viewpoint of the client application, it is an error on the server side.
|
|
63
|
-
# Therefore, the service implementation should generate a response to the client application with
|
|
64
|
-
# HTTP status of "500 Internal Server Error". Authlete recommends `application/json` as the content
|
|
65
|
-
# type although OAuth 2.0 specification does not mention the format of the error response when the
|
|
66
|
-
# redirect URI is not usable.
|
|
67
|
-
# The value of `responseContent` is a string which describes the error in the format of
|
|
68
|
-
# [RFC 6750](https://datatracker.ietf.org/doc/html/rfc6750) (OAuth 2.0 Bearer Token Usage), so if
|
|
69
|
-
# the protected resource of the service implementation wants to return an error response to the client
|
|
70
|
-
# application in the way that complies with RFC 6750 (in other words, if `accessTokenType` configuration
|
|
71
|
-
# parameter of the service is Bearer), the value of `responseContent` can be used as the value of
|
|
72
|
-
# `WWW-Authenticate` header.
|
|
73
|
-
# The following is an example response which complies with RFC 6750.
|
|
74
|
-
# ```
|
|
75
|
-
# HTTP/1.1 500 Internal Server Error
|
|
76
|
-
# Content-Type: application/json
|
|
77
|
-
# Cache-Control: no-store
|
|
78
|
-
# Pragma: no-cache
|
|
79
|
-
# {responseContent}
|
|
80
|
-
# ```
|
|
81
|
-
# **BAD\_REQUEST**
|
|
82
|
-
# When the value of `action` is `BAD\_REQUEST`, it means that the request from the client application
|
|
83
|
-
# does not contain an access token (= the request from the authorization server implementation to
|
|
84
|
-
# Authlete does not contain `token` request parameter).
|
|
85
|
-
# A response with HTTP status of "400 Bad Request" must be returned to the client application and
|
|
86
|
-
# the content type must be `application/json`.
|
|
87
|
-
# The value of `responseContent` is a string which describes the error in the format of [RFC
|
|
88
|
-
# 6750](https://datatracker.ietf.org/doc/html/rfc6750) (OAuth 2.0 Bearer Token Usage), so if the
|
|
89
|
-
# protected resource of the service implementation wants to return an error response to the client
|
|
90
|
-
# application in the way that complies with RFC 6750 (in other words, if `accessTokenType` configuration
|
|
91
|
-
# parameter of the service is `Bearer`), the value of `responseContent` can be used as the value of
|
|
92
|
-
# `WWW-Authenticate` header.
|
|
93
|
-
# The following is an example response which complies with RFC 6750.
|
|
94
|
-
# ```
|
|
95
|
-
# HTTP/1.1 400 Bad Request
|
|
96
|
-
# WWW-Authenticate: {responseContent}
|
|
97
|
-
# Cache-Control: no-store
|
|
98
|
-
# Pragma: no-cache
|
|
99
|
-
# ```
|
|
100
|
-
# **UNAUTHORIZED**
|
|
101
|
-
# When the value of `action` is `UNAUTHORIZED`, it means that the access token does not exist or has
|
|
102
|
-
# expired.
|
|
103
|
-
# The value of `responseContent` is a string which describes the error in the format of RFC
|
|
104
|
-
# 6750 (OAuth 2.0 Bearer Token Usage), so if the protected resource of the service implementation
|
|
105
|
-
# wants to return an error response to the client application in the way that complies with [RFC
|
|
106
|
-
# 6750](https://datatracker.ietf.org/doc/html/rfc6750) (in other words, if `accessTokenType` configuration
|
|
107
|
-
# parameter of the service is `Bearer`), the value of `responseContent` can be used as the value of
|
|
108
|
-
# `WWW-Authenticate` header.
|
|
109
|
-
# The following is an example response which complies with RFC 6750.
|
|
110
|
-
# ```
|
|
111
|
-
# HTTP/1.1 401 Unauthorized
|
|
112
|
-
# WWW-Authenticate: {responseContent}
|
|
113
|
-
# Cache-Control: no-store
|
|
114
|
-
# Pragma: no-cache
|
|
115
|
-
# ```
|
|
116
|
-
# **FORBIDDEN**
|
|
117
|
-
# When the value of `action` is `FORBIDDEN`, it means that the access token does not cover the required
|
|
118
|
-
# scopes or that the subject associated with the access token is different from the subject contained
|
|
119
|
-
# in the request.
|
|
120
|
-
# A response with HTTP status of "400 Bad Request" must be returned to the client application and
|
|
121
|
-
# the content type must be `application/json`.
|
|
122
|
-
# The value of `responseContent` is a string which describes the error in the format of [RFC
|
|
123
|
-
# 6750](https://datatracker.ietf.org/doc/html/rfc6750) (OAuth 2.0 Bearer Token Usage), so if the
|
|
124
|
-
# protected resource of the service implementation wants to return an error response to the client
|
|
125
|
-
# application in the way that complies with RFC 6750 (in other words, if `accessTokenType` configuration
|
|
126
|
-
# parameter of the service is Bearer), the value of `responseContent` can be used as the value of
|
|
127
|
-
# `WWW-Authenticate` header.
|
|
128
|
-
# The following is an example response which complies with RFC 6750.
|
|
129
|
-
# ```
|
|
130
|
-
# HTTP/1.1 403 Forbidden
|
|
131
|
-
# WWW-Authenticate: {responseContent}
|
|
132
|
-
# Cache-Control: no-store
|
|
133
|
-
# Pragma: no-cache
|
|
134
|
-
# ```
|
|
135
|
-
# **OK**
|
|
136
|
-
# When the value of `action` is `OK`, it means that the access token which the client application
|
|
137
|
-
# presented is valid (= exists and has not expired).
|
|
138
|
-
# The implementation of the protected resource endpoint is supposed to return the protected resource
|
|
139
|
-
# to the client application.
|
|
140
|
-
# When action is `OK`, the value of `responseContent` is `"Bearer error=\"invalid\_request\""`. This
|
|
141
|
-
# is the simplest string which can be used as the value of `WWW-Authenticate` header to indicate
|
|
142
|
-
# "400 Bad Request". The implementation of the protected resource endpoint may use this string to
|
|
143
|
-
# tell the client application that the request was bad (e.g. in case necessary request parameters
|
|
144
|
-
# for the protected resource endpoint are missing). However, in such a case, the implementation
|
|
145
|
-
# should generate a more informative error message to help developers of client applications.
|
|
146
|
-
# The following is an example error response which complies with RFC 6750.
|
|
147
|
-
# ```
|
|
148
|
-
# HTTP/1.1 400 Bad Request
|
|
149
|
-
# WWW-Authenticate: {responseContent}
|
|
150
|
-
# Cache-Control: no-store
|
|
151
|
-
# Pragma: no-cache
|
|
152
|
-
# ```
|
|
153
|
-
# Basically, The value of `responseContent` is a string which describes the error in the format of
|
|
154
|
-
# [RFC 6750](https://datatracker.ietf.org/doc/html/rfc6750) (OAuth 2.0 Bearer Token Usage). So, if
|
|
155
|
-
# the service has selected `Bearer` as the value of `accessTokenType` configuration parameter, the
|
|
156
|
-
# value of `responseContent` can be used directly as the value of `WWW-Authenticate` header. However,
|
|
157
|
-
# if the service has selected another different token type, the service has to generate error messages
|
|
158
|
-
# for itself.
|
|
159
|
-
# \_**JWT-based access token**\_
|
|
160
|
-
# Since version 2.1, Authlete provides a feature to issue access tokens in JWT format. This feature
|
|
161
|
-
# can be enabled by setting a non-null value to the `accessTokenSignAlg` property of the service
|
|
162
|
-
# (see the description of the Service class for details). `/api/auth/introspection` API can accept
|
|
163
|
-
# access tokens in JWT format. However, note that the API does not return information contained in
|
|
164
|
-
# a given JWT-based access token but returns information stored in the database record which corresponds
|
|
165
|
-
# to the given JWT-based access token. Because attributes of the database record can be modified
|
|
166
|
-
# after the access token is issued (for example, by using `/api/auth/token/update` API), information
|
|
167
|
-
# returned by `/api/auth/introspection` API and information the given JWT-based access token holds
|
|
168
|
-
# may be different.
|
|
169
|
-
#
|
|
48
|
+
#
|
|
170
49
|
request = Models::Operations::AuthIntrospectionApiRequest.new(
|
|
171
50
|
service_id: service_id,
|
|
172
51
|
introspection_request: introspection_request
|
|
@@ -185,7 +64,7 @@ module Authlete
|
|
|
185
64
|
headers['content-type'] = req_content_type
|
|
186
65
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
187
66
|
|
|
188
|
-
if form
|
|
67
|
+
if form && !form.empty?
|
|
189
68
|
body = Utils.encode_form(form)
|
|
190
69
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
191
70
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -221,6 +100,9 @@ module Authlete
|
|
|
221
100
|
req.headers.merge!(headers)
|
|
222
101
|
req.options.timeout = timeout unless timeout.nil?
|
|
223
102
|
Utils.configure_request_security(req, security)
|
|
103
|
+
http_headers&.each do |key, value|
|
|
104
|
+
req.headers[key.to_s] = value
|
|
105
|
+
end
|
|
224
106
|
|
|
225
107
|
@sdk_configuration.hooks.before_request(
|
|
226
108
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -318,75 +200,12 @@ module Authlete
|
|
|
318
200
|
end
|
|
319
201
|
|
|
320
202
|
|
|
321
|
-
sig { params(standard_introspection_request: Models::Components::StandardIntrospectionRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::AuthIntrospectionStandardApiResponse) }
|
|
322
|
-
def standard_process(standard_introspection_request:, service_id:, timeout_ms: nil)
|
|
203
|
+
sig { params(standard_introspection_request: Models::Components::StandardIntrospectionRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::AuthIntrospectionStandardApiResponse) }
|
|
204
|
+
def standard_process(standard_introspection_request:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
323
205
|
# standard_process - Process OAuth 2.0 Introspection Request
|
|
324
206
|
# This API exists to help your authorization server provide its own introspection API which complies
|
|
325
207
|
# with [RFC 7662](https://tools.ietf.org/html/rfc7662) (OAuth 2.0 Token Introspection).
|
|
326
|
-
#
|
|
327
|
-
# This API is supposed to be called from within the implementations of the introspection endpoint
|
|
328
|
-
# of your service. The authorization server implementation should retrieve the value of `action` from
|
|
329
|
-
# the response and take the following steps according to the value.
|
|
330
|
-
# In general, a client application accesses a protected resource endpoint of a service with an access
|
|
331
|
-
# token, and the implementation of the endpoint checks whether the presented access token has enough
|
|
332
|
-
# privileges (= scopes) to access the protected resource before returning the protected resource to
|
|
333
|
-
# the client application. To achieve this flow, the endpoint implementation has to know detailed
|
|
334
|
-
# information about the access token. Authlete `/auth/introspection` API can be used to get such information.
|
|
335
|
-
# The response from `/auth/introspection` API has some parameters. Among them, it is `action` parameter
|
|
336
|
-
# that the authorization server implementation should check first because it denotes the next action
|
|
337
|
-
# that the authorization server implementation should take. According to the value of `action`, the
|
|
338
|
-
# authorization server implementation must take the steps described below.
|
|
339
|
-
# **INTERNAL\_SERVER\_ERROR**
|
|
340
|
-
# When the value of `action` is `INTERNAL\_SERVER\_ERROR`, it means that the request from the authorization
|
|
341
|
-
# server implementation was wrong or that an error occurred in Authlete.
|
|
342
|
-
# In either case, from the viewpoint of the client application, it is an error on the server side.
|
|
343
|
-
# Therefore, the service implementation should generate a response to the client application with
|
|
344
|
-
# HTTP status of "500 Internal Server Error".
|
|
345
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used
|
|
346
|
-
# as the entity body of the response if you want. Note that, however, [RFC 7662](https://datatracker.ietf.org/doc/html/rfc7662) does not mention anything about the response
|
|
347
|
-
# body of error responses.
|
|
348
|
-
# The following illustrates an example response which the introspection endpoint of the authorization
|
|
349
|
-
# server implementation generates and returns to the client application.
|
|
350
|
-
# ```
|
|
351
|
-
# HTTP/1.1 500 Internal Server Error
|
|
352
|
-
# Content-Type: application/json
|
|
353
|
-
# {responseContent}
|
|
354
|
-
# ```
|
|
355
|
-
# **BAD\_REQUEST**
|
|
356
|
-
# When the value of `action` is `BAD\_REQUEST`, it means that the request from the client application
|
|
357
|
-
# is invalid. This happens when the request from the client did not include the token request parameter.
|
|
358
|
-
# See "[2.1. Introspection Request](https://datatracker.ietf.org/doc/html/rfc7662#section-2.1)" in
|
|
359
|
-
# RFC 7662 for details about requirements for introspection requests.
|
|
360
|
-
# The HTTP status of the response returned to the client application should be "400 Bad Request".
|
|
361
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used
|
|
362
|
-
# as the entity body of the response if you want. Note that, however, [RFC 7662](https://datatracker.ietf.org/doc/html/rfc7662)
|
|
363
|
-
# does not mention anything about the response body of error responses.
|
|
364
|
-
# The following illustrates an example response which the introspection endpoint of the authorization
|
|
365
|
-
# server implementation generates and returns to the client application.
|
|
366
|
-
# ```
|
|
367
|
-
# HTTP/1.1 400 Bad Request
|
|
368
|
-
# Content-Type: application/json
|
|
369
|
-
# {responseContent}
|
|
370
|
-
# ```
|
|
371
|
-
# **OK**
|
|
372
|
-
# When the value of `action` is `OK`, the request from the client application is valid.
|
|
373
|
-
# The HTTP status of the response returned to the client application must be "200 OK" and its content
|
|
374
|
-
# type must be `application/json`.
|
|
375
|
-
# The value of `responseContent` is a JSON string which complies with the introspection response
|
|
376
|
-
# defined in "2.2. Introspection Response" in RFC7662.
|
|
377
|
-
# The following illustrates the response which the introspection endpoint of your authorization server
|
|
378
|
-
# implementation should generate and return to the client application.
|
|
379
|
-
# ```
|
|
380
|
-
# HTTP/1.1 200 OK
|
|
381
|
-
# Content-Type: application/json
|
|
382
|
-
# {responseContent}
|
|
383
|
-
# ```
|
|
384
|
-
# Note that RFC 7662 says \_"To prevent token scanning attacks, **the endpoint MUST also require some
|
|
385
|
-
# form of authorization to access this endpoint**"\_. This means that you have to protect your introspection
|
|
386
|
-
# endpoint in some way or other. Authlete does not care about how your introspection endpoint is protected.
|
|
387
|
-
# In most cases, as mentioned in RFC 7662, "401 Unauthorized" is a proper response when an introspection
|
|
388
|
-
# request does not satisfy authorization requirements imposed by your introspection endpoint.
|
|
389
|
-
#
|
|
208
|
+
#
|
|
390
209
|
request = Models::Operations::AuthIntrospectionStandardApiRequest.new(
|
|
391
210
|
service_id: service_id,
|
|
392
211
|
standard_introspection_request: standard_introspection_request
|
|
@@ -405,7 +224,7 @@ module Authlete
|
|
|
405
224
|
headers['content-type'] = req_content_type
|
|
406
225
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
407
226
|
|
|
408
|
-
if form
|
|
227
|
+
if form && !form.empty?
|
|
409
228
|
body = Utils.encode_form(form)
|
|
410
229
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
411
230
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -441,6 +260,9 @@ module Authlete
|
|
|
441
260
|
req.headers.merge!(headers)
|
|
442
261
|
req.options.timeout = timeout unless timeout.nil?
|
|
443
262
|
Utils.configure_request_security(req, security)
|
|
263
|
+
http_headers&.each do |key, value|
|
|
264
|
+
req.headers[key.to_s] = value
|
|
265
|
+
end
|
|
444
266
|
|
|
445
267
|
@sdk_configuration.hooks.before_request(
|
|
446
268
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -536,5 +358,5 @@ module Authlete
|
|
|
536
358
|
|
|
537
359
|
end
|
|
538
360
|
end
|
|
539
|
-
|
|
361
|
+
end
|
|
540
362
|
end
|
data/lib/authlete/jose_object.rb
CHANGED
|
@@ -39,11 +39,13 @@ module Authlete
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(service_id: ::String, jose_verify_request: T.nilable(Models::Components::JoseVerifyRequest), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::JoseVerifyApiResponse) }
|
|
45
|
+
def jose_verify_api(service_id:, jose_verify_request: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# jose_verify_api - Verify JOSE
|
|
45
47
|
# This API verifies a JOSE object.
|
|
46
|
-
#
|
|
48
|
+
#
|
|
47
49
|
request = Models::Operations::JoseVerifyApiRequest.new(
|
|
48
50
|
service_id: service_id,
|
|
49
51
|
jose_verify_request: jose_verify_request
|
|
@@ -61,7 +63,7 @@ module Authlete
|
|
|
61
63
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :jose_verify_request, :json)
|
|
62
64
|
headers['content-type'] = req_content_type
|
|
63
65
|
|
|
64
|
-
if form
|
|
66
|
+
if form && !form.empty?
|
|
65
67
|
body = Utils.encode_form(form)
|
|
66
68
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
67
69
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -97,6 +99,9 @@ module Authlete
|
|
|
97
99
|
req.headers.merge!(headers)
|
|
98
100
|
req.options.timeout = timeout unless timeout.nil?
|
|
99
101
|
Utils.configure_request_security(req, security)
|
|
102
|
+
http_headers&.each do |key, value|
|
|
103
|
+
req.headers[key.to_s] = value
|
|
104
|
+
end
|
|
100
105
|
|
|
101
106
|
@sdk_configuration.hooks.before_request(
|
|
102
107
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -192,5 +197,5 @@ module Authlete
|
|
|
192
197
|
|
|
193
198
|
end
|
|
194
199
|
end
|
|
195
|
-
|
|
200
|
+
end
|
|
196
201
|
end
|
|
@@ -39,18 +39,20 @@ module Authlete
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(service_id: ::String, include_private_keys: T.nilable(T::Boolean), pretty: T.nilable(T::Boolean), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ServiceJwksGetApiResponse) }
|
|
45
|
+
def service_jwks_get_api(service_id:, include_private_keys: nil, pretty: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# service_jwks_get_api - Get JWK Set
|
|
45
47
|
# This API gathers JWK Set information for a service so that its client applications can verify
|
|
46
48
|
# signatures by the service and encrypt their requests to the service.
|
|
47
|
-
#
|
|
49
|
+
#
|
|
48
50
|
# This API is supposed to be called from within the implementation of the jwk set endpoint of the
|
|
49
51
|
# service where the service that supports OpenID Connect must expose its JWK Set information so that
|
|
50
52
|
# client applications can verify signatures by the service and encrypt their requests to the service.
|
|
51
|
-
# The URI of the endpoint can be found as the value of `
|
|
52
|
-
# if the service supports [OpenID Connect Discovery 1.0](https://openid.net/specs/openid-connect-discovery-
|
|
53
|
-
#
|
|
53
|
+
# The URI of the endpoint can be found as the value of `jwks_uri` in [OpenID Provider Metadata](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata)
|
|
54
|
+
# if the service supports [OpenID Connect Discovery 1.0](https://openid.net/specs/openid-connect-discovery-1_0.html).
|
|
55
|
+
#
|
|
54
56
|
request = Models::Operations::ServiceJwksGetApiRequest.new(
|
|
55
57
|
service_id: service_id,
|
|
56
58
|
include_private_keys: include_private_keys,
|
|
@@ -96,6 +98,9 @@ module Authlete
|
|
|
96
98
|
req.options.timeout = timeout unless timeout.nil?
|
|
97
99
|
req.params = query_params
|
|
98
100
|
Utils.configure_request_security(req, security)
|
|
101
|
+
http_headers&.each do |key, value|
|
|
102
|
+
req.headers[key.to_s] = value
|
|
103
|
+
end
|
|
99
104
|
|
|
100
105
|
@sdk_configuration.hooks.before_request(
|
|
101
106
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -152,6 +157,18 @@ module Authlete
|
|
|
152
157
|
else
|
|
153
158
|
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'
|
|
154
159
|
end
|
|
160
|
+
elsif Utils.match_status_code(http_response.status, ['204'])
|
|
161
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
162
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
163
|
+
hook_ctx: hook_ctx
|
|
164
|
+
),
|
|
165
|
+
response: http_response
|
|
166
|
+
)
|
|
167
|
+
return Models::Operations::ServiceJwksGetApiResponse.new(
|
|
168
|
+
status_code: http_response.status,
|
|
169
|
+
content_type: content_type,
|
|
170
|
+
raw_response: http_response
|
|
171
|
+
)
|
|
155
172
|
elsif Utils.match_status_code(http_response.status, ['400', '401', '403'])
|
|
156
173
|
if Utils.match_content_type(content_type, 'application/json')
|
|
157
174
|
http_response = @sdk_configuration.hooks.after_success(
|
|
@@ -191,5 +208,5 @@ module Authlete
|
|
|
191
208
|
|
|
192
209
|
end
|
|
193
210
|
end
|
|
194
|
-
|
|
211
|
+
end
|
|
195
212
|
end
|
|
@@ -0,0 +1,151 @@
|
|
|
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 Lifecycle
|
|
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
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(extended: T.nilable(T::Boolean), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::GetApiLifecycleHealthcheckResponse) }
|
|
45
|
+
def get_api_lifecycle_healthcheck(extended: nil, timeout_ms: nil, http_headers: nil)
|
|
46
|
+
# get_api_lifecycle_healthcheck - Health Check
|
|
47
|
+
# Perform a health check of the server.
|
|
48
|
+
#
|
|
49
|
+
request = Models::Operations::GetApiLifecycleHealthcheckRequest.new(
|
|
50
|
+
extended: extended
|
|
51
|
+
)
|
|
52
|
+
url, params = @sdk_configuration.get_server_details
|
|
53
|
+
base_url = Utils.template_url(url, params)
|
|
54
|
+
url = "#{base_url}/api/lifecycle/healthcheck"
|
|
55
|
+
headers = {}
|
|
56
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
57
|
+
query_params = Utils.get_query_params(Models::Operations::GetApiLifecycleHealthcheckRequest, request, nil)
|
|
58
|
+
headers['Accept'] = 'text/plain'
|
|
59
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
60
|
+
|
|
61
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
62
|
+
timeout ||= @sdk_configuration.timeout
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
connection = @sdk_configuration.client
|
|
66
|
+
|
|
67
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
68
|
+
config: @sdk_configuration,
|
|
69
|
+
base_url: base_url,
|
|
70
|
+
oauth2_scopes: nil,
|
|
71
|
+
operation_id: 'get_/api/lifecycle/healthcheck',
|
|
72
|
+
security_source: nil
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
76
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
begin
|
|
80
|
+
http_response = T.must(connection).get(url) do |req|
|
|
81
|
+
req.headers.merge!(headers)
|
|
82
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
83
|
+
req.params = query_params
|
|
84
|
+
http_headers&.each do |key, value|
|
|
85
|
+
req.headers[key.to_s] = value
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
@sdk_configuration.hooks.before_request(
|
|
89
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
90
|
+
hook_ctx: hook_ctx
|
|
91
|
+
),
|
|
92
|
+
request: req
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
rescue StandardError => e
|
|
96
|
+
error = e
|
|
97
|
+
ensure
|
|
98
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
99
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
100
|
+
error: error,
|
|
101
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
102
|
+
hook_ctx: hook_ctx
|
|
103
|
+
),
|
|
104
|
+
response: http_response
|
|
105
|
+
)
|
|
106
|
+
else
|
|
107
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
108
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
109
|
+
hook_ctx: hook_ctx
|
|
110
|
+
),
|
|
111
|
+
response: http_response
|
|
112
|
+
)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if http_response.nil?
|
|
116
|
+
raise error if !error.nil?
|
|
117
|
+
raise 'no response'
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
122
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
123
|
+
if Utils.match_content_type(content_type, 'text/plain')
|
|
124
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
125
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
126
|
+
hook_ctx: hook_ctx
|
|
127
|
+
),
|
|
128
|
+
response: http_response
|
|
129
|
+
)
|
|
130
|
+
obj = http_response.env.body.force_encoding('UTF-8')
|
|
131
|
+
|
|
132
|
+
return Models::Operations::GetApiLifecycleHealthcheckResponse.new(
|
|
133
|
+
status_code: http_response.status,
|
|
134
|
+
content_type: content_type,
|
|
135
|
+
raw_response: http_response,
|
|
136
|
+
res: T.unsafe(obj)
|
|
137
|
+
)
|
|
138
|
+
else
|
|
139
|
+
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'
|
|
140
|
+
end
|
|
141
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
142
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
143
|
+
elsif Utils.match_status_code(http_response.status, ['500', '5XX'])
|
|
144
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
145
|
+
else
|
|
146
|
+
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'
|
|
147
|
+
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
module Authlete
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
|
-
|
|
11
10
|
|
|
12
11
|
class AccessToken
|
|
13
12
|
extend T::Sig
|
|
@@ -22,28 +21,28 @@ module Authlete
|
|
|
22
21
|
# The timestamp at which the refresh token will expire.
|
|
23
22
|
field :refresh_token_expires_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('refreshTokenExpiresAt') } }
|
|
24
23
|
# The timestamp at which the access token was first created.
|
|
25
|
-
#
|
|
24
|
+
#
|
|
26
25
|
field :created_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('createdAt') } }
|
|
27
26
|
# The timestamp at which the access token was last refreshed using the refresh token.
|
|
28
|
-
#
|
|
27
|
+
#
|
|
29
28
|
field :last_refreshed_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('lastRefreshedAt') } }
|
|
30
29
|
# The ID of the client associated with the access token.
|
|
31
|
-
#
|
|
30
|
+
#
|
|
32
31
|
field :client_id, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('clientId') } }
|
|
33
32
|
# The subject (= unique user ID) associated with the access token.
|
|
34
|
-
#
|
|
33
|
+
#
|
|
35
34
|
field :subject, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('subject') } }
|
|
36
35
|
# The grant type of the access token when the access token was created.
|
|
37
|
-
#
|
|
38
|
-
field :grant_type, Crystalline::Nilable.new(Models::Components::GrantType), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('grantType'), 'decoder': Utils.enum_from_string(Models::Components::GrantType, true) } }
|
|
36
|
+
#
|
|
37
|
+
field :grant_type, Crystalline::Nilable.new(Models::Components::GrantType), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('grantType'), 'decoder': ::Authlete::Utils.enum_from_string(Models::Components::GrantType, true) } }
|
|
39
38
|
# The scopes associated with the access token.
|
|
40
|
-
#
|
|
39
|
+
#
|
|
41
40
|
field :scopes, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('scopes') } }
|
|
42
41
|
# The properties associated with the access token.
|
|
43
|
-
#
|
|
42
|
+
#
|
|
44
43
|
field :properties, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::Property)), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('properties') } }
|
|
45
44
|
# The scopes associated with the refresh token.
|
|
46
|
-
#
|
|
45
|
+
#
|
|
47
46
|
field :refresh_token_scopes, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Authlete::Utils.field_name('refreshTokenScopes') } }
|
|
48
47
|
|
|
49
48
|
sig { params(access_token_hash: T.nilable(::String), access_token_expires_at: T.nilable(::Integer), refresh_token_hash: T.nilable(::String), refresh_token_expires_at: T.nilable(::Integer), created_at: T.nilable(::Integer), last_refreshed_at: T.nilable(::Integer), client_id: T.nilable(::Integer), subject: T.nilable(::String), grant_type: T.nilable(Models::Components::GrantType), scopes: T.nilable(T::Array[::String]), properties: T.nilable(T::Array[Models::Components::Property]), refresh_token_scopes: T.nilable(T::Array[::String])).void }
|