ory-client 0.2.0.alpha47 → 0.2.0.alpha60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +123 -99
- data/docs/{AcceptConsentRequest.md → AcceptOAuth2ConsentRequest.md} +3 -3
- data/docs/{ConsentRequestSession.md → AcceptOAuth2ConsentRequestSession.md} +2 -2
- data/docs/{AcceptLoginRequest.md → AcceptOAuth2LoginRequest.md} +2 -2
- data/docs/AdminApi.md +15 -2093
- data/docs/AdminCreateIdentityBody.md +1 -1
- data/docs/{JsonWebKeySetGeneratorRequest.md → AdminCreateJsonWebKeySetBody.md} +2 -2
- data/docs/AdminCreateSelfServiceRecoveryCodeBody.md +20 -0
- data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +1 -1
- data/docs/{TrustJwtGrantIssuerBody.md → AdminTrustOAuth2JwtGrantIssuerBody.md} +3 -3
- data/docs/CourierMessageStatus.md +15 -0
- data/docs/CourierMessageType.md +15 -0
- data/docs/GetNamespacesResponse.md +18 -0
- data/docs/HandledOAuth2ConsentRequest.md +18 -0
- data/docs/{RequestWasHandledResponse.md → HandledOAuth2LoginRequest.md} +2 -2
- data/docs/HandledOAuth2LogoutRequest.md +18 -0
- data/docs/Headers.md +18 -0
- data/docs/IDTokenClaims.md +44 -0
- data/docs/Identity.md +2 -2
- data/docs/{OAuth2TokenIntrospection.md → IntrospectedOAuth2Token.md} +2 -2
- data/docs/JsonError.md +1 -7
- data/docs/{JSONWebKey.md → JsonWebKey.md} +2 -2
- data/docs/JsonWebKeySet.md +18 -0
- data/docs/Message.md +36 -0
- data/docs/Namespace.md +18 -0
- data/docs/NamespacesApi.md +74 -0
- data/docs/NormalizedProjectRevision.md +21 -1
- data/docs/OAuth2AccessRequest.md +24 -0
- data/docs/OAuth2ApiError.md +24 -0
- data/docs/OAuth2Client.md +26 -2
- data/docs/{ConsentRequest.md → OAuth2ConsentRequest.md} +3 -3
- data/docs/{OpenIDConnectContext.md → OAuth2ConsentRequestOpenIDConnectContext.md} +2 -2
- data/docs/OAuth2ConsentSession.md +38 -0
- data/docs/OAuth2ConsentSessionExpiresAt.md +26 -0
- data/docs/{LoginRequest.md → OAuth2LoginRequest.md} +3 -3
- data/docs/{LogoutRequest.md → OAuth2LogoutRequest.md} +2 -2
- data/docs/{OauthTokenResponse.md → OAuth2TokenResponse.md} +2 -2
- data/docs/{WellKnown.md → OidcConfiguration.md} +6 -2
- data/docs/{UserinfoResponse.md → OidcUserInfo.md} +2 -2
- data/docs/Pagination.md +4 -0
- data/docs/PaginationHeaders.md +20 -0
- data/docs/ParseError.md +22 -0
- data/docs/PostCheckOplSyntaxResponse.md +18 -0
- data/docs/{PreviousConsentSession.md → PreviousOAuth2ConsentSession.md} +4 -4
- data/docs/ReadApi.md +24 -24
- data/docs/{RecoveryAddress.md → RecoveryIdentityAddress.md} +2 -2
- data/docs/RefreshTokenHookRequest.md +4 -0
- data/docs/RefreshTokenHookResponse.md +1 -1
- data/docs/{RejectRequest.md → RejectOAuth2Request.md} +2 -2
- data/docs/SelfServiceError.md +1 -1
- data/docs/SelfServiceFlowExpiredError.md +1 -1
- data/docs/SelfServiceLoginFlow.md +1 -1
- data/docs/SelfServiceRecoveryCode.md +22 -0
- data/docs/SelfServiceRecoveryFlow.md +2 -2
- data/docs/SelfServiceRegistrationFlow.md +1 -1
- data/docs/SelfServiceSettingsFlow.md +1 -1
- data/docs/SelfServiceVerificationFlow.md +1 -1
- data/docs/Session.md +3 -1
- data/docs/SessionDevice.md +7 -1
- data/docs/SourcePosition.md +20 -0
- data/docs/SubmitSelfServiceRecoveryFlowBody.md +4 -1
- data/docs/SubmitSelfServiceRecoveryFlowWithCodeMethodBody.md +24 -0
- data/docs/{CompletedRequest.md → SuccessfulOAuth2RequestResponse.md} +2 -2
- data/docs/SyntaxApi.md +77 -0
- data/docs/{TrustedJwtGrantIssuer.md → TrustedOAuth2JwtGrantIssuer.md} +3 -3
- data/docs/{TrustedJsonWebKey.md → TrustedOAuth2JwtGrantJsonWebKey.md} +2 -2
- data/docs/UiNode.md +2 -2
- data/docs/UiNodeInputAttributes.md +2 -2
- data/docs/UpdateOAuth2ClientLifespans.md +40 -0
- data/docs/V0alpha2Api.md +3473 -334
- data/docs/VerifiableIdentityAddress.md +1 -1
- data/docs/WriteApi.md +12 -12
- data/lib/ory-client/api/admin_api.rb +14 -2108
- data/lib/ory-client/api/metadata_api.rb +1 -1
- data/lib/ory-client/api/namespaces_api.rb +79 -0
- data/lib/ory-client/api/read_api.rb +13 -13
- data/lib/ory-client/api/syntax_api.rb +90 -0
- data/lib/ory-client/api/v0alpha2_api.rb +3336 -368
- data/lib/ory-client/api/write_api.rb +7 -7
- data/lib/ory-client/api_client.rb +1 -1
- data/lib/ory-client/api_error.rb +1 -1
- data/lib/ory-client/configuration.rb +8 -1
- data/lib/ory-client/models/{accept_consent_request.rb → accept_o_auth2_consent_request.rb} +5 -5
- data/lib/ory-client/models/{consent_request_session.rb → accept_o_auth2_consent_request_session.rb} +4 -4
- data/lib/ory-client/models/{accept_login_request.rb → accept_o_auth2_login_request.rb} +4 -4
- data/lib/ory-client/models/active_project.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_body.rb +2 -2
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_config.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_provider.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_password.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_password_config.rb +1 -1
- data/lib/ory-client/models/{json_web_key_set_generator_request.rb → admin_create_json_web_key_set_body.rb} +4 -4
- data/lib/ory-client/models/admin_create_self_service_recovery_code_body.rb +252 -0
- data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +2 -1
- data/lib/ory-client/models/admin_identity_import_credentials.rb +1 -1
- data/lib/ory-client/models/{trust_jwt_grant_issuer_body.rb → admin_trust_o_auth2_jwt_grant_issuer_body.rb} +5 -5
- data/lib/ory-client/models/admin_update_identity_body.rb +1 -1
- data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
- data/lib/ory-client/models/cloud_account.rb +1 -1
- data/lib/ory-client/models/cname_settings.rb +1 -1
- data/lib/ory-client/models/courier_message_status.rb +39 -0
- data/lib/ory-client/models/courier_message_type.rb +37 -0
- data/lib/ory-client/models/create_custom_hostname_body.rb +1 -1
- data/lib/ory-client/models/create_project_api_key_request.rb +1 -1
- data/lib/ory-client/models/create_project_body.rb +1 -1
- data/lib/ory-client/models/create_subscription_payload.rb +1 -1
- data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
- data/lib/ory-client/models/expand_tree.rb +1 -1
- data/lib/ory-client/models/generic_error.rb +1 -1
- data/lib/ory-client/models/generic_error_content.rb +1 -1
- data/lib/ory-client/models/get_check_response.rb +1 -1
- data/lib/ory-client/models/get_managed_identity_schema_location.rb +1 -1
- data/lib/ory-client/models/{flush_login_consent_request.rb → get_namespaces_response.rb} +13 -12
- data/lib/ory-client/models/get_relation_tuples_response.rb +1 -1
- data/lib/ory-client/models/get_version200_response.rb +1 -1
- data/lib/ory-client/models/handled_o_auth2_consent_request.rb +225 -0
- data/lib/ory-client/models/{request_was_handled_response.rb → handled_o_auth2_login_request.rb} +4 -4
- data/lib/ory-client/models/handled_o_auth2_logout_request.rb +225 -0
- data/lib/ory-client/models/{flush_inactive_o_auth2_tokens_request.rb → headers.rb} +14 -12
- data/lib/ory-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-client/models/health_status.rb +1 -1
- data/lib/ory-client/models/id_token_claims.rb +343 -0
- data/lib/ory-client/models/identity.rb +3 -2
- data/lib/ory-client/models/identity_credentials.rb +1 -1
- data/lib/ory-client/models/identity_credentials_oidc.rb +1 -1
- data/lib/ory-client/models/identity_credentials_oidc_provider.rb +1 -1
- data/lib/ory-client/models/identity_credentials_password.rb +1 -1
- data/lib/ory-client/models/identity_credentials_type.rb +1 -1
- data/lib/ory-client/models/identity_schema_container.rb +1 -1
- data/lib/ory-client/models/identity_schema_preset.rb +1 -1
- data/lib/ory-client/models/identity_state.rb +1 -1
- data/lib/ory-client/models/{o_auth2_token_introspection.rb → introspected_o_auth2_token.rb} +5 -5
- data/lib/ory-client/models/invite_payload.rb +1 -1
- data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
- data/lib/ory-client/models/is_owner_for_project_by_slug_payload.rb +1 -1
- data/lib/ory-client/models/is_ready200_response.rb +1 -1
- data/lib/ory-client/models/is_ready503_response.rb +1 -1
- data/lib/ory-client/models/json_error.rb +5 -35
- data/lib/ory-client/models/json_patch.rb +1 -1
- data/lib/ory-client/models/json_web_key.rb +4 -5
- data/lib/ory-client/models/json_web_key_set.rb +6 -6
- data/lib/ory-client/models/keto_namespace.rb +1 -1
- data/lib/ory-client/models/managed_identity_schema.rb +1 -1
- data/lib/ory-client/models/managed_identity_schema_validation_result.rb +1 -1
- data/lib/ory-client/models/message.rb +302 -0
- data/lib/ory-client/models/namespace.rb +220 -0
- data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
- data/lib/ory-client/models/normalized_project.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision.rb +103 -3
- data/lib/ory-client/models/normalized_project_revision_hook.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +1 -1
- data/lib/ory-client/models/null_plan.rb +1 -1
- data/lib/ory-client/models/o_auth2_access_request.rb +256 -0
- data/lib/ory-client/models/{patch_document.rb → o_auth2_api_error.rb} +34 -44
- data/lib/ory-client/models/o_auth2_client.rb +320 -13
- data/lib/ory-client/models/{consent_request.rb → o_auth2_consent_request.rb} +5 -5
- data/lib/ory-client/models/{open_id_connect_context.rb → o_auth2_consent_request_open_id_connect_context.rb} +4 -4
- data/lib/ory-client/models/o_auth2_consent_session.rb +313 -0
- data/lib/ory-client/models/{oauth2_token_response.rb → o_auth2_consent_session_expires_at.rb} +25 -35
- data/lib/ory-client/models/{login_request.rb → o_auth2_login_request.rb} +5 -5
- data/lib/ory-client/models/{logout_request.rb → o_auth2_logout_request.rb} +4 -4
- data/lib/ory-client/models/{oauth_token_response.rb → o_auth2_token_response.rb} +5 -5
- data/lib/ory-client/models/{well_known.rb → oidc_configuration.rb} +40 -6
- data/lib/ory-client/models/{userinfo_response.rb → oidc_user_info.rb} +4 -4
- data/lib/ory-client/models/pagination.rb +56 -2
- data/lib/ory-client/models/pagination_headers.rb +230 -0
- data/lib/ory-client/models/parse_error.rb +237 -0
- data/lib/ory-client/models/patch_delta.rb +1 -1
- data/lib/ory-client/models/post_check_opl_syntax_response.rb +222 -0
- data/lib/ory-client/models/{previous_consent_session.rb → previous_o_auth2_consent_session.rb} +6 -6
- data/lib/ory-client/models/project.rb +1 -1
- data/lib/ory-client/models/project_api_key.rb +1 -1
- data/lib/ory-client/models/project_host.rb +1 -1
- data/lib/ory-client/models/project_invite.rb +1 -1
- data/lib/ory-client/models/project_metadata.rb +1 -1
- data/lib/ory-client/models/project_service_identity.rb +1 -1
- data/lib/ory-client/models/project_service_o_auth2.rb +1 -1
- data/lib/ory-client/models/project_service_permission.rb +1 -1
- data/lib/ory-client/models/project_services.rb +1 -1
- data/lib/ory-client/models/provision_mock_subscription_payload.rb +1 -1
- data/lib/ory-client/models/quota_custom_domains.rb +1 -1
- data/lib/ory-client/models/quota_project_member_seats.rb +1 -1
- data/lib/ory-client/models/{recovery_address.rb → recovery_identity_address.rb} +4 -4
- data/lib/ory-client/models/refresh_token_hook_request.rb +20 -2
- data/lib/ory-client/models/refresh_token_hook_response.rb +2 -2
- data/lib/ory-client/models/{reject_request.rb → reject_o_auth2_request.rb} +4 -4
- data/lib/ory-client/models/relation_query.rb +1 -1
- data/lib/ory-client/models/relation_tuple.rb +1 -1
- data/lib/ory-client/models/revoked_sessions.rb +1 -1
- data/lib/ory-client/models/schema_patch.rb +1 -1
- data/lib/ory-client/models/self_service_browser_location_change_required_error.rb +1 -1
- data/lib/ory-client/models/self_service_error.rb +2 -1
- data/lib/ory-client/models/self_service_flow_expired_error.rb +2 -1
- data/lib/ory-client/models/self_service_login_flow.rb +2 -1
- data/lib/ory-client/models/self_service_logout_url.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_code.rb +250 -0
- data/lib/ory-client/models/self_service_recovery_flow.rb +3 -2
- data/lib/ory-client/models/self_service_recovery_flow_state.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_link.rb +1 -1
- data/lib/ory-client/models/self_service_registration_flow.rb +2 -1
- data/lib/ory-client/models/self_service_settings_flow.rb +2 -1
- data/lib/ory-client/models/self_service_settings_flow_state.rb +1 -1
- data/lib/ory-client/models/self_service_verification_flow.rb +2 -1
- data/lib/ory-client/models/self_service_verification_flow_state.rb +1 -1
- data/lib/ory-client/models/session.rb +15 -2
- data/lib/ory-client/models/session_authentication_method.rb +3 -3
- data/lib/ory-client/models/session_device.rb +39 -3
- data/lib/ory-client/models/settings_profile_form_config.rb +1 -1
- data/lib/ory-client/models/source_position.rb +228 -0
- data/lib/ory-client/models/stripe_customer_response.rb +1 -1
- data/lib/ory-client/models/subject_set.rb +1 -1
- data/lib/ory-client/models/submit_self_service_flow_with_web_authn_registration_method.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +3 -1
- data/lib/ory-client/models/submit_self_service_recovery_flow_with_code_method_body.rb +255 -0
- data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +1 -1
- data/lib/ory-client/models/subscription.rb +1 -1
- data/lib/ory-client/models/{completed_request.rb → successful_o_auth2_request_response.rb} +4 -4
- data/lib/ory-client/models/successful_project_update.rb +1 -1
- data/lib/ory-client/models/successful_self_service_login_without_browser.rb +1 -1
- data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +1 -1
- data/lib/ory-client/models/token_pagination.rb +1 -1
- data/lib/ory-client/models/token_pagination_headers.rb +1 -1
- data/lib/ory-client/models/{trusted_jwt_grant_issuer.rb → trusted_o_auth2_jwt_grant_issuer.rb} +5 -5
- data/lib/ory-client/models/{trusted_json_web_key.rb → trusted_o_auth2_jwt_grant_json_web_key.rb} +4 -4
- data/lib/ory-client/models/ui_container.rb +1 -1
- data/lib/ory-client/models/ui_node.rb +5 -5
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_input_attributes.rb +3 -3
- data/lib/ory-client/models/ui_node_meta.rb +1 -1
- data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
- data/lib/ory-client/models/ui_text.rb +1 -1
- data/lib/ory-client/models/update_custom_hostname_body.rb +1 -1
- data/lib/ory-client/models/update_o_auth2_client_lifespans.rb +535 -0
- data/lib/ory-client/models/update_project.rb +1 -1
- data/lib/ory-client/models/update_subscription_payload.rb +1 -1
- data/lib/ory-client/models/verifiable_identity_address.rb +2 -1
- data/lib/ory-client/models/version.rb +1 -1
- data/lib/ory-client/models/warning.rb +1 -1
- data/lib/ory-client/version.rb +2 -2
- data/lib/ory-client.rb +46 -28
- data/ory-client.gemspec +1 -1
- data/spec/api/admin_api_spec.rb +5 -400
- data/spec/api/metadata_api_spec.rb +1 -1
- data/spec/api/namespaces_api_spec.rb +46 -0
- data/spec/api/read_api_spec.rb +7 -7
- data/spec/api/syntax_api_spec.rb +47 -0
- data/spec/api/v0alpha2_api_spec.rb +573 -15
- data/spec/api/write_api_spec.rb +4 -4
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/{consent_request_session_spec.rb → accept_o_auth2_consent_request_session_spec.rb} +7 -7
- data/spec/models/{accept_consent_request_spec.rb → accept_o_auth2_consent_request_spec.rb} +7 -7
- data/spec/models/{accept_login_request_spec.rb → accept_o_auth2_login_request_spec.rb} +7 -7
- data/spec/models/active_project_spec.rb +1 -1
- data/spec/models/admin_create_identity_body_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_config_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_provider_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_password_config_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_password_spec.rb +1 -1
- data/spec/models/{json_web_key_set_generator_request_spec.rb → admin_create_json_web_key_set_body_spec.rb} +7 -7
- data/spec/models/admin_create_self_service_recovery_code_body_spec.rb +40 -0
- data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +1 -1
- data/spec/models/admin_identity_import_credentials_spec.rb +1 -1
- data/spec/models/{trust_jwt_grant_issuer_body_spec.rb → admin_trust_o_auth2_jwt_grant_issuer_body_spec.rb} +7 -7
- data/spec/models/admin_update_identity_body_spec.rb +1 -1
- data/spec/models/authenticator_assurance_level_spec.rb +1 -1
- data/spec/models/cloud_account_spec.rb +1 -1
- data/spec/models/cname_settings_spec.rb +1 -1
- data/spec/models/courier_message_status_spec.rb +28 -0
- data/spec/models/courier_message_type_spec.rb +28 -0
- data/spec/models/create_custom_hostname_body_spec.rb +1 -1
- data/spec/models/create_project_api_key_request_spec.rb +1 -1
- data/spec/models/create_project_body_spec.rb +1 -1
- data/spec/models/create_subscription_payload_spec.rb +1 -1
- data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
- data/spec/models/expand_tree_spec.rb +1 -1
- data/spec/models/generic_error_content_spec.rb +1 -1
- data/spec/models/generic_error_spec.rb +1 -1
- data/spec/models/get_check_response_spec.rb +1 -1
- data/spec/models/get_managed_identity_schema_location_spec.rb +1 -1
- data/spec/models/{flush_login_consent_request_spec.rb → get_namespaces_response_spec.rb} +8 -8
- data/spec/models/get_relation_tuples_response_spec.rb +1 -1
- data/spec/models/get_version200_response_spec.rb +1 -1
- data/spec/models/{flush_inactive_o_auth2_tokens_request_spec.rb → handled_o_auth2_consent_request_spec.rb} +8 -8
- data/spec/models/{request_was_handled_response_spec.rb → handled_o_auth2_login_request_spec.rb} +7 -7
- data/spec/models/{completed_request_spec.rb → handled_o_auth2_logout_request_spec.rb} +7 -7
- data/spec/models/headers_spec.rb +34 -0
- data/spec/models/health_not_ready_status_spec.rb +1 -1
- data/spec/models/health_status_spec.rb +1 -1
- data/spec/models/id_token_claims_spec.rb +112 -0
- data/spec/models/identity_credentials_oidc_provider_spec.rb +1 -1
- data/spec/models/identity_credentials_oidc_spec.rb +1 -1
- data/spec/models/identity_credentials_password_spec.rb +1 -1
- data/spec/models/identity_credentials_spec.rb +1 -1
- data/spec/models/identity_credentials_type_spec.rb +1 -1
- data/spec/models/identity_schema_container_spec.rb +1 -1
- data/spec/models/identity_schema_preset_spec.rb +1 -1
- data/spec/models/identity_spec.rb +1 -1
- data/spec/models/identity_state_spec.rb +1 -1
- data/spec/models/{o_auth2_token_introspection_spec.rb → introspected_o_auth2_token_spec.rb} +7 -7
- data/spec/models/invite_payload_spec.rb +1 -1
- data/spec/models/is_owner_for_project_by_slug_payload_spec.rb +1 -1
- data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
- data/spec/models/is_ready200_response_spec.rb +1 -1
- data/spec/models/is_ready503_response_spec.rb +1 -1
- data/spec/models/json_error_spec.rb +1 -19
- data/spec/models/json_patch_spec.rb +1 -1
- data/spec/models/json_web_key_set_spec.rb +7 -7
- data/spec/models/json_web_key_spec.rb +7 -7
- data/spec/models/keto_namespace_spec.rb +1 -1
- data/spec/models/managed_identity_schema_spec.rb +1 -1
- data/spec/models/managed_identity_schema_validation_result_spec.rb +1 -1
- data/spec/models/message_spec.rb +88 -0
- data/spec/models/namespace_spec.rb +34 -0
- data/spec/models/needs_privileged_session_error_spec.rb +1 -1
- data/spec/models/normalized_project_revision_hook_spec.rb +1 -1
- data/spec/models/normalized_project_revision_identity_schema_spec.rb +1 -1
- data/spec/models/normalized_project_revision_spec.rb +61 -1
- data/spec/models/normalized_project_revision_third_party_provider_spec.rb +1 -1
- data/spec/models/normalized_project_spec.rb +1 -1
- data/spec/models/null_plan_spec.rb +1 -1
- data/spec/models/o_auth2_access_request_spec.rb +52 -0
- data/spec/models/{patch_document_spec.rb → o_auth2_api_error_spec.rb} +11 -11
- data/spec/models/o_auth2_client_spec.rb +73 -1
- data/spec/models/{open_id_connect_context_spec.rb → o_auth2_consent_request_open_id_connect_context_spec.rb} +7 -7
- data/spec/models/{consent_request_spec.rb → o_auth2_consent_request_spec.rb} +7 -7
- data/spec/models/{oauth_token_response_spec.rb → o_auth2_consent_session_expires_at_spec.rb} +10 -16
- data/spec/models/o_auth2_consent_session_spec.rb +94 -0
- data/spec/models/{login_request_spec.rb → o_auth2_login_request_spec.rb} +7 -7
- data/spec/models/{logout_request_spec.rb → o_auth2_logout_request_spec.rb} +7 -7
- data/spec/models/{oauth2_token_response_spec.rb → o_auth2_token_response_spec.rb} +7 -7
- data/spec/models/{well_known_spec.rb → oidc_configuration_spec.rb} +19 -7
- data/spec/models/{userinfo_response_spec.rb → oidc_user_info_spec.rb} +7 -7
- data/spec/models/pagination_headers_spec.rb +40 -0
- data/spec/models/pagination_spec.rb +13 -1
- data/spec/models/parse_error_spec.rb +46 -0
- data/spec/models/patch_delta_spec.rb +1 -1
- data/spec/models/post_check_opl_syntax_response_spec.rb +34 -0
- data/spec/models/{previous_consent_session_spec.rb → previous_o_auth2_consent_session_spec.rb} +7 -7
- data/spec/models/project_api_key_spec.rb +1 -1
- data/spec/models/project_host_spec.rb +1 -1
- data/spec/models/project_invite_spec.rb +1 -1
- data/spec/models/project_metadata_spec.rb +1 -1
- data/spec/models/project_service_identity_spec.rb +1 -1
- data/spec/models/project_service_o_auth2_spec.rb +1 -1
- data/spec/models/project_service_permission_spec.rb +1 -1
- data/spec/models/project_services_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/provision_mock_subscription_payload_spec.rb +1 -1
- data/spec/models/quota_custom_domains_spec.rb +1 -1
- data/spec/models/quota_project_member_seats_spec.rb +1 -1
- data/spec/models/{recovery_address_spec.rb → recovery_identity_address_spec.rb} +7 -7
- data/spec/models/refresh_token_hook_request_spec.rb +13 -1
- data/spec/models/refresh_token_hook_response_spec.rb +1 -1
- data/spec/models/{reject_request_spec.rb → reject_o_auth2_request_spec.rb} +7 -7
- data/spec/models/relation_query_spec.rb +1 -1
- data/spec/models/relation_tuple_spec.rb +1 -1
- data/spec/models/revoked_sessions_spec.rb +1 -1
- data/spec/models/schema_patch_spec.rb +1 -1
- data/spec/models/self_service_browser_location_change_required_error_spec.rb +1 -1
- data/spec/models/self_service_error_spec.rb +1 -1
- data/spec/models/self_service_flow_expired_error_spec.rb +1 -1
- data/spec/models/self_service_login_flow_spec.rb +1 -1
- data/spec/models/self_service_logout_url_spec.rb +1 -1
- data/spec/models/self_service_recovery_code_spec.rb +46 -0
- data/spec/models/self_service_recovery_flow_spec.rb +1 -1
- data/spec/models/self_service_recovery_flow_state_spec.rb +1 -1
- data/spec/models/self_service_recovery_link_spec.rb +1 -1
- data/spec/models/self_service_registration_flow_spec.rb +1 -1
- data/spec/models/self_service_settings_flow_spec.rb +1 -1
- data/spec/models/self_service_settings_flow_state_spec.rb +1 -1
- data/spec/models/self_service_verification_flow_spec.rb +1 -1
- data/spec/models/self_service_verification_flow_state_spec.rb +1 -1
- data/spec/models/session_authentication_method_spec.rb +2 -2
- data/spec/models/session_device_spec.rb +19 -1
- data/spec/models/session_spec.rb +7 -1
- data/spec/models/settings_profile_form_config_spec.rb +1 -1
- data/spec/models/source_position_spec.rb +40 -0
- data/spec/models/stripe_customer_response_spec.rb +1 -1
- data/spec/models/subject_set_spec.rb +1 -1
- data/spec/models/submit_self_service_flow_with_web_authn_registration_method_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_with_code_method_body_spec.rb +52 -0
- data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_verification_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/subscription_spec.rb +1 -1
- data/spec/models/successful_o_auth2_request_response_spec.rb +34 -0
- data/spec/models/successful_project_update_spec.rb +1 -1
- data/spec/models/successful_self_service_login_without_browser_spec.rb +1 -1
- data/spec/models/successful_self_service_registration_without_browser_spec.rb +1 -1
- data/spec/models/token_pagination_headers_spec.rb +1 -1
- data/spec/models/token_pagination_spec.rb +1 -1
- data/spec/models/{trusted_jwt_grant_issuer_spec.rb → trusted_o_auth2_jwt_grant_issuer_spec.rb} +7 -7
- data/spec/models/{trusted_json_web_key_spec.rb → trusted_o_auth2_jwt_grant_json_web_key_spec.rb} +7 -7
- data/spec/models/ui_container_spec.rb +1 -1
- data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
- data/spec/models/ui_node_attributes_spec.rb +1 -1
- data/spec/models/ui_node_image_attributes_spec.rb +1 -1
- data/spec/models/ui_node_input_attributes_spec.rb +1 -1
- data/spec/models/ui_node_meta_spec.rb +1 -1
- data/spec/models/ui_node_script_attributes_spec.rb +1 -1
- data/spec/models/ui_node_spec.rb +2 -2
- data/spec/models/ui_node_text_attributes_spec.rb +1 -1
- data/spec/models/ui_text_spec.rb +1 -1
- data/spec/models/update_custom_hostname_body_spec.rb +1 -1
- data/spec/models/update_o_auth2_client_lifespans_spec.rb +100 -0
- data/spec/models/update_project_spec.rb +1 -1
- data/spec/models/update_subscription_payload_spec.rb +1 -1
- data/spec/models/verifiable_identity_address_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/models/warning_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.6.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.5 → psych-4.0.6}/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.5 → psych-4.0.6}/gem_make.out +6 -6
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.5 → psych-4.0.6}/mkmf.log +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.5 → psych-4.0.6}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/Gemfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/Mavenfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/README.md +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/bin/console +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/bin/setup +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/api.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/depend +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/dumper.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/emitter.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/extconf.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/loader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5/lib → psych-4.0.6/ext/psych}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_emitter.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_emitter.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_emitter.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_parser.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_parser.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_to_ruby.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_to_ruby.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_to_ruby.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_yaml_tree.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_yaml_tree.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/psych_yaml_tree.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/reader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/scanner.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/writer.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/api.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/config.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/dumper.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/emitter.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/loader.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/parser.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/reader.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/scanner.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/writer.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/yaml.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/ext/psych/yaml/yaml_private.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/class_loader.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/coder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/core_ext.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/exception.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/handler.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/handlers/document_stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/handlers/recorder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/ruby_events.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/json/yaml_events.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/alias.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/document.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/mapping.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/node.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/scalar.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/sequence.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/nodes.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/omap.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/parser.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/scalar_scanner.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/set.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/streaming.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/syntax_error.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/versions.rb +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/depth_first.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/emitter.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/json_tree.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/to_ruby.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/visitor.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors/yaml_tree.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/visitors.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych/y.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/lib/psych.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5/ext/psych → psych-4.0.6/lib}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.5 → psych-4.0.6}/psych.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.2/ext/stringio/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/{psych-4.0.5.gemspec → psych-4.0.6.gemspec} +3 -3
- metadata +271 -199
- data/docs/FlushInactiveOAuth2TokensRequest.md +0 -18
- data/docs/FlushLoginConsentRequest.md +0 -18
- data/docs/JSONWebKeySet.md +0 -18
- data/docs/Oauth2TokenResponse.md +0 -28
- data/docs/PatchDocument.md +0 -24
- data/docs/PublicApi.md +0 -738
- data/lib/ory-client/api/public_api.rb +0 -723
- data/spec/api/public_api_spec.rb +0 -167
- data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.5.gem +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.2.0-alpha.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.60
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.1
|
@@ -32,6 +32,44 @@ describe 'V0alpha2Api' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for admin_accept_o_auth2_consent_request
|
36
|
+
# Accept an OAuth 2.0 Consent Request
|
37
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider includes additional information, such as session data for access and ID tokens, and if the consent request should be used as basis for future requests. The response contains a redirect URL which the consent provider should redirect the user-agent to.
|
38
|
+
# @param consent_challenge
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [AcceptOAuth2ConsentRequest] :accept_o_auth2_consent_request
|
41
|
+
# @return [SuccessfulOAuth2RequestResponse]
|
42
|
+
describe 'admin_accept_o_auth2_consent_request test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for admin_accept_o_auth2_login_request
|
49
|
+
# Accept an OAuth 2.0 Login Request
|
50
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell Ory Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has successfully authenticated and includes additional information such as the subject's ID and if ORY Hydra should remember the subject's subject agent for future authentication attempts by setting a cookie. The response contains a redirect URL which the login provider should redirect the user-agent to.
|
51
|
+
# @param login_challenge
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [AcceptOAuth2LoginRequest] :accept_o_auth2_login_request
|
54
|
+
# @return [SuccessfulOAuth2RequestResponse]
|
55
|
+
describe 'admin_accept_o_auth2_login_request test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# unit tests for admin_accept_o_auth2_logout_request
|
62
|
+
# Accept an OAuth 2.0 Logout Request
|
63
|
+
# When a user or an application requests ORY Hydra to log out a user, this endpoint is used to confirm that logout request. The response contains a redirect URL which the consent provider should redirect the user-agent to.
|
64
|
+
# @param logout_challenge
|
65
|
+
# @param [Hash] opts the optional parameters
|
66
|
+
# @return [SuccessfulOAuth2RequestResponse]
|
67
|
+
describe 'admin_accept_o_auth2_logout_request test' do
|
68
|
+
it 'should work' do
|
69
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
35
73
|
# unit tests for admin_create_identity
|
36
74
|
# Create an Identity
|
37
75
|
# This endpoint creates an identity. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
|
@@ -44,6 +82,43 @@ describe 'V0alpha2Api' do
|
|
44
82
|
end
|
45
83
|
end
|
46
84
|
|
85
|
+
# unit tests for admin_create_json_web_key_set
|
86
|
+
# Generate a New JSON Web Key
|
87
|
+
# This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
|
88
|
+
# @param set The JSON Web Key Set
|
89
|
+
# @param admin_create_json_web_key_set_body
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [JsonWebKeySet]
|
92
|
+
describe 'admin_create_json_web_key_set test' do
|
93
|
+
it 'should work' do
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
# unit tests for admin_create_o_auth2_client
|
99
|
+
# Create an OAuth 2.0 Client
|
100
|
+
# Create a new OAuth 2.0 client. If you pass `client_secret` the secret is used, otherwise a random secret is generated. The secret is echoed in the response. It is not possible to retrieve it later on. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
101
|
+
# @param o_auth2_client
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @return [OAuth2Client]
|
104
|
+
describe 'admin_create_o_auth2_client test' do
|
105
|
+
it 'should work' do
|
106
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# unit tests for admin_create_self_service_recovery_code
|
111
|
+
# Create a Recovery Link
|
112
|
+
# This endpoint creates a recovery code which should be given to the user in order for them to recover (or activate) their account.
|
113
|
+
# @param [Hash] opts the optional parameters
|
114
|
+
# @option opts [AdminCreateSelfServiceRecoveryCodeBody] :admin_create_self_service_recovery_code_body
|
115
|
+
# @return [SelfServiceRecoveryCode]
|
116
|
+
describe 'admin_create_self_service_recovery_code test' do
|
117
|
+
it 'should work' do
|
118
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
47
122
|
# unit tests for admin_create_self_service_recovery_link
|
48
123
|
# Create a Recovery Link
|
49
124
|
# This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account.
|
@@ -80,6 +155,67 @@ describe 'V0alpha2Api' do
|
|
80
155
|
end
|
81
156
|
end
|
82
157
|
|
158
|
+
# unit tests for admin_delete_json_web_key
|
159
|
+
# Delete a JSON Web Key
|
160
|
+
# Use this endpoint to delete a single JSON Web Key. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
|
161
|
+
# @param set The JSON Web Key Set
|
162
|
+
# @param kid The JSON Web Key ID (kid)
|
163
|
+
# @param [Hash] opts the optional parameters
|
164
|
+
# @return [nil]
|
165
|
+
describe 'admin_delete_json_web_key test' do
|
166
|
+
it 'should work' do
|
167
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# unit tests for admin_delete_json_web_key_set
|
172
|
+
# Delete a JSON Web Key Set
|
173
|
+
# Use this endpoint to delete a complete JSON Web Key Set and all the keys in that set. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
|
174
|
+
# @param set The JSON Web Key Set
|
175
|
+
# @param [Hash] opts the optional parameters
|
176
|
+
# @return [nil]
|
177
|
+
describe 'admin_delete_json_web_key_set test' do
|
178
|
+
it 'should work' do
|
179
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
# unit tests for admin_delete_o_auth2_client
|
184
|
+
# Deletes an OAuth 2.0 Client
|
185
|
+
# Delete an existing OAuth 2.0 Client by its ID. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. Make sure that this endpoint is well protected and only callable by first-party components.
|
186
|
+
# @param id The id of the OAuth 2.0 Client.
|
187
|
+
# @param [Hash] opts the optional parameters
|
188
|
+
# @return [nil]
|
189
|
+
describe 'admin_delete_o_auth2_client test' do
|
190
|
+
it 'should work' do
|
191
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
# unit tests for admin_delete_o_auth2_token
|
196
|
+
# Delete OAuth2 Access Tokens from a Client
|
197
|
+
# This endpoint deletes OAuth2 access tokens issued for a client from the database
|
198
|
+
# @param client_id
|
199
|
+
# @param [Hash] opts the optional parameters
|
200
|
+
# @return [nil]
|
201
|
+
describe 'admin_delete_o_auth2_token test' do
|
202
|
+
it 'should work' do
|
203
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
# unit tests for admin_delete_trusted_o_auth2_jwt_grant_issuer
|
208
|
+
# Delete a Trusted OAuth2 JWT Bearer Grant Type Issuer
|
209
|
+
# Use this endpoint to delete trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. Once deleted, the associated issuer will no longer be able to perform the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grant.
|
210
|
+
# @param id The id of the desired grant
|
211
|
+
# @param [Hash] opts the optional parameters
|
212
|
+
# @return [nil]
|
213
|
+
describe 'admin_delete_trusted_o_auth2_jwt_grant_issuer test' do
|
214
|
+
it 'should work' do
|
215
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
83
219
|
# unit tests for admin_extend_session
|
84
220
|
# Calling this endpoint extends the given session ID. If `session.earliest_possible_extend` is set it will only extend the session after the specified time has passed.
|
85
221
|
# Retrieve the session ID from the `/sessions/whoami` endpoint / `toSession` SDK method.
|
@@ -105,6 +241,119 @@ describe 'V0alpha2Api' do
|
|
105
241
|
end
|
106
242
|
end
|
107
243
|
|
244
|
+
# unit tests for admin_get_json_web_key
|
245
|
+
# Fetch a JSON Web Key
|
246
|
+
# This endpoint returns a singular JSON Web Key. It is identified by the set and the specific key ID (kid).
|
247
|
+
# @param set The JSON Web Key Set
|
248
|
+
# @param kid The JSON Web Key ID (kid)
|
249
|
+
# @param [Hash] opts the optional parameters
|
250
|
+
# @return [JsonWebKeySet]
|
251
|
+
describe 'admin_get_json_web_key test' do
|
252
|
+
it 'should work' do
|
253
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
# unit tests for admin_get_json_web_key_set
|
258
|
+
# Retrieve a JSON Web Key Set
|
259
|
+
# This endpoint can be used to retrieve JWK Sets stored in ORY Hydra. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
|
260
|
+
# @param set The JSON Web Key Set
|
261
|
+
# @param [Hash] opts the optional parameters
|
262
|
+
# @return [JsonWebKeySet]
|
263
|
+
describe 'admin_get_json_web_key_set test' do
|
264
|
+
it 'should work' do
|
265
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
266
|
+
end
|
267
|
+
end
|
268
|
+
|
269
|
+
# unit tests for admin_get_o_auth2_client
|
270
|
+
# Get an OAuth 2.0 Client
|
271
|
+
# Get an OAuth 2.0 client by its ID. This endpoint never returns the client secret. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
272
|
+
# @param id The id of the OAuth 2.0 Client.
|
273
|
+
# @param [Hash] opts the optional parameters
|
274
|
+
# @return [OAuth2Client]
|
275
|
+
describe 'admin_get_o_auth2_client test' do
|
276
|
+
it 'should work' do
|
277
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
# unit tests for admin_get_o_auth2_consent_request
|
282
|
+
# Get OAuth 2.0 Consent Request Information
|
283
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request.
|
284
|
+
# @param consent_challenge
|
285
|
+
# @param [Hash] opts the optional parameters
|
286
|
+
# @return [OAuth2ConsentRequest]
|
287
|
+
describe 'admin_get_o_auth2_consent_request test' do
|
288
|
+
it 'should work' do
|
289
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
# unit tests for admin_get_o_auth2_login_request
|
294
|
+
# Get an OAuth 2.0 Login Request
|
295
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process.
|
296
|
+
# @param login_challenge
|
297
|
+
# @param [Hash] opts the optional parameters
|
298
|
+
# @return [OAuth2LoginRequest]
|
299
|
+
describe 'admin_get_o_auth2_login_request test' do
|
300
|
+
it 'should work' do
|
301
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
# unit tests for admin_get_o_auth2_logout_request
|
306
|
+
# Get an OAuth 2.0 Logout Request
|
307
|
+
# Use this endpoint to fetch a logout request.
|
308
|
+
# @param logout_challenge
|
309
|
+
# @param [Hash] opts the optional parameters
|
310
|
+
# @return [OAuth2LogoutRequest]
|
311
|
+
describe 'admin_get_o_auth2_logout_request test' do
|
312
|
+
it 'should work' do
|
313
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
# unit tests for admin_get_trusted_o_auth2_jwt_grant_issuer
|
318
|
+
# Get a Trusted OAuth2 JWT Bearer Grant Type Issuer
|
319
|
+
# Use this endpoint to get a trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship.
|
320
|
+
# @param id The id of the desired grant
|
321
|
+
# @param [Hash] opts the optional parameters
|
322
|
+
# @return [TrustedOAuth2JwtGrantIssuer]
|
323
|
+
describe 'admin_get_trusted_o_auth2_jwt_grant_issuer test' do
|
324
|
+
it 'should work' do
|
325
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
329
|
+
# unit tests for admin_introspect_o_auth2_token
|
330
|
+
# Introspect OAuth2 Access or Refresh Tokens
|
331
|
+
# The introspection endpoint allows to check if a token (both refresh and access) is active or not. An active token is neither expired nor revoked. If a token is active, additional information on the token will be included. You can set additional data for a token by setting `accessTokenExtra` during the consent flow. For more information [read this blog post](https://www.oauth.com/oauth2-servers/token-introspection-endpoint/).
|
332
|
+
# @param token The string value of the token. For access tokens, this is the \\\"access_token\\\" value returned from the token endpoint defined in OAuth 2.0. For refresh tokens, this is the \\\"refresh_token\\\" value returned.
|
333
|
+
# @param [Hash] opts the optional parameters
|
334
|
+
# @option opts [String] :scope An optional, space separated list of required scopes. If the access token was not granted one of the scopes, the result of active will be false.
|
335
|
+
# @return [IntrospectedOAuth2Token]
|
336
|
+
describe 'admin_introspect_o_auth2_token test' do
|
337
|
+
it 'should work' do
|
338
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
# unit tests for admin_list_courier_messages
|
343
|
+
# List Messages
|
344
|
+
# Lists all messages by given status and recipient.
|
345
|
+
# @param [Hash] opts the optional parameters
|
346
|
+
# @option opts [Integer] :per_page Items per Page This is the number of items per page.
|
347
|
+
# @option opts [Integer] :page Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist.
|
348
|
+
# @option opts [CourierMessageStatus] :status Status filters out messages based on status. If no value is provided, it doesn't take effect on filter.
|
349
|
+
# @option opts [String] :recipient Recipient filters out messages based on recipient. If no value is provided, it doesn't take effect on filter.
|
350
|
+
# @return [Array<Message>]
|
351
|
+
describe 'admin_list_courier_messages test' do
|
352
|
+
it 'should work' do
|
353
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
354
|
+
end
|
355
|
+
end
|
356
|
+
|
108
357
|
# unit tests for admin_list_identities
|
109
358
|
# List Identities
|
110
359
|
# Lists all identities. Does not support search at the moment. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
|
@@ -133,9 +382,54 @@ describe 'V0alpha2Api' do
|
|
133
382
|
end
|
134
383
|
end
|
135
384
|
|
385
|
+
# unit tests for admin_list_o_auth2_clients
|
386
|
+
# List OAuth 2.0 Clients
|
387
|
+
# This endpoint lists all clients in the database, and never returns client secrets. As a default it lists the first 100 clients. The `limit` parameter can be used to retrieve more clients, but it has an upper bound at 500 objects. Pagination should be used to retrieve more than 500 objects. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. The \"Link\" header is also included in successful responses, which contains one or more links for pagination, formatted like so: '<https://project-slug.projects.oryapis.com/admin/clients?limit={limit}&offset={offset}>; rel=\"{page}\"', where page is one of the following applicable pages: 'first', 'next', 'last', and 'previous'. Multiple links can be included in this header, and will be separated by a comma.
|
388
|
+
# @param [Hash] opts the optional parameters
|
389
|
+
# @option opts [Integer] :page_size Items per page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
390
|
+
# @option opts [String] :page_token Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
391
|
+
# @option opts [String] :client_name The name of the clients to filter by.
|
392
|
+
# @option opts [String] :owner The owner of the clients to filter by.
|
393
|
+
# @return [Array<OAuth2Client>]
|
394
|
+
describe 'admin_list_o_auth2_clients test' do
|
395
|
+
it 'should work' do
|
396
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
400
|
+
# unit tests for admin_list_o_auth2_subject_consent_sessions
|
401
|
+
# List OAuth 2.0 Consent Sessions of a Subject
|
402
|
+
# This endpoint lists all subject's granted consent sessions, including client and granted scope. If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an empty JSON array with status code 200 OK. The \"Link\" header is also included in successful responses, which contains one or more links for pagination, formatted like so: '<https://hydra-url/admin/oauth2/auth/sessions/consent?subject={user}&limit={limit}&offset={offset}>; rel=\"{page}\"', where page is one of the following applicable pages: 'first', 'next', 'last', and 'previous'. Multiple links can be included in this header, and will be separated by a comma.
|
403
|
+
# @param subject The subject to list the consent sessions for.
|
404
|
+
# @param [Hash] opts the optional parameters
|
405
|
+
# @option opts [String] :link The link header contains pagination links. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
406
|
+
# @option opts [String] :x_total_count The total number of clients.
|
407
|
+
# @return [Array<PreviousOAuth2ConsentSession>]
|
408
|
+
describe 'admin_list_o_auth2_subject_consent_sessions test' do
|
409
|
+
it 'should work' do
|
410
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
411
|
+
end
|
412
|
+
end
|
413
|
+
|
414
|
+
# unit tests for admin_list_trusted_o_auth2_jwt_grant_issuers
|
415
|
+
# List Trusted OAuth2 JWT Bearer Grant Type Issuers
|
416
|
+
# Use this endpoint to list all trusted JWT Bearer Grant Type Issuers.
|
417
|
+
# @param [Hash] opts the optional parameters
|
418
|
+
# @option opts [Integer] :max_items
|
419
|
+
# @option opts [Integer] :default_items
|
420
|
+
# @option opts [String] :issuer If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned.
|
421
|
+
# @option opts [Integer] :limit The maximum amount of policies returned, upper bound is 500 policies
|
422
|
+
# @option opts [Integer] :offset The offset from where to start looking.
|
423
|
+
# @return [Array<TrustedOAuth2JwtGrantIssuer>]
|
424
|
+
describe 'admin_list_trusted_o_auth2_jwt_grant_issuers test' do
|
425
|
+
it 'should work' do
|
426
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
136
430
|
# unit tests for admin_patch_identity
|
137
|
-
#
|
138
|
-
# NOTE: The fields `id`, `stateChangedAt` and `credentials` are not updateable. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
|
431
|
+
# Patch an Identity
|
432
|
+
# Partially updates an Identity's field using [JSON Patch](https://jsonpatch.com/) NOTE: The fields `id`, `stateChangedAt` and `credentials` are not updateable. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
|
139
433
|
# @param id ID must be set to the ID of identity you want to update
|
140
434
|
# @param [Hash] opts the optional parameters
|
141
435
|
# @option opts [Array<JsonPatch>] :json_patch
|
@@ -146,6 +440,96 @@ describe 'V0alpha2Api' do
|
|
146
440
|
end
|
147
441
|
end
|
148
442
|
|
443
|
+
# unit tests for admin_patch_o_auth2_client
|
444
|
+
# Patch an OAuth 2.0 Client
|
445
|
+
# Patch an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
446
|
+
# @param id The id of the OAuth 2.0 Client.
|
447
|
+
# @param json_patch
|
448
|
+
# @param [Hash] opts the optional parameters
|
449
|
+
# @return [OAuth2Client]
|
450
|
+
describe 'admin_patch_o_auth2_client test' do
|
451
|
+
it 'should work' do
|
452
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
453
|
+
end
|
454
|
+
end
|
455
|
+
|
456
|
+
# unit tests for admin_reject_o_auth2_consent_request
|
457
|
+
# Reject an OAuth 2.0 Consent Request
|
458
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has not authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider must include a reason why the consent was not granted. The response contains a redirect URL which the consent provider should redirect the user-agent to.
|
459
|
+
# @param consent_challenge
|
460
|
+
# @param [Hash] opts the optional parameters
|
461
|
+
# @option opts [RejectOAuth2Request] :reject_o_auth2_request
|
462
|
+
# @return [SuccessfulOAuth2RequestResponse]
|
463
|
+
describe 'admin_reject_o_auth2_consent_request test' do
|
464
|
+
it 'should work' do
|
465
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
466
|
+
end
|
467
|
+
end
|
468
|
+
|
469
|
+
# unit tests for admin_reject_o_auth2_login_request
|
470
|
+
# Reject an OAuth 2.0 Login Request
|
471
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has not authenticated and includes a reason why the authentication was denied. The response contains a redirect URL which the login provider should redirect the user-agent to.
|
472
|
+
# @param login_challenge
|
473
|
+
# @param [Hash] opts the optional parameters
|
474
|
+
# @option opts [RejectOAuth2Request] :reject_o_auth2_request
|
475
|
+
# @return [SuccessfulOAuth2RequestResponse]
|
476
|
+
describe 'admin_reject_o_auth2_login_request test' do
|
477
|
+
it 'should work' do
|
478
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
482
|
+
# unit tests for admin_reject_o_auth2_logout_request
|
483
|
+
# Reject an OAuth 2.0 Logout Request
|
484
|
+
# When a user or an application requests ORY Hydra to log out a user, this endpoint is used to deny that logout request. No body is required. The response is empty as the logout provider has to chose what action to perform next.
|
485
|
+
# @param logout_challenge
|
486
|
+
# @param [Hash] opts the optional parameters
|
487
|
+
# @option opts [RejectOAuth2Request] :reject_o_auth2_request
|
488
|
+
# @return [nil]
|
489
|
+
describe 'admin_reject_o_auth2_logout_request test' do
|
490
|
+
it 'should work' do
|
491
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
492
|
+
end
|
493
|
+
end
|
494
|
+
|
495
|
+
# unit tests for admin_revoke_o_auth2_consent_sessions
|
496
|
+
# Revokes OAuth 2.0 Consent Sessions of a Subject for a Specific OAuth 2.0 Client
|
497
|
+
# This endpoint revokes a subject's granted consent sessions for a specific OAuth 2.0 Client and invalidates all associated OAuth 2.0 Access Tokens.
|
498
|
+
# @param subject The subject (Subject) whose consent sessions should be deleted.
|
499
|
+
# @param [Hash] opts the optional parameters
|
500
|
+
# @option opts [String] :client If set, deletes only those consent sessions by the Subject that have been granted to the specified OAuth 2.0 Client ID
|
501
|
+
# @option opts [Boolean] :all If set to `true` deletes all consent sessions by the Subject that have been granted.
|
502
|
+
# @return [nil]
|
503
|
+
describe 'admin_revoke_o_auth2_consent_sessions test' do
|
504
|
+
it 'should work' do
|
505
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
506
|
+
end
|
507
|
+
end
|
508
|
+
|
509
|
+
# unit tests for admin_revoke_o_auth2_login_sessions
|
510
|
+
# Invalidates All OAuth 2.0 Login Sessions of a Certain User
|
511
|
+
# This endpoint invalidates a subject's authentication session. After revoking the authentication session, the subject has to re-authenticate at ORY Hydra. This endpoint does not invalidate any tokens and does not work with OpenID Connect Front- or Back-channel logout.
|
512
|
+
# @param subject The subject to revoke authentication sessions for.
|
513
|
+
# @param [Hash] opts the optional parameters
|
514
|
+
# @return [nil]
|
515
|
+
describe 'admin_revoke_o_auth2_login_sessions test' do
|
516
|
+
it 'should work' do
|
517
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
518
|
+
end
|
519
|
+
end
|
520
|
+
|
521
|
+
# unit tests for admin_trust_o_auth2_jwt_grant_issuer
|
522
|
+
# Trust an OAuth2 JWT Bearer Grant Type Issuer
|
523
|
+
# Use this endpoint to establish a trust relationship for a JWT issuer to perform JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants [RFC7523](https://datatracker.ietf.org/doc/html/rfc7523).
|
524
|
+
# @param [Hash] opts the optional parameters
|
525
|
+
# @option opts [AdminTrustOAuth2JwtGrantIssuerBody] :admin_trust_o_auth2_jwt_grant_issuer_body
|
526
|
+
# @return [TrustedOAuth2JwtGrantIssuer]
|
527
|
+
describe 'admin_trust_o_auth2_jwt_grant_issuer test' do
|
528
|
+
it 'should work' do
|
529
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
530
|
+
end
|
531
|
+
end
|
532
|
+
|
149
533
|
# unit tests for admin_update_identity
|
150
534
|
# Update an Identity
|
151
535
|
# This endpoint updates an identity. The full identity payload (except credentials) is expected. This endpoint does not support patching. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
|
@@ -159,8 +543,48 @@ describe 'V0alpha2Api' do
|
|
159
543
|
end
|
160
544
|
end
|
161
545
|
|
546
|
+
# unit tests for admin_update_json_web_key
|
547
|
+
# Update a JSON Web Key
|
548
|
+
# Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
|
549
|
+
# @param set The JSON Web Key Set
|
550
|
+
# @param kid The JSON Web Key ID (kid)
|
551
|
+
# @param [Hash] opts the optional parameters
|
552
|
+
# @option opts [JsonWebKey] :json_web_key
|
553
|
+
# @return [JsonWebKey]
|
554
|
+
describe 'admin_update_json_web_key test' do
|
555
|
+
it 'should work' do
|
556
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
557
|
+
end
|
558
|
+
end
|
559
|
+
|
560
|
+
# unit tests for admin_update_json_web_key_set
|
561
|
+
# Update a JSON Web Key Set
|
562
|
+
# Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
|
563
|
+
# @param set The JSON Web Key Set
|
564
|
+
# @param [Hash] opts the optional parameters
|
565
|
+
# @option opts [JsonWebKeySet] :json_web_key_set
|
566
|
+
# @return [JsonWebKeySet]
|
567
|
+
describe 'admin_update_json_web_key_set test' do
|
568
|
+
it 'should work' do
|
569
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
570
|
+
end
|
571
|
+
end
|
572
|
+
|
573
|
+
# unit tests for admin_update_o_auth2_client
|
574
|
+
# Update an OAuth 2.0 Client
|
575
|
+
# Update an existing OAuth 2.0 Client. If you pass `client_secret` the secret is used, otherwise a random secret is generated. The secret is echoed in the response. It is not possible to retrieve it later on. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
576
|
+
# @param id The id of the OAuth 2.0 Client.
|
577
|
+
# @param o_auth2_client
|
578
|
+
# @param [Hash] opts the optional parameters
|
579
|
+
# @return [OAuth2Client]
|
580
|
+
describe 'admin_update_o_auth2_client test' do
|
581
|
+
it 'should work' do
|
582
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
583
|
+
end
|
584
|
+
end
|
585
|
+
|
162
586
|
# unit tests for create_project
|
163
|
-
#
|
587
|
+
# Create a Project
|
164
588
|
# Creates a new project.
|
165
589
|
# @param [Hash] opts the optional parameters
|
166
590
|
# @option opts [CreateProjectBody] :create_project_body
|
@@ -172,7 +596,7 @@ describe 'V0alpha2Api' do
|
|
172
596
|
end
|
173
597
|
|
174
598
|
# unit tests for create_project_api_key
|
175
|
-
#
|
599
|
+
# Create API Token
|
176
600
|
# Create an API token for a project.
|
177
601
|
# @param project The Project ID or Project slug
|
178
602
|
# @param [Hash] opts the optional parameters
|
@@ -197,7 +621,7 @@ describe 'V0alpha2Api' do
|
|
197
621
|
end
|
198
622
|
|
199
623
|
# unit tests for delete_project_api_key
|
200
|
-
#
|
624
|
+
# Delete API Token
|
201
625
|
# Deletes an API Token and immediately removes it.
|
202
626
|
# @param project The Project ID or Project slug
|
203
627
|
# @param token_id The Token ID
|
@@ -209,6 +633,77 @@ describe 'V0alpha2Api' do
|
|
209
633
|
end
|
210
634
|
end
|
211
635
|
|
636
|
+
# unit tests for discover_json_web_keys
|
637
|
+
# Discover JSON Web Keys
|
638
|
+
# This endpoint returns JSON Web Keys required to verifying OpenID Connect ID Tokens and, if enabled, OAuth 2.0 JWT Access Tokens. This endpoint can be used with client libraries like [node-jwks-rsa](https://github.com/auth0/node-jwks-rsa) among others.
|
639
|
+
# @param [Hash] opts the optional parameters
|
640
|
+
# @return [JsonWebKeySet]
|
641
|
+
describe 'discover_json_web_keys test' do
|
642
|
+
it 'should work' do
|
643
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
644
|
+
end
|
645
|
+
end
|
646
|
+
|
647
|
+
# unit tests for discover_oidc_configuration
|
648
|
+
# OpenID Connect Discovery
|
649
|
+
# The well known endpoint an be used to retrieve information for OpenID Connect clients. We encourage you to not roll your own OpenID Connect client but to use an OpenID Connect client library instead. You can learn more on this flow at https://openid.net/specs/openid-connect-discovery-1_0.html . Popular libraries for OpenID Connect clients include oidc-client-js (JavaScript), go-oidc (Golang), and others. For a full list of clients go here: https://openid.net/developers/certified/
|
650
|
+
# @param [Hash] opts the optional parameters
|
651
|
+
# @return [OidcConfiguration]
|
652
|
+
describe 'discover_oidc_configuration test' do
|
653
|
+
it 'should work' do
|
654
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
655
|
+
end
|
656
|
+
end
|
657
|
+
|
658
|
+
# unit tests for dynamic_client_registration_create_o_auth2_client
|
659
|
+
# Register an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
|
660
|
+
# This endpoint behaves like the administrative counterpart (`createOAuth2Client`) but is capable of facing the public internet directly and can be used in self-service. It implements the OpenID Connect Dynamic Client Registration Protocol. This feature needs to be enabled in the configuration. This endpoint is disabled by default. It can be enabled by an administrator. Please note that using this endpoint you are not able to choose the `client_secret` nor the `client_id` as those values will be server generated when specifying `token_endpoint_auth_method` as `client_secret_basic` or `client_secret_post`. The `client_secret` will be returned in the response and you will not be able to retrieve it later on. Write the secret down and keep it somewhere safe.
|
661
|
+
# @param o_auth2_client
|
662
|
+
# @param [Hash] opts the optional parameters
|
663
|
+
# @return [OAuth2Client]
|
664
|
+
describe 'dynamic_client_registration_create_o_auth2_client test' do
|
665
|
+
it 'should work' do
|
666
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
667
|
+
end
|
668
|
+
end
|
669
|
+
|
670
|
+
# unit tests for dynamic_client_registration_delete_o_auth2_client
|
671
|
+
# Deletes an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
|
672
|
+
# This endpoint behaves like the administrative counterpart (`deleteOAuth2Client`) but is capable of facing the public internet directly and can be used in self-service. It implements the OpenID Connect Dynamic Client Registration Protocol. This feature needs to be enabled in the configuration. This endpoint is disabled by default. It can be enabled by an administrator. To use this endpoint, you will need to present the client's authentication credentials. If the OAuth2 Client uses the Token Endpoint Authentication Method `client_secret_post`, you need to present the client secret in the URL query. If it uses `client_secret_basic`, present the Client ID and the Client Secret in the Authorization header. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
673
|
+
# @param id The id of the OAuth 2.0 Client.
|
674
|
+
# @param [Hash] opts the optional parameters
|
675
|
+
# @return [nil]
|
676
|
+
describe 'dynamic_client_registration_delete_o_auth2_client test' do
|
677
|
+
it 'should work' do
|
678
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
679
|
+
end
|
680
|
+
end
|
681
|
+
|
682
|
+
# unit tests for dynamic_client_registration_get_o_auth2_client
|
683
|
+
# Get an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
|
684
|
+
# This endpoint behaves like the administrative counterpart (`getOAuth2Client`) but is capable of facing the public internet directly and can be used in self-service. It implements the OpenID Connect Dynamic Client Registration Protocol. This feature needs to be enabled in the configuration. This endpoint is disabled by default. It can be enabled by an administrator. To use this endpoint, you will need to present the client's authentication credentials. If the OAuth2 Client uses the Token Endpoint Authentication Method `client_secret_post`, you need to present the client secret in the URL query. If it uses `client_secret_basic`, present the Client ID and the Client Secret in the Authorization header. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
685
|
+
# @param id The id of the OAuth 2.0 Client.
|
686
|
+
# @param [Hash] opts the optional parameters
|
687
|
+
# @return [OAuth2Client]
|
688
|
+
describe 'dynamic_client_registration_get_o_auth2_client test' do
|
689
|
+
it 'should work' do
|
690
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
691
|
+
end
|
692
|
+
end
|
693
|
+
|
694
|
+
# unit tests for dynamic_client_registration_update_o_auth2_client
|
695
|
+
# Update an OAuth 2.0 Client using the OpenID / OAuth2 Dynamic Client Registration Management Protocol
|
696
|
+
# This endpoint behaves like the administrative counterpart (`updateOAuth2Client`) but is capable of facing the public internet directly and can be used in self-service. It implements the OpenID Connect Dynamic Client Registration Protocol. This feature needs to be enabled in the configuration. This endpoint is disabled by default. It can be enabled by an administrator. If you pass `client_secret` the secret is used, otherwise a random secret is generated. The secret is echoed in the response. It is not possible to retrieve it later on. To use this endpoint, you will need to present the client's authentication credentials. If the OAuth2 Client uses the Token Endpoint Authentication Method `client_secret_post`, you need to present the client secret in the URL query. If it uses `client_secret_basic`, present the Client ID and the Client Secret in the Authorization header. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
697
|
+
# @param id The id of the OAuth 2.0 Client.
|
698
|
+
# @param o_auth2_client
|
699
|
+
# @param [Hash] opts the optional parameters
|
700
|
+
# @return [OAuth2Client]
|
701
|
+
describe 'dynamic_client_registration_update_o_auth2_client test' do
|
702
|
+
it 'should work' do
|
703
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
704
|
+
end
|
705
|
+
end
|
706
|
+
|
212
707
|
# unit tests for get_identity_schema
|
213
708
|
# Get a JSON Schema
|
214
709
|
# @param id ID must be set to the ID of schema you want to get
|
@@ -220,8 +715,19 @@ describe 'V0alpha2Api' do
|
|
220
715
|
end
|
221
716
|
end
|
222
717
|
|
718
|
+
# unit tests for get_oidc_user_info
|
719
|
+
# OpenID Connect Userinfo
|
720
|
+
# This endpoint returns the payload of the ID Token, including the idTokenExtra values, of the provided OAuth 2.0 Access Token. For more information please [refer to the spec](http://openid.net/specs/openid-connect-core-1_0.html#UserInfo). In the case of authentication error, a WWW-Authenticate header might be set in the response with more information about the error. See [the spec](https://datatracker.ietf.org/doc/html/rfc6750#section-3) for more details about header format.
|
721
|
+
# @param [Hash] opts the optional parameters
|
722
|
+
# @return [OidcUserInfo]
|
723
|
+
describe 'get_oidc_user_info test' do
|
724
|
+
it 'should work' do
|
725
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
726
|
+
end
|
727
|
+
end
|
728
|
+
|
223
729
|
# unit tests for get_project
|
224
|
-
#
|
730
|
+
# Get a Project
|
225
731
|
# Get a projects you have access to by its ID.
|
226
732
|
# @param project_id Project ID The project's ID.
|
227
733
|
# @param [Hash] opts the optional parameters
|
@@ -310,7 +816,7 @@ describe 'V0alpha2Api' do
|
|
310
816
|
end
|
311
817
|
|
312
818
|
# unit tests for get_self_service_verification_flow
|
313
|
-
#
|
819
|
+
# Get Verification Flow
|
314
820
|
# This endpoint returns a verification flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request's HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get('/recovery', async function (req, res) { const flow = await client.getSelfServiceVerificationFlow(req.header('cookie'), req.query['flow']) res.render('verification', flow) }) More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
|
315
821
|
# @param id The Flow ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/verification?flow=abcde`).
|
316
822
|
# @param [Hash] opts the optional parameters
|
@@ -340,6 +846,7 @@ describe 'V0alpha2Api' do
|
|
340
846
|
# @option opts [Boolean] :refresh Refresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session.
|
341
847
|
# @option opts [String] :aal Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session's authenticator assurance level (AAL). This allows you to ask for multi-factor authentication. When an identity sign in using e.g. username+password, the AAL is 1. If you wish to \"upgrade\" the session's security by asking the user to perform TOTP / WebAuth/ ... you would set this to \"aal2\".
|
342
848
|
# @option opts [String] :return_to The URL to return the browser to after the flow was completed.
|
849
|
+
# @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
|
343
850
|
# @return [SelfServiceLoginFlow]
|
344
851
|
describe 'initialize_self_service_login_flow_for_browsers test' do
|
345
852
|
it 'should work' do
|
@@ -375,7 +882,7 @@ describe 'V0alpha2Api' do
|
|
375
882
|
|
376
883
|
# unit tests for initialize_self_service_recovery_flow_without_browser
|
377
884
|
# Initialize Recovery Flow for APIs, Services, Apps, ...
|
378
|
-
# This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=<flow_id>`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...).
|
885
|
+
# This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=<flow_id>`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery).
|
379
886
|
# @param [Hash] opts the optional parameters
|
380
887
|
# @return [SelfServiceRecoveryFlow]
|
381
888
|
describe 'initialize_self_service_recovery_flow_without_browser test' do
|
@@ -412,6 +919,7 @@ describe 'V0alpha2Api' do
|
|
412
919
|
# This endpoint initializes a browser-based user settings flow. Once initialized, the browser will be redirected to `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. If no valid Ory Kratos Session Cookie is included in the request, a login flow will be initialized. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. If no valid user session was set, the browser will be redirected to the login endpoint. If this endpoint is called via an AJAX request, the response contains the settings flow without any redirects or a 401 forbidden error if no valid session was set. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor (happens automatically for server-side browser flows) or change the configuration. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
413
920
|
# @param [Hash] opts the optional parameters
|
414
921
|
# @option opts [String] :return_to The URL to return the browser to after the flow was completed.
|
922
|
+
# @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.
|
415
923
|
# @return [SelfServiceSettingsFlow]
|
416
924
|
describe 'initialize_self_service_settings_flow_for_browsers test' do
|
417
925
|
it 'should work' do
|
@@ -467,7 +975,7 @@ describe 'V0alpha2Api' do
|
|
467
975
|
end
|
468
976
|
|
469
977
|
# unit tests for list_project_api_keys
|
470
|
-
#
|
978
|
+
# List a Project's API Tokens
|
471
979
|
# A list of all the project's API tokens.
|
472
980
|
# @param project The Project ID or Project slug
|
473
981
|
# @param [Hash] opts the optional parameters
|
@@ -479,7 +987,7 @@ describe 'V0alpha2Api' do
|
|
479
987
|
end
|
480
988
|
|
481
989
|
# unit tests for list_projects
|
482
|
-
#
|
990
|
+
# List All Projects
|
483
991
|
# Lists all projects you have access to.
|
484
992
|
# @param [Hash] opts the optional parameters
|
485
993
|
# @return [Array<ProjectMetadata>]
|
@@ -517,8 +1025,46 @@ describe 'V0alpha2Api' do
|
|
517
1025
|
end
|
518
1026
|
end
|
519
1027
|
|
1028
|
+
# unit tests for perform_o_auth2_authorization_flow
|
1029
|
+
# The OAuth 2.0 Authorize Endpoint
|
1030
|
+
# This endpoint is not documented here because you should never use your own implementation to perform OAuth2 flows. OAuth2 is a very popular protocol and a library for your programming language will exists. To learn more about this flow please refer to the specification: https://tools.ietf.org/html/rfc6749
|
1031
|
+
# @param [Hash] opts the optional parameters
|
1032
|
+
# @return [OAuth2ApiError]
|
1033
|
+
describe 'perform_o_auth2_authorization_flow test' do
|
1034
|
+
it 'should work' do
|
1035
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1036
|
+
end
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
# unit tests for perform_o_auth2_token_flow
|
1040
|
+
# The OAuth 2.0 Token Endpoint
|
1041
|
+
# The client makes a request to the token endpoint by sending the following parameters using the \"application/x-www-form-urlencoded\" HTTP request entity-body. > Do not implement a client for this endpoint yourself. Use a library. There are many libraries > available for any programming language. You can find a list of libraries here: https://oauth.net/code/ > > Do note that Hydra SDK does not implement this endpoint properly. Use one of the libraries listed above
|
1042
|
+
# @param grant_type
|
1043
|
+
# @param [Hash] opts the optional parameters
|
1044
|
+
# @option opts [String] :client_id
|
1045
|
+
# @option opts [String] :code
|
1046
|
+
# @option opts [String] :redirect_uri
|
1047
|
+
# @option opts [String] :refresh_token
|
1048
|
+
# @return [OAuth2TokenResponse]
|
1049
|
+
describe 'perform_o_auth2_token_flow test' do
|
1050
|
+
it 'should work' do
|
1051
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1052
|
+
end
|
1053
|
+
end
|
1054
|
+
|
1055
|
+
# unit tests for perform_oidc_front_or_back_channel_logout
|
1056
|
+
# OpenID Connect Front- or Back-channel Enabled Logout
|
1057
|
+
# This endpoint initiates and completes user logout at Ory Hydra and initiates OpenID Connect Front- / Back-channel logout: https://openid.net/specs/openid-connect-frontchannel-1_0.html https://openid.net/specs/openid-connect-backchannel-1_0.html Back-channel logout is performed asynchronously and does not affect logout flow.
|
1058
|
+
# @param [Hash] opts the optional parameters
|
1059
|
+
# @return [nil]
|
1060
|
+
describe 'perform_oidc_front_or_back_channel_logout test' do
|
1061
|
+
it 'should work' do
|
1062
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1063
|
+
end
|
1064
|
+
end
|
1065
|
+
|
520
1066
|
# unit tests for purge_project
|
521
|
-
#
|
1067
|
+
# Irrecoverably Purge a Project
|
522
1068
|
# !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. !! Use with extreme caution !!
|
523
1069
|
# @param project_id Project ID The project's ID.
|
524
1070
|
# @param [Hash] opts the optional parameters
|
@@ -542,6 +1088,18 @@ describe 'V0alpha2Api' do
|
|
542
1088
|
end
|
543
1089
|
end
|
544
1090
|
|
1091
|
+
# unit tests for revoke_o_auth2_token
|
1092
|
+
# Revoke an OAuth2 Access or Refresh Token
|
1093
|
+
# Revoking a token (both access and refresh) means that the tokens will be invalid. A revoked access token can no longer be used to make access requests, and a revoked refresh token can no longer be used to refresh an access token. Revoking a refresh token also invalidates the access token that was created with it. A token may only be revoked by the client the token was generated for.
|
1094
|
+
# @param token
|
1095
|
+
# @param [Hash] opts the optional parameters
|
1096
|
+
# @return [nil]
|
1097
|
+
describe 'revoke_o_auth2_token test' do
|
1098
|
+
it 'should work' do
|
1099
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1100
|
+
end
|
1101
|
+
end
|
1102
|
+
|
545
1103
|
# unit tests for revoke_session
|
546
1104
|
# Calling this endpoint invalidates the specified session. The current session cannot be revoked. Session data are not deleted.
|
547
1105
|
# This endpoint is useful for: To forcefully logout the current user from another device or session
|
@@ -652,7 +1210,7 @@ describe 'V0alpha2Api' do
|
|
652
1210
|
end
|
653
1211
|
|
654
1212
|
# unit tests for submit_self_service_verification_flow
|
655
|
-
#
|
1213
|
+
# Complete Verification Flow
|
656
1214
|
# Use this endpoint to complete a verification flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid and a HTTP 303 See Other redirect with a fresh verification flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/*` it returns a HTTP 303 See Other redirect to the Verification UI URL with the Verification Flow ID appended. `sent_email` is the success state after `choose_method` when using the `link` method and allows the user to request another verification email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a verification link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Verification UI URL with a new Verification Flow ID which contains an error message that the verification link was invalid. More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
|
657
1215
|
# @param flow The Verification Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/verification?flow=abcde`).
|
658
1216
|
# @param submit_self_service_verification_flow_body
|
@@ -668,7 +1226,7 @@ describe 'V0alpha2Api' do
|
|
668
1226
|
|
669
1227
|
# unit tests for to_session
|
670
1228
|
# Check Who the Current HTTP Session Belongs To
|
671
|
-
# Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. Additionally when the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cooke or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `session_inactive`: No active session was found in the request (e.g. no Ory Session Cookie / Ory Session Token). `session_aal2_required`: An active session was found but it does not fulfil the Authenticator Assurance Level, implying that the session must (e.g.) authenticate the second factor.
|
1229
|
+
# Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. Additionally when the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! # This endpoint authenticates users by checking if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cooke or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `session_inactive`: No active session was found in the request (e.g. no Ory Session Cookie / Ory Session Token). `session_aal2_required`: An active session was found but it does not fulfil the Authenticator Assurance Level, implying that the session must (e.g.) authenticate the second factor.
|
672
1230
|
# @param [Hash] opts the optional parameters
|
673
1231
|
# @option opts [String] :x_session_token Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`.
|
674
1232
|
# @option opts [String] :cookie Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored.
|
@@ -680,7 +1238,7 @@ describe 'V0alpha2Api' do
|
|
680
1238
|
end
|
681
1239
|
|
682
1240
|
# unit tests for update_project
|
683
|
-
#
|
1241
|
+
# Update an Ory Cloud Project Configuration
|
684
1242
|
# This endpoints allows you to update the Ory Cloud Project configuration for individual services (identity, permission, ...). The configuration is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to Ory Cloud, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed. Be aware that updating any service's configuration will completely override your current configuration for that service!
|
685
1243
|
# @param project_id Project ID The project's ID.
|
686
1244
|
# @param [Hash] opts the optional parameters
|