ory-client 0.0.1.alpha111 → 0.0.1.alpha115
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +16 -5
- data/docs/AdminCreateIdentityBody.md +7 -1
- data/docs/AdminCreateIdentityImportCredentialsOidc.md +18 -0
- data/docs/AdminCreateIdentityImportCredentialsOidcConfig.md +20 -0
- data/docs/AdminCreateIdentityImportCredentialsOidcProvider.md +20 -0
- data/docs/AdminCreateIdentityImportCredentialsPassword.md +18 -0
- data/docs/AdminCreateIdentityImportCredentialsPasswordConfig.md +20 -0
- data/docs/AdminIdentityImportCredentials.md +20 -0
- data/docs/AdminUpdateIdentityBody.md +1 -1
- data/docs/IdentityCredentials.md +3 -1
- data/docs/IdentityCredentialsOidc.md +18 -0
- data/docs/IdentityCredentialsOidcProvider.md +26 -0
- data/docs/IdentityCredentialsPassword.md +18 -0
- data/docs/Pagination.md +1 -1
- data/docs/SessionAuthenticationMethod.md +2 -0
- data/docs/SubmitSelfServiceFlowWithWebAuthnRegistrationMethod.md +20 -0
- data/docs/SubmitSelfServiceLoginFlowBody.md +9 -3
- data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +3 -1
- data/docs/SubmitSelfServiceLoginFlowWithWebAuthnMethodBody.md +2 -0
- data/docs/SubmitSelfServiceRegistrationFlowBody.md +5 -2
- data/docs/SubmitSelfServiceRegistrationFlowWithWebAuthnMethodBody.md +26 -0
- data/docs/SubmitSelfServiceSettingsFlowBody.md +9 -3
- data/docs/V0alpha2Api.md +16 -16
- data/lib/ory-client/api/metadata_api.rb +1 -1
- data/lib/ory-client/api/v0alpha0_api.rb +1 -1
- data/lib/ory-client/api/v0alpha2_api.rb +31 -31
- data/lib/ory-client/api_client.rb +1 -1
- data/lib/ory-client/api_error.rb +1 -1
- data/lib/ory-client/configuration.rb +1 -1
- data/lib/ory-client/models/active_project.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_body.rb +38 -5
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc.rb +218 -0
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_config.rb +230 -0
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_provider.rb +239 -0
- data/lib/ory-client/models/admin_create_identity_import_credentials_password.rb +218 -0
- data/lib/ory-client/models/admin_create_identity_import_credentials_password_config.rb +229 -0
- data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +1 -1
- data/lib/ory-client/models/admin_identity_import_credentials.rb +227 -0
- data/lib/ory-client/models/admin_update_identity_body.rb +6 -1
- data/lib/ory-client/models/api_token.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/create_custom_hostname_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/generic_error.rb +1 -1
- 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/identity.rb +1 -1
- data/lib/ory-client/models/identity_credentials.rb +15 -5
- data/lib/ory-client/models/identity_credentials_oidc.rb +220 -0
- data/lib/ory-client/models/identity_credentials_oidc_provider.rb +254 -0
- data/lib/ory-client/models/identity_credentials_password.rb +219 -0
- data/lib/ory-client/models/identity_credentials_type.rb +3 -1
- data/lib/ory-client/models/identity_preset.rb +1 -1
- data/lib/ory-client/models/identity_schema.rb +1 -1
- data/lib/ory-client/models/identity_schema_location.rb +1 -1
- data/lib/ory-client/models/identity_schema_validation_result.rb +1 -1
- data/lib/ory-client/models/identity_state.rb +1 -1
- data/lib/ory-client/models/inline_object.rb +1 -1
- data/lib/ory-client/models/inline_response200.rb +1 -1
- data/lib/ory-client/models/inline_response2001.rb +1 -1
- data/lib/ory-client/models/inline_response503.rb +1 -1
- 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/json_error.rb +1 -1
- data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
- data/lib/ory-client/models/null_plan.rb +1 -1
- data/lib/ory-client/models/pagination.rb +7 -7
- data/lib/ory-client/models/project.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_revision.rb +1 -1
- data/lib/ory-client/models/project_revision_hook.rb +1 -1
- data/lib/ory-client/models/project_revision_identity_schema.rb +1 -1
- data/lib/ory-client/models/project_revision_third_party_login_provider.rb +1 -1
- data/lib/ory-client/models/project_slug.rb +1 -1
- data/lib/ory-client/models/quota_project_member_seats.rb +1 -1
- data/lib/ory-client/models/recovery_address.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 +1 -1
- data/lib/ory-client/models/self_service_flow_expired_error.rb +1 -1
- data/lib/ory-client/models/self_service_login_flow.rb +1 -1
- data/lib/ory-client/models/self_service_logout_url.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_flow.rb +1 -1
- 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 +1 -1
- data/lib/ory-client/models/self_service_settings_flow.rb +1 -1
- data/lib/ory-client/models/self_service_settings_flow_state.rb +1 -1
- data/lib/ory-client/models/self_service_verification_flow.rb +1 -1
- data/lib/ory-client/models/self_service_verification_flow_state.rb +1 -1
- data/lib/ory-client/models/session.rb +1 -1
- data/lib/ory-client/models/session_authentication_method.rb +13 -4
- data/lib/ory-client/models/session_device.rb +1 -1
- data/lib/ory-client/models/settings_profile_form_config.rb +1 -1
- data/lib/ory-client/models/stripe_customer_response.rb +1 -1
- data/lib/ory-client/models/submit_self_service_flow_with_web_authn_registration_method.rb +229 -0
- data/lib/ory-client/models/submit_self_service_login_flow_body.rb +7 -3
- 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 +18 -3
- 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 +12 -2
- 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 +1 -1
- 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 +5 -3
- 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 +269 -0
- data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +7 -3
- 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/successful_project_config_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/ui_container.rb +1 -1
- data/lib/ory-client/models/ui_node.rb +1 -1
- 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 +1 -1
- 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_project_config_config.rb +1 -1
- data/lib/ory-client/models/update_subscription_payload.rb +1 -1
- data/lib/ory-client/models/verifiable_identity_address.rb +1 -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 +12 -1
- data/ory-client.gemspec +1 -1
- data/spec/api/metadata_api_spec.rb +1 -1
- data/spec/api/v0alpha0_api_spec.rb +1 -1
- data/spec/api/v0alpha2_api_spec.rb +10 -10
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/active_project_spec.rb +1 -1
- data/spec/models/admin_create_identity_body_spec.rb +19 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_config_spec.rb +40 -0
- data/spec/models/admin_create_identity_import_credentials_oidc_provider_spec.rb +40 -0
- data/spec/models/admin_create_identity_import_credentials_oidc_spec.rb +34 -0
- data/spec/models/admin_create_identity_import_credentials_password_config_spec.rb +40 -0
- data/spec/models/admin_create_identity_import_credentials_password_spec.rb +34 -0
- data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +1 -1
- data/spec/models/admin_identity_import_credentials_spec.rb +40 -0
- data/spec/models/admin_update_identity_body_spec.rb +1 -1
- data/spec/models/api_token_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/create_custom_hostname_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/generic_error_spec.rb +1 -1
- data/spec/models/health_not_ready_status_spec.rb +1 -1
- data/spec/models/health_status_spec.rb +1 -1
- data/spec/models/identity_credentials_oidc_provider_spec.rb +58 -0
- data/spec/models/identity_credentials_oidc_spec.rb +34 -0
- data/spec/models/identity_credentials_password_spec.rb +34 -0
- data/spec/models/identity_credentials_spec.rb +7 -1
- data/spec/models/identity_credentials_type_spec.rb +1 -1
- data/spec/models/identity_preset_spec.rb +1 -1
- data/spec/models/identity_schema_location_spec.rb +1 -1
- data/spec/models/identity_schema_spec.rb +1 -1
- data/spec/models/identity_schema_validation_result_spec.rb +1 -1
- data/spec/models/identity_spec.rb +1 -1
- data/spec/models/identity_state_spec.rb +1 -1
- data/spec/models/inline_object_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/inline_response503_spec.rb +1 -1
- 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/json_error_spec.rb +1 -1
- data/spec/models/needs_privileged_session_error_spec.rb +1 -1
- data/spec/models/null_plan_spec.rb +1 -1
- data/spec/models/pagination_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_revision_hook_spec.rb +1 -1
- data/spec/models/project_revision_identity_schema_spec.rb +1 -1
- data/spec/models/project_revision_spec.rb +1 -1
- data/spec/models/project_revision_third_party_login_provider_spec.rb +1 -1
- data/spec/models/project_slug_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/quota_project_member_seats_spec.rb +1 -1
- data/spec/models/recovery_address_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_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 +8 -2
- data/spec/models/session_device_spec.rb +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/settings_profile_form_config_spec.rb +1 -1
- data/spec/models/stripe_customer_response_spec.rb +1 -1
- data/spec/models/submit_self_service_flow_with_web_authn_registration_method_spec.rb +40 -0
- 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 +7 -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 +7 -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_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 +58 -0
- 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_project_config_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/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 +1 -1
- 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_project_config_config_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/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.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.1/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.1/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.3/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.1/ext/stringio/Makefile +2 -2
- metadata +46 -2
@@ -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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -19,9 +19,11 @@ module OryClient
|
|
19
19
|
# List of class defined in oneOf (OpenAPI v3)
|
20
20
|
def openapi_one_of
|
21
21
|
[
|
22
|
+
:'SubmitSelfServiceLoginFlowWithLookupSecretMethodBody',
|
22
23
|
:'SubmitSelfServiceLoginFlowWithOidcMethodBody',
|
23
24
|
:'SubmitSelfServiceLoginFlowWithPasswordMethodBody',
|
24
|
-
:'SubmitSelfServiceLoginFlowWithTotpMethodBody'
|
25
|
+
:'SubmitSelfServiceLoginFlowWithTotpMethodBody',
|
26
|
+
:'SubmitSelfServiceLoginFlowWithWebAuthnMethodBody'
|
25
27
|
]
|
26
28
|
end
|
27
29
|
|
@@ -33,9 +35,11 @@ module OryClient
|
|
33
35
|
# Discriminator's mapping (OpenAPI v3)
|
34
36
|
def openapi_discriminator_mapping
|
35
37
|
{
|
38
|
+
:'lookup_secret' => :'SubmitSelfServiceLoginFlowWithLookupSecretMethodBody',
|
36
39
|
:'oidc' => :'SubmitSelfServiceLoginFlowWithOidcMethodBody',
|
37
40
|
:'password' => :'SubmitSelfServiceLoginFlowWithPasswordMethodBody',
|
38
|
-
:'totp' => :'SubmitSelfServiceLoginFlowWithTotpMethodBody'
|
41
|
+
:'totp' => :'SubmitSelfServiceLoginFlowWithTotpMethodBody',
|
42
|
+
:'webauthn' => :'SubmitSelfServiceLoginFlowWithWebAuthnMethodBody'
|
39
43
|
}
|
40
44
|
end
|
41
45
|
|
@@ -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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -18,19 +18,23 @@ module OryClient
|
|
18
18
|
# Sending the anti-csrf token is only required for browser login flows.
|
19
19
|
attr_accessor :csrf_token
|
20
20
|
|
21
|
+
# Identifier is the email or username of the user trying to log in.
|
22
|
+
attr_accessor :identifier
|
23
|
+
|
21
24
|
# Method should be set to \"password\" when logging in using the identifier and password strategy.
|
22
25
|
attr_accessor :method
|
23
26
|
|
24
27
|
# The user's password.
|
25
28
|
attr_accessor :password
|
26
29
|
|
27
|
-
# Identifier is the email or username of the user trying to log in.
|
30
|
+
# Identifier is the email or username of the user trying to log in. This field is deprecated!
|
28
31
|
attr_accessor :password_identifier
|
29
32
|
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
34
|
def self.attribute_map
|
32
35
|
{
|
33
36
|
:'csrf_token' => :'csrf_token',
|
37
|
+
:'identifier' => :'identifier',
|
34
38
|
:'method' => :'method',
|
35
39
|
:'password' => :'password',
|
36
40
|
:'password_identifier' => :'password_identifier'
|
@@ -46,6 +50,7 @@ module OryClient
|
|
46
50
|
def self.openapi_types
|
47
51
|
{
|
48
52
|
:'csrf_token' => :'String',
|
53
|
+
:'identifier' => :'String',
|
49
54
|
:'method' => :'String',
|
50
55
|
:'password' => :'String',
|
51
56
|
:'password_identifier' => :'String'
|
@@ -77,6 +82,10 @@ module OryClient
|
|
77
82
|
self.csrf_token = attributes[:'csrf_token']
|
78
83
|
end
|
79
84
|
|
85
|
+
if attributes.key?(:'identifier')
|
86
|
+
self.identifier = attributes[:'identifier']
|
87
|
+
end
|
88
|
+
|
80
89
|
if attributes.key?(:'method')
|
81
90
|
self.method = attributes[:'method']
|
82
91
|
end
|
@@ -94,6 +103,10 @@ module OryClient
|
|
94
103
|
# @return Array for valid properties with the reasons
|
95
104
|
def list_invalid_properties
|
96
105
|
invalid_properties = Array.new
|
106
|
+
if @identifier.nil?
|
107
|
+
invalid_properties.push('invalid value for "identifier", identifier cannot be nil.')
|
108
|
+
end
|
109
|
+
|
97
110
|
if @method.nil?
|
98
111
|
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
99
112
|
end
|
@@ -112,6 +125,7 @@ module OryClient
|
|
112
125
|
# Check to see if the all the properties in the model are valid
|
113
126
|
# @return true if the model is valid
|
114
127
|
def valid?
|
128
|
+
return false if @identifier.nil?
|
115
129
|
return false if @method.nil?
|
116
130
|
return false if @password.nil?
|
117
131
|
return false if @password_identifier.nil?
|
@@ -124,6 +138,7 @@ module OryClient
|
|
124
138
|
return true if self.equal?(o)
|
125
139
|
self.class == o.class &&
|
126
140
|
csrf_token == o.csrf_token &&
|
141
|
+
identifier == o.identifier &&
|
127
142
|
method == o.method &&
|
128
143
|
password == o.password &&
|
129
144
|
password_identifier == o.password_identifier
|
@@ -138,7 +153,7 @@ module OryClient
|
|
138
153
|
# Calculates hash code according to all attributes.
|
139
154
|
# @return [Integer] Hash code
|
140
155
|
def hash
|
141
|
-
[csrf_token, method, password, password_identifier].hash
|
156
|
+
[csrf_token, identifier, method, password, password_identifier].hash
|
142
157
|
end
|
143
158
|
|
144
159
|
# Builds the object from hash
|
@@ -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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -18,6 +18,9 @@ module OryClient
|
|
18
18
|
# Sending the anti-csrf token is only required for browser login flows.
|
19
19
|
attr_accessor :csrf_token
|
20
20
|
|
21
|
+
# Identifier is the email or username of the user trying to log in. This field is only required when using WebAuthn for passwordless login. When using WebAuthn for multi-factor authentication, it is not needed.
|
22
|
+
attr_accessor :identifier
|
23
|
+
|
21
24
|
# Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy.
|
22
25
|
attr_accessor :method
|
23
26
|
|
@@ -28,6 +31,7 @@ module OryClient
|
|
28
31
|
def self.attribute_map
|
29
32
|
{
|
30
33
|
:'csrf_token' => :'csrf_token',
|
34
|
+
:'identifier' => :'identifier',
|
31
35
|
:'method' => :'method',
|
32
36
|
:'webauthn_login' => :'webauthn_login'
|
33
37
|
}
|
@@ -42,6 +46,7 @@ module OryClient
|
|
42
46
|
def self.openapi_types
|
43
47
|
{
|
44
48
|
:'csrf_token' => :'String',
|
49
|
+
:'identifier' => :'String',
|
45
50
|
:'method' => :'String',
|
46
51
|
:'webauthn_login' => :'String'
|
47
52
|
}
|
@@ -72,6 +77,10 @@ module OryClient
|
|
72
77
|
self.csrf_token = attributes[:'csrf_token']
|
73
78
|
end
|
74
79
|
|
80
|
+
if attributes.key?(:'identifier')
|
81
|
+
self.identifier = attributes[:'identifier']
|
82
|
+
end
|
83
|
+
|
75
84
|
if attributes.key?(:'method')
|
76
85
|
self.method = attributes[:'method']
|
77
86
|
end
|
@@ -105,6 +114,7 @@ module OryClient
|
|
105
114
|
return true if self.equal?(o)
|
106
115
|
self.class == o.class &&
|
107
116
|
csrf_token == o.csrf_token &&
|
117
|
+
identifier == o.identifier &&
|
108
118
|
method == o.method &&
|
109
119
|
webauthn_login == o.webauthn_login
|
110
120
|
end
|
@@ -118,7 +128,7 @@ module OryClient
|
|
118
128
|
# Calculates hash code according to all attributes.
|
119
129
|
# @return [Integer] Hash code
|
120
130
|
def hash
|
121
|
-
[csrf_token, method, webauthn_login].hash
|
131
|
+
[csrf_token, identifier, method, webauthn_login].hash
|
122
132
|
end
|
123
133
|
|
124
134
|
# Builds the object from hash
|
@@ -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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -20,7 +20,8 @@ module OryClient
|
|
20
20
|
def openapi_one_of
|
21
21
|
[
|
22
22
|
:'SubmitSelfServiceRegistrationFlowWithOidcMethodBody',
|
23
|
-
:'SubmitSelfServiceRegistrationFlowWithPasswordMethodBody'
|
23
|
+
:'SubmitSelfServiceRegistrationFlowWithPasswordMethodBody',
|
24
|
+
:'SubmitSelfServiceRegistrationFlowWithWebAuthnMethodBody'
|
24
25
|
]
|
25
26
|
end
|
26
27
|
|
@@ -33,7 +34,8 @@ module OryClient
|
|
33
34
|
def openapi_discriminator_mapping
|
34
35
|
{
|
35
36
|
:'oidc' => :'SubmitSelfServiceRegistrationFlowWithOidcMethodBody',
|
36
|
-
:'password' => :'SubmitSelfServiceRegistrationFlowWithPasswordMethodBody'
|
37
|
+
:'password' => :'SubmitSelfServiceRegistrationFlowWithPasswordMethodBody',
|
38
|
+
:'webauthn' => :'SubmitSelfServiceRegistrationFlowWithWebAuthnMethodBody'
|
37
39
|
}
|
38
40
|
end
|
39
41
|
|
@@ -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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb
CHANGED
@@ -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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
data/lib/ory-client/models/submit_self_service_registration_flow_with_web_authn_method_body.rb
ADDED
@@ -0,0 +1,269 @@
|
|
1
|
+
=begin
|
2
|
+
#Ory APIs
|
3
|
+
|
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
|
+
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
|
+
Contact: support@ory.sh
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module OryClient
|
17
|
+
class SubmitSelfServiceRegistrationFlowWithWebAuthnMethodBody
|
18
|
+
# CSRFToken is the anti-CSRF token
|
19
|
+
attr_accessor :csrf_token
|
20
|
+
|
21
|
+
# Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing.
|
22
|
+
attr_accessor :method
|
23
|
+
|
24
|
+
# The identity's traits
|
25
|
+
attr_accessor :traits
|
26
|
+
|
27
|
+
# Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here.
|
28
|
+
attr_accessor :webauthn_register
|
29
|
+
|
30
|
+
# Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added.
|
31
|
+
attr_accessor :webauthn_register_displayname
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'csrf_token' => :'csrf_token',
|
37
|
+
:'method' => :'method',
|
38
|
+
:'traits' => :'traits',
|
39
|
+
:'webauthn_register' => :'webauthn_register',
|
40
|
+
:'webauthn_register_displayname' => :'webauthn_register_displayname'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Returns all the JSON keys this model knows about
|
45
|
+
def self.acceptable_attributes
|
46
|
+
attribute_map.values
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
def self.openapi_types
|
51
|
+
{
|
52
|
+
:'csrf_token' => :'String',
|
53
|
+
:'method' => :'String',
|
54
|
+
:'traits' => :'Object',
|
55
|
+
:'webauthn_register' => :'String',
|
56
|
+
:'webauthn_register_displayname' => :'String'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# List of attributes with nullable: true
|
61
|
+
def self.openapi_nullable
|
62
|
+
Set.new([
|
63
|
+
])
|
64
|
+
end
|
65
|
+
|
66
|
+
# Initializes the object
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
+
def initialize(attributes = {})
|
69
|
+
if (!attributes.is_a?(Hash))
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::SubmitSelfServiceRegistrationFlowWithWebAuthnMethodBody` initialize method"
|
71
|
+
end
|
72
|
+
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::SubmitSelfServiceRegistrationFlowWithWebAuthnMethodBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
|
+
end
|
78
|
+
h[k.to_sym] = v
|
79
|
+
}
|
80
|
+
|
81
|
+
if attributes.key?(:'csrf_token')
|
82
|
+
self.csrf_token = attributes[:'csrf_token']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'method')
|
86
|
+
self.method = attributes[:'method']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'traits')
|
90
|
+
self.traits = attributes[:'traits']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.key?(:'webauthn_register')
|
94
|
+
self.webauthn_register = attributes[:'webauthn_register']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'webauthn_register_displayname')
|
98
|
+
self.webauthn_register_displayname = attributes[:'webauthn_register_displayname']
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
103
|
+
# @return Array for valid properties with the reasons
|
104
|
+
def list_invalid_properties
|
105
|
+
invalid_properties = Array.new
|
106
|
+
if @method.nil?
|
107
|
+
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
108
|
+
end
|
109
|
+
|
110
|
+
if @traits.nil?
|
111
|
+
invalid_properties.push('invalid value for "traits", traits cannot be nil.')
|
112
|
+
end
|
113
|
+
|
114
|
+
invalid_properties
|
115
|
+
end
|
116
|
+
|
117
|
+
# Check to see if the all the properties in the model are valid
|
118
|
+
# @return true if the model is valid
|
119
|
+
def valid?
|
120
|
+
return false if @method.nil?
|
121
|
+
return false if @traits.nil?
|
122
|
+
true
|
123
|
+
end
|
124
|
+
|
125
|
+
# Checks equality by comparing each attribute.
|
126
|
+
# @param [Object] Object to be compared
|
127
|
+
def ==(o)
|
128
|
+
return true if self.equal?(o)
|
129
|
+
self.class == o.class &&
|
130
|
+
csrf_token == o.csrf_token &&
|
131
|
+
method == o.method &&
|
132
|
+
traits == o.traits &&
|
133
|
+
webauthn_register == o.webauthn_register &&
|
134
|
+
webauthn_register_displayname == o.webauthn_register_displayname
|
135
|
+
end
|
136
|
+
|
137
|
+
# @see the `==` method
|
138
|
+
# @param [Object] Object to be compared
|
139
|
+
def eql?(o)
|
140
|
+
self == o
|
141
|
+
end
|
142
|
+
|
143
|
+
# Calculates hash code according to all attributes.
|
144
|
+
# @return [Integer] Hash code
|
145
|
+
def hash
|
146
|
+
[csrf_token, method, traits, webauthn_register, webauthn_register_displayname].hash
|
147
|
+
end
|
148
|
+
|
149
|
+
# Builds the object from hash
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
151
|
+
# @return [Object] Returns the model itself
|
152
|
+
def self.build_from_hash(attributes)
|
153
|
+
new.build_from_hash(attributes)
|
154
|
+
end
|
155
|
+
|
156
|
+
# Builds the object from hash
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
+
# @return [Object] Returns the model itself
|
159
|
+
def build_from_hash(attributes)
|
160
|
+
return nil unless attributes.is_a?(Hash)
|
161
|
+
self.class.openapi_types.each_pair do |key, type|
|
162
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
163
|
+
self.send("#{key}=", nil)
|
164
|
+
elsif type =~ /\AArray<(.*)>/i
|
165
|
+
# check to ensure the input is an array given that the attribute
|
166
|
+
# is documented as an array but the input is not
|
167
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
168
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
169
|
+
end
|
170
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
171
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
self
|
176
|
+
end
|
177
|
+
|
178
|
+
# Deserializes the data based on type
|
179
|
+
# @param string type Data type
|
180
|
+
# @param string value Value to be deserialized
|
181
|
+
# @return [Object] Deserialized data
|
182
|
+
def _deserialize(type, value)
|
183
|
+
case type.to_sym
|
184
|
+
when :Time
|
185
|
+
Time.parse(value)
|
186
|
+
when :Date
|
187
|
+
Date.parse(value)
|
188
|
+
when :String
|
189
|
+
value.to_s
|
190
|
+
when :Integer
|
191
|
+
value.to_i
|
192
|
+
when :Float
|
193
|
+
value.to_f
|
194
|
+
when :Boolean
|
195
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
196
|
+
true
|
197
|
+
else
|
198
|
+
false
|
199
|
+
end
|
200
|
+
when :Object
|
201
|
+
# generic object (usually a Hash), return directly
|
202
|
+
value
|
203
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
204
|
+
inner_type = Regexp.last_match[:inner_type]
|
205
|
+
value.map { |v| _deserialize(inner_type, v) }
|
206
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
207
|
+
k_type = Regexp.last_match[:k_type]
|
208
|
+
v_type = Regexp.last_match[:v_type]
|
209
|
+
{}.tap do |hash|
|
210
|
+
value.each do |k, v|
|
211
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
212
|
+
end
|
213
|
+
end
|
214
|
+
else # model
|
215
|
+
# models (e.g. Pet) or oneOf
|
216
|
+
klass = OryClient.const_get(type)
|
217
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# Returns the string representation of the object
|
222
|
+
# @return [String] String presentation of the object
|
223
|
+
def to_s
|
224
|
+
to_hash.to_s
|
225
|
+
end
|
226
|
+
|
227
|
+
# to_body is an alias to to_hash (backward compatibility)
|
228
|
+
# @return [Hash] Returns the object in the form of hash
|
229
|
+
def to_body
|
230
|
+
to_hash
|
231
|
+
end
|
232
|
+
|
233
|
+
# Returns the object in the form of hash
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
235
|
+
def to_hash
|
236
|
+
hash = {}
|
237
|
+
self.class.attribute_map.each_pair do |attr, param|
|
238
|
+
value = self.send(attr)
|
239
|
+
if value.nil?
|
240
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
241
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
242
|
+
end
|
243
|
+
|
244
|
+
hash[param] = _to_hash(value)
|
245
|
+
end
|
246
|
+
hash
|
247
|
+
end
|
248
|
+
|
249
|
+
# Outputs non-array value in the form of hash
|
250
|
+
# For object, use to_hash. Otherwise, just return the value
|
251
|
+
# @param [Object] value Any valid value
|
252
|
+
# @return [Hash] Returns the value in the form of hash
|
253
|
+
def _to_hash(value)
|
254
|
+
if value.is_a?(Array)
|
255
|
+
value.compact.map { |v| _to_hash(v) }
|
256
|
+
elsif value.is_a?(Hash)
|
257
|
+
{}.tap do |hash|
|
258
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
259
|
+
end
|
260
|
+
elsif value.respond_to? :to_hash
|
261
|
+
value.to_hash
|
262
|
+
else
|
263
|
+
value
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
end
|
268
|
+
|
269
|
+
end
|
@@ -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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -19,10 +19,12 @@ module OryClient
|
|
19
19
|
# List of class defined in oneOf (OpenAPI v3)
|
20
20
|
def openapi_one_of
|
21
21
|
[
|
22
|
+
:'SubmitSelfServiceSettingsFlowWithLookupMethodBody',
|
22
23
|
:'SubmitSelfServiceSettingsFlowWithOidcMethodBody',
|
23
24
|
:'SubmitSelfServiceSettingsFlowWithPasswordMethodBody',
|
24
25
|
:'SubmitSelfServiceSettingsFlowWithProfileMethodBody',
|
25
|
-
:'SubmitSelfServiceSettingsFlowWithTotpMethodBody'
|
26
|
+
:'SubmitSelfServiceSettingsFlowWithTotpMethodBody',
|
27
|
+
:'SubmitSelfServiceSettingsFlowWithWebAuthnMethodBody'
|
26
28
|
]
|
27
29
|
end
|
28
30
|
|
@@ -34,10 +36,12 @@ module OryClient
|
|
34
36
|
# Discriminator's mapping (OpenAPI v3)
|
35
37
|
def openapi_discriminator_mapping
|
36
38
|
{
|
39
|
+
:'lookup_secret' => :'SubmitSelfServiceSettingsFlowWithLookupMethodBody',
|
37
40
|
:'oidc' => :'SubmitSelfServiceSettingsFlowWithOidcMethodBody',
|
38
41
|
:'password' => :'SubmitSelfServiceSettingsFlowWithPasswordMethodBody',
|
39
42
|
:'profile' => :'SubmitSelfServiceSettingsFlowWithProfileMethodBody',
|
40
|
-
:'totp' => :'SubmitSelfServiceSettingsFlowWithTotpMethodBody'
|
43
|
+
:'totp' => :'SubmitSelfServiceSettingsFlowWithTotpMethodBody',
|
44
|
+
:'webauthn' => :'SubmitSelfServiceSettingsFlowWithWebAuthnMethodBody'
|
41
45
|
}
|
42
46
|
end
|
43
47
|
|
@@ -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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.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.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.115
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|