authlete_ruby_test 0.0.1.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/authlete/authorization.rb +1062 -0
- data/lib/authlete/authorization_management.rb +349 -0
- data/lib/authlete/ciba.rb +1064 -0
- data/lib/authlete/client.rb +118 -0
- data/lib/authlete/client_management.rb +1703 -0
- data/lib/authlete/clients.rb +784 -0
- data/lib/authlete/device_flow.rb +647 -0
- data/lib/authlete/dynamic_client_registration.rb +939 -0
- data/lib/authlete/federation.rb +433 -0
- data/lib/authlete/grant_management.rb +198 -0
- data/lib/authlete/hardware_security_keys.rb +620 -0
- data/lib/authlete/introspection.rb +540 -0
- data/lib/authlete/jose_object.rb +196 -0
- data/lib/authlete/jwk_set_endpoint.rb +195 -0
- data/lib/authlete/models/callbacks.rb +12 -0
- data/lib/authlete/models/components/access_token.rb +85 -0
- data/lib/authlete/models/components/access_token.rbi +35 -0
- data/lib/authlete/models/components/application_type.rb +24 -0
- data/lib/authlete/models/components/application_type.rbi +11 -0
- data/lib/authlete/models/components/attachment_type.rb +25 -0
- data/lib/authlete/models/components/attachment_type.rbi +11 -0
- data/lib/authlete/models/components/authorization_details_element.rb +90 -0
- data/lib/authlete/models/components/authorization_details_element.rbi +25 -0
- data/lib/authlete/models/components/authorization_fail_request.rb +45 -0
- data/lib/authlete/models/components/authorization_fail_request.rbi +17 -0
- data/lib/authlete/models/components/authorization_fail_request_reason.rb +35 -0
- data/lib/authlete/models/components/authorization_fail_request_reason.rbi +11 -0
- data/lib/authlete/models/components/authorization_fail_response.rb +47 -0
- data/lib/authlete/models/components/authorization_fail_response.rbi +19 -0
- data/lib/authlete/models/components/authorization_fail_response_action.rb +24 -0
- data/lib/authlete/models/components/authorization_fail_response_action.rbi +11 -0
- data/lib/authlete/models/components/authorization_issue_request.rb +204 -0
- data/lib/authlete/models/components/authorization_issue_request.rbi +47 -0
- data/lib/authlete/models/components/authorization_issue_response.rb +86 -0
- data/lib/authlete/models/components/authorization_issue_response.rbi +33 -0
- data/lib/authlete/models/components/authorization_issue_response_action.rb +24 -0
- data/lib/authlete/models/components/authorization_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/authorization_request.rb +57 -0
- data/lib/authlete/models/components/authorization_request.rbi +17 -0
- data/lib/authlete/models/components/authorization_response.rb +485 -0
- data/lib/authlete/models/components/authorization_response.rbi +93 -0
- data/lib/authlete/models/components/authorization_response_action.rb +26 -0
- data/lib/authlete/models/components/authorization_response_action.rbi +11 -0
- data/lib/authlete/models/components/authorization_ticket_info.rb +34 -0
- data/lib/authlete/models/components/authorization_ticket_info.rbi +13 -0
- data/lib/authlete/models/components/authorization_ticket_info_request.rb +33 -0
- data/lib/authlete/models/components/authorization_ticket_info_request.rbi +13 -0
- data/lib/authlete/models/components/authorization_ticket_info_response.rb +45 -0
- data/lib/authlete/models/components/authorization_ticket_info_response.rbi +19 -0
- data/lib/authlete/models/components/authorization_ticket_info_response_action.rb +24 -0
- data/lib/authlete/models/components/authorization_ticket_info_response_action.rbi +11 -0
- data/lib/authlete/models/components/authorization_ticket_update_request.rb +37 -0
- data/lib/authlete/models/components/authorization_ticket_update_request.rbi +15 -0
- data/lib/authlete/models/components/authorization_ticket_update_response.rb +45 -0
- data/lib/authlete/models/components/authorization_ticket_update_response.rbi +19 -0
- data/lib/authlete/models/components/authorization_ticket_update_response_action.rb +24 -0
- data/lib/authlete/models/components/authorization_ticket_update_response_action.rbi +11 -0
- data/lib/authlete/models/components/authz_details.rb +37 -0
- data/lib/authlete/models/components/authz_details.rbi +13 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_request.rb +142 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_request.rbi +47 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_request_result.rb +25 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_request_result.rbi +11 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_response.rb +186 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_response.rbi +67 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_response_action.rb +24 -0
- data/lib/authlete/models/components/backchannel_authentication_complete_response_action.rbi +11 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_request.rb +56 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_request.rbi +19 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_request_reason.rb +32 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_request_reason.rbi +11 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_response.rb +47 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_response.rbi +19 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_response_action.rb +23 -0
- data/lib/authlete/models/components/backchannel_authentication_fail_response_action.rbi +11 -0
- data/lib/authlete/models/components/backchannel_authentication_issue_request.rb +34 -0
- data/lib/authlete/models/components/backchannel_authentication_issue_request.rbi +13 -0
- data/lib/authlete/models/components/backchannel_authentication_issue_response.rb +63 -0
- data/lib/authlete/models/components/backchannel_authentication_issue_response.rbi +25 -0
- data/lib/authlete/models/components/backchannel_authentication_issue_response_action.rb +23 -0
- data/lib/authlete/models/components/backchannel_authentication_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/backchannel_authentication_request.rb +91 -0
- data/lib/authlete/models/components/backchannel_authentication_request.rbi +27 -0
- data/lib/authlete/models/components/backchannel_authentication_response.rb +272 -0
- data/lib/authlete/models/components/backchannel_authentication_response.rbi +85 -0
- data/lib/authlete/models/components/backchannel_authentication_response_action.rb +24 -0
- data/lib/authlete/models/components/backchannel_authentication_response_action.rbi +11 -0
- data/lib/authlete/models/components/cimd_options.rb +67 -0
- data/lib/authlete/models/components/cimd_options.rbi +17 -0
- data/lib/authlete/models/components/claim_type.rb +23 -0
- data/lib/authlete/models/components/claim_type.rbi +11 -0
- data/lib/authlete/models/components/client.rb +920 -0
- data/lib/authlete/models/components/client.rbi +219 -0
- data/lib/authlete/models/components/client_auth_method.rb +31 -0
- data/lib/authlete/models/components/client_auth_method.rbi +11 -0
- data/lib/authlete/models/components/client_authorization_delete_response.rb +71 -0
- data/lib/authlete/models/components/client_authorization_delete_response.rbi +27 -0
- data/lib/authlete/models/components/client_authorization_get_list_response.rb +59 -0
- data/lib/authlete/models/components/client_authorization_get_list_response.rbi +23 -0
- data/lib/authlete/models/components/client_authorization_update_request.rb +43 -0
- data/lib/authlete/models/components/client_authorization_update_request.rbi +15 -0
- data/lib/authlete/models/components/client_authorization_update_response.rb +37 -0
- data/lib/authlete/models/components/client_authorization_update_response.rbi +15 -0
- data/lib/authlete/models/components/client_extension.rb +94 -0
- data/lib/authlete/models/components/client_extension.rbi +23 -0
- data/lib/authlete/models/components/client_extension_requestable_scopes_get_response.rb +33 -0
- data/lib/authlete/models/components/client_extension_requestable_scopes_get_response.rbi +13 -0
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_request.rb +43 -0
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_request.rbi +13 -0
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_response.rb +33 -0
- data/lib/authlete/models/components/client_extension_requestable_scopes_update_response.rbi +13 -0
- data/lib/authlete/models/components/client_flag_update_request.rb +34 -0
- data/lib/authlete/models/components/client_flag_update_request.rbi +13 -0
- data/lib/authlete/models/components/client_flag_update_response.rb +37 -0
- data/lib/authlete/models/components/client_flag_update_response.rbi +15 -0
- data/lib/authlete/models/components/client_get_list_response.rb +50 -0
- data/lib/authlete/models/components/client_get_list_response.rbi +19 -0
- data/lib/authlete/models/components/client_granted_scopes_delete_response.rb +37 -0
- data/lib/authlete/models/components/client_granted_scopes_delete_response.rbi +15 -0
- data/lib/authlete/models/components/client_input.rb +868 -0
- data/lib/authlete/models/components/client_input.rbi +203 -0
- data/lib/authlete/models/components/client_limited.rb +76 -0
- data/lib/authlete/models/components/client_limited.rbi +29 -0
- data/lib/authlete/models/components/client_limited_authorization.rb +120 -0
- data/lib/authlete/models/components/client_limited_authorization.rbi +41 -0
- data/lib/authlete/models/components/client_registration_response.rb +52 -0
- data/lib/authlete/models/components/client_registration_response.rbi +21 -0
- data/lib/authlete/models/components/client_registration_response_action.rb +28 -0
- data/lib/authlete/models/components/client_registration_response_action.rbi +11 -0
- data/lib/authlete/models/components/client_registration_type.rb +25 -0
- data/lib/authlete/models/components/client_registration_type.rbi +11 -0
- data/lib/authlete/models/components/client_secret_refresh_response.rb +47 -0
- data/lib/authlete/models/components/client_secret_refresh_response.rbi +19 -0
- data/lib/authlete/models/components/client_secret_update_request.rb +35 -0
- data/lib/authlete/models/components/client_secret_update_request.rbi +13 -0
- data/lib/authlete/models/components/client_secret_update_response.rb +47 -0
- data/lib/authlete/models/components/client_secret_update_response.rbi +19 -0
- data/lib/authlete/models/components/client_type.rb +24 -0
- data/lib/authlete/models/components/client_type.rbi +11 -0
- data/lib/authlete/models/components/clientsource.rb +26 -0
- data/lib/authlete/models/components/clientsource.rbi +11 -0
- data/lib/authlete/models/components/credential_issuance_order.rb +51 -0
- data/lib/authlete/models/components/credential_issuance_order.rbi +21 -0
- data/lib/authlete/models/components/credential_issuer_metadata.rb +79 -0
- data/lib/authlete/models/components/credential_issuer_metadata.rbi +29 -0
- data/lib/authlete/models/components/credential_offer_info.rb +136 -0
- data/lib/authlete/models/components/credential_offer_info.rbi +49 -0
- data/lib/authlete/models/components/credential_request_info.rb +49 -0
- data/lib/authlete/models/components/credential_request_info.rbi +21 -0
- data/lib/authlete/models/components/delivery_mode.rb +23 -0
- data/lib/authlete/models/components/delivery_mode.rbi +11 -0
- data/lib/authlete/models/components/device_authorization_request.rb +91 -0
- data/lib/authlete/models/components/device_authorization_request.rbi +27 -0
- data/lib/authlete/models/components/device_authorization_response.rb +243 -0
- data/lib/authlete/models/components/device_authorization_response.rbi +75 -0
- data/lib/authlete/models/components/device_authorization_response_action.rb +24 -0
- data/lib/authlete/models/components/device_authorization_response_action.rbi +11 -0
- data/lib/authlete/models/components/device_complete_request.rb +137 -0
- data/lib/authlete/models/components/device_complete_request.rbi +45 -0
- data/lib/authlete/models/components/device_complete_request_result.rb +25 -0
- data/lib/authlete/models/components/device_complete_request_result.rbi +11 -0
- data/lib/authlete/models/components/device_complete_response.rb +42 -0
- data/lib/authlete/models/components/device_complete_response.rbi +17 -0
- data/lib/authlete/models/components/device_complete_response_action.rb +26 -0
- data/lib/authlete/models/components/device_complete_response_action.rbi +11 -0
- data/lib/authlete/models/components/device_verification_request.rb +34 -0
- data/lib/authlete/models/components/device_verification_request.rbi +13 -0
- data/lib/authlete/models/components/device_verification_response.rb +188 -0
- data/lib/authlete/models/components/device_verification_response.rbi +59 -0
- data/lib/authlete/models/components/device_verification_response_action.rb +24 -0
- data/lib/authlete/models/components/device_verification_response_action.rbi +11 -0
- data/lib/authlete/models/components/display.rb +33 -0
- data/lib/authlete/models/components/display.rbi +11 -0
- data/lib/authlete/models/components/dynamic_scope.rb +37 -0
- data/lib/authlete/models/components/dynamic_scope.rbi +15 -0
- data/lib/authlete/models/components/fapi_mode.rb +26 -0
- data/lib/authlete/models/components/fapi_mode.rbi +11 -0
- data/lib/authlete/models/components/federation_configuration_response.rb +47 -0
- data/lib/authlete/models/components/federation_configuration_response.rbi +19 -0
- data/lib/authlete/models/components/federation_configuration_response_action.rb +23 -0
- data/lib/authlete/models/components/federation_configuration_response_action.rbi +11 -0
- data/lib/authlete/models/components/federation_registration_request.rb +39 -0
- data/lib/authlete/models/components/federation_registration_request.rbi +15 -0
- data/lib/authlete/models/components/federation_registration_response.rb +51 -0
- data/lib/authlete/models/components/federation_registration_response.rbi +21 -0
- data/lib/authlete/models/components/federation_registration_response_action.rb +24 -0
- data/lib/authlete/models/components/federation_registration_response_action.rbi +11 -0
- data/lib/authlete/models/components/g_m_request.rb +90 -0
- data/lib/authlete/models/components/g_m_request.rbi +27 -0
- data/lib/authlete/models/components/g_m_response.rb +53 -0
- data/lib/authlete/models/components/g_m_response.rbi +21 -0
- data/lib/authlete/models/components/g_m_response_action.rb +27 -0
- data/lib/authlete/models/components/g_m_response_action.rbi +11 -0
- data/lib/authlete/models/components/grant.rb +45 -0
- data/lib/authlete/models/components/grant.rbi +17 -0
- data/lib/authlete/models/components/grant_management_action.rb +29 -0
- data/lib/authlete/models/components/grant_management_action.rbi +11 -0
- data/lib/authlete/models/components/grant_scope.rb +39 -0
- data/lib/authlete/models/components/grant_scope.rbi +15 -0
- data/lib/authlete/models/components/grant_type.rb +31 -0
- data/lib/authlete/models/components/grant_type.rbi +11 -0
- data/lib/authlete/models/components/hsk.rb +71 -0
- data/lib/authlete/models/components/hsk.rbi +25 -0
- data/lib/authlete/models/components/hsk_create_request.rb +63 -0
- data/lib/authlete/models/components/hsk_create_request.rbi +21 -0
- data/lib/authlete/models/components/hsk_create_response.rb +46 -0
- data/lib/authlete/models/components/hsk_create_response.rbi +19 -0
- data/lib/authlete/models/components/hsk_create_response_action.rb +24 -0
- data/lib/authlete/models/components/hsk_create_response_action.rbi +11 -0
- data/lib/authlete/models/components/hsk_delete_response.rb +46 -0
- data/lib/authlete/models/components/hsk_delete_response.rbi +19 -0
- data/lib/authlete/models/components/hsk_delete_response_action.rb +24 -0
- data/lib/authlete/models/components/hsk_delete_response_action.rbi +11 -0
- data/lib/authlete/models/components/hsk_get_list_response.rb +45 -0
- data/lib/authlete/models/components/hsk_get_list_response.rbi +19 -0
- data/lib/authlete/models/components/hsk_get_list_response_action.rb +23 -0
- data/lib/authlete/models/components/hsk_get_list_response_action.rbi +11 -0
- data/lib/authlete/models/components/hsk_get_response.rb +46 -0
- data/lib/authlete/models/components/hsk_get_response.rbi +19 -0
- data/lib/authlete/models/components/hsk_get_response_action.rb +24 -0
- data/lib/authlete/models/components/hsk_get_response_action.rbi +11 -0
- data/lib/authlete/models/components/idtoken_reissue_request.rb +82 -0
- data/lib/authlete/models/components/idtoken_reissue_request.rbi +23 -0
- data/lib/authlete/models/components/idtoken_reissue_response.rb +52 -0
- data/lib/authlete/models/components/idtoken_reissue_response.rbi +21 -0
- data/lib/authlete/models/components/idtoken_reissue_response_action.rb +23 -0
- data/lib/authlete/models/components/idtoken_reissue_response_action.rbi +11 -0
- data/lib/authlete/models/components/introspection_request.rb +166 -0
- data/lib/authlete/models/components/introspection_request.rbi +45 -0
- data/lib/authlete/models/components/introspection_response.rb +253 -0
- data/lib/authlete/models/components/introspection_response.rbi +89 -0
- data/lib/authlete/models/components/introspection_response_action.rb +25 -0
- data/lib/authlete/models/components/introspection_response_action.rbi +11 -0
- data/lib/authlete/models/components/jose_verify_request.rb +56 -0
- data/lib/authlete/models/components/jose_verify_request.rbi +21 -0
- data/lib/authlete/models/components/jose_verify_response.rb +62 -0
- data/lib/authlete/models/components/jose_verify_response.rbi +25 -0
- data/lib/authlete/models/components/jwe_alg.rb +44 -0
- data/lib/authlete/models/components/jwe_alg.rbi +11 -0
- data/lib/authlete/models/components/jwe_enc.rb +31 -0
- data/lib/authlete/models/components/jwe_enc.rbi +11 -0
- data/lib/authlete/models/components/jws_alg.rb +42 -0
- data/lib/authlete/models/components/jws_alg.rbi +11 -0
- data/lib/authlete/models/components/named_uri.rb +37 -0
- data/lib/authlete/models/components/named_uri.rbi +15 -0
- data/lib/authlete/models/components/native_sso_logout_request.rb +34 -0
- data/lib/authlete/models/components/native_sso_logout_request.rbi +13 -0
- data/lib/authlete/models/components/native_sso_logout_response.rb +47 -0
- data/lib/authlete/models/components/native_sso_logout_response.rbi +19 -0
- data/lib/authlete/models/components/native_sso_logout_response_action.rb +24 -0
- data/lib/authlete/models/components/native_sso_logout_response_action.rbi +11 -0
- data/lib/authlete/models/components/native_sso_request.rb +97 -0
- data/lib/authlete/models/components/native_sso_request.rbi +27 -0
- data/lib/authlete/models/components/native_sso_response.rb +53 -0
- data/lib/authlete/models/components/native_sso_response.rbi +21 -0
- data/lib/authlete/models/components/native_sso_response_action.rb +24 -0
- data/lib/authlete/models/components/native_sso_response_action.rbi +11 -0
- data/lib/authlete/models/components/pair.rb +37 -0
- data/lib/authlete/models/components/pair.rbi +15 -0
- data/lib/authlete/models/components/prompt.rb +30 -0
- data/lib/authlete/models/components/prompt.rbi +11 -0
- data/lib/authlete/models/components/property.rb +43 -0
- data/lib/authlete/models/components/property.rbi +17 -0
- data/lib/authlete/models/components/pushed_authorization_request.rb +91 -0
- data/lib/authlete/models/components/pushed_authorization_request.rbi +33 -0
- data/lib/authlete/models/components/pushed_authorization_response.rb +65 -0
- data/lib/authlete/models/components/pushed_authorization_response.rbi +25 -0
- data/lib/authlete/models/components/pushed_authorization_response_action.rb +26 -0
- data/lib/authlete/models/components/pushed_authorization_response_action.rbi +11 -0
- data/lib/authlete/models/components/pushed_authorization_response_clientauthmethod.rb +30 -0
- data/lib/authlete/models/components/pushed_authorization_response_clientauthmethod.rbi +11 -0
- data/lib/authlete/models/components/response_type.rb +28 -0
- data/lib/authlete/models/components/response_type.rbi +11 -0
- data/lib/authlete/models/components/responsemode.rb +27 -0
- data/lib/authlete/models/components/responsemode.rbi +11 -0
- data/lib/authlete/models/components/revocation_request.rb +79 -0
- data/lib/authlete/models/components/revocation_request.rbi +25 -0
- data/lib/authlete/models/components/revocation_response.rb +47 -0
- data/lib/authlete/models/components/revocation_response.rbi +19 -0
- data/lib/authlete/models/components/revocation_response_action.rb +24 -0
- data/lib/authlete/models/components/revocation_response_action.rbi +11 -0
- data/lib/authlete/models/components/scope.rb +49 -0
- data/lib/authlete/models/components/scope.rbi +21 -0
- data/lib/authlete/models/components/security.rb +33 -0
- data/lib/authlete/models/components/security.rbi +13 -0
- data/lib/authlete/models/components/service.rb +1634 -0
- data/lib/authlete/models/components/service.rbi +377 -0
- data/lib/authlete/models/components/service_get_list_response.rb +52 -0
- data/lib/authlete/models/components/service_get_list_response.rbi +19 -0
- data/lib/authlete/models/components/service_input.rb +1594 -0
- data/lib/authlete/models/components/service_input.rbi +363 -0
- data/lib/authlete/models/components/service_jwks_get_response.rb +33 -0
- data/lib/authlete/models/components/service_jwks_get_response.rbi +13 -0
- data/lib/authlete/models/components/service_profile.rb +22 -0
- data/lib/authlete/models/components/service_profile.rbi +11 -0
- data/lib/authlete/models/components/sns_credentials.rb +41 -0
- data/lib/authlete/models/components/sns_credentials.rbi +17 -0
- data/lib/authlete/models/components/standard_introspection_request.rb +129 -0
- data/lib/authlete/models/components/standard_introspection_request.rbi +31 -0
- data/lib/authlete/models/components/standard_introspection_response.rb +47 -0
- data/lib/authlete/models/components/standard_introspection_response.rbi +19 -0
- data/lib/authlete/models/components/standard_introspection_response_action.rb +23 -0
- data/lib/authlete/models/components/standard_introspection_response_action.rbi +11 -0
- data/lib/authlete/models/components/subject_type.rb +27 -0
- data/lib/authlete/models/components/subject_type.rbi +11 -0
- data/lib/authlete/models/components/supportedsnse.rb +21 -0
- data/lib/authlete/models/components/supportedsnse.rbi +11 -0
- data/lib/authlete/models/components/tagged_value.rb +37 -0
- data/lib/authlete/models/components/tagged_value.rbi +15 -0
- data/lib/authlete/models/components/token_create_request.rb +206 -0
- data/lib/authlete/models/components/token_create_request.rbi +57 -0
- data/lib/authlete/models/components/token_create_response.rb +135 -0
- data/lib/authlete/models/components/token_create_response.rbi +51 -0
- data/lib/authlete/models/components/token_create_response_action.rb +24 -0
- data/lib/authlete/models/components/token_create_response_action.rbi +11 -0
- data/lib/authlete/models/components/token_fail_request.rb +39 -0
- data/lib/authlete/models/components/token_fail_request.rbi +15 -0
- data/lib/authlete/models/components/token_fail_request_reason.rb +24 -0
- data/lib/authlete/models/components/token_fail_request_reason.rbi +11 -0
- data/lib/authlete/models/components/token_fail_response.rb +47 -0
- data/lib/authlete/models/components/token_fail_response.rbi +19 -0
- data/lib/authlete/models/components/token_fail_response_action.rb +22 -0
- data/lib/authlete/models/components/token_fail_response_action.rbi +11 -0
- data/lib/authlete/models/components/token_get_list_response.rb +58 -0
- data/lib/authlete/models/components/token_get_list_response.rbi +23 -0
- data/lib/authlete/models/components/token_info.rb +89 -0
- data/lib/authlete/models/components/token_info.rbi +37 -0
- data/lib/authlete/models/components/token_issue_request.rb +74 -0
- data/lib/authlete/models/components/token_issue_request.rbi +25 -0
- data/lib/authlete/models/components/token_issue_response.rb +169 -0
- data/lib/authlete/models/components/token_issue_response.rbi +63 -0
- data/lib/authlete/models/components/token_issue_response_action.rb +22 -0
- data/lib/authlete/models/components/token_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/token_request.rb +153 -0
- data/lib/authlete/models/components/token_request.rbi +45 -0
- data/lib/authlete/models/components/token_response.rb +333 -0
- data/lib/authlete/models/components/token_response.rbi +115 -0
- data/lib/authlete/models/components/token_response_action.rb +27 -0
- data/lib/authlete/models/components/token_response_action.rbi +11 -0
- data/lib/authlete/models/components/token_revoke_request.rb +56 -0
- data/lib/authlete/models/components/token_revoke_request.rbi +19 -0
- data/lib/authlete/models/components/token_revoke_response.rb +41 -0
- data/lib/authlete/models/components/token_revoke_response.rbi +17 -0
- data/lib/authlete/models/components/token_type.rb +32 -0
- data/lib/authlete/models/components/token_type.rbi +11 -0
- data/lib/authlete/models/components/token_update_request.rb +133 -0
- data/lib/authlete/models/components/token_update_request.rbi +41 -0
- data/lib/authlete/models/components/token_update_response.rb +89 -0
- data/lib/authlete/models/components/token_update_response.rbi +35 -0
- data/lib/authlete/models/components/token_update_response_action.rb +25 -0
- data/lib/authlete/models/components/token_update_response_action.rbi +11 -0
- data/lib/authlete/models/components/trust_anchor.rb +39 -0
- data/lib/authlete/models/components/trust_anchor.rbi +15 -0
- data/lib/authlete/models/components/user_code_charset.rb +23 -0
- data/lib/authlete/models/components/user_code_charset.rbi +11 -0
- data/lib/authlete/models/components/userinfo_issue_request.rb +127 -0
- data/lib/authlete/models/components/userinfo_issue_request.rbi +25 -0
- data/lib/authlete/models/components/userinfo_issue_response.rb +62 -0
- data/lib/authlete/models/components/userinfo_issue_response.rbi +25 -0
- data/lib/authlete/models/components/userinfo_issue_response_action.rb +26 -0
- data/lib/authlete/models/components/userinfo_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/userinfo_request.rb +128 -0
- data/lib/authlete/models/components/userinfo_request.rbi +33 -0
- data/lib/authlete/models/components/userinfo_response.rb +256 -0
- data/lib/authlete/models/components/userinfo_response.rbi +59 -0
- data/lib/authlete/models/components/userinfo_response_action.rb +25 -0
- data/lib/authlete/models/components/userinfo_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_batch_issue_request.rb +37 -0
- data/lib/authlete/models/components/vci_batch_issue_request.rbi +15 -0
- data/lib/authlete/models/components/vci_batch_issue_response.rb +49 -0
- data/lib/authlete/models/components/vci_batch_issue_response.rbi +19 -0
- data/lib/authlete/models/components/vci_batch_issue_response_action.rb +27 -0
- data/lib/authlete/models/components/vci_batch_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_batch_parse_request.rb +37 -0
- data/lib/authlete/models/components/vci_batch_parse_request.rbi +15 -0
- data/lib/authlete/models/components/vci_batch_parse_response.rb +51 -0
- data/lib/authlete/models/components/vci_batch_parse_response.rbi +21 -0
- data/lib/authlete/models/components/vci_batch_parse_response_action.rb +25 -0
- data/lib/authlete/models/components/vci_batch_parse_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_deferred_issue_request.rb +33 -0
- data/lib/authlete/models/components/vci_deferred_issue_request.rbi +13 -0
- data/lib/authlete/models/components/vci_deferred_issue_response.rb +49 -0
- data/lib/authlete/models/components/vci_deferred_issue_response.rbi +19 -0
- data/lib/authlete/models/components/vci_deferred_issue_response_action.rb +26 -0
- data/lib/authlete/models/components/vci_deferred_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_deferred_parse_request.rb +37 -0
- data/lib/authlete/models/components/vci_deferred_parse_request.rbi +15 -0
- data/lib/authlete/models/components/vci_deferred_parse_response.rb +49 -0
- data/lib/authlete/models/components/vci_deferred_parse_response.rbi +21 -0
- data/lib/authlete/models/components/vci_deferred_parse_response_action.rb +25 -0
- data/lib/authlete/models/components/vci_deferred_parse_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_jwks_request.rb +35 -0
- data/lib/authlete/models/components/vci_jwks_request.rbi +13 -0
- data/lib/authlete/models/components/vci_jwks_response.rb +50 -0
- data/lib/authlete/models/components/vci_jwks_response.rbi +19 -0
- data/lib/authlete/models/components/vci_jwks_response_action.rb +26 -0
- data/lib/authlete/models/components/vci_jwks_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_jwtissuer_request.rb +35 -0
- data/lib/authlete/models/components/vci_jwtissuer_request.rbi +13 -0
- data/lib/authlete/models/components/vci_jwtissuer_response.rb +50 -0
- data/lib/authlete/models/components/vci_jwtissuer_response.rbi +19 -0
- data/lib/authlete/models/components/vci_jwtissuer_response_action.rb +26 -0
- data/lib/authlete/models/components/vci_jwtissuer_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_metadata_request.rb +35 -0
- data/lib/authlete/models/components/vci_metadata_request.rbi +13 -0
- data/lib/authlete/models/components/vci_metadata_response.rb +51 -0
- data/lib/authlete/models/components/vci_metadata_response.rbi +19 -0
- data/lib/authlete/models/components/vci_metadata_response_action.rb +27 -0
- data/lib/authlete/models/components/vci_metadata_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_offer_create_request.rb +172 -0
- data/lib/authlete/models/components/vci_offer_create_request.rbi +39 -0
- data/lib/authlete/models/components/vci_offer_create_response.rb +45 -0
- data/lib/authlete/models/components/vci_offer_create_response.rbi +19 -0
- data/lib/authlete/models/components/vci_offer_create_response_action.rb +24 -0
- data/lib/authlete/models/components/vci_offer_create_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_offer_info_request.rb +33 -0
- data/lib/authlete/models/components/vci_offer_info_request.rbi +13 -0
- data/lib/authlete/models/components/vci_offer_info_response.rb +45 -0
- data/lib/authlete/models/components/vci_offer_info_response.rbi +19 -0
- data/lib/authlete/models/components/vci_offer_info_response_action.rb +25 -0
- data/lib/authlete/models/components/vci_offer_info_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_single_issue_request.rb +37 -0
- data/lib/authlete/models/components/vci_single_issue_request.rbi +15 -0
- data/lib/authlete/models/components/vci_single_issue_response.rb +54 -0
- data/lib/authlete/models/components/vci_single_issue_response.rbi +21 -0
- data/lib/authlete/models/components/vci_single_issue_response_action.rb +28 -0
- data/lib/authlete/models/components/vci_single_issue_response_action.rbi +11 -0
- data/lib/authlete/models/components/vci_single_parse_request.rb +37 -0
- data/lib/authlete/models/components/vci_single_parse_request.rbi +15 -0
- data/lib/authlete/models/components/vci_single_parse_response.rb +49 -0
- data/lib/authlete/models/components/vci_single_parse_response.rbi +21 -0
- data/lib/authlete/models/components/vci_single_parse_response_action.rb +25 -0
- data/lib/authlete/models/components/vci_single_parse_response_action.rbi +11 -0
- data/lib/authlete/models/components/verified_claims_validation_schema.rb +23 -0
- data/lib/authlete/models/components/verified_claims_validation_schema.rbi +11 -0
- data/lib/authlete/models/components.rb +221 -0
- data/lib/authlete/models/errors/apierror.rb +37 -0
- data/lib/authlete/models/errors/apierror.rbi +16 -0
- data/lib/authlete/models/errors/result_error.rb +41 -0
- data/lib/authlete/models/errors/result_error.rbi +17 -0
- data/lib/authlete/models/errors.rb +13 -0
- data/lib/authlete/models/operations/auth_authorization_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_authorization_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_authorization_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_authorization_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_authorization_fail_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_authorization_fail_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_authorization_fail_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_authorization_fail_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_authorization_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_authorization_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_authorization_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_authorization_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_introspection_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_introspection_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_introspection_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_introspection_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_introspection_standard_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_introspection_standard_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_introspection_standard_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_introspection_standard_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_revocation_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_revocation_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_revocation_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_revocation_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_token_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_create_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_token_create_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_create_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_create_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_delete_api_request.rb +39 -0
- data/lib/authlete/models/operations/auth_token_delete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_delete_api_response.rb +41 -0
- data/lib/authlete/models/operations/auth_token_delete_api_response.rbi +17 -0
- data/lib/authlete/models/operations/auth_token_fail_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_token_fail_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_fail_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_fail_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_get_list_api_request.rb +52 -0
- data/lib/authlete/models/operations/auth_token_get_list_api_request.rbi +21 -0
- data/lib/authlete/models/operations/auth_token_get_list_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_get_list_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_token_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_revoke_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_token_revoke_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_revoke_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_revoke_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_token_update_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_token_update_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_token_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_token_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_userinfo_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_userinfo_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_userinfo_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_userinfo_api_response.rbi +19 -0
- data/lib/authlete/models/operations/auth_userinfo_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/auth_userinfo_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/auth_userinfo_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/auth_userinfo_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_request.rb +37 -0
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_request.rbi +15 -0
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_response.rb +45 -0
- data/lib/authlete/models/operations/authorization_ticket_info_post_api_response.rbi +19 -0
- data/lib/authlete/models/operations/backchannel_authentication_api_request.rb +37 -0
- data/lib/authlete/models/operations/backchannel_authentication_api_request.rbi +15 -0
- data/lib/authlete/models/operations/backchannel_authentication_api_response.rb +45 -0
- data/lib/authlete/models/operations/backchannel_authentication_api_response.rbi +19 -0
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_request.rb +37 -0
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_response.rb +45 -0
- data/lib/authlete/models/operations/backchannel_authentication_complete_api_response.rbi +19 -0
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_request.rb +37 -0
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_request.rbi +15 -0
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_response.rb +45 -0
- data/lib/authlete/models/operations/backchannel_authentication_fail_api_response.rbi +19 -0
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/backchannel_authentication_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_request.rb +48 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_request.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_authorization_delete_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_request.rb +57 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_request.rbi +23 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_authorization_get_list_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_authorization_update_api_request.rb +42 -0
- data/lib/authlete/models/operations/client_authorization_update_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_authorization_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_authorization_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_create_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_create_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_create_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_create_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_delete_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_delete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_delete_api_response.rb +41 -0
- data/lib/authlete/models/operations/client_delete_api_response.rbi +17 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_request.rb +38 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_response.rb +41 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_delete_api_response.rbi +17 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_request.rb +38 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_request.rb +42 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_extension_requestables_scopes_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_flag_update_api_request.rb +41 -0
- data/lib/authlete/models/operations/client_flag_update_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_flag_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_flag_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_get_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_get_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_get_list_api_request.rb +48 -0
- data/lib/authlete/models/operations/client_get_list_api_request.rbi +19 -0
- data/lib/authlete/models/operations/client_get_list_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_get_list_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_request.rb +48 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_request.rbi +19 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_granted_scopes_delete_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_request.rb +48 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_request.rbi +19 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_granted_scopes_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_registration_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_registration_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_registration_api_requestbody.rb +45 -0
- data/lib/authlete/models/operations/client_registration_api_requestbody.rbi +17 -0
- data/lib/authlete/models/operations/client_registration_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_registration_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_registration_delete_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_registration_delete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_registration_delete_api_requestbody.rb +45 -0
- data/lib/authlete/models/operations/client_registration_delete_api_requestbody.rbi +17 -0
- data/lib/authlete/models/operations/client_registration_delete_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_registration_delete_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_registration_get_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_registration_get_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_registration_get_api_requestbody.rb +45 -0
- data/lib/authlete/models/operations/client_registration_get_api_requestbody.rbi +17 -0
- data/lib/authlete/models/operations/client_registration_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_registration_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_registration_update_api_request.rb +37 -0
- data/lib/authlete/models/operations/client_registration_update_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_registration_update_api_requestbody.rb +45 -0
- data/lib/authlete/models/operations/client_registration_update_api_requestbody.rbi +17 -0
- data/lib/authlete/models/operations/client_registration_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_registration_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_secret_refresh_api_request.rb +38 -0
- data/lib/authlete/models/operations/client_secret_refresh_api_request.rbi +15 -0
- data/lib/authlete/models/operations/client_secret_refresh_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_secret_refresh_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_secret_update_api_request.rb +42 -0
- data/lib/authlete/models/operations/client_secret_update_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_secret_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_secret_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/client_update_api_request.rb +41 -0
- data/lib/authlete/models/operations/client_update_api_request.rbi +17 -0
- data/lib/authlete/models/operations/client_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/client_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/device_authorization_api_request.rb +37 -0
- data/lib/authlete/models/operations/device_authorization_api_request.rbi +15 -0
- data/lib/authlete/models/operations/device_authorization_api_response.rb +45 -0
- data/lib/authlete/models/operations/device_authorization_api_response.rbi +19 -0
- data/lib/authlete/models/operations/device_complete_api_request.rb +37 -0
- data/lib/authlete/models/operations/device_complete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/device_complete_api_response.rb +45 -0
- data/lib/authlete/models/operations/device_complete_api_response.rbi +19 -0
- data/lib/authlete/models/operations/device_verification_api_request.rb +37 -0
- data/lib/authlete/models/operations/device_verification_api_request.rbi +15 -0
- data/lib/authlete/models/operations/device_verification_api_response.rb +45 -0
- data/lib/authlete/models/operations/device_verification_api_response.rbi +19 -0
- data/lib/authlete/models/operations/federation_configuration_api_request.rb +37 -0
- data/lib/authlete/models/operations/federation_configuration_api_request.rbi +15 -0
- data/lib/authlete/models/operations/federation_configuration_api_requestbody.rb +28 -0
- data/lib/authlete/models/operations/federation_configuration_api_requestbody.rbi +11 -0
- data/lib/authlete/models/operations/federation_configuration_api_response.rb +45 -0
- data/lib/authlete/models/operations/federation_configuration_api_response.rbi +19 -0
- data/lib/authlete/models/operations/federation_registration_api_request.rb +37 -0
- data/lib/authlete/models/operations/federation_registration_api_request.rbi +15 -0
- data/lib/authlete/models/operations/federation_registration_api_response.rb +45 -0
- data/lib/authlete/models/operations/federation_registration_api_response.rbi +19 -0
- data/lib/authlete/models/operations/grant_m_api_request.rb +37 -0
- data/lib/authlete/models/operations/grant_m_api_request.rbi +15 -0
- data/lib/authlete/models/operations/grant_m_api_response.rb +45 -0
- data/lib/authlete/models/operations/grant_m_api_response.rbi +19 -0
- data/lib/authlete/models/operations/hsk_create_api_request.rb +37 -0
- data/lib/authlete/models/operations/hsk_create_api_request.rbi +15 -0
- data/lib/authlete/models/operations/hsk_create_api_response.rb +45 -0
- data/lib/authlete/models/operations/hsk_create_api_response.rbi +19 -0
- data/lib/authlete/models/operations/hsk_delete_api_request.rb +37 -0
- data/lib/authlete/models/operations/hsk_delete_api_request.rbi +15 -0
- data/lib/authlete/models/operations/hsk_delete_api_response.rb +45 -0
- data/lib/authlete/models/operations/hsk_delete_api_response.rbi +19 -0
- data/lib/authlete/models/operations/hsk_get_api_request.rb +37 -0
- data/lib/authlete/models/operations/hsk_get_api_request.rbi +15 -0
- data/lib/authlete/models/operations/hsk_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/hsk_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/hsk_get_list_api_request.rb +33 -0
- data/lib/authlete/models/operations/hsk_get_list_api_request.rbi +13 -0
- data/lib/authlete/models/operations/hsk_get_list_api_response.rb +45 -0
- data/lib/authlete/models/operations/hsk_get_list_api_response.rbi +19 -0
- data/lib/authlete/models/operations/idtoken_reissue_api_request.rb +37 -0
- data/lib/authlete/models/operations/idtoken_reissue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/idtoken_reissue_api_response.rb +45 -0
- data/lib/authlete/models/operations/idtoken_reissue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/jose_verify_api_request.rb +37 -0
- data/lib/authlete/models/operations/jose_verify_api_request.rbi +15 -0
- data/lib/authlete/models/operations/jose_verify_api_response.rb +45 -0
- data/lib/authlete/models/operations/jose_verify_api_response.rbi +19 -0
- data/lib/authlete/models/operations/native_sso_api_request.rb +37 -0
- data/lib/authlete/models/operations/native_sso_api_request.rbi +15 -0
- data/lib/authlete/models/operations/native_sso_api_response.rb +45 -0
- data/lib/authlete/models/operations/native_sso_api_response.rbi +19 -0
- data/lib/authlete/models/operations/native_sso_logout_api_request.rb +37 -0
- data/lib/authlete/models/operations/native_sso_logout_api_request.rbi +15 -0
- data/lib/authlete/models/operations/native_sso_logout_api_response.rb +45 -0
- data/lib/authlete/models/operations/native_sso_logout_api_response.rbi +19 -0
- data/lib/authlete/models/operations/pushed_auth_req_api_request.rb +37 -0
- data/lib/authlete/models/operations/pushed_auth_req_api_request.rbi +15 -0
- data/lib/authlete/models/operations/pushed_auth_req_api_response.rb +45 -0
- data/lib/authlete/models/operations/pushed_auth_req_api_response.rbi +19 -0
- data/lib/authlete/models/operations/service_configuration_api_request.rb +41 -0
- data/lib/authlete/models/operations/service_configuration_api_request.rbi +17 -0
- data/lib/authlete/models/operations/service_configuration_api_response.rb +45 -0
- data/lib/authlete/models/operations/service_configuration_api_response.rbi +19 -0
- data/lib/authlete/models/operations/service_configuration_api_responsebody.rb +29 -0
- data/lib/authlete/models/operations/service_configuration_api_responsebody.rbi +11 -0
- data/lib/authlete/models/operations/service_create_api_response.rb +45 -0
- data/lib/authlete/models/operations/service_create_api_response.rbi +19 -0
- data/lib/authlete/models/operations/service_delete_api_request.rb +33 -0
- data/lib/authlete/models/operations/service_delete_api_request.rbi +13 -0
- data/lib/authlete/models/operations/service_delete_api_response.rb +41 -0
- data/lib/authlete/models/operations/service_delete_api_response.rbi +17 -0
- data/lib/authlete/models/operations/service_get_api_request.rb +33 -0
- data/lib/authlete/models/operations/service_get_api_request.rbi +13 -0
- data/lib/authlete/models/operations/service_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/service_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/service_get_list_api_request.rb +37 -0
- data/lib/authlete/models/operations/service_get_list_api_request.rbi +15 -0
- data/lib/authlete/models/operations/service_get_list_api_response.rb +45 -0
- data/lib/authlete/models/operations/service_get_list_api_response.rbi +19 -0
- data/lib/authlete/models/operations/service_jwks_get_api_request.rb +41 -0
- data/lib/authlete/models/operations/service_jwks_get_api_request.rbi +17 -0
- data/lib/authlete/models/operations/service_jwks_get_api_response.rb +45 -0
- data/lib/authlete/models/operations/service_jwks_get_api_response.rbi +19 -0
- data/lib/authlete/models/operations/service_update_api_request.rb +37 -0
- data/lib/authlete/models/operations/service_update_api_request.rbi +15 -0
- data/lib/authlete/models/operations/service_update_api_response.rb +45 -0
- data/lib/authlete/models/operations/service_update_api_response.rbi +19 -0
- data/lib/authlete/models/operations/updateauthorizationticket_request.rb +37 -0
- data/lib/authlete/models/operations/updateauthorizationticket_request.rbi +15 -0
- data/lib/authlete/models/operations/updateauthorizationticket_response.rb +45 -0
- data/lib/authlete/models/operations/updateauthorizationticket_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_batch_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_batch_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_batch_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_batch_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_batch_parse_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_batch_parse_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_batch_parse_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_batch_parse_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_deferred_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_deferred_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_deferred_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_deferred_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_deferred_parse_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_deferred_parse_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_deferred_parse_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_deferred_parse_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_jwks_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_jwks_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_jwks_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_jwks_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_jwtissuer_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_jwtissuer_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_jwtissuer_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_jwtissuer_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_metadata_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_metadata_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_metadata_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_metadata_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_offer_create_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_offer_create_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_offer_create_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_offer_create_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_offer_info_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_offer_info_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_offer_info_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_offer_info_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_single_issue_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_single_issue_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_single_issue_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_single_issue_api_response.rbi +19 -0
- data/lib/authlete/models/operations/vci_single_parse_api_request.rb +37 -0
- data/lib/authlete/models/operations/vci_single_parse_api_request.rbi +15 -0
- data/lib/authlete/models/operations/vci_single_parse_api_response.rb +45 -0
- data/lib/authlete/models/operations/vci_single_parse_api_response.rbi +19 -0
- data/lib/authlete/models/operations.rb +166 -0
- data/lib/authlete/native_sso.rb +422 -0
- data/lib/authlete/pushed_authorization.rb +197 -0
- data/lib/authlete/revocation.rb +290 -0
- data/lib/authlete/sdk_hooks/hooks.rb +95 -0
- data/lib/authlete/sdk_hooks/types.rb +170 -0
- data/lib/authlete/sdkconfiguration.rb +107 -0
- data/lib/authlete/sdkconfiguration.rbi +57 -0
- data/lib/authlete/services.rb +923 -0
- data/lib/authlete/token_management.rb +945 -0
- data/lib/authlete/tokens.rb +953 -0
- data/lib/authlete/userinfo.rb +568 -0
- data/lib/authlete/utils/forms.rb +206 -0
- data/lib/authlete/utils/headers.rb +77 -0
- data/lib/authlete/utils/query_params.rb +131 -0
- data/lib/authlete/utils/request_bodies.rb +61 -0
- data/lib/authlete/utils/retries.rb +95 -0
- data/lib/authlete/utils/security.rb +130 -0
- data/lib/authlete/utils/url.rb +100 -0
- data/lib/authlete/utils/utils.rb +187 -0
- data/lib/authlete/verifiable_credentials.rb +1746 -0
- data/lib/authlete_ruby_test.rb +45 -0
- data/lib/crystalline/metadata_fields.rb +209 -0
- data/lib/crystalline/module.rb +92 -0
- data/lib/crystalline/types.rb +78 -0
- data/lib/crystalline/utils.rb +56 -0
- data/lib/crystalline.rb +13 -0
- metadata +997 -0
|
@@ -0,0 +1,568 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
require 'faraday'
|
|
7
|
+
require 'faraday/multipart'
|
|
8
|
+
require 'faraday/retry'
|
|
9
|
+
require 'sorbet-runtime'
|
|
10
|
+
require_relative 'sdk_hooks/hooks'
|
|
11
|
+
require_relative 'utils/retries'
|
|
12
|
+
|
|
13
|
+
module Authlete
|
|
14
|
+
extend T::Sig
|
|
15
|
+
class Userinfo
|
|
16
|
+
extend T::Sig
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
sig { params(sdk_config: SDKConfiguration).void }
|
|
21
|
+
def initialize(sdk_config)
|
|
22
|
+
@sdk_configuration = sdk_config
|
|
23
|
+
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
|
|
27
|
+
def get_url(base_url:, url_variables: nil)
|
|
28
|
+
sd_base_url, sd_options = @sdk_configuration.get_server_details
|
|
29
|
+
|
|
30
|
+
if base_url.nil?
|
|
31
|
+
base_url = sd_base_url
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
if url_variables.nil?
|
|
35
|
+
url_variables = sd_options
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
return Utils.template_url base_url, url_variables
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
sig { params(userinfo_request: Models::Components::UserinfoRequest, service_id: ::String, timeout_ms: T.nilable(Integer)).returns(Models::Operations::AuthUserinfoApiResponse) }
|
|
43
|
+
def process_request(userinfo_request:, service_id:, timeout_ms: nil)
|
|
44
|
+
# process_request - Process UserInfo Request
|
|
45
|
+
# This API gathers information about a user.
|
|
46
|
+
# ### Description
|
|
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
|
+
#
|
|
153
|
+
request = Models::Operations::AuthUserinfoApiRequest.new(
|
|
154
|
+
service_id: service_id,
|
|
155
|
+
userinfo_request: userinfo_request
|
|
156
|
+
)
|
|
157
|
+
url, params = @sdk_configuration.get_server_details
|
|
158
|
+
base_url = Utils.template_url(url, params)
|
|
159
|
+
url = Utils.generate_url(
|
|
160
|
+
Models::Operations::AuthUserinfoApiRequest,
|
|
161
|
+
base_url,
|
|
162
|
+
'/api/{serviceId}/auth/userinfo',
|
|
163
|
+
request
|
|
164
|
+
)
|
|
165
|
+
headers = {}
|
|
166
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
167
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :userinfo_request, :json)
|
|
168
|
+
headers['content-type'] = req_content_type
|
|
169
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
170
|
+
|
|
171
|
+
if form
|
|
172
|
+
body = Utils.encode_form(form)
|
|
173
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
174
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
175
|
+
else
|
|
176
|
+
body = data
|
|
177
|
+
end
|
|
178
|
+
headers['Accept'] = 'application/json'
|
|
179
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
180
|
+
|
|
181
|
+
security = @sdk_configuration.security_source&.call
|
|
182
|
+
|
|
183
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
184
|
+
timeout ||= @sdk_configuration.timeout
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
connection = @sdk_configuration.client
|
|
188
|
+
|
|
189
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
190
|
+
config: @sdk_configuration,
|
|
191
|
+
base_url: base_url,
|
|
192
|
+
oauth2_scopes: [],
|
|
193
|
+
operation_id: 'auth_userinfo_api',
|
|
194
|
+
security_source: @sdk_configuration.security_source
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
198
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
begin
|
|
202
|
+
http_response = T.must(connection).post(url) do |req|
|
|
203
|
+
req.body = body
|
|
204
|
+
req.headers.merge!(headers)
|
|
205
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
206
|
+
Utils.configure_request_security(req, security)
|
|
207
|
+
|
|
208
|
+
@sdk_configuration.hooks.before_request(
|
|
209
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
210
|
+
hook_ctx: hook_ctx
|
|
211
|
+
),
|
|
212
|
+
request: req
|
|
213
|
+
)
|
|
214
|
+
end
|
|
215
|
+
rescue StandardError => e
|
|
216
|
+
error = e
|
|
217
|
+
ensure
|
|
218
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
219
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
220
|
+
error: error,
|
|
221
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
222
|
+
hook_ctx: hook_ctx
|
|
223
|
+
),
|
|
224
|
+
response: http_response
|
|
225
|
+
)
|
|
226
|
+
else
|
|
227
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
228
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
229
|
+
hook_ctx: hook_ctx
|
|
230
|
+
),
|
|
231
|
+
response: http_response
|
|
232
|
+
)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if http_response.nil?
|
|
236
|
+
raise error if !error.nil?
|
|
237
|
+
raise 'no response'
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
242
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
243
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
244
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
245
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
246
|
+
hook_ctx: hook_ctx
|
|
247
|
+
),
|
|
248
|
+
response: http_response
|
|
249
|
+
)
|
|
250
|
+
response_data = http_response.env.response_body
|
|
251
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::UserinfoResponse)
|
|
252
|
+
response = Models::Operations::AuthUserinfoApiResponse.new(
|
|
253
|
+
status_code: http_response.status,
|
|
254
|
+
content_type: content_type,
|
|
255
|
+
raw_response: http_response,
|
|
256
|
+
userinfo_response: T.unsafe(obj)
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
return response
|
|
260
|
+
else
|
|
261
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
262
|
+
end
|
|
263
|
+
elsif Utils.match_status_code(http_response.status, ['400', '401', '403'])
|
|
264
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
265
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
266
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
267
|
+
hook_ctx: hook_ctx
|
|
268
|
+
),
|
|
269
|
+
response: http_response
|
|
270
|
+
)
|
|
271
|
+
response_data = http_response.env.response_body
|
|
272
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
273
|
+
obj.raw_response = http_response
|
|
274
|
+
throw obj
|
|
275
|
+
else
|
|
276
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
277
|
+
end
|
|
278
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
279
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
280
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
281
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
282
|
+
hook_ctx: hook_ctx
|
|
283
|
+
),
|
|
284
|
+
response: http_response
|
|
285
|
+
)
|
|
286
|
+
response_data = http_response.env.response_body
|
|
287
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
288
|
+
obj.raw_response = http_response
|
|
289
|
+
throw obj
|
|
290
|
+
else
|
|
291
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
292
|
+
end
|
|
293
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
294
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
295
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
296
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
297
|
+
else
|
|
298
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
299
|
+
|
|
300
|
+
end
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
|
|
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)
|
|
306
|
+
# issue_response - Issue UserInfo Response
|
|
307
|
+
# This API generates an ID token.
|
|
308
|
+
# ### Description
|
|
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
|
+
#
|
|
418
|
+
request = Models::Operations::AuthUserinfoIssueApiRequest.new(
|
|
419
|
+
service_id: service_id,
|
|
420
|
+
userinfo_issue_request: userinfo_issue_request
|
|
421
|
+
)
|
|
422
|
+
url, params = @sdk_configuration.get_server_details
|
|
423
|
+
base_url = Utils.template_url(url, params)
|
|
424
|
+
url = Utils.generate_url(
|
|
425
|
+
Models::Operations::AuthUserinfoIssueApiRequest,
|
|
426
|
+
base_url,
|
|
427
|
+
'/api/{serviceId}/auth/userinfo/issue',
|
|
428
|
+
request
|
|
429
|
+
)
|
|
430
|
+
headers = {}
|
|
431
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
432
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :userinfo_issue_request, :json)
|
|
433
|
+
headers['content-type'] = req_content_type
|
|
434
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
435
|
+
|
|
436
|
+
if form
|
|
437
|
+
body = Utils.encode_form(form)
|
|
438
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
439
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
440
|
+
else
|
|
441
|
+
body = data
|
|
442
|
+
end
|
|
443
|
+
headers['Accept'] = 'application/json'
|
|
444
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
445
|
+
|
|
446
|
+
security = @sdk_configuration.security_source&.call
|
|
447
|
+
|
|
448
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
449
|
+
timeout ||= @sdk_configuration.timeout
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
connection = @sdk_configuration.client
|
|
453
|
+
|
|
454
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
455
|
+
config: @sdk_configuration,
|
|
456
|
+
base_url: base_url,
|
|
457
|
+
oauth2_scopes: [],
|
|
458
|
+
operation_id: 'auth_userinfo_issue_api',
|
|
459
|
+
security_source: @sdk_configuration.security_source
|
|
460
|
+
)
|
|
461
|
+
|
|
462
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
463
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
begin
|
|
467
|
+
http_response = T.must(connection).post(url) do |req|
|
|
468
|
+
req.body = body
|
|
469
|
+
req.headers.merge!(headers)
|
|
470
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
471
|
+
Utils.configure_request_security(req, security)
|
|
472
|
+
|
|
473
|
+
@sdk_configuration.hooks.before_request(
|
|
474
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
475
|
+
hook_ctx: hook_ctx
|
|
476
|
+
),
|
|
477
|
+
request: req
|
|
478
|
+
)
|
|
479
|
+
end
|
|
480
|
+
rescue StandardError => e
|
|
481
|
+
error = e
|
|
482
|
+
ensure
|
|
483
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
484
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
485
|
+
error: error,
|
|
486
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
487
|
+
hook_ctx: hook_ctx
|
|
488
|
+
),
|
|
489
|
+
response: http_response
|
|
490
|
+
)
|
|
491
|
+
else
|
|
492
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
493
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
494
|
+
hook_ctx: hook_ctx
|
|
495
|
+
),
|
|
496
|
+
response: http_response
|
|
497
|
+
)
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
if http_response.nil?
|
|
501
|
+
raise error if !error.nil?
|
|
502
|
+
raise 'no response'
|
|
503
|
+
end
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
507
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
508
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
509
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
510
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
511
|
+
hook_ctx: hook_ctx
|
|
512
|
+
),
|
|
513
|
+
response: http_response
|
|
514
|
+
)
|
|
515
|
+
response_data = http_response.env.response_body
|
|
516
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::UserinfoIssueResponse)
|
|
517
|
+
response = Models::Operations::AuthUserinfoIssueApiResponse.new(
|
|
518
|
+
status_code: http_response.status,
|
|
519
|
+
content_type: content_type,
|
|
520
|
+
raw_response: http_response,
|
|
521
|
+
userinfo_issue_response: T.unsafe(obj)
|
|
522
|
+
)
|
|
523
|
+
|
|
524
|
+
return response
|
|
525
|
+
else
|
|
526
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
527
|
+
end
|
|
528
|
+
elsif Utils.match_status_code(http_response.status, ['400', '401', '403'])
|
|
529
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
530
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
531
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
532
|
+
hook_ctx: hook_ctx
|
|
533
|
+
),
|
|
534
|
+
response: http_response
|
|
535
|
+
)
|
|
536
|
+
response_data = http_response.env.response_body
|
|
537
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
538
|
+
obj.raw_response = http_response
|
|
539
|
+
throw obj
|
|
540
|
+
else
|
|
541
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
542
|
+
end
|
|
543
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
544
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
545
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
546
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
547
|
+
hook_ctx: hook_ctx
|
|
548
|
+
),
|
|
549
|
+
response: http_response
|
|
550
|
+
)
|
|
551
|
+
response_data = http_response.env.response_body
|
|
552
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ResultError)
|
|
553
|
+
obj.raw_response = http_response
|
|
554
|
+
throw obj
|
|
555
|
+
else
|
|
556
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
557
|
+
end
|
|
558
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
559
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
560
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
561
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
562
|
+
else
|
|
563
|
+
raise ::Authlete::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
564
|
+
|
|
565
|
+
end
|
|
566
|
+
end
|
|
567
|
+
end
|
|
568
|
+
end
|