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
data/lib/authlete/userinfo.rb
CHANGED
|
@@ -39,117 +39,13 @@ module Authlete
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(userinfo_request: Models::Components::UserinfoRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::AuthUserinfoApiResponse) }
|
|
45
|
+
def process_request(userinfo_request:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# process_request - Process UserInfo Request
|
|
45
47
|
# This API gathers information about a user.
|
|
46
|
-
#
|
|
47
|
-
# This API is supposed to be called from within the implementation of the [userinfo endpoint](https://openid.net/specs/openid-connect-core-1\_0.html#UserInfo)
|
|
48
|
-
# of the authorization server in order to get information about the user that is associated with
|
|
49
|
-
# an access token.
|
|
50
|
-
# The response from `/auth/userinfo` API has various parameters. Among them, it is `action` parameter
|
|
51
|
-
# that the authorization server implementation should check first because it denotes the next action
|
|
52
|
-
# that the authorization server implementation should take. According to the value of `action`, the
|
|
53
|
-
# service implementation must take the steps described below.
|
|
54
|
-
# **INTERNAL\_SERVER\_ERROR**
|
|
55
|
-
# When the value of `action` is `INTERNAL\_SERVER\_ERROR`, it means that the request from the authorization
|
|
56
|
-
# server implementation was wrong or that an error occurred in Authlete. In either case, from the
|
|
57
|
-
# viewpoint of the client application, it is an error on the server side. Therefore, the service
|
|
58
|
-
# implementation should generate a response to the client application with HTTP status of "500 Internal
|
|
59
|
-
# Server Error".
|
|
60
|
-
# The value of `responseContent` is a string which describes the error in the format of [RFC 6750](https://datatracker.ietf.org/doc/html/rfc6750)
|
|
61
|
-
# (OAuth 2.0 Bearer Token Usage) so the userinfo endpoint implementation can use the value of `responseContent`
|
|
62
|
-
# as the value of`WWW-Authenticate` header.
|
|
63
|
-
# The following is an example response which complies with RFC 6750. Note that OpenID Connect Core
|
|
64
|
-
# 1.0 requires that an error response from userinfo endpoint comply with RFC 6750. See [5.3.3. UserInfo
|
|
65
|
-
# Response](https://openid.net/specs/openid-connect-core-1\_0.html#UserInfoError) for details.
|
|
66
|
-
# ```
|
|
67
|
-
# HTTP/1.1 500 Internal Server Error
|
|
68
|
-
# WWW-Authenticate: {responseContent}
|
|
69
|
-
# Cache-Control: no-store
|
|
70
|
-
# Pragma: no-cache
|
|
71
|
-
# ```
|
|
72
|
-
# **BAD\_REQUEST**
|
|
73
|
-
# When the value of `action` is `BAD\_REQUEST`, it means that the request from the client application
|
|
74
|
-
# does not contain an access token (= the request from the authorization server implementation to
|
|
75
|
-
# Authlete does not contain `token` parameter).
|
|
76
|
-
# The value of `responseContent` is a string which describes the error in the format
|
|
77
|
-
# of [RFC 6750](https://datatracker.ietf.org/doc/html/rfc6750) (OAuth 2.0 Bearer Token Usage) so the
|
|
78
|
-
# userinfo endpoint implementation can use the value of `responseContent` as the value of`WWW-Authenticate`
|
|
79
|
-
# header.
|
|
80
|
-
# The following is an example response which complies with RFC 6750. Note that OpenID Connect Core
|
|
81
|
-
# 1.0 requires that an error response from userinfo endpoint comply with RFC 6750. See [5.3.3. UserInfo
|
|
82
|
-
# Response](https://openid.net/specs/openid-connect-core-1\_0.html#UserInfoError) for details.
|
|
83
|
-
# ```
|
|
84
|
-
# HTTP/1.1 400 Bad Request
|
|
85
|
-
# WWW-Authenticate: {responseContent}
|
|
86
|
-
# Cache-Control: no-store
|
|
87
|
-
# Pragma: no-cache
|
|
88
|
-
# ```
|
|
89
|
-
# **UNAUTHORIZED**
|
|
90
|
-
# When the value of `action` is `UNAUTHORIZED`, it means that the access token does not exist, has
|
|
91
|
-
# expired, or is not associated with any subject (= any user account).
|
|
92
|
-
# The value of `responseContent` is a string which describes the error in the format of [RFC
|
|
93
|
-
# 6750](https://datatracker.ietf.org/doc/html/rfc6750) (OAuth 2.0 Bearer Token Usage) so the userinfo
|
|
94
|
-
# endpoint implementation can use the value of `responseContent` as the value of`WWW-Authenticate`
|
|
95
|
-
# header.
|
|
96
|
-
# The following is an example response which complies with RFC 6750. Note that OpenID Connect Core
|
|
97
|
-
# 1.0 requires that an error response from userinfo endpoint comply with RFC 6750. See [5.3.3. UserInfo
|
|
98
|
-
# Response](https://openid.net/specs/openid-connect-core-1\_0.html#UserInfoError) for details.
|
|
99
|
-
# ```
|
|
100
|
-
# HTTP/1.1 401 Unauthorized
|
|
101
|
-
# WWW-Authenticate: {responseContent}
|
|
102
|
-
# Cache-Control: no-store
|
|
103
|
-
# Pragma: no-cache
|
|
104
|
-
# ```
|
|
105
|
-
# **FORBIDDEN**
|
|
106
|
-
# When the value of `action` is `FORBIDDEN`, it means that the access token does not include the
|
|
107
|
-
# `openid` scope.
|
|
108
|
-
# The value of `responseContent` is a string which describes the error in the format of [RFC 6750](https://datatracker.ietf.org/doc/html/rfc6750)
|
|
109
|
-
# (OAuth 2.0 Bearer Token Usage) so the userinfo endpoint implementation can use the value of `responseContent`
|
|
110
|
-
# as the value of`WWW-Authenticate` header.
|
|
111
|
-
# The following is an example response which complies with RFC 6750. Note that OpenID Connect Core
|
|
112
|
-
# 1.0 requires that an error response from userinfo endpoint comply with RFC 6750. See [5.3.3. UserInfo
|
|
113
|
-
# Response](https://openid.net/specs/openid-connect-core-1\_0.html#UserInfoError) for details.
|
|
114
|
-
# ```
|
|
115
|
-
# HTTP/1.1 403 Forbidden
|
|
116
|
-
# WWW-Authenticate: {responseContent}
|
|
117
|
-
# Cache-Control: no-store
|
|
118
|
-
# Pragma: no-cache
|
|
119
|
-
# ```
|
|
120
|
-
# **OK**
|
|
121
|
-
# When the value of `action` is `OK`, it means that the access token which the client application
|
|
122
|
-
# presented is valid. To be concrete, it means that the access token exists, has not expired, includes
|
|
123
|
-
# the openid scope, and is associated with a subject (= a user account).
|
|
124
|
-
# What the userinfo endpoint implementation should do next is to collect information about the subject
|
|
125
|
-
# (user) from your database. The value of the `subject` is contained in the subject parameter in the
|
|
126
|
-
# response from this API and the names of data, i.e., the claims names are contained in the claims
|
|
127
|
-
# parameter in the response. For example, if the `subject` parameter is `joe123` and the claims
|
|
128
|
-
# parameter is `[ "given\_name", "email" ]`, you need to extract information about joe123's given name
|
|
129
|
-
# and email from your database.
|
|
130
|
-
# Then, call Authlete's `/auth/userinfo/issue` API with the collected information and the access token
|
|
131
|
-
# in order to make Authlete generate an ID token.
|
|
132
|
-
# If an error occurred during the above steps, generate an error response to the client. The response
|
|
133
|
-
# should comply with [RFC 6750](https://datatracker.ietf.org/doc/html/rfc6750). For example, if the
|
|
134
|
-
# subject associated with the access token does not exist in your database any longer, you may feel
|
|
135
|
-
# like generating a response like below.
|
|
136
|
-
# ```
|
|
137
|
-
# HTTP/1.1 400 Bad Request
|
|
138
|
-
# WWW-Authenticate: Bearer error="invalid\_token",
|
|
139
|
-
# error\_description="The subject associated with the access token does not exist."
|
|
140
|
-
# Cache-Control: no-store
|
|
141
|
-
# Pragma: no-cache
|
|
142
|
-
# ```
|
|
143
|
-
# Also, an error might occur on database access. If you treat the error as an internal server error,
|
|
144
|
-
# then the response would be like the following.
|
|
145
|
-
# ```
|
|
146
|
-
# HTTP/1.1 500 Internal Server Error
|
|
147
|
-
# WWW-Authenticate: Bearer error="server\_error",
|
|
148
|
-
# error\_description="Failed to extract information about the subject from the database."
|
|
149
|
-
# Cache-Control: no-store
|
|
150
|
-
# Pragma: no-cache
|
|
151
|
-
# ```
|
|
152
|
-
#
|
|
48
|
+
#
|
|
153
49
|
request = Models::Operations::AuthUserinfoApiRequest.new(
|
|
154
50
|
service_id: service_id,
|
|
155
51
|
userinfo_request: userinfo_request
|
|
@@ -168,7 +64,7 @@ module Authlete
|
|
|
168
64
|
headers['content-type'] = req_content_type
|
|
169
65
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
170
66
|
|
|
171
|
-
if form
|
|
67
|
+
if form && !form.empty?
|
|
172
68
|
body = Utils.encode_form(form)
|
|
173
69
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
174
70
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -204,6 +100,9 @@ module Authlete
|
|
|
204
100
|
req.headers.merge!(headers)
|
|
205
101
|
req.options.timeout = timeout unless timeout.nil?
|
|
206
102
|
Utils.configure_request_security(req, security)
|
|
103
|
+
http_headers&.each do |key, value|
|
|
104
|
+
req.headers[key.to_s] = value
|
|
105
|
+
end
|
|
207
106
|
|
|
208
107
|
@sdk_configuration.hooks.before_request(
|
|
209
108
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -301,120 +200,11 @@ module Authlete
|
|
|
301
200
|
end
|
|
302
201
|
|
|
303
202
|
|
|
304
|
-
sig { params(userinfo_issue_request: Models::Components::UserinfoIssueRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::AuthUserinfoIssueApiResponse) }
|
|
305
|
-
def issue_response(userinfo_issue_request:, service_id:, timeout_ms: nil)
|
|
203
|
+
sig { params(userinfo_issue_request: Models::Components::UserinfoIssueRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::AuthUserinfoIssueApiResponse) }
|
|
204
|
+
def issue_response(userinfo_issue_request:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
306
205
|
# issue_response - Issue UserInfo Response
|
|
307
206
|
# This API generates an ID token.
|
|
308
|
-
#
|
|
309
|
-
# This API is supposed to be called from within the implementation of the [userinfo endpoint](https://openid.net/specs/openid-connect-core-1\_0.html#UserInfo)
|
|
310
|
-
# of the authorization server in order to generate an ID token. Before calling this API, a valid
|
|
311
|
-
# response from `/auth/userinfo` API must be obtained. Then, call this API with the access token
|
|
312
|
-
# contained in the response and the claims values of the user (subject) associated with the access
|
|
313
|
-
# token. See **OK** written in the description of `/auth/userinfo` API for details.
|
|
314
|
-
# The response from `/auth/userinfo/issue` API has various parameters. Among them, it is `action`
|
|
315
|
-
# parameter that the authorization server implementation should check first because it denotes the
|
|
316
|
-
# next action that the authorization server implementation should take. According to the value of
|
|
317
|
-
# `action`, the service implementation must take the steps described below.
|
|
318
|
-
# **INTERNAL\_SERVER\_ERROR**
|
|
319
|
-
# When the value of `action` is `INTERNAL\_SERVER\_ERROR`, it means that the request from the authorization
|
|
320
|
-
# server implementation was wrong or that an error occurred in Authlete. In either case, from the
|
|
321
|
-
# viewpoint of the client application, it is an error on the server side. Therefore, the service
|
|
322
|
-
# implementation should generate a response to the client application with HTTP status of "500 Internal
|
|
323
|
-
# Server Error".
|
|
324
|
-
# The parameter `responseContent` returns a string which describes the error in the format of [RFC
|
|
325
|
-
# 6750](https://datatracker.ietf.org/doc/html/rfc6750) (OAuth 2.0 Bearer Token Usage) so the userinfo
|
|
326
|
-
# endpoint implementation can use the value of `responseContent` as the value of`WWW-Authenticate`
|
|
327
|
-
# header.
|
|
328
|
-
# The following is an example response which complies with RFC 6750. Note that OpenID Connect Core
|
|
329
|
-
# 1.0 requires that an error response from userinfo endpoint comply with RFC 6750. See [5.3.3. UserInfo
|
|
330
|
-
# Response](https://openid.net/specs/openid-connect-core-1\_0.html#UserInfoError) for details.
|
|
331
|
-
# ```
|
|
332
|
-
# HTTP/1.1 500 Internal Server Error
|
|
333
|
-
# WWW-Authenticate: {responseContent}
|
|
334
|
-
# Cache-Control: no-store
|
|
335
|
-
# Pragma: no-cache
|
|
336
|
-
# ```
|
|
337
|
-
# **BAD\_REQUEST**
|
|
338
|
-
# When the value of `action` is `BAD\_REQUEST`, it means that the request from the client application
|
|
339
|
-
# does not contain an access token (= the request from the authorization server implementation to
|
|
340
|
-
# Authlete does not contain `token` parameter).
|
|
341
|
-
# The parameter `responseContent` returns a string which describes the error in the format of [RFC
|
|
342
|
-
# 6750](https://datatracker.ietf.org/doc/html/rfc6750) (OAuth 2.0 Bearer Token Usage) so the userinfo
|
|
343
|
-
# endpoint implementation can use the value of `responseContent` as the value of`WWW-Authenticate`
|
|
344
|
-
# header.
|
|
345
|
-
# The following is an example response which complies with RFC 6750. Note that OpenID Connect Core
|
|
346
|
-
# 1.0 requires that an error response from userinfo endpoint comply with RFC 6750. See [5.3.3. UserInfo
|
|
347
|
-
# Response](https://openid.net/specs/openid-connect-core-1\_0.html#UserInfoError) for details.
|
|
348
|
-
# ```
|
|
349
|
-
# HTTP/1.1 400 Bad Request
|
|
350
|
-
# WWW-Authenticate: {responseContent}
|
|
351
|
-
# Cache-Control: no-store
|
|
352
|
-
# Pragma: no-cache
|
|
353
|
-
# ```
|
|
354
|
-
# **UNAUTHORIZED**
|
|
355
|
-
# When the value of `action` is `UNAUTHORIZED`, it means that the access token does not exist, has
|
|
356
|
-
# expired, or is not associated with any subject (= any user account).
|
|
357
|
-
# The parameter `responseContent` returns a string which describes the error in the format of [RFC
|
|
358
|
-
# 6750](https://datatracker.ietf.org/doc/html/rfc6750) (OAuth 2.0 Bearer Token Usage) so the userinfo
|
|
359
|
-
# endpoint implementation can use the value of `responseContent` as the value of`WWW-Authenticate`
|
|
360
|
-
# header.
|
|
361
|
-
# The following is an example response which complies with RFC 6750. Note that OpenID Connect Core
|
|
362
|
-
# 1.0 requires that an error response from userinfo endpoint comply with RFC 6750. See [5.3.3. UserInfo
|
|
363
|
-
# Response](https://openid.net/specs/openid-connect-core-1\_0.html#UserInfoError) for details.
|
|
364
|
-
# ```
|
|
365
|
-
# HTTP/1.1 401 Unauthorized
|
|
366
|
-
# WWW-Authenticate: {responseContent}
|
|
367
|
-
# Cache-Control: no-store
|
|
368
|
-
# Pragma: no-cache
|
|
369
|
-
# ```
|
|
370
|
-
# **FORBIDDEN**
|
|
371
|
-
# When the value of `action` is `FORBIDDEN`, it means that the access token does not include the
|
|
372
|
-
# `openid` scope.
|
|
373
|
-
# The parameter `responseContent` returns a string which describes the error in the format of [RFC
|
|
374
|
-
# 6750](https://datatracker.ietf.org/doc/html/rfc6750) (OAuth 2.0 Bearer Token Usage) so the userinfo
|
|
375
|
-
# endpoint implementation can use the value of `responseContent` as the value of`WWW-Authenticate`
|
|
376
|
-
# header.
|
|
377
|
-
# The following is an example response which complies with RFC 6750. Note that OpenID Connect Core
|
|
378
|
-
# 1.0 requires that an error response from userinfo endpoint comply with RFC 6750. See [5.3.3. UserInfo
|
|
379
|
-
# Response](https://openid.net/specs/openid-connect-core-1\_0.html#UserInfoError) for details.
|
|
380
|
-
# ```
|
|
381
|
-
# HTTP/1.1 403 Forbidden
|
|
382
|
-
# WWW-Authenticate: {responseContent}
|
|
383
|
-
# Cache-Control: no-store
|
|
384
|
-
# Pragma: no-cache
|
|
385
|
-
# ```
|
|
386
|
-
# **JSON**
|
|
387
|
-
# When the value of `action` is `JSON`, it means that the access token which the client application
|
|
388
|
-
# presented is valid and an ID token was successfully generated in the format of JSON.
|
|
389
|
-
# The userinfo endpoint implementation is expected to generate a response to the client application.
|
|
390
|
-
# The content type of the response must be `application/json` and the response body must be an ID
|
|
391
|
-
# token in JSON format.
|
|
392
|
-
# The value of `responseContent` is the ID token in JSON format when `action` is `JSON`, so
|
|
393
|
-
# a response to the client can be built like below.
|
|
394
|
-
# ```
|
|
395
|
-
# HTTP/1.1 200 OK
|
|
396
|
-
# Cache-Control: no-store
|
|
397
|
-
# Pragma: no-cache
|
|
398
|
-
# Content-Type: application/json;charset=UTF-8
|
|
399
|
-
# {responseContent}
|
|
400
|
-
# ```
|
|
401
|
-
# **JWT**
|
|
402
|
-
# When the value of `action` is `JWT`, it means that the access token which the client application
|
|
403
|
-
# presented is valid and an ID token was successfully generated in the format of JWT (JSON Web Token)
|
|
404
|
-
# ([RFC 7519](https://datatracker.ietf.org/doc/html/rfc7519)).
|
|
405
|
-
# The userinfo endpoint implementation is expected to generate a response to the client application.
|
|
406
|
-
# The content type of the response must be `application/jwt` and the response body must be an ID
|
|
407
|
-
# token in JWT format.
|
|
408
|
-
# The value of `responseContent` is the ID token in JSON format when `action` is `JWT`, so a response
|
|
409
|
-
# to the client can be built like below.
|
|
410
|
-
# ```
|
|
411
|
-
# HTTP/1.1 200 OK
|
|
412
|
-
# Cache-Control: no-store
|
|
413
|
-
# Pragma: no-cache
|
|
414
|
-
# Content-Type: application/jwt
|
|
415
|
-
# {responseContent}
|
|
416
|
-
# ```
|
|
417
|
-
#
|
|
207
|
+
#
|
|
418
208
|
request = Models::Operations::AuthUserinfoIssueApiRequest.new(
|
|
419
209
|
service_id: service_id,
|
|
420
210
|
userinfo_issue_request: userinfo_issue_request
|
|
@@ -433,7 +223,7 @@ module Authlete
|
|
|
433
223
|
headers['content-type'] = req_content_type
|
|
434
224
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
435
225
|
|
|
436
|
-
if form
|
|
226
|
+
if form && !form.empty?
|
|
437
227
|
body = Utils.encode_form(form)
|
|
438
228
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
439
229
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -469,6 +259,9 @@ module Authlete
|
|
|
469
259
|
req.headers.merge!(headers)
|
|
470
260
|
req.options.timeout = timeout unless timeout.nil?
|
|
471
261
|
Utils.configure_request_security(req, security)
|
|
262
|
+
http_headers&.each do |key, value|
|
|
263
|
+
req.headers[key.to_s] = value
|
|
264
|
+
end
|
|
472
265
|
|
|
473
266
|
@sdk_configuration.hooks.before_request(
|
|
474
267
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -564,5 +357,5 @@ module Authlete
|
|
|
564
357
|
|
|
565
358
|
end
|
|
566
359
|
end
|
|
567
|
-
|
|
360
|
+
end
|
|
568
361
|
end
|
|
@@ -29,8 +29,6 @@ module Authlete
|
|
|
29
29
|
|
|
30
30
|
return serialize_content_type(SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method], request) if !request.respond_to?(:fields) || !request.respond_to?(request_field_name)
|
|
31
31
|
|
|
32
|
-
request_val = request.send(request_field_name)
|
|
33
|
-
|
|
34
32
|
request_metadata = T.let(nil, T.nilable(T::Array[T::Array[T.any(T::Array[T.nilable(String)], String)]]))
|
|
35
33
|
T.unsafe(request).fields.each do |f|
|
|
36
34
|
if f.name == request_field_name
|
|
@@ -38,7 +36,14 @@ module Authlete
|
|
|
38
36
|
break
|
|
39
37
|
end
|
|
40
38
|
end
|
|
41
|
-
|
|
39
|
+
if request_metadata.nil?
|
|
40
|
+
# Field name collision: model has a field matching request_field_name but without :request metadata.
|
|
41
|
+
# Serialize the entire object as the request body.
|
|
42
|
+
return serialize_content_type(SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method], request)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
request_val = request.send(request_field_name)
|
|
46
|
+
return ['', nil, nil] if request_val.nil?
|
|
42
47
|
|
|
43
48
|
serialize_content_type(
|
|
44
49
|
request_metadata.fetch(:media_type, 'application/octet-stream'), request_val
|
|
@@ -37,6 +37,16 @@ module Authlete
|
|
|
37
37
|
|
|
38
38
|
sig { params(req: Faraday::Request, option: Object).void }
|
|
39
39
|
def self._parse_security_option(req, option)
|
|
40
|
+
# Check if this option uses basic auth (needs the whole object, not individual fields)
|
|
41
|
+
first_field = T.unsafe(option).fields.first
|
|
42
|
+
if first_field
|
|
43
|
+
first_meta = first_field.metadata[:security]
|
|
44
|
+
if first_meta && first_meta[:type] == 'http' && first_meta[:sub_type] == 'basic'
|
|
45
|
+
_parse_security_scheme(req, first_meta, option)
|
|
46
|
+
return
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
40
50
|
T.unsafe(option).fields.each do |opt_field|
|
|
41
51
|
metadata = opt_field.metadata[:security]
|
|
42
52
|
next if metadata.nil? || !metadata.include?(:scheme)
|
data/lib/authlete/utils/url.rb
CHANGED
|
@@ -24,7 +24,7 @@ module Authlete
|
|
|
24
24
|
if serialization != ''
|
|
25
25
|
serialized_params = _get_serialized_params(param_metadata, f_name, param)
|
|
26
26
|
serialized_params.each do |k, v|
|
|
27
|
-
path = path.
|
|
27
|
+
path = path.gsub("{#{k}}", v.join(', '))
|
|
28
28
|
end
|
|
29
29
|
else
|
|
30
30
|
if param.is_a? Array
|
|
@@ -32,7 +32,7 @@ module Authlete
|
|
|
32
32
|
param.each do |pp_val|
|
|
33
33
|
pp_vals.append(pp_val.to_s)
|
|
34
34
|
end
|
|
35
|
-
path = path.
|
|
35
|
+
path = path.gsub("{#{param_metadata.fetch(:field_name, f.name)}}", pp_vals.join(','))
|
|
36
36
|
elsif param.is_a? Hash
|
|
37
37
|
pp_vals = []
|
|
38
38
|
param.each do |pp_key, pp_val|
|
|
@@ -44,7 +44,7 @@ module Authlete
|
|
|
44
44
|
pp_vals.append("#{pp_key},#{value}")
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
|
-
path = path.
|
|
47
|
+
path = path.gsub("{#{param_metadata.fetch(:field_name, f.name)}}", pp_vals.join(','))
|
|
48
48
|
elsif param.class.include?(::Crystalline::MetadataFields)
|
|
49
49
|
pp_vals = []
|
|
50
50
|
attrs = T.unsafe(param).fields.filter { |field| field.name && param.respond_to?(field.name.to_sym) }.map(&:name)
|
|
@@ -72,9 +72,9 @@ module Authlete
|
|
|
72
72
|
pp_vals.append("#{parm_name},#{param_field_val}")
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
|
-
path = path.
|
|
75
|
+
path = path.gsub("{#{param_metadata.fetch(:field_name, f.name)}}", pp_vals.join(','))
|
|
76
76
|
else
|
|
77
|
-
path = path.
|
|
77
|
+
path = path.gsub("{#{param_metadata.fetch(:field_name, f.name)}}", _encode_path_param(val_to_string(param)))
|
|
78
78
|
end
|
|
79
79
|
end
|
|
80
80
|
end
|
|
@@ -82,6 +82,12 @@ module Authlete
|
|
|
82
82
|
server_url.delete_suffix('/') + path
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
+
# Percent-encode characters that are invalid in URI path segments
|
|
86
|
+
sig { params(value: String).returns(String) }
|
|
87
|
+
def self._encode_path_param(value)
|
|
88
|
+
value.gsub(/[<>{}\[\]|\\^`\s?#%]/) { |c| format('%%%02X', c.ord) }
|
|
89
|
+
end
|
|
90
|
+
|
|
85
91
|
sig { params(url_with_params: String, params: T::Hash[Symbol, T.any(String, T::Enum)]).returns(String) }
|
|
86
92
|
def self.template_url(url_with_params, params)
|
|
87
93
|
params.each do |key, value|
|
data/lib/authlete/utils/utils.rb
CHANGED
|
@@ -19,13 +19,43 @@ module Authlete
|
|
|
19
19
|
if val.class.respond_to?(:enums)
|
|
20
20
|
T.unsafe(val).serialize.to_s
|
|
21
21
|
elsif val.is_a? DateTime
|
|
22
|
-
val.strftime('%Y-%m-%dT%H:%M:%S.%NZ')
|
|
22
|
+
val.strftime('%Y-%m-%dT%H:%M:%S.%NZ').sub(/(\.\d*[1-9])0+Z\z/, '\1Z').sub(/\.0+Z\z/, 'Z')
|
|
23
23
|
else
|
|
24
24
|
val.to_s
|
|
25
25
|
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
+
MIME_TYPES = {
|
|
30
|
+
'.json' => 'application/json',
|
|
31
|
+
'.xml' => 'application/xml',
|
|
32
|
+
'.pdf' => 'application/pdf',
|
|
33
|
+
'.zip' => 'application/zip',
|
|
34
|
+
'.gz' => 'application/gzip',
|
|
35
|
+
'.csv' => 'text/csv',
|
|
36
|
+
'.txt' => 'text/plain',
|
|
37
|
+
'.html' => 'text/html',
|
|
38
|
+
'.htm' => 'text/html',
|
|
39
|
+
'.css' => 'text/css',
|
|
40
|
+
'.js' => 'application/javascript',
|
|
41
|
+
'.png' => 'image/png',
|
|
42
|
+
'.jpg' => 'image/jpeg',
|
|
43
|
+
'.jpeg' => 'image/jpeg',
|
|
44
|
+
'.gif' => 'image/gif',
|
|
45
|
+
'.svg' => 'image/svg+xml',
|
|
46
|
+
'.webp' => 'image/webp',
|
|
47
|
+
'.mp3' => 'audio/mpeg',
|
|
48
|
+
'.mp4' => 'video/mp4',
|
|
49
|
+
'.yaml' => 'application/yaml',
|
|
50
|
+
'.yml' => 'application/yaml',
|
|
51
|
+
}.freeze
|
|
52
|
+
|
|
53
|
+
sig { params(filename: String).returns(String) }
|
|
54
|
+
def self.mime_type_for_filename(filename)
|
|
55
|
+
ext = File.extname(filename).downcase
|
|
56
|
+
MIME_TYPES.fetch(ext, 'application/octet-stream')
|
|
57
|
+
end
|
|
58
|
+
|
|
29
59
|
sig do
|
|
30
60
|
params(metadata: T::Hash[Symbol, String], field_name: String, obj: Object)
|
|
31
61
|
.returns(T::Hash[Symbol, T::Array[String]])
|
|
@@ -102,6 +132,18 @@ module Authlete
|
|
|
102
132
|
end
|
|
103
133
|
end
|
|
104
134
|
|
|
135
|
+
sig do
|
|
136
|
+
params(enum_type: Module, optional: T::Boolean)
|
|
137
|
+
.returns(T.proc.params(s: String).returns(T.untyped))
|
|
138
|
+
end
|
|
139
|
+
def self.open_enum_from_string(enum_type, optional)
|
|
140
|
+
Kernel.lambda do |s|
|
|
141
|
+
return nil if optional && s.nil?
|
|
142
|
+
|
|
143
|
+
return T.unsafe(enum_type).deserialize(s)
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
105
147
|
sig { params(name: String).returns(T.proc.returns(String)) }
|
|
106
148
|
def self.field_name(name)
|
|
107
149
|
T.let(proc { name }, T.proc.returns(String))
|
|
@@ -143,7 +185,7 @@ module Authlete
|
|
|
143
185
|
# Handle file uploads
|
|
144
186
|
file_part = Faraday::Multipart::FilePart.new(
|
|
145
187
|
StringIO.new(T.must(field[1])),
|
|
146
|
-
|
|
188
|
+
mime_type_for_filename(T.must(field[0])),
|
|
147
189
|
field[0]
|
|
148
190
|
)
|
|
149
191
|
|
|
@@ -158,7 +200,7 @@ module Authlete
|
|
|
158
200
|
end
|
|
159
201
|
end
|
|
160
202
|
elsif field.length == 3
|
|
161
|
-
param_part = Faraday::Multipart::ParamPart.new(field[1]
|
|
203
|
+
param_part = Faraday::Multipart::ParamPart.new(field[1], field[2])
|
|
162
204
|
|
|
163
205
|
# Handle multiple values for the same field name (arrays)
|
|
164
206
|
if payload.key?(field_name)
|