authlete_ruby_sdk 0.0.3.pre.beta → 1.0.0
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 +3 -3
- data/lib/authlete/client_management.rb +133 -87
- data/lib/authlete/clients.rb +43 -23
- 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 +12 -7
- data/lib/authlete/lifecycle.rb +10 -5
- data/lib/authlete/models/components/access_token.rb +9 -9
- data/lib/authlete/models/components/access_token.rbi +1 -1
- data/lib/authlete/models/components/application_type.rb +1 -1
- data/lib/authlete/models/components/application_type.rbi +1 -1
- data/lib/authlete/models/components/attachment_type.rb +1 -1
- data/lib/authlete/models/components/attachment_type.rbi +1 -1
- data/lib/authlete/models/components/authorization_details_element.rb +16 -16
- data/lib/authlete/models/components/authorization_details_element.rbi +1 -1
- data/lib/authlete/models/components/authorization_fail_request.rb +4 -4
- data/lib/authlete/models/components/authorization_fail_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_fail_request_reason.rb +1 -1
- data/lib/authlete/models/components/authorization_fail_request_reason.rbi +1 -1
- data/lib/authlete/models/components/authorization_fail_response.rb +2 -2
- data/lib/authlete/models/components/authorization_fail_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_fail_response_action.rbi +1 -1
- data/lib/authlete/models/components/authorization_issue_request.rb +19 -83
- data/lib/authlete/models/components/authorization_issue_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_issue_response.rb +8 -8
- data/lib/authlete/models/components/authorization_issue_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/authorization_request.rb +7 -7
- data/lib/authlete/models/components/authorization_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_response.rb +84 -176
- data/lib/authlete/models/components/authorization_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_response_action.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_info.rb +1 -1
- data/lib/authlete/models/components/authorization_ticket_info.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_info_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_info_response.rb +1 -1
- data/lib/authlete/models/components/authorization_ticket_info_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_info_response_action.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_update_request.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_update_response.rb +1 -1
- data/lib/authlete/models/components/authorization_ticket_update_response.rbi +1 -1
- data/lib/authlete/models/components/authorization_ticket_update_response_action.rbi +1 -1
- data/lib/authlete/models/components/authz_details.rb +2 -2
- data/lib/authlete/models/components/authz_details.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_request.rb +23 -23
- data/lib/authlete/models/components/backchannel_authentication_complete_request.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_request_result.rb +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_request_result.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_response.rb +30 -30
- data/lib/authlete/models/components/backchannel_authentication_complete_response.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_response_action.rb +1 -1
- data/lib/authlete/models/components/backchannel_authentication_complete_response_action.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_request.rb +5 -5
- data/lib/authlete/models/components/backchannel_authentication_fail_request.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_request_reason.rb +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_request_reason.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_response.rb +2 -2
- data/lib/authlete/models/components/backchannel_authentication_fail_response.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_fail_response_action.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_issue_request.rb +1 -1
- data/lib/authlete/models/components/backchannel_authentication_issue_request.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_issue_response.rb +5 -5
- data/lib/authlete/models/components/backchannel_authentication_issue_response.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_request.rb +12 -12
- data/lib/authlete/models/components/backchannel_authentication_request.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_response.rb +47 -56
- data/lib/authlete/models/components/backchannel_authentication_response.rbi +1 -1
- data/lib/authlete/models/components/backchannel_authentication_response_action.rbi +1 -1
- data/lib/authlete/models/components/cimd_options.rb +15 -15
- data/lib/authlete/models/components/cimd_options.rbi +1 -1
- data/lib/authlete/models/components/claim_type.rbi +1 -1
- data/lib/authlete/models/components/client.rb +159 -308
- data/lib/authlete/models/components/client.rbi +1 -1
- data/lib/authlete/models/components/client_auth_method.rb +1 -1
- data/lib/authlete/models/components/client_auth_method.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_delete_response.rb +4 -4
- data/lib/authlete/models/components/client_authorization_delete_response.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_get_list_request.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_get_list_response.rb +6 -6
- data/lib/authlete/models/components/client_authorization_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_update_request.rb +2 -2
- data/lib/authlete/models/components/client_authorization_update_request.rbi +1 -1
- data/lib/authlete/models/components/client_authorization_update_response.rbi +1 -1
- data/lib/authlete/models/components/client_clientsource.rb +1 -1
- data/lib/authlete/models/components/client_clientsource.rbi +1 -1
- data/lib/authlete/models/components/client_extension.rb +9 -19
- data/lib/authlete/models/components/client_extension.rbi +1 -1
- data/lib/authlete/models/components/client_extension_requestable_scopes_get_response.rb +1 -1
- 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 -4
- 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.rbi +1 -1
- data/lib/authlete/models/components/client_flag_update_request.rb +1 -1
- data/lib/authlete/models/components/client_flag_update_request.rbi +1 -1
- data/lib/authlete/models/components/client_flag_update_response.rbi +1 -1
- data/lib/authlete/models/components/client_get_list_response.rb +4 -4
- data/lib/authlete/models/components/client_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/client_granted_scopes_delete_response.rbi +1 -1
- data/lib/authlete/models/components/client_input.rb +154 -293
- data/lib/authlete/models/components/client_input.rbi +1 -1
- data/lib/authlete/models/components/client_limited.rb +7 -7
- data/lib/authlete/models/components/client_limited.rbi +1 -1
- data/lib/authlete/models/components/client_limited_authorization.rb +57 -106
- data/lib/authlete/models/components/client_limited_authorization.rbi +1 -1
- data/lib/authlete/models/components/client_limited_authorization_clientsource.rb +1 -1
- data/lib/authlete/models/components/client_limited_authorization_clientsource.rbi +1 -1
- data/lib/authlete/models/components/client_registration_response.rb +3 -3
- data/lib/authlete/models/components/client_registration_response.rbi +1 -1
- data/lib/authlete/models/components/client_registration_response_action.rb +1 -1
- data/lib/authlete/models/components/client_registration_response_action.rbi +1 -1
- data/lib/authlete/models/components/client_registration_type.rb +1 -1
- data/lib/authlete/models/components/client_registration_type.rbi +1 -1
- data/lib/authlete/models/components/client_secret_refresh_response.rb +2 -2
- data/lib/authlete/models/components/client_secret_refresh_response.rbi +1 -1
- data/lib/authlete/models/components/client_secret_update_request.rb +1 -1
- data/lib/authlete/models/components/client_secret_update_request.rbi +1 -1
- data/lib/authlete/models/components/client_secret_update_response.rb +2 -2
- data/lib/authlete/models/components/client_secret_update_response.rbi +1 -1
- data/lib/authlete/models/components/client_type.rb +1 -1
- data/lib/authlete/models/components/client_type.rbi +1 -1
- data/lib/authlete/models/components/credential_issuance_order.rb +1 -1
- data/lib/authlete/models/components/credential_issuance_order.rbi +1 -1
- data/lib/authlete/models/components/credential_issuer_metadata.rb +5 -5
- data/lib/authlete/models/components/credential_issuer_metadata.rbi +1 -1
- data/lib/authlete/models/components/credential_offer_info.rb +12 -20
- data/lib/authlete/models/components/credential_offer_info.rbi +1 -1
- data/lib/authlete/models/components/credential_request_info.rbi +1 -1
- data/lib/authlete/models/components/delivery_mode.rbi +1 -1
- data/lib/authlete/models/components/device_authorization_request.rb +12 -12
- data/lib/authlete/models/components/device_authorization_request.rbi +1 -1
- data/lib/authlete/models/components/device_authorization_response.rb +39 -48
- data/lib/authlete/models/components/device_authorization_response.rbi +1 -1
- data/lib/authlete/models/components/device_authorization_response_action.rbi +1 -1
- data/lib/authlete/models/components/device_complete_request.rb +22 -22
- data/lib/authlete/models/components/device_complete_request.rbi +1 -1
- data/lib/authlete/models/components/device_complete_request_result.rb +1 -1
- data/lib/authlete/models/components/device_complete_request_result.rbi +1 -1
- data/lib/authlete/models/components/device_complete_response.rb +2 -2
- data/lib/authlete/models/components/device_complete_response.rbi +1 -1
- data/lib/authlete/models/components/device_complete_response_action.rb +1 -1
- data/lib/authlete/models/components/device_complete_response_action.rbi +1 -1
- data/lib/authlete/models/components/device_verification_request.rb +1 -1
- data/lib/authlete/models/components/device_verification_request.rbi +1 -1
- data/lib/authlete/models/components/device_verification_response.rb +32 -32
- data/lib/authlete/models/components/device_verification_response.rbi +1 -1
- data/lib/authlete/models/components/device_verification_response_action.rbi +1 -1
- data/lib/authlete/models/components/display.rb +3 -3
- data/lib/authlete/models/components/display.rbi +1 -1
- data/lib/authlete/models/components/dynamic_scope.rbi +1 -1
- data/lib/authlete/models/components/fapi_mode.rbi +1 -1
- data/lib/authlete/models/components/federation_configuration_response.rb +2 -2
- data/lib/authlete/models/components/federation_configuration_response.rbi +1 -1
- data/lib/authlete/models/components/federation_configuration_response_action.rbi +1 -1
- data/lib/authlete/models/components/federation_registration_request.rb +2 -2
- data/lib/authlete/models/components/federation_registration_request.rbi +1 -1
- data/lib/authlete/models/components/federation_registration_response.rb +2 -2
- data/lib/authlete/models/components/federation_registration_response.rbi +1 -1
- data/lib/authlete/models/components/federation_registration_response_action.rbi +1 -1
- data/lib/authlete/models/components/g_m_request.rb +13 -13
- data/lib/authlete/models/components/g_m_request.rbi +1 -1
- data/lib/authlete/models/components/g_m_response.rb +3 -3
- data/lib/authlete/models/components/g_m_response.rbi +1 -1
- data/lib/authlete/models/components/g_m_response_action.rbi +1 -1
- data/lib/authlete/models/components/grant.rb +2 -2
- data/lib/authlete/models/components/grant.rbi +1 -1
- data/lib/authlete/models/components/grant_management_action.rb +2 -2
- data/lib/authlete/models/components/grant_management_action.rbi +1 -1
- data/lib/authlete/models/components/grant_scope.rb +2 -2
- data/lib/authlete/models/components/grant_scope.rbi +1 -1
- data/lib/authlete/models/components/grant_type.rb +1 -1
- data/lib/authlete/models/components/grant_type.rbi +1 -1
- data/lib/authlete/models/components/hsk.rb +8 -8
- data/lib/authlete/models/components/hsk.rbi +1 -1
- data/lib/authlete/models/components/hsk_create_request.rb +6 -6
- data/lib/authlete/models/components/hsk_create_request.rbi +1 -1
- data/lib/authlete/models/components/hsk_create_response.rb +2 -2
- data/lib/authlete/models/components/hsk_create_response.rbi +1 -1
- data/lib/authlete/models/components/hsk_create_response_action.rbi +1 -1
- data/lib/authlete/models/components/hsk_delete_response.rb +2 -2
- data/lib/authlete/models/components/hsk_delete_response.rbi +1 -1
- data/lib/authlete/models/components/hsk_delete_response_action.rbi +1 -1
- data/lib/authlete/models/components/hsk_get_list_response.rb +1 -1
- data/lib/authlete/models/components/hsk_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/hsk_get_list_response_action.rbi +1 -1
- data/lib/authlete/models/components/hsk_get_response.rb +2 -2
- data/lib/authlete/models/components/hsk_get_response.rbi +1 -1
- data/lib/authlete/models/components/hsk_get_response_action.rbi +1 -1
- data/lib/authlete/models/components/idtoken_reissue_request.rb +7 -7
- data/lib/authlete/models/components/idtoken_reissue_request.rbi +1 -1
- data/lib/authlete/models/components/idtoken_reissue_response.rb +3 -3
- data/lib/authlete/models/components/idtoken_reissue_response.rbi +1 -1
- data/lib/authlete/models/components/idtoken_reissue_response_action.rbi +1 -1
- data/lib/authlete/models/components/introspection_request.rb +24 -40
- data/lib/authlete/models/components/introspection_request.rbi +1 -1
- data/lib/authlete/models/components/introspection_response.rb +36 -45
- data/lib/authlete/models/components/introspection_response.rbi +1 -1
- data/lib/authlete/models/components/introspection_response_action.rbi +1 -1
- data/lib/authlete/models/components/jose_verify_request.rb +5 -5
- data/lib/authlete/models/components/jose_verify_request.rbi +1 -1
- data/lib/authlete/models/components/jose_verify_response.rb +5 -5
- data/lib/authlete/models/components/jose_verify_response.rbi +1 -1
- data/lib/authlete/models/components/jwe_alg.rb +2 -2
- data/lib/authlete/models/components/jwe_alg.rbi +1 -1
- data/lib/authlete/models/components/jwe_enc.rb +1 -1
- data/lib/authlete/models/components/jwe_enc.rbi +1 -1
- data/lib/authlete/models/components/jws_alg.rb +2 -2
- data/lib/authlete/models/components/jws_alg.rbi +1 -1
- data/lib/authlete/models/components/named_uri.rbi +1 -1
- data/lib/authlete/models/components/native_sso_logout_request.rb +1 -1
- data/lib/authlete/models/components/native_sso_logout_request.rbi +1 -1
- data/lib/authlete/models/components/native_sso_logout_response.rb +3 -3
- data/lib/authlete/models/components/native_sso_logout_response.rbi +1 -1
- data/lib/authlete/models/components/native_sso_logout_response_action.rb +1 -1
- data/lib/authlete/models/components/native_sso_logout_response_action.rbi +1 -1
- data/lib/authlete/models/components/native_sso_request.rb +8 -24
- data/lib/authlete/models/components/native_sso_request.rbi +1 -1
- data/lib/authlete/models/components/native_sso_response.rb +4 -4
- data/lib/authlete/models/components/native_sso_response.rbi +1 -1
- data/lib/authlete/models/components/native_sso_response_action.rb +1 -1
- data/lib/authlete/models/components/native_sso_response_action.rbi +1 -1
- data/lib/authlete/models/components/pair.rbi +1 -1
- data/lib/authlete/models/components/prompt.rb +3 -3
- data/lib/authlete/models/components/prompt.rbi +1 -1
- data/lib/authlete/models/components/property.rb +1 -1
- data/lib/authlete/models/components/property.rbi +1 -1
- data/lib/authlete/models/components/pushed_authorization_request.rb +11 -11
- data/lib/authlete/models/components/pushed_authorization_request.rbi +1 -1
- data/lib/authlete/models/components/pushed_authorization_response.rb +6 -6
- data/lib/authlete/models/components/pushed_authorization_response.rbi +1 -1
- data/lib/authlete/models/components/pushed_authorization_response_action.rbi +1 -1
- data/lib/authlete/models/components/pushed_authorization_response_clientauthmethod.rb +1 -1
- data/lib/authlete/models/components/pushed_authorization_response_clientauthmethod.rbi +1 -1
- data/lib/authlete/models/components/response_type.rbi +1 -1
- data/lib/authlete/models/components/responsemode.rbi +1 -1
- data/lib/authlete/models/components/revocation_request.rb +10 -10
- data/lib/authlete/models/components/revocation_request.rbi +1 -1
- data/lib/authlete/models/components/revocation_response.rb +2 -2
- data/lib/authlete/models/components/revocation_response.rbi +1 -1
- data/lib/authlete/models/components/revocation_response_action.rbi +1 -1
- data/lib/authlete/models/components/scope.rbi +1 -1
- data/lib/authlete/models/components/security.rbi +1 -1
- data/lib/authlete/models/components/service.rb +248 -599
- data/lib/authlete/models/components/service.rbi +1 -1
- data/lib/authlete/models/components/service_get_list_response.rb +4 -4
- data/lib/authlete/models/components/service_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/service_input.rb +242 -593
- data/lib/authlete/models/components/service_input.rbi +1 -1
- data/lib/authlete/models/components/service_jwks_get_response.rbi +1 -1
- data/lib/authlete/models/components/service_profile.rbi +1 -1
- data/lib/authlete/models/components/sns_credentials.rbi +1 -1
- data/lib/authlete/models/components/standard_introspection_request.rb +22 -22
- data/lib/authlete/models/components/standard_introspection_request.rbi +1 -1
- data/lib/authlete/models/components/standard_introspection_response.rb +2 -2
- data/lib/authlete/models/components/standard_introspection_response.rbi +1 -1
- data/lib/authlete/models/components/standard_introspection_response_action.rbi +1 -1
- data/lib/authlete/models/components/subject_type.rb +2 -2
- data/lib/authlete/models/components/subject_type.rbi +1 -1
- data/lib/authlete/models/components/supportedsnse.rbi +1 -1
- data/lib/authlete/models/components/tagged_value.rbi +1 -1
- data/lib/authlete/models/components/token_create_request.rb +27 -59
- data/lib/authlete/models/components/token_create_request.rbi +1 -1
- data/lib/authlete/models/components/token_create_response.rb +18 -18
- data/lib/authlete/models/components/token_create_response.rbi +1 -1
- data/lib/authlete/models/components/token_create_response_action.rbi +1 -1
- data/lib/authlete/models/components/token_fail_request.rb +3 -3
- data/lib/authlete/models/components/token_fail_request.rbi +1 -1
- data/lib/authlete/models/components/token_fail_request_reason.rb +1 -1
- data/lib/authlete/models/components/token_fail_request_reason.rbi +1 -1
- data/lib/authlete/models/components/token_fail_response.rb +2 -2
- data/lib/authlete/models/components/token_fail_response.rbi +1 -1
- data/lib/authlete/models/components/token_fail_response_action.rbi +1 -1
- data/lib/authlete/models/components/token_get_list_response.rb +5 -5
- data/lib/authlete/models/components/token_get_list_response.rbi +1 -1
- data/lib/authlete/models/components/token_info.rb +6 -6
- data/lib/authlete/models/components/token_info.rbi +1 -1
- data/lib/authlete/models/components/token_issue_request.rb +9 -9
- data/lib/authlete/models/components/token_issue_request.rbi +1 -1
- data/lib/authlete/models/components/token_issue_response.rb +21 -21
- data/lib/authlete/models/components/token_issue_response.rbi +1 -1
- data/lib/authlete/models/components/token_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/token_request.rb +27 -27
- data/lib/authlete/models/components/token_request.rbi +1 -1
- data/lib/authlete/models/components/token_response.rb +49 -61
- data/lib/authlete/models/components/token_response.rbi +1 -1
- data/lib/authlete/models/components/token_response_action.rbi +1 -1
- data/lib/authlete/models/components/token_revoke_request.rb +7 -7
- data/lib/authlete/models/components/token_revoke_request.rbi +1 -1
- data/lib/authlete/models/components/token_revoke_response.rbi +1 -1
- data/lib/authlete/models/components/token_type.rb +1 -1
- data/lib/authlete/models/components/token_type.rbi +1 -1
- data/lib/authlete/models/components/token_update_request.rb +16 -16
- data/lib/authlete/models/components/token_update_request.rbi +1 -1
- data/lib/authlete/models/components/token_update_response.rb +9 -9
- data/lib/authlete/models/components/token_update_response.rbi +1 -1
- data/lib/authlete/models/components/token_update_response_action.rbi +1 -1
- data/lib/authlete/models/components/trust_anchor.rb +2 -2
- data/lib/authlete/models/components/trust_anchor.rbi +1 -1
- data/lib/authlete/models/components/user_code_charset.rb +1 -1
- data/lib/authlete/models/components/user_code_charset.rbi +1 -1
- data/lib/authlete/models/components/userinfo_issue_request.rb +7 -67
- data/lib/authlete/models/components/userinfo_issue_request.rbi +1 -1
- data/lib/authlete/models/components/userinfo_issue_response.rb +5 -5
- data/lib/authlete/models/components/userinfo_issue_response.rbi +1 -1
- data/lib/authlete/models/components/userinfo_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/userinfo_request.rb +15 -40
- data/lib/authlete/models/components/userinfo_request.rbi +1 -1
- data/lib/authlete/models/components/userinfo_response.rb +46 -89
- data/lib/authlete/models/components/userinfo_response.rbi +1 -1
- data/lib/authlete/models/components/userinfo_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_issue_request.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_issue_response.rb +3 -3
- data/lib/authlete/models/components/vci_batch_issue_response.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_issue_response_action.rb +1 -1
- data/lib/authlete/models/components/vci_batch_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_parse_request.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_parse_response.rb +2 -2
- data/lib/authlete/models/components/vci_batch_parse_response.rbi +1 -1
- data/lib/authlete/models/components/vci_batch_parse_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_issue_request.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_issue_response.rb +3 -3
- data/lib/authlete/models/components/vci_deferred_issue_response.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_issue_response_action.rb +1 -1
- data/lib/authlete/models/components/vci_deferred_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_parse_request.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_parse_response.rb +1 -1
- data/lib/authlete/models/components/vci_deferred_parse_response.rbi +1 -1
- data/lib/authlete/models/components/vci_deferred_parse_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_jwks_request.rb +1 -1
- data/lib/authlete/models/components/vci_jwks_request.rbi +1 -1
- data/lib/authlete/models/components/vci_jwks_response.rb +3 -3
- data/lib/authlete/models/components/vci_jwks_response.rbi +1 -1
- data/lib/authlete/models/components/vci_jwks_response_action.rb +1 -1
- data/lib/authlete/models/components/vci_jwks_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_jwtissuer_request.rb +1 -1
- data/lib/authlete/models/components/vci_jwtissuer_request.rbi +1 -1
- data/lib/authlete/models/components/vci_jwtissuer_response.rb +3 -3
- data/lib/authlete/models/components/vci_jwtissuer_response.rbi +1 -1
- data/lib/authlete/models/components/vci_jwtissuer_response_action.rb +1 -1
- data/lib/authlete/models/components/vci_jwtissuer_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_metadata_request.rb +1 -1
- data/lib/authlete/models/components/vci_metadata_request.rbi +1 -1
- data/lib/authlete/models/components/vci_metadata_response.rb +3 -3
- data/lib/authlete/models/components/vci_metadata_response.rbi +1 -1
- data/lib/authlete/models/components/vci_metadata_response_action.rb +1 -1
- data/lib/authlete/models/components/vci_metadata_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_create_request.rb +10 -79
- data/lib/authlete/models/components/vci_offer_create_request.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_create_response.rb +1 -1
- data/lib/authlete/models/components/vci_offer_create_response.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_create_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_info_request.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_info_response.rb +1 -1
- data/lib/authlete/models/components/vci_offer_info_response.rbi +1 -1
- data/lib/authlete/models/components/vci_offer_info_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_single_issue_request.rbi +1 -1
- data/lib/authlete/models/components/vci_single_issue_response.rb +4 -4
- data/lib/authlete/models/components/vci_single_issue_response.rbi +1 -1
- data/lib/authlete/models/components/vci_single_issue_response_action.rb +1 -1
- data/lib/authlete/models/components/vci_single_issue_response_action.rbi +1 -1
- data/lib/authlete/models/components/vci_single_parse_request.rbi +1 -1
- data/lib/authlete/models/components/vci_single_parse_response.rb +1 -1
- data/lib/authlete/models/components/vci_single_parse_response.rbi +1 -1
- data/lib/authlete/models/components/vci_single_parse_response_action.rbi +1 -1
- data/lib/authlete/models/components/verified_claims_validation_schema.rb +1 -1
- data/lib/authlete/models/components/verified_claims_validation_schema.rbi +1 -1
- data/lib/authlete/models/components.rb +0 -5
- data/lib/authlete/models/errors/apierror.rbi +2 -1
- data/lib/authlete/models/errors/result_error.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_fail_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_fail_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_authorization_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_introspection_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_introspection_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_introspection_standard_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_introspection_standard_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_revocation_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_revocation_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_create_api_request.rbi +1 -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 -1
- data/lib/authlete/models/operations/auth_token_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_fail_api_request.rbi +1 -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 -3
- 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.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_revoke_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_revoke_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_token_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_userinfo_api_request.rbi +1 -1
- data/lib/authlete/models/operations/auth_userinfo_api_response.rbi +1 -1
- data/lib/authlete/models/operations/auth_userinfo_issue_api_request.rbi +1 -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.rbi +1 -1
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_response.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_api_request.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_api_response.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_request.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_response.rbi +1 -1
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_request.rbi +1 -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 +1 -1
- data/lib/authlete/models/operations/client_authorization_delete_api_post_request.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_delete_api_post_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_delete_api_post_response.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_delete_api_request.rb +2 -2
- data/lib/authlete/models/operations/client_authorization_delete_api_request.rbi +1 -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 +2 -2
- data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_delete_by_subject_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_get_list_api_post_request.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_get_list_api_post_response.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_get_list_api_request.rb +3 -3
- data/lib/authlete/models/operations/client_authorization_get_list_api_request.rbi +1 -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 +3 -3
- data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_get_list_by_subject_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_update_api_request.rb +1 -1
- data/lib/authlete/models/operations/client_authorization_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_authorization_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_create_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_delete_api_request.rbi +1 -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 -1
- 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.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_request.rb +1 -1
- 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.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_request.rb +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_request.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_post_response.rbi +1 -1
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_request.rb +1 -1
- 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.rbi +1 -1
- data/lib/authlete/models/operations/client_flag_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_flag_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_get_api_request.rbi +1 -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 -1
- data/lib/authlete/models/operations/client_get_list_api_request.rbi +1 -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 +2 -2
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_request.rbi +1 -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 +2 -2
- data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_delete_by_subject_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_request.rb +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_request.rbi +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_get_api_post_response.rbi +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_get_api_request.rb +2 -2
- data/lib/authlete/models/operations/client_granted_scopes_get_api_request.rbi +1 -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 +2 -2
- data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_granted_scopes_get_by_subject_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_api_requestbody.rb +3 -3
- data/lib/authlete/models/operations/client_registration_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_api_response.rbi +1 -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 -3
- data/lib/authlete/models/operations/client_registration_delete_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_delete_api_response.rbi +1 -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 -3
- data/lib/authlete/models/operations/client_registration_get_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/client_registration_get_api_response.rbi +1 -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 -3
- data/lib/authlete/models/operations/client_registration_update_api_requestbody.rbi +1 -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 -1
- data/lib/authlete/models/operations/client_secret_refresh_api_request.rbi +1 -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 -1
- data/lib/authlete/models/operations/client_secret_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_secret_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/client_update_api_form_request.rbi +1 -1
- data/lib/authlete/models/operations/client_update_api_form_response.rbi +1 -1
- data/lib/authlete/models/operations/client_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/client_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/device_authorization_api_request.rbi +1 -1
- data/lib/authlete/models/operations/device_authorization_api_response.rbi +1 -1
- data/lib/authlete/models/operations/device_complete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/device_complete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/device_verification_api_request.rbi +1 -1
- data/lib/authlete/models/operations/device_verification_api_response.rbi +1 -1
- data/lib/authlete/models/operations/federation_configuration_api_request.rbi +1 -1
- data/lib/authlete/models/operations/federation_configuration_api_requestbody.rbi +1 -1
- data/lib/authlete/models/operations/federation_configuration_api_response.rbi +1 -1
- data/lib/authlete/models/operations/federation_registration_api_request.rbi +1 -1
- data/lib/authlete/models/operations/federation_registration_api_response.rbi +1 -1
- data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_request.rb +1 -1
- data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_request.rbi +1 -1
- data/lib/authlete/models/operations/get_api_lifecycle_healthcheck_response.rbi +1 -1
- data/lib/authlete/models/operations/grant_m_api_request.rbi +1 -1
- data/lib/authlete/models/operations/grant_m_api_response.rbi +1 -1
- data/lib/authlete/models/operations/hsk_create_api_request.rbi +1 -1
- data/lib/authlete/models/operations/hsk_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/hsk_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/hsk_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/hsk_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/hsk_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/hsk_get_list_api_request.rbi +1 -1
- data/lib/authlete/models/operations/hsk_get_list_api_response.rbi +1 -1
- data/lib/authlete/models/operations/idtoken_reissue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/idtoken_reissue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/jose_verify_api_request.rbi +1 -1
- data/lib/authlete/models/operations/jose_verify_api_response.rbi +1 -1
- data/lib/authlete/models/operations/native_sso_api_request.rbi +1 -1
- data/lib/authlete/models/operations/native_sso_api_response.rbi +1 -1
- data/lib/authlete/models/operations/native_sso_logout_api_request.rbi +1 -1
- data/lib/authlete/models/operations/native_sso_logout_api_response.rbi +1 -1
- data/lib/authlete/models/operations/pushed_auth_req_api_request.rbi +1 -1
- data/lib/authlete/models/operations/pushed_auth_req_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_configuration_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_configuration_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_delete_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_delete_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_get_list_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_get_list_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_jwks_get_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_jwks_get_api_response.rbi +1 -1
- data/lib/authlete/models/operations/service_update_api_request.rbi +1 -1
- data/lib/authlete/models/operations/service_update_api_response.rbi +1 -1
- data/lib/authlete/models/operations/updateauthorizationticket_request.rbi +1 -1
- data/lib/authlete/models/operations/updateauthorizationticket_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_batch_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_batch_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_batch_parse_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_batch_parse_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_deferred_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_deferred_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_deferred_parse_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_deferred_parse_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_jwks_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_jwks_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_jwtissuer_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_jwtissuer_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_metadata_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_metadata_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_offer_create_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_offer_create_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_offer_info_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_offer_info_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_single_issue_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_single_issue_api_response.rbi +1 -1
- data/lib/authlete/models/operations/vci_single_parse_api_request.rbi +1 -1
- data/lib/authlete/models/operations/vci_single_parse_api_response.rbi +1 -1
- data/lib/authlete/models/operations.rb +0 -4
- 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 +5 -6
- data/lib/authlete/services.rb +47 -27
- data/lib/authlete/token_management.rb +43 -23
- 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 +32 -11
- data/lib/authlete/utils/url.rb +11 -5
- data/lib/authlete/utils/utils.rb +33 -3
- data/lib/authlete/verifiable_credentials.rb +69 -34
- data/lib/authlete_ruby_sdk.rb +0 -1
- data/lib/crystalline/metadata_fields.rb +66 -9
- data/lib/crystalline/module.rb +3 -3
- data/lib/crystalline/types.rb +11 -3
- metadata +18 -23
- data/lib/authlete/models/components/batchkind.rb +0 -18
- data/lib/authlete/models/components/batchkind.rbi +0 -11
- data/lib/authlete/models/components/token_batch_status.rb +0 -61
- data/lib/authlete/models/components/token_batch_status.rbi +0 -27
- data/lib/authlete/models/components/token_batch_status_result.rb +0 -19
- data/lib/authlete/models/components/token_batch_status_result.rbi +0 -11
- data/lib/authlete/models/components/token_create_batch_response.rb +0 -41
- data/lib/authlete/models/components/token_create_batch_response.rbi +0 -17
- data/lib/authlete/models/components/token_create_batch_status_response.rb +0 -42
- data/lib/authlete/models/components/token_create_batch_status_response.rbi +0 -17
- data/lib/authlete/models/operations/auth_token_create_batch_api_request.rb +0 -41
- data/lib/authlete/models/operations/auth_token_create_batch_api_request.rbi +0 -17
- data/lib/authlete/models/operations/auth_token_create_batch_api_response.rb +0 -44
- data/lib/authlete/models/operations/auth_token_create_batch_api_response.rbi +0 -19
- data/lib/authlete/models/operations/auth_token_create_batch_status_api_request.rb +0 -37
- data/lib/authlete/models/operations/auth_token_create_batch_status_api_request.rbi +0 -15
- data/lib/authlete/models/operations/auth_token_create_batch_status_api_response.rb +0 -44
- data/lib/authlete/models/operations/auth_token_create_batch_status_api_response.rbi +0 -19
- data/lib/authlete/token_operations.rb +0 -344
data/lib/authlete/revocation.rb
CHANGED
|
@@ -39,104 +39,13 @@ module Authlete
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(revocation_request: Models::Components::RevocationRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::AuthRevocationApiResponse) }
|
|
45
|
+
def process_request(revocation_request:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# process_request - Process Revocation Request
|
|
45
47
|
# This API revokes access tokens and refresh tokens.
|
|
46
|
-
#
|
|
47
|
-
# This API is supposed to be called from within the implementation of the revocation endpoint ([RFC
|
|
48
|
-
# 7009](tools.ietf.org/html/rfc7009)) of the authorization server implementation in order to revoke
|
|
49
|
-
# access tokens and refresh tokens.
|
|
50
|
-
# The response from `/auth/revocation` API has some 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
|
-
# authorization server 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.
|
|
57
|
-
# In either case, from the viewpoint of the client application, it is an error on the server side.
|
|
58
|
-
# Therefore, the service implementation should generate a response to the client application with
|
|
59
|
-
# HTTP status of "500 Internal Server Error".
|
|
60
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be
|
|
61
|
-
# used as the entity body of the response.
|
|
62
|
-
# The following illustrates the response which the service implementation should generate and return
|
|
63
|
-
# to the client application.
|
|
64
|
-
# ```
|
|
65
|
-
# HTTP/1.1 500 Internal Server Error
|
|
66
|
-
# Content-Type: application/json
|
|
67
|
-
# Cache-Control: no-store
|
|
68
|
-
# Pragma: no-cache
|
|
69
|
-
# {responseContent}
|
|
70
|
-
# ```
|
|
71
|
-
# **INVALID\_CLIENT**
|
|
72
|
-
# When the value of `action` is `INVALID\_CLIENT`, it means that authentication of the client failed.
|
|
73
|
-
# In this case, the HTTP status of the response to the client application is either "400 Bad Request"
|
|
74
|
-
# or "401 Unauthorized". The description about `invalid\_client` shown below is an excerpt from [RFC
|
|
75
|
-
# 6749](https://datatracker.ietf.org/doc/html/rfc6749).
|
|
76
|
-
# `invalid\_client`
|
|
77
|
-
# > Client authentication failed (e.g., unknown client, no client authentication included, or unsupported
|
|
78
|
-
# authentication method). The authorization server MAY return an HTTP 401 (Unauthorized) status code
|
|
79
|
-
# to indicate which HTTP authentication schemes are supported. If the client attempted to authenticate
|
|
80
|
-
# via the `Authorization` request header field, the authorization server MUST respond with an HTTP
|
|
81
|
-
# 401 (Unauthorized) status code and include the `WWW-Authenticate` response header field matching
|
|
82
|
-
# the authentication scheme used by the client.
|
|
83
|
-
# In either case, the value of `responseContent` is a JSON string which can be used as the entity
|
|
84
|
-
# body of the response to the client application.
|
|
85
|
-
# The following illustrates the response which the service implementation should generate and return
|
|
86
|
-
# to the client application.
|
|
87
|
-
# ```
|
|
88
|
-
# HTTP/1.1 400 Bad Request
|
|
89
|
-
# Content-Type: application/json
|
|
90
|
-
# Cache-Control: no-store
|
|
91
|
-
# Pragma: no-cache
|
|
92
|
-
# {responseContent}
|
|
93
|
-
# ```
|
|
94
|
-
# ```
|
|
95
|
-
# HTTP/1.1 401 Unauthorized
|
|
96
|
-
# WWW-Authenticate: {challenge}
|
|
97
|
-
# Content-Type: application/json
|
|
98
|
-
# Cache-Control: no-store
|
|
99
|
-
# Pragma: no-cache
|
|
100
|
-
# {responseContent}
|
|
101
|
-
# ```
|
|
102
|
-
# **BAD\_REQUEST**
|
|
103
|
-
# When the value of `action` is `BAD\_REQUEST`, it means that the request from the client application
|
|
104
|
-
# is invalid.
|
|
105
|
-
# The HTTP status of the response returned to the client application must be "400 Bad Request" and
|
|
106
|
-
# the content type must be `application/json`. [RFC 7009](https://datatracker.ietf.org/doc/html/rfc7009),
|
|
107
|
-
# [2.2.1. Error Respons](https://datatracker.ietf.org/doc/html/rfc7009#section-2.2.1) states "The
|
|
108
|
-
# error presentation conforms to the definition in [Section 5.2](https://datatracker.ietf.org/doc/html/rfc6749#section-5.2)
|
|
109
|
-
# of [[RFC 6749](https://datatracker.ietf.org/doc/html/rfc6749)]."
|
|
110
|
-
# The value of `responseContent` is a JSON string which describes the error, so it can be used
|
|
111
|
-
# as the entity body of the response.
|
|
112
|
-
# The following illustrates the response which the authorization server implementation should generate
|
|
113
|
-
# and return to the client application.
|
|
114
|
-
# ```
|
|
115
|
-
# HTTP/1.1 400 Bad Request
|
|
116
|
-
# Content-Type: application/json
|
|
117
|
-
# Cache-Control: no-store
|
|
118
|
-
# Pragma: no-cache
|
|
119
|
-
# {responseContent}
|
|
120
|
-
# ```
|
|
121
|
-
# **OK**
|
|
122
|
-
# When the value of `action` is `OK`, it means that the request from the client application is valid
|
|
123
|
-
# and the presented token has been revoked successfully or if the client submitted an invalid token.
|
|
124
|
-
# Note that invalid tokens do not cause an error. See [2.2. Revocation Response](https://datatracker.ietf.org/doc/html/rfc7009#section-2.2) for details.
|
|
125
|
-
# The HTTP status of the response returned to the client application must be 200 OK.
|
|
126
|
-
# If the original request from the client application contains callback request parameter and its
|
|
127
|
-
# value is not empty, the content type should be `application/javascript` and the content should be
|
|
128
|
-
# a JavaScript snippet for JSONP.
|
|
129
|
-
# The value of `responseContent` is JavaScript snippet if the original request from the client application
|
|
130
|
-
# contains callback request parameter and its value is not empty. Otherwise, the value of `responseContent`
|
|
131
|
-
# is `null`.
|
|
132
|
-
# ```
|
|
133
|
-
# HTTP/1.1 200 OK
|
|
134
|
-
# Content-Type: application/javascript
|
|
135
|
-
# Cache-Control: no-store
|
|
136
|
-
# Pragma: no-cache
|
|
137
|
-
# {responseContent}
|
|
138
|
-
# ```
|
|
139
|
-
#
|
|
48
|
+
#
|
|
140
49
|
request = Models::Operations::AuthRevocationApiRequest.new(
|
|
141
50
|
service_id: service_id,
|
|
142
51
|
revocation_request: revocation_request
|
|
@@ -155,7 +64,7 @@ module Authlete
|
|
|
155
64
|
headers['content-type'] = req_content_type
|
|
156
65
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
157
66
|
|
|
158
|
-
if form
|
|
67
|
+
if form && !form.empty?
|
|
159
68
|
body = Utils.encode_form(form)
|
|
160
69
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
161
70
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -191,6 +100,9 @@ module Authlete
|
|
|
191
100
|
req.headers.merge!(headers)
|
|
192
101
|
req.options.timeout = timeout unless timeout.nil?
|
|
193
102
|
Utils.configure_request_security(req, security)
|
|
103
|
+
http_headers&.each do |key, value|
|
|
104
|
+
req.headers[key.to_s] = value
|
|
105
|
+
end
|
|
194
106
|
|
|
195
107
|
@sdk_configuration.hooks.before_request(
|
|
196
108
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -286,5 +198,5 @@ module Authlete
|
|
|
286
198
|
|
|
287
199
|
end
|
|
288
200
|
end
|
|
289
|
-
|
|
201
|
+
end
|
|
290
202
|
end
|
|
@@ -13,13 +13,12 @@ require_relative 'utils/retries'
|
|
|
13
13
|
module Authlete
|
|
14
14
|
extend T::Sig
|
|
15
15
|
|
|
16
|
-
SERVERS = [
|
|
16
|
+
SERVERS = T.let([
|
|
17
17
|
'https://us.authlete.com', # 1 - 🇺🇸 US Cluster
|
|
18
18
|
'https://jp.authlete.com', # 1 - 🇯🇵 Japan Cluster
|
|
19
19
|
'https://eu.authlete.com', # 1 - 🇪🇺 Europe Cluster
|
|
20
20
|
'https://br.authlete.com', # 1 - 🇧🇷 Brazil Cluster
|
|
21
|
-
].freeze
|
|
22
|
-
SERVERS = T.let(SERVERS, T::Array[String])
|
|
21
|
+
].freeze, T::Array[String])
|
|
23
22
|
# Contains the list of servers available to the SDK
|
|
24
23
|
|
|
25
24
|
class SDKConfiguration
|
|
@@ -92,9 +91,9 @@ module Authlete
|
|
|
92
91
|
end
|
|
93
92
|
@language = 'ruby'
|
|
94
93
|
@openapi_doc_version = '3.0.16'
|
|
95
|
-
@sdk_version = '0.0
|
|
96
|
-
@gen_version = '2.
|
|
97
|
-
@user_agent = 'speakeasy-sdk/ruby 0.0
|
|
94
|
+
@sdk_version = '1.0.0'
|
|
95
|
+
@gen_version = '2.879.6'
|
|
96
|
+
@user_agent = 'speakeasy-sdk/ruby 1.0.0 2.879.6 3.0.16 authlete_ruby_sdk'
|
|
98
97
|
end
|
|
99
98
|
|
|
100
99
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/authlete/services.rb
CHANGED
|
@@ -39,14 +39,16 @@ module Authlete
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ServiceGetApiResponse) }
|
|
45
|
+
def retrieve(service_id:, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# retrieve - Get Service
|
|
45
47
|
# Get a service.
|
|
46
|
-
#
|
|
48
|
+
#
|
|
47
49
|
# If the access token can only view or modify clients underneath this service, but does not
|
|
48
50
|
# have access to view this service directly, a limited view of the service will be returned.
|
|
49
|
-
#
|
|
51
|
+
#
|
|
50
52
|
request = Models::Operations::ServiceGetApiRequest.new(
|
|
51
53
|
service_id: service_id
|
|
52
54
|
)
|
|
@@ -88,6 +90,9 @@ module Authlete
|
|
|
88
90
|
req.headers.merge!(headers)
|
|
89
91
|
req.options.timeout = timeout unless timeout.nil?
|
|
90
92
|
Utils.configure_request_security(req, security)
|
|
93
|
+
http_headers&.each do |key, value|
|
|
94
|
+
req.headers[key.to_s] = value
|
|
95
|
+
end
|
|
91
96
|
|
|
92
97
|
@sdk_configuration.hooks.before_request(
|
|
93
98
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -185,18 +190,18 @@ module Authlete
|
|
|
185
190
|
end
|
|
186
191
|
|
|
187
192
|
|
|
188
|
-
sig { params(start: T.nilable(::Integer), end_: T.nilable(::Integer), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ServiceGetListApiResponse) }
|
|
189
|
-
def list(start: nil, end_: nil, timeout_ms: nil)
|
|
193
|
+
sig { params(start: T.nilable(::Integer), end_: T.nilable(::Integer), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ServiceGetListApiResponse) }
|
|
194
|
+
def list(start: nil, end_: nil, timeout_ms: nil, http_headers: nil)
|
|
190
195
|
# list - List Services
|
|
191
196
|
# Get a list of services.
|
|
192
|
-
#
|
|
197
|
+
#
|
|
193
198
|
# If the access token can only view or modify clients underneath a service, but does not
|
|
194
199
|
# have access to view that service directly, a limited view of the service will be returned.
|
|
195
200
|
# Otherwise, all properties of the service are returned.
|
|
196
|
-
#
|
|
201
|
+
#
|
|
197
202
|
# If the access token is an administrative token, this returns a list of all services on the Authlete instance.
|
|
198
203
|
# Otherwise, all services that the access token can view, even in a limited fashion, are returned.
|
|
199
|
-
#
|
|
204
|
+
#
|
|
200
205
|
request = Models::Operations::ServiceGetListApiRequest.new(
|
|
201
206
|
start: start,
|
|
202
207
|
end_: end_
|
|
@@ -236,6 +241,9 @@ module Authlete
|
|
|
236
241
|
req.options.timeout = timeout unless timeout.nil?
|
|
237
242
|
req.params = query_params
|
|
238
243
|
Utils.configure_request_security(req, security)
|
|
244
|
+
http_headers&.each do |key, value|
|
|
245
|
+
req.headers[key.to_s] = value
|
|
246
|
+
end
|
|
239
247
|
|
|
240
248
|
@sdk_configuration.hooks.before_request(
|
|
241
249
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -333,11 +341,11 @@ module Authlete
|
|
|
333
341
|
end
|
|
334
342
|
|
|
335
343
|
|
|
336
|
-
sig { params(request: T.nilable(Models::Components::ServiceInput), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ServiceCreateApiResponse) }
|
|
337
|
-
def create(request: nil, timeout_ms: nil)
|
|
344
|
+
sig { params(request: T.nilable(Models::Components::ServiceInput), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ServiceCreateApiResponse) }
|
|
345
|
+
def create(request: nil, timeout_ms: nil, http_headers: nil)
|
|
338
346
|
# create - Create Service
|
|
339
347
|
# Create a new service.
|
|
340
|
-
#
|
|
348
|
+
#
|
|
341
349
|
url, params = @sdk_configuration.get_server_details
|
|
342
350
|
base_url = Utils.template_url(url, params)
|
|
343
351
|
url = "#{base_url}/api/service/create"
|
|
@@ -346,7 +354,7 @@ module Authlete
|
|
|
346
354
|
req_content_type, data, form = Utils.serialize_request_body(request, false, true, :request, :json)
|
|
347
355
|
headers['content-type'] = req_content_type
|
|
348
356
|
|
|
349
|
-
if form
|
|
357
|
+
if form && !form.empty?
|
|
350
358
|
body = Utils.encode_form(form)
|
|
351
359
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
352
360
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -382,6 +390,9 @@ module Authlete
|
|
|
382
390
|
req.headers.merge!(headers)
|
|
383
391
|
req.options.timeout = timeout unless timeout.nil?
|
|
384
392
|
Utils.configure_request_security(req, security)
|
|
393
|
+
http_headers&.each do |key, value|
|
|
394
|
+
req.headers[key.to_s] = value
|
|
395
|
+
end
|
|
385
396
|
|
|
386
397
|
@sdk_configuration.hooks.before_request(
|
|
387
398
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -479,11 +490,11 @@ module Authlete
|
|
|
479
490
|
end
|
|
480
491
|
|
|
481
492
|
|
|
482
|
-
sig { params(service_id: ::String, service: T.nilable(Models::Components::ServiceInput), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ServiceUpdateApiResponse) }
|
|
483
|
-
def update(service_id:, service: nil, timeout_ms: nil)
|
|
493
|
+
sig { params(service_id: ::String, service: T.nilable(Models::Components::ServiceInput), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ServiceUpdateApiResponse) }
|
|
494
|
+
def update(service_id:, service: nil, timeout_ms: nil, http_headers: nil)
|
|
484
495
|
# update - Update Service
|
|
485
496
|
# Update a service.
|
|
486
|
-
#
|
|
497
|
+
#
|
|
487
498
|
request = Models::Operations::ServiceUpdateApiRequest.new(
|
|
488
499
|
service_id: service_id,
|
|
489
500
|
service: service
|
|
@@ -501,7 +512,7 @@ module Authlete
|
|
|
501
512
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :service, :json)
|
|
502
513
|
headers['content-type'] = req_content_type
|
|
503
514
|
|
|
504
|
-
if form
|
|
515
|
+
if form && !form.empty?
|
|
505
516
|
body = Utils.encode_form(form)
|
|
506
517
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
507
518
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -537,6 +548,9 @@ module Authlete
|
|
|
537
548
|
req.headers.merge!(headers)
|
|
538
549
|
req.options.timeout = timeout unless timeout.nil?
|
|
539
550
|
Utils.configure_request_security(req, security)
|
|
551
|
+
http_headers&.each do |key, value|
|
|
552
|
+
req.headers[key.to_s] = value
|
|
553
|
+
end
|
|
540
554
|
|
|
541
555
|
@sdk_configuration.hooks.before_request(
|
|
542
556
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -634,11 +648,11 @@ module Authlete
|
|
|
634
648
|
end
|
|
635
649
|
|
|
636
650
|
|
|
637
|
-
sig { params(service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ServiceDeleteApiResponse) }
|
|
638
|
-
def destroy(service_id:, timeout_ms: nil)
|
|
651
|
+
sig { params(service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ServiceDeleteApiResponse) }
|
|
652
|
+
def destroy(service_id:, timeout_ms: nil, http_headers: nil)
|
|
639
653
|
# destroy - Delete Service ⚡
|
|
640
654
|
# Delete a service.
|
|
641
|
-
#
|
|
655
|
+
#
|
|
642
656
|
request = Models::Operations::ServiceDeleteApiRequest.new(
|
|
643
657
|
service_id: service_id
|
|
644
658
|
)
|
|
@@ -680,6 +694,9 @@ module Authlete
|
|
|
680
694
|
req.headers.merge!(headers)
|
|
681
695
|
req.options.timeout = timeout unless timeout.nil?
|
|
682
696
|
Utils.configure_request_security(req, security)
|
|
697
|
+
http_headers&.each do |key, value|
|
|
698
|
+
req.headers[key.to_s] = value
|
|
699
|
+
end
|
|
683
700
|
|
|
684
701
|
@sdk_configuration.hooks.before_request(
|
|
685
702
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -768,17 +785,17 @@ module Authlete
|
|
|
768
785
|
end
|
|
769
786
|
|
|
770
787
|
|
|
771
|
-
sig { params(service_id: ::String, pretty: T.nilable(T::Boolean), patch: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::ServiceConfigurationApiResponse) }
|
|
772
|
-
def configuration(service_id:, pretty: nil, patch: nil, timeout_ms: nil)
|
|
788
|
+
sig { params(service_id: ::String, pretty: T.nilable(T::Boolean), patch: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::ServiceConfigurationApiResponse) }
|
|
789
|
+
def configuration(service_id:, pretty: nil, patch: nil, timeout_ms: nil, http_headers: nil)
|
|
773
790
|
# configuration - Get Service Configuration
|
|
774
791
|
# This API gathers configuration information about a service.
|
|
775
|
-
#
|
|
792
|
+
#
|
|
776
793
|
# This API is supposed to be called from within the implementation of the configuration endpoint of
|
|
777
|
-
# the service where the service that supports OpenID Connect and [OpenID Connect Discovery 1.0](https://openid.net/specs/openid-connect-discovery-
|
|
794
|
+
# the service where the service that supports OpenID Connect and [OpenID Connect Discovery 1.0](https://openid.net/specs/openid-connect-discovery-1_0.html)
|
|
778
795
|
# must expose its configuration information in a JSON format. Details about the format are described
|
|
779
|
-
# in "[3. OpenID Provider Metadata](https://openid.net/specs/openid-connect-discovery-
|
|
796
|
+
# in "[3. OpenID Provider Metadata](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata)"
|
|
780
797
|
# in OpenID Connect Discovery 1.0.
|
|
781
|
-
#
|
|
798
|
+
#
|
|
782
799
|
request = Models::Operations::ServiceConfigurationApiRequest.new(
|
|
783
800
|
service_id: service_id,
|
|
784
801
|
pretty: pretty,
|
|
@@ -824,6 +841,9 @@ module Authlete
|
|
|
824
841
|
req.options.timeout = timeout unless timeout.nil?
|
|
825
842
|
req.params = query_params
|
|
826
843
|
Utils.configure_request_security(req, security)
|
|
844
|
+
http_headers&.each do |key, value|
|
|
845
|
+
req.headers[key.to_s] = value
|
|
846
|
+
end
|
|
827
847
|
|
|
828
848
|
@sdk_configuration.hooks.before_request(
|
|
829
849
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -919,5 +939,5 @@ module Authlete
|
|
|
919
939
|
|
|
920
940
|
end
|
|
921
941
|
end
|
|
922
|
-
|
|
942
|
+
end
|
|
923
943
|
end
|
|
@@ -39,15 +39,17 @@ module Authlete
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(service_id: ::String, idtoken_reissue_request: T.nilable(Models::Components::IdtokenReissueRequest), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::IdtokenReissueApiResponse) }
|
|
45
|
+
def reissue_id_token(service_id:, idtoken_reissue_request: nil, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# reissue_id_token - Reissue ID Token
|
|
45
47
|
# The API is expected to be called only when the value of the `action`
|
|
46
48
|
# parameter in a response from the `/auth/token` API is [ID_TOKEN_REISSUABLE](https://authlete.github.io/authlete-java-common/com/authlete/common/dto/TokenResponse.Action.html#ID_TOKEN_REISSUABLE). The purpose
|
|
47
49
|
# of the `/idtoken/reissue` API is to generate a token response that
|
|
48
50
|
# includes a new ID token together with a new access token and a refresh
|
|
49
51
|
# token.
|
|
50
|
-
#
|
|
52
|
+
#
|
|
51
53
|
request = Models::Operations::IdtokenReissueApiRequest.new(
|
|
52
54
|
service_id: service_id,
|
|
53
55
|
idtoken_reissue_request: idtoken_reissue_request
|
|
@@ -65,7 +67,7 @@ module Authlete
|
|
|
65
67
|
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :idtoken_reissue_request, :json)
|
|
66
68
|
headers['content-type'] = req_content_type
|
|
67
69
|
|
|
68
|
-
if form
|
|
70
|
+
if form && !form.empty?
|
|
69
71
|
body = Utils.encode_form(form)
|
|
70
72
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
71
73
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -101,6 +103,9 @@ module Authlete
|
|
|
101
103
|
req.headers.merge!(headers)
|
|
102
104
|
req.options.timeout = timeout unless timeout.nil?
|
|
103
105
|
Utils.configure_request_security(req, security)
|
|
106
|
+
http_headers&.each do |key, value|
|
|
107
|
+
req.headers[key.to_s] = value
|
|
108
|
+
end
|
|
104
109
|
|
|
105
110
|
@sdk_configuration.hooks.before_request(
|
|
106
111
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -198,11 +203,11 @@ module Authlete
|
|
|
198
203
|
end
|
|
199
204
|
|
|
200
205
|
|
|
201
|
-
sig { params(request: Models::Operations::AuthTokenGetListApiRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::AuthTokenGetListApiResponse) }
|
|
202
|
-
def list(request:, timeout_ms: nil)
|
|
206
|
+
sig { params(request: Models::Operations::AuthTokenGetListApiRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::AuthTokenGetListApiResponse) }
|
|
207
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
203
208
|
# list - List Issued Tokens
|
|
204
209
|
# Get the list of access tokens that are associated with the service.
|
|
205
|
-
#
|
|
210
|
+
#
|
|
206
211
|
url, params = @sdk_configuration.get_server_details
|
|
207
212
|
base_url = Utils.template_url(url, params)
|
|
208
213
|
url = Utils.generate_url(
|
|
@@ -243,6 +248,9 @@ module Authlete
|
|
|
243
248
|
req.options.timeout = timeout unless timeout.nil?
|
|
244
249
|
req.params = query_params
|
|
245
250
|
Utils.configure_request_security(req, security)
|
|
251
|
+
http_headers&.each do |key, value|
|
|
252
|
+
req.headers[key.to_s] = value
|
|
253
|
+
end
|
|
246
254
|
|
|
247
255
|
@sdk_configuration.hooks.before_request(
|
|
248
256
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -340,11 +348,11 @@ module Authlete
|
|
|
340
348
|
end
|
|
341
349
|
|
|
342
350
|
|
|
343
|
-
sig { params(token_create_request: Models::Components::TokenCreateRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::AuthTokenCreateApiResponse) }
|
|
344
|
-
def create(token_create_request:, service_id:, timeout_ms: nil)
|
|
351
|
+
sig { params(token_create_request: Models::Components::TokenCreateRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::AuthTokenCreateApiResponse) }
|
|
352
|
+
def create(token_create_request:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
345
353
|
# create - Create Access Token
|
|
346
354
|
# Create an access token.
|
|
347
|
-
#
|
|
355
|
+
#
|
|
348
356
|
request = Models::Operations::AuthTokenCreateApiRequest.new(
|
|
349
357
|
service_id: service_id,
|
|
350
358
|
token_create_request: token_create_request
|
|
@@ -363,7 +371,7 @@ module Authlete
|
|
|
363
371
|
headers['content-type'] = req_content_type
|
|
364
372
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
365
373
|
|
|
366
|
-
if form
|
|
374
|
+
if form && !form.empty?
|
|
367
375
|
body = Utils.encode_form(form)
|
|
368
376
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
369
377
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -399,6 +407,9 @@ module Authlete
|
|
|
399
407
|
req.headers.merge!(headers)
|
|
400
408
|
req.options.timeout = timeout unless timeout.nil?
|
|
401
409
|
Utils.configure_request_security(req, security)
|
|
410
|
+
http_headers&.each do |key, value|
|
|
411
|
+
req.headers[key.to_s] = value
|
|
412
|
+
end
|
|
402
413
|
|
|
403
414
|
@sdk_configuration.hooks.before_request(
|
|
404
415
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -496,11 +507,11 @@ module Authlete
|
|
|
496
507
|
end
|
|
497
508
|
|
|
498
509
|
|
|
499
|
-
sig { params(token_update_request: Models::Components::TokenUpdateRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::AuthTokenUpdateApiResponse) }
|
|
500
|
-
def update(token_update_request:, service_id:, timeout_ms: nil)
|
|
510
|
+
sig { params(token_update_request: Models::Components::TokenUpdateRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::AuthTokenUpdateApiResponse) }
|
|
511
|
+
def update(token_update_request:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
501
512
|
# update - Update Access Token
|
|
502
513
|
# Update an access token.
|
|
503
|
-
#
|
|
514
|
+
#
|
|
504
515
|
request = Models::Operations::AuthTokenUpdateApiRequest.new(
|
|
505
516
|
service_id: service_id,
|
|
506
517
|
token_update_request: token_update_request
|
|
@@ -519,7 +530,7 @@ module Authlete
|
|
|
519
530
|
headers['content-type'] = req_content_type
|
|
520
531
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
521
532
|
|
|
522
|
-
if form
|
|
533
|
+
if form && !form.empty?
|
|
523
534
|
body = Utils.encode_form(form)
|
|
524
535
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
525
536
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -555,6 +566,9 @@ module Authlete
|
|
|
555
566
|
req.headers.merge!(headers)
|
|
556
567
|
req.options.timeout = timeout unless timeout.nil?
|
|
557
568
|
Utils.configure_request_security(req, security)
|
|
569
|
+
http_headers&.each do |key, value|
|
|
570
|
+
req.headers[key.to_s] = value
|
|
571
|
+
end
|
|
558
572
|
|
|
559
573
|
@sdk_configuration.hooks.before_request(
|
|
560
574
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -652,11 +666,11 @@ module Authlete
|
|
|
652
666
|
end
|
|
653
667
|
|
|
654
668
|
|
|
655
|
-
sig { params(service_id: ::String, access_token_identifier: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::AuthTokenDeleteApiResponse) }
|
|
656
|
-
def destroy(service_id:, access_token_identifier:, timeout_ms: nil)
|
|
669
|
+
sig { params(service_id: ::String, access_token_identifier: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::AuthTokenDeleteApiResponse) }
|
|
670
|
+
def destroy(service_id:, access_token_identifier:, timeout_ms: nil, http_headers: nil)
|
|
657
671
|
# destroy - Delete Access Token
|
|
658
672
|
# Delete an access token.
|
|
659
|
-
#
|
|
673
|
+
#
|
|
660
674
|
request = Models::Operations::AuthTokenDeleteApiRequest.new(
|
|
661
675
|
service_id: service_id,
|
|
662
676
|
access_token_identifier: access_token_identifier
|
|
@@ -699,6 +713,9 @@ module Authlete
|
|
|
699
713
|
req.headers.merge!(headers)
|
|
700
714
|
req.options.timeout = timeout unless timeout.nil?
|
|
701
715
|
Utils.configure_request_security(req, security)
|
|
716
|
+
http_headers&.each do |key, value|
|
|
717
|
+
req.headers[key.to_s] = value
|
|
718
|
+
end
|
|
702
719
|
|
|
703
720
|
@sdk_configuration.hooks.before_request(
|
|
704
721
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -787,11 +804,11 @@ module Authlete
|
|
|
787
804
|
end
|
|
788
805
|
|
|
789
806
|
|
|
790
|
-
sig { params(token_revoke_request: Models::Components::TokenRevokeRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::AuthTokenRevokeApiResponse) }
|
|
791
|
-
def revoke(token_revoke_request:, service_id:, timeout_ms: nil)
|
|
807
|
+
sig { params(token_revoke_request: Models::Components::TokenRevokeRequest, service_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::AuthTokenRevokeApiResponse) }
|
|
808
|
+
def revoke(token_revoke_request:, service_id:, timeout_ms: nil, http_headers: nil)
|
|
792
809
|
# revoke - Revoke Access Token
|
|
793
810
|
# Revoke an access token.
|
|
794
|
-
#
|
|
811
|
+
#
|
|
795
812
|
request = Models::Operations::AuthTokenRevokeApiRequest.new(
|
|
796
813
|
service_id: service_id,
|
|
797
814
|
token_revoke_request: token_revoke_request
|
|
@@ -810,7 +827,7 @@ module Authlete
|
|
|
810
827
|
headers['content-type'] = req_content_type
|
|
811
828
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
812
829
|
|
|
813
|
-
if form
|
|
830
|
+
if form && !form.empty?
|
|
814
831
|
body = Utils.encode_form(form)
|
|
815
832
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
816
833
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -846,6 +863,9 @@ module Authlete
|
|
|
846
863
|
req.headers.merge!(headers)
|
|
847
864
|
req.options.timeout = timeout unless timeout.nil?
|
|
848
865
|
Utils.configure_request_security(req, security)
|
|
866
|
+
http_headers&.each do |key, value|
|
|
867
|
+
req.headers[key.to_s] = value
|
|
868
|
+
end
|
|
849
869
|
|
|
850
870
|
@sdk_configuration.hooks.before_request(
|
|
851
871
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -941,5 +961,5 @@ module Authlete
|
|
|
941
961
|
|
|
942
962
|
end
|
|
943
963
|
end
|
|
944
|
-
|
|
964
|
+
end
|
|
945
965
|
end
|