ory-client 1.8.1__py3-none-any.whl → 1.11.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ory_client/__init__.py +279 -10
- ory_client/api/__init__.py +16 -3
- ory_client/api/courier_api.py +576 -287
- ory_client/api/events_api.py +1147 -576
- ory_client/api/frontend_api.py +8736 -4145
- ory_client/api/identity_api.py +5219 -2605
- ory_client/api/jwk_api.py +1881 -939
- ory_client/api/metadata_api.py +245 -376
- ory_client/api/o_auth2_api.py +7763 -3858
- ory_client/api/oidc_api.py +2071 -1034
- ory_client/api/permission_api.py +1675 -776
- ory_client/api/project_api.py +5314 -2638
- ory_client/api/relationship_api.py +1844 -860
- ory_client/api/wellknown_api.py +250 -131
- ory_client/api_client.py +520 -658
- ory_client/api_response.py +21 -0
- ory_client/configuration.py +65 -75
- ory_client/exceptions.py +73 -32
- ory_client/models/__init__.py +266 -291
- ory_client/models/accept_o_auth2_consent_request.py +118 -0
- ory_client/models/accept_o_auth2_consent_request_session.py +113 -0
- ory_client/models/accept_o_auth2_login_request.py +117 -0
- ory_client/models/active_project_in_console.py +101 -0
- ory_client/models/attribute.py +103 -0
- ory_client/models/attribute_filter.py +115 -0
- ory_client/models/attributes_count_datapoint.py +103 -0
- ory_client/models/authenticator_assurance_level.py +40 -0
- ory_client/models/batch_patch_identities_response.py +109 -0
- ory_client/models/check_opl_syntax_result.py +109 -0
- ory_client/models/check_permission_result.py +101 -0
- ory_client/models/cloud_account.py +105 -0
- ory_client/models/consistency_request_parameters.py +111 -0
- ory_client/models/continue_with.py +214 -0
- ory_client/models/continue_with_recovery_ui.py +114 -0
- ory_client/models/continue_with_recovery_ui_flow.py +103 -0
- ory_client/models/continue_with_set_ory_session_token.py +110 -0
- ory_client/models/continue_with_settings_ui.py +114 -0
- ory_client/models/continue_with_settings_ui_flow.py +101 -0
- ory_client/models/continue_with_verification_ui.py +114 -0
- ory_client/models/continue_with_verification_ui_flow.py +105 -0
- ory_client/models/courier_message_status.py +40 -0
- ory_client/models/courier_message_type.py +38 -0
- ory_client/models/create_custom_domain_body.py +109 -0
- ory_client/models/create_event_stream_body.py +112 -0
- ory_client/models/create_identity_body.py +155 -0
- ory_client/models/create_invite_response.py +114 -0
- ory_client/models/create_json_web_key_set.py +105 -0
- ory_client/models/create_project_api_key_request.py +101 -0
- ory_client/models/create_project_body.py +112 -0
- ory_client/models/create_project_branding.py +115 -0
- ory_client/models/create_project_member_invite_body.py +101 -0
- ory_client/models/create_project_normalized_payload.py +685 -0
- ory_client/models/create_recovery_code_for_identity_body.py +114 -0
- ory_client/models/create_recovery_link_for_identity_body.py +114 -0
- ory_client/models/create_relationship_body.py +113 -0
- ory_client/models/create_subscription_body.py +126 -0
- ory_client/models/create_subscription_common.py +124 -0
- ory_client/models/create_verifiable_credential_request_body.py +109 -0
- ory_client/models/create_workspace_member_invite_body.py +101 -0
- ory_client/models/create_workspace_payload.py +101 -0
- ory_client/models/create_workspace_subscription_body.py +124 -0
- ory_client/models/credential_supported_draft00.py +107 -0
- ory_client/models/custom_domain.py +132 -0
- ory_client/models/delete_my_sessions_count.py +101 -0
- ory_client/models/email_template_data.py +107 -0
- ory_client/models/email_template_data_body.py +103 -0
- ory_client/models/error_authenticator_assurance_level_not_satisfied.py +107 -0
- ory_client/models/error_browser_location_change_required.py +107 -0
- ory_client/models/error_flow_replaced.py +107 -0
- ory_client/models/error_generic.py +105 -0
- ory_client/models/error_o_auth2.py +109 -0
- ory_client/models/event_stream.py +112 -0
- ory_client/models/expanded_permission_tree.py +125 -0
- ory_client/models/flow_error.py +108 -0
- ory_client/models/generic_error.py +126 -0
- ory_client/models/generic_error_content.py +109 -0
- ory_client/models/generic_usage.py +103 -0
- ory_client/models/get_attributes_count_response.py +111 -0
- ory_client/models/get_managed_identity_schema_location.py +101 -0
- ory_client/models/get_metrics_event_attributes_response.py +103 -0
- ory_client/models/get_metrics_event_types_response.py +103 -0
- ory_client/models/get_organization_response.py +105 -0
- ory_client/models/get_project_events_body.py +120 -0
- ory_client/models/get_project_events_response.py +115 -0
- ory_client/models/get_project_metrics_response.py +111 -0
- ory_client/models/get_session_activity_response.py +111 -0
- ory_client/models/get_version200_response.py +101 -0
- ory_client/models/health_not_ready_status.py +101 -0
- ory_client/models/health_status.py +101 -0
- ory_client/models/identity.py +187 -0
- ory_client/models/identity_credentials.py +122 -0
- ory_client/models/identity_credentials_code.py +109 -0
- ory_client/models/identity_credentials_oidc.py +109 -0
- ory_client/models/identity_credentials_oidc_provider.py +111 -0
- ory_client/models/identity_credentials_password.py +101 -0
- ory_client/models/identity_patch.py +107 -0
- ory_client/models/identity_patch_response.py +115 -0
- ory_client/models/identity_schema_container.py +103 -0
- ory_client/models/identity_schema_preset.py +103 -0
- ory_client/models/identity_with_credentials.py +111 -0
- ory_client/models/identity_with_credentials_oidc.py +105 -0
- ory_client/models/identity_with_credentials_oidc_config.py +115 -0
- ory_client/models/identity_with_credentials_oidc_config_provider.py +103 -0
- ory_client/models/identity_with_credentials_password.py +105 -0
- ory_client/models/identity_with_credentials_password_config.py +103 -0
- ory_client/models/internal_get_project_branding_body.py +101 -0
- ory_client/models/internal_is_ax_welcome_screen_enabled_for_project_body.py +103 -0
- ory_client/models/internal_is_owner_for_project_by_slug_body.py +114 -0
- ory_client/models/internal_is_owner_for_project_by_slug_response.py +101 -0
- ory_client/models/introspected_o_auth2_token.py +127 -0
- ory_client/models/is_owner_for_project_by_slug.py +103 -0
- ory_client/models/json_patch.py +119 -0
- ory_client/models/json_web_key.py +133 -0
- ory_client/models/json_web_key_set.py +109 -0
- ory_client/models/keto_namespace.py +103 -0
- ory_client/models/list_event_streams.py +109 -0
- ory_client/models/list_my_workspaces_response.py +113 -0
- ory_client/models/list_organizations_response.py +109 -0
- ory_client/models/list_workspace_projects_response.py +113 -0
- ory_client/models/login_flow.py +165 -0
- ory_client/models/login_flow_state.py +39 -0
- ory_client/models/logout_flow.py +103 -0
- ory_client/models/managed_identity_schema.py +120 -0
- ory_client/models/managed_identity_schema_validation_result.py +103 -0
- ory_client/models/member_invite.py +148 -0
- ory_client/models/message.py +141 -0
- ory_client/models/message_dispatch.py +119 -0
- ory_client/models/metrics_datapoint.py +104 -0
- ory_client/models/migration_options.py +117 -0
- ory_client/models/namespace.py +101 -0
- ory_client/models/needs_privileged_session_error.py +107 -0
- ory_client/models/normalized_project.py +171 -0
- ory_client/models/normalized_project_revision.py +674 -0
- ory_client/models/normalized_project_revision_courier_channel.py +145 -0
- ory_client/models/normalized_project_revision_hook.py +140 -0
- ory_client/models/normalized_project_revision_identity_schema.py +133 -0
- ory_client/models/normalized_project_revision_third_party_provider.py +187 -0
- ory_client/models/normalized_project_revision_tokenizer_template.py +133 -0
- ory_client/models/o_auth2_client.py +352 -0
- ory_client/models/o_auth2_client_token_lifespans.py +270 -0
- ory_client/models/o_auth2_consent_request.py +133 -0
- ory_client/models/o_auth2_consent_request_open_id_connect_context.py +109 -0
- ory_client/models/o_auth2_consent_session.py +130 -0
- ory_client/models/o_auth2_consent_session_expires_at.py +110 -0
- ory_client/models/o_auth2_login_request.py +125 -0
- ory_client/models/o_auth2_logout_request.py +115 -0
- ory_client/models/o_auth2_redirect_to.py +101 -0
- ory_client/models/o_auth2_token_exchange.py +111 -0
- ory_client/models/oidc_configuration.py +169 -0
- ory_client/models/oidc_user_info.py +137 -0
- ory_client/models/organization.py +116 -0
- ory_client/models/organization_body.py +103 -0
- ory_client/models/pagination.py +104 -0
- ory_client/models/pagination_headers.py +103 -0
- ory_client/models/parse_error.py +112 -0
- ory_client/models/patch_identities_body.py +109 -0
- ory_client/models/perform_native_logout_body.py +101 -0
- ory_client/models/permissions_on_workpace_response.py +101 -0
- ory_client/models/plan.py +103 -0
- ory_client/models/plan_details.py +128 -0
- ory_client/models/post_check_permission_body.py +113 -0
- ory_client/models/post_check_permission_or_error_body.py +113 -0
- ory_client/models/project.py +148 -0
- ory_client/models/project_api_key.py +126 -0
- ory_client/models/project_branding.py +129 -0
- ory_client/models/project_branding_colors.py +157 -0
- ory_client/models/project_branding_theme.py +182 -0
- ory_client/models/project_cors.py +103 -0
- ory_client/models/project_events_datapoint.py +114 -0
- ory_client/models/project_host.py +107 -0
- ory_client/models/project_member.py +107 -0
- ory_client/models/project_metadata.py +161 -0
- ory_client/models/project_service_identity.py +101 -0
- ory_client/models/project_service_o_auth2.py +101 -0
- ory_client/models/project_service_permission.py +101 -0
- ory_client/models/project_services.py +117 -0
- ory_client/models/quota_usage.py +118 -0
- ory_client/models/recovery_code_for_identity.py +106 -0
- ory_client/models/recovery_flow.py +139 -0
- ory_client/models/recovery_flow_state.py +39 -0
- ory_client/models/recovery_identity_address.py +110 -0
- ory_client/models/recovery_link_for_identity.py +104 -0
- ory_client/models/registration_flow.py +156 -0
- ory_client/models/registration_flow_state.py +39 -0
- ory_client/models/reject_o_auth2_request.py +109 -0
- ory_client/models/relation_query.py +113 -0
- ory_client/models/relationship.py +113 -0
- ory_client/models/relationship_namespaces.py +109 -0
- ory_client/models/relationship_patch.py +117 -0
- ory_client/models/relationships.py +111 -0
- ory_client/models/rfc6749_error_json.py +109 -0
- ory_client/models/schema_patch.py +103 -0
- ory_client/models/self_service_flow_expired_error.py +112 -0
- ory_client/models/session.py +141 -0
- ory_client/models/session_activity_datapoint.py +105 -0
- ory_client/models/session_authentication_method.py +121 -0
- ory_client/models/session_device.py +107 -0
- ory_client/models/set_active_project_in_console_body.py +101 -0
- ory_client/models/set_custom_domain_body.py +109 -0
- ory_client/models/set_event_stream_body.py +112 -0
- ory_client/models/set_project.py +118 -0
- ory_client/models/set_project_branding_theme_body.py +115 -0
- ory_client/models/settings_flow.py +145 -0
- ory_client/models/settings_flow_state.py +38 -0
- ory_client/models/source_position.py +103 -0
- ory_client/models/subject_set.py +105 -0
- ory_client/models/subscription.py +179 -0
- ory_client/models/successful_code_exchange_response.py +107 -0
- ory_client/models/successful_native_login.py +117 -0
- ory_client/models/successful_native_registration.py +123 -0
- ory_client/models/successful_project_update.py +115 -0
- ory_client/models/token_pagination.py +104 -0
- ory_client/models/token_pagination_headers.py +103 -0
- ory_client/models/token_pagination_request_parameters.py +104 -0
- ory_client/models/token_pagination_response_headers.py +103 -0
- ory_client/models/trust_o_auth2_jwt_grant_issuer.py +116 -0
- ory_client/models/trusted_o_auth2_jwt_grant_issuer.py +120 -0
- ory_client/models/trusted_o_auth2_jwt_grant_json_web_key.py +103 -0
- ory_client/models/ui_container.py +123 -0
- ory_client/models/ui_node.py +139 -0
- ory_client/models/ui_node_anchor_attributes.py +118 -0
- ory_client/models/ui_node_attributes.py +238 -0
- ory_client/models/ui_node_image_attributes.py +116 -0
- ory_client/models/ui_node_input_attributes.py +154 -0
- ory_client/models/ui_node_meta.py +105 -0
- ory_client/models/ui_node_script_attributes.py +124 -0
- ory_client/models/ui_node_text_attributes.py +116 -0
- ory_client/models/ui_text.py +114 -0
- ory_client/models/update_identity_body.py +132 -0
- ory_client/models/update_login_flow_body.py +286 -0
- ory_client/models/update_login_flow_with_code_method.py +111 -0
- ory_client/models/update_login_flow_with_lookup_secret_method.py +105 -0
- ory_client/models/update_login_flow_with_oidc_method.py +115 -0
- ory_client/models/update_login_flow_with_passkey_method.py +105 -0
- ory_client/models/update_login_flow_with_password_method.py +111 -0
- ory_client/models/update_login_flow_with_totp_method.py +107 -0
- ory_client/models/update_login_flow_with_web_authn_method.py +109 -0
- ory_client/models/update_recovery_flow_body.py +166 -0
- ory_client/models/update_recovery_flow_with_code_method.py +116 -0
- ory_client/models/update_recovery_flow_with_link_method.py +114 -0
- ory_client/models/update_registration_flow_body.py +238 -0
- ory_client/models/update_registration_flow_with_code_method.py +111 -0
- ory_client/models/update_registration_flow_with_oidc_method.py +115 -0
- ory_client/models/update_registration_flow_with_passkey_method.py +109 -0
- ory_client/models/update_registration_flow_with_password_method.py +109 -0
- ory_client/models/update_registration_flow_with_profile_method.py +109 -0
- ory_client/models/update_registration_flow_with_web_authn_method.py +111 -0
- ory_client/models/update_settings_flow_body.py +286 -0
- ory_client/models/update_settings_flow_with_lookup_method.py +113 -0
- ory_client/models/update_settings_flow_with_oidc_method.py +113 -0
- ory_client/models/update_settings_flow_with_passkey_method.py +107 -0
- ory_client/models/update_settings_flow_with_password_method.py +107 -0
- ory_client/models/update_settings_flow_with_profile_method.py +107 -0
- ory_client/models/update_settings_flow_with_totp_method.py +109 -0
- ory_client/models/update_settings_flow_with_web_authn_method.py +111 -0
- ory_client/models/update_subscription_body.py +112 -0
- ory_client/models/update_verification_flow_body.py +166 -0
- ory_client/models/update_verification_flow_with_code_method.py +116 -0
- ory_client/models/update_verification_flow_with_link_method.py +114 -0
- ory_client/models/update_workspace_payload.py +101 -0
- ory_client/models/usage.py +105 -0
- ory_client/models/verifiable_credential_priming_response.py +115 -0
- ory_client/models/verifiable_credential_proof.py +103 -0
- ory_client/models/verifiable_credential_response.py +103 -0
- ory_client/models/verifiable_identity_address.py +123 -0
- ory_client/models/verification_flow.py +129 -0
- ory_client/models/verification_flow_state.py +39 -0
- ory_client/models/version.py +101 -0
- ory_client/models/warning.py +103 -0
- ory_client/models/workspace.py +115 -0
- ory_client/models/workspace_meta.py +122 -0
- ory_client/py.typed +0 -0
- ory_client/rest.py +139 -236
- {ory_client-1.8.1.dist-info → ory_client-1.11.6.dist-info}/METADATA +6 -4
- ory_client-1.11.6.dist-info/RECORD +278 -0
- ory_client/apis/__init__.py +0 -28
- ory_client/model/__init__.py +0 -5
- ory_client/model/accept_o_auth2_consent_request.py +0 -296
- ory_client/model/accept_o_auth2_consent_request_session.py +0 -268
- ory_client/model/accept_o_auth2_login_request.py +0 -308
- ory_client/model/active_project_in_console.py +0 -264
- ory_client/model/attribute.py +0 -268
- ory_client/model/attribute_filter.py +0 -282
- ory_client/model/attributes_count_datapoint.py +0 -276
- ory_client/model/authenticator_assurance_level.py +0 -293
- ory_client/model/batch_patch_identities_response.py +0 -270
- ory_client/model/check_opl_syntax_result.py +0 -270
- ory_client/model/check_permission_result.py +0 -270
- ory_client/model/cloud_account.py +0 -282
- ory_client/model/consistency_request_parameters.py +0 -269
- ory_client/model/continue_with.py +0 -356
- ory_client/model/continue_with_recovery_ui.py +0 -287
- ory_client/model/continue_with_recovery_ui_flow.py +0 -274
- ory_client/model/continue_with_set_ory_session_token.py +0 -281
- ory_client/model/continue_with_settings_ui.py +0 -287
- ory_client/model/continue_with_settings_ui_flow.py +0 -270
- ory_client/model/continue_with_verification_ui.py +0 -287
- ory_client/model/continue_with_verification_ui_flow.py +0 -280
- ory_client/model/courier_message_status.py +0 -293
- ory_client/model/courier_message_type.py +0 -291
- ory_client/model/create_custom_domain_body.py +0 -280
- ory_client/model/create_event_stream_body.py +0 -287
- ory_client/model/create_identity_body.py +0 -314
- ory_client/model/create_invite_response.py +0 -282
- ory_client/model/create_json_web_key_set.py +0 -282
- ory_client/model/create_member_invite_response.py +0 -287
- ory_client/model/create_project_api_key_request.py +0 -270
- ory_client/model/create_project_body.py +0 -284
- ory_client/model/create_project_branding.py +0 -290
- ory_client/model/create_project_member_invite_body.py +0 -264
- ory_client/model/create_project_normalized_payload.py +0 -1115
- ory_client/model/create_recovery_code_for_identity_body.py +0 -279
- ory_client/model/create_recovery_link_for_identity_body.py +0 -279
- ory_client/model/create_relationship_body.py +0 -286
- ory_client/model/create_subscription_body.py +0 -298
- ory_client/model/create_subscription_common.py +0 -292
- ory_client/model/create_verifiable_credential_request_body.py +0 -278
- ory_client/model/create_workspace_member_invite_body.py +0 -264
- ory_client/model/create_workspace_payload.py +0 -270
- ory_client/model/create_workspace_subscription_body.py +0 -292
- ory_client/model/credential_supported_draft00.py +0 -276
- ory_client/model/custom_domain.py +0 -334
- ory_client/model/delete_my_sessions_count.py +0 -264
- ory_client/model/email_template_data.py +0 -282
- ory_client/model/email_template_data_body.py +0 -276
- ory_client/model/error_authenticator_assurance_level_not_satisfied.py +0 -274
- ory_client/model/error_browser_location_change_required.py +0 -274
- ory_client/model/error_flow_replaced.py +0 -274
- ory_client/model/error_generic.py +0 -276
- ory_client/model/error_o_auth2.py +0 -280
- ory_client/model/event_stream.py +0 -284
- ory_client/model/expanded_permission_tree.py +0 -294
- ory_client/model/flow_error.py +0 -282
- ory_client/model/generic_error.py +0 -308
- ory_client/model/generic_error_content.py +0 -280
- ory_client/model/generic_usage.py +0 -276
- ory_client/model/get_attributes_count_response.py +0 -273
- ory_client/model/get_managed_identity_schema_location.py +0 -264
- ory_client/model/get_metrics_event_attributes_response.py +0 -267
- ory_client/model/get_metrics_event_types_response.py +0 -267
- ory_client/model/get_organization_response.py +0 -276
- ory_client/model/get_project_events_body.py +0 -298
- ory_client/model/get_project_events_response.py +0 -278
- ory_client/model/get_project_metrics_response.py +0 -273
- ory_client/model/get_session_activity_response.py +0 -273
- ory_client/model/get_version200_response.py +0 -270
- ory_client/model/health_not_ready_status.py +0 -264
- ory_client/model/health_status.py +0 -264
- ory_client/model/identity.py +0 -342
- ory_client/model/identity_credentials.py +0 -294
- ory_client/model/identity_credentials_code.py +0 -268
- ory_client/model/identity_credentials_oidc.py +0 -270
- ory_client/model/identity_credentials_oidc_provider.py +0 -284
- ory_client/model/identity_credentials_password.py +0 -264
- ory_client/model/identity_patch.py +0 -274
- ory_client/model/identity_patch_response.py +0 -275
- ory_client/model/identity_schema_container.py +0 -268
- ory_client/model/identity_schema_preset.py +0 -276
- ory_client/model/identity_schema_presets.py +0 -292
- ory_client/model/identity_schemas.py +0 -292
- ory_client/model/identity_with_credentials.py +0 -276
- ory_client/model/identity_with_credentials_oidc.py +0 -270
- ory_client/model/identity_with_credentials_oidc_config.py +0 -276
- ory_client/model/identity_with_credentials_oidc_config_provider.py +0 -276
- ory_client/model/identity_with_credentials_password.py +0 -270
- ory_client/model/identity_with_credentials_password_config.py +0 -268
- ory_client/model/internal_get_project_branding_body.py +0 -264
- ory_client/model/internal_is_ax_welcome_screen_enabled_for_project_body.py +0 -276
- ory_client/model/internal_is_owner_for_project_by_slug_body.py +0 -290
- ory_client/model/internal_is_owner_for_project_by_slug_response.py +0 -270
- ory_client/model/introspected_o_auth2_token.py +0 -322
- ory_client/model/is_owner_for_project_by_slug.py +0 -276
- ory_client/model/is_ready200_response.py +0 -270
- ory_client/model/is_ready503_response.py +0 -270
- ory_client/model/json_patch.py +0 -292
- ory_client/model/json_patch_document.py +0 -292
- ory_client/model/json_web_key.py +0 -340
- ory_client/model/json_web_key_set.py +0 -270
- ory_client/model/keto_namespace.py +0 -268
- ory_client/model/keto_namespaces.py +0 -292
- ory_client/model/list_custom_domains.py +0 -292
- ory_client/model/list_event_streams.py +0 -270
- ory_client/model/list_my_workspaces_response.py +0 -288
- ory_client/model/list_organizations_response.py +0 -276
- ory_client/model/list_workspace_projects_response.py +0 -288
- ory_client/model/login_flow.py +0 -370
- ory_client/model/login_flow_state.py +0 -292
- ory_client/model/logout_flow.py +0 -276
- ory_client/model/managed_identity_schema.py +0 -300
- ory_client/model/managed_identity_schema_validation_result.py +0 -268
- ory_client/model/managed_identity_schemas.py +0 -292
- ory_client/model/member_invite.py +0 -321
- ory_client/model/member_invites.py +0 -292
- ory_client/model/message.py +0 -355
- ory_client/model/message_dispatch.py +0 -302
- ory_client/model/metrics_datapoint.py +0 -276
- ory_client/model/migration_options.py +0 -284
- ory_client/model/namespace.py +0 -264
- ory_client/model/needs_privileged_session_error.py +0 -280
- ory_client/model/normalized_project.py +0 -337
- ory_client/model/normalized_project_revision.py +0 -1101
- ory_client/model/normalized_project_revision_courier_channel.py +0 -328
- ory_client/model/normalized_project_revision_hook.py +0 -342
- ory_client/model/normalized_project_revision_identity_schema.py +0 -308
- ory_client/model/normalized_project_revision_identity_schemas.py +0 -292
- ory_client/model/normalized_project_revision_third_party_provider.py +0 -368
- ory_client/model/normalized_project_revision_tokenizer_template.py +0 -300
- ory_client/model/normalized_project_revision_tokenizer_templates.py +0 -292
- ory_client/model/normalized_projects.py +0 -292
- ory_client/model/null_duration.py +0 -292
- ory_client/model/o_auth2_client.py +0 -460
- ory_client/model/o_auth2_client_token_lifespans.py +0 -306
- ory_client/model/o_auth2_consent_request.py +0 -328
- ory_client/model/o_auth2_consent_request_open_id_connect_context.py +0 -280
- ory_client/model/o_auth2_consent_session.py +0 -308
- ory_client/model/o_auth2_consent_session_expires_at.py +0 -280
- ory_client/model/o_auth2_consent_sessions.py +0 -292
- ory_client/model/o_auth2_login_request.py +0 -320
- ory_client/model/o_auth2_logout_request.py +0 -290
- ory_client/model/o_auth2_redirect_to.py +0 -270
- ory_client/model/o_auth2_token_exchange.py +0 -284
- ory_client/model/oidc_configuration.py +0 -412
- ory_client/model/oidc_user_info.py +0 -336
- ory_client/model/organization.py +0 -302
- ory_client/model/organization_body.py +0 -268
- ory_client/model/pagination.py +0 -274
- ory_client/model/pagination_headers.py +0 -268
- ory_client/model/parse_error.py +0 -278
- ory_client/model/patch_identities_body.py +0 -270
- ory_client/model/perform_native_logout_body.py +0 -270
- ory_client/model/permissions_on_project.py +0 -260
- ory_client/model/permissions_on_workpace_response.py +0 -264
- ory_client/model/plan.py +0 -276
- ory_client/model/plan_details.py +0 -312
- ory_client/model/plan_features.py +0 -266
- ory_client/model/plans.py +0 -287
- ory_client/model/post_check_permission_body.py +0 -286
- ory_client/model/post_check_permission_or_error_body.py +0 -286
- ory_client/model/pricing.py +0 -292
- ory_client/model/project.py +0 -319
- ory_client/model/project_api_key.py +0 -298
- ory_client/model/project_api_keys.py +0 -292
- ory_client/model/project_branding.py +0 -303
- ory_client/model/project_branding_colors.py +0 -376
- ory_client/model/project_branding_theme.py +0 -421
- ory_client/model/project_branding_themes.py +0 -292
- ory_client/model/project_cors.py +0 -268
- ory_client/model/project_events_datapoint.py +0 -288
- ory_client/model/project_host.py +0 -281
- ory_client/model/project_member.py +0 -288
- ory_client/model/project_members.py +0 -292
- ory_client/model/project_metadata.py +0 -337
- ory_client/model/project_metadata_list.py +0 -292
- ory_client/model/project_revision_hooks.py +0 -292
- ory_client/model/project_revision_identity_schemas.py +0 -292
- ory_client/model/project_revision_third_party_login_providers.py +0 -292
- ory_client/model/project_revisions.py +0 -292
- ory_client/model/project_service_identity.py +0 -270
- ory_client/model/project_service_o_auth2.py +0 -270
- ory_client/model/project_service_permission.py +0 -270
- ory_client/model/project_services.py +0 -282
- ory_client/model/projects.py +0 -292
- ory_client/model/quota_usage.py +0 -326
- ory_client/model/recovery_code_for_identity.py +0 -280
- ory_client/model/recovery_flow.py +0 -330
- ory_client/model/recovery_flow_state.py +0 -292
- ory_client/model/recovery_identity_address.py +0 -290
- ory_client/model/recovery_link_for_identity.py +0 -274
- ory_client/model/registration_flow.py +0 -352
- ory_client/model/registration_flow_state.py +0 -292
- ory_client/model/reject_o_auth2_request.py +0 -280
- ory_client/model/relation_query.py +0 -286
- ory_client/model/relationship.py +0 -296
- ory_client/model/relationship_namespaces.py +0 -270
- ory_client/model/relationship_patch.py +0 -278
- ory_client/model/relationships.py +0 -274
- ory_client/model/revision_courier_channels.py +0 -292
- ory_client/model/rfc6749_error_json.py +0 -280
- ory_client/model/schema_patch.py +0 -276
- ory_client/model/self_service_flow_expired_error.py +0 -282
- ory_client/model/session.py +0 -318
- ory_client/model/session_activity_datapoint.py +0 -282
- ory_client/model/session_authentication_method.py +0 -297
- ory_client/model/session_authentication_methods.py +0 -292
- ory_client/model/session_device.py +0 -282
- ory_client/model/set_active_project_in_console_body.py +0 -270
- ory_client/model/set_custom_domain_body.py +0 -280
- ory_client/model/set_event_stream_body.py +0 -287
- ory_client/model/set_project.py +0 -296
- ory_client/model/set_project_branding_theme_body.py +0 -290
- ory_client/model/settings_flow.py +0 -338
- ory_client/model/settings_flow_state.py +0 -291
- ory_client/model/source_position.py +0 -268
- ory_client/model/string_slice_json_format.py +0 -287
- ory_client/model/subject_set.py +0 -282
- ory_client/model/subscription.py +0 -350
- ory_client/model/successful_code_exchange_response.py +0 -280
- ory_client/model/successful_native_login.py +0 -280
- ory_client/model/successful_native_registration.py +0 -292
- ory_client/model/successful_project_update.py +0 -284
- ory_client/model/token_pagination.py +0 -274
- ory_client/model/token_pagination_headers.py +0 -268
- ory_client/model/token_pagination_request_parameters.py +0 -274
- ory_client/model/token_pagination_response_headers.py +0 -268
- ory_client/model/trust_o_auth2_jwt_grant_issuer.py +0 -302
- ory_client/model/trusted_o_auth2_jwt_grant_issuer.py +0 -298
- ory_client/model/trusted_o_auth2_jwt_grant_issuers.py +0 -292
- ory_client/model/trusted_o_auth2_jwt_grant_json_web_key.py +0 -268
- ory_client/model/ui_container.py +0 -294
- ory_client/model/ui_node.py +0 -322
- ory_client/model/ui_node_anchor_attributes.py +0 -294
- ory_client/model/ui_node_attributes.py +0 -440
- ory_client/model/ui_node_image_attributes.py +0 -294
- ory_client/model/ui_node_input_attributes.py +0 -340
- ory_client/model/ui_node_meta.py +0 -270
- ory_client/model/ui_node_script_attributes.py +0 -318
- ory_client/model/ui_node_text_attributes.py +0 -288
- ory_client/model/ui_nodes.py +0 -292
- ory_client/model/ui_text.py +0 -291
- ory_client/model/ui_texts.py +0 -292
- ory_client/model/update_identity_body.py +0 -304
- ory_client/model/update_login_flow_body.py +0 -411
- ory_client/model/update_login_flow_with_code_method.py +0 -292
- ory_client/model/update_login_flow_with_lookup_secret_method.py +0 -280
- ory_client/model/update_login_flow_with_oidc_method.py +0 -300
- ory_client/model/update_login_flow_with_password_method.py +0 -294
- ory_client/model/update_login_flow_with_totp_method.py +0 -284
- ory_client/model/update_login_flow_with_web_authn_method.py +0 -288
- ory_client/model/update_recovery_flow_body.py +0 -351
- ory_client/model/update_recovery_flow_with_code_method.py +0 -290
- ory_client/model/update_recovery_flow_with_link_method.py +0 -288
- ory_client/model/update_registration_flow_body.py +0 -389
- ory_client/model/update_registration_flow_with_code_method.py +0 -292
- ory_client/model/update_registration_flow_with_oidc_method.py +0 -300
- ory_client/model/update_registration_flow_with_password_method.py +0 -290
- ory_client/model/update_registration_flow_with_web_authn_method.py +0 -292
- ory_client/model/update_settings_flow_body.py +0 -419
- ory_client/model/update_settings_flow_with_lookup_method.py +0 -294
- ory_client/model/update_settings_flow_with_oidc_method.py +0 -294
- ory_client/model/update_settings_flow_with_password_method.py +0 -284
- ory_client/model/update_settings_flow_with_profile_method.py +0 -284
- ory_client/model/update_settings_flow_with_totp_method.py +0 -286
- ory_client/model/update_settings_flow_with_web_authn_method.py +0 -290
- ory_client/model/update_subscription_body.py +0 -284
- ory_client/model/update_verification_flow_body.py +0 -351
- ory_client/model/update_verification_flow_with_code_method.py +0 -290
- ory_client/model/update_verification_flow_with_link_method.py +0 -288
- ory_client/model/update_workspace_payload.py +0 -270
- ory_client/model/usage.py +0 -270
- ory_client/model/verifiable_credential_priming_response.py +0 -292
- ory_client/model/verifiable_credential_proof.py +0 -268
- ory_client/model/verifiable_credential_response.py +0 -268
- ory_client/model/verifiable_identity_address.py +0 -308
- ory_client/model/verification_flow.py +0 -318
- ory_client/model/verification_flow_state.py +0 -292
- ory_client/model/version.py +0 -264
- ory_client/model/warning.py +0 -268
- ory_client/model/workspace.py +0 -292
- ory_client/model/workspace_meta.py +0 -296
- ory_client/model/workspaces.py +0 -292
- ory_client/model_utils.py +0 -2059
- ory_client-1.8.1.dist-info/RECORD +0 -310
- {ory_client-1.8.1.dist-info → ory_client-1.11.6.dist-info}/LICENSE +0 -0
- {ory_client-1.8.1.dist-info → ory_client-1.11.6.dist-info}/WHEEL +0 -0
- {ory_client-1.8.1.dist-info → ory_client-1.11.6.dist-info}/top_level.txt +0 -0
ory_client/api/jwk_api.py
CHANGED
@@ -1,1035 +1,1977 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
1
3
|
"""
|
2
4
|
Ory APIs
|
3
5
|
|
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.
|
6
|
+
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
7
|
|
6
|
-
The version of the OpenAPI document: v1.
|
8
|
+
The version of the OpenAPI document: v1.11.6
|
7
9
|
Contact: support@ory.sh
|
8
|
-
Generated by
|
9
|
-
"""
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
11
|
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
11
14
|
|
12
|
-
import
|
13
|
-
import
|
15
|
+
import warnings
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
18
|
+
from typing_extensions import Annotated
|
14
19
|
|
15
|
-
from
|
16
|
-
from
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
file_type,
|
22
|
-
none_type,
|
23
|
-
validate_and_convert_types
|
24
|
-
)
|
25
|
-
from ory_client.model.create_json_web_key_set import CreateJsonWebKeySet
|
26
|
-
from ory_client.model.error_o_auth2 import ErrorOAuth2
|
27
|
-
from ory_client.model.json_web_key import JsonWebKey
|
28
|
-
from ory_client.model.json_web_key_set import JsonWebKeySet
|
20
|
+
from pydantic import Field, StrictStr
|
21
|
+
from typing import Optional
|
22
|
+
from typing_extensions import Annotated
|
23
|
+
from ory_client.models.create_json_web_key_set import CreateJsonWebKeySet
|
24
|
+
from ory_client.models.json_web_key import JsonWebKey
|
25
|
+
from ory_client.models.json_web_key_set import JsonWebKeySet
|
29
26
|
|
27
|
+
from ory_client.api_client import ApiClient, RequestSerialized
|
28
|
+
from ory_client.api_response import ApiResponse
|
29
|
+
from ory_client.rest import RESTResponseType
|
30
30
|
|
31
|
-
|
31
|
+
|
32
|
+
class JwkApi:
|
32
33
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
33
34
|
Ref: https://openapi-generator.tech
|
34
35
|
|
35
36
|
Do not edit the class manually.
|
36
37
|
"""
|
37
38
|
|
38
|
-
def __init__(self, api_client=None):
|
39
|
+
def __init__(self, api_client=None) -> None:
|
39
40
|
if api_client is None:
|
40
|
-
api_client = ApiClient()
|
41
|
+
api_client = ApiClient.get_default()
|
41
42
|
self.api_client = api_client
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
43
|
+
|
44
|
+
|
45
|
+
@validate_call
|
46
|
+
def create_json_web_key_set(
|
47
|
+
self,
|
48
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
|
49
|
+
create_json_web_key_set: CreateJsonWebKeySet,
|
50
|
+
_request_timeout: Union[
|
51
|
+
None,
|
52
|
+
Annotated[StrictFloat, Field(gt=0)],
|
53
|
+
Tuple[
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
55
|
+
Annotated[StrictFloat, Field(gt=0)]
|
56
|
+
]
|
57
|
+
] = None,
|
58
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
59
|
+
_content_type: Optional[StrictStr] = None,
|
60
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
61
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
62
|
+
) -> JsonWebKeySet:
|
63
|
+
"""Create JSON Web Key
|
64
|
+
|
65
|
+
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.
|
66
|
+
|
67
|
+
:param set: The JSON Web Key Set ID (required)
|
68
|
+
:type set: str
|
69
|
+
:param create_json_web_key_set: (required)
|
70
|
+
:type create_json_web_key_set: CreateJsonWebKeySet
|
71
|
+
:param _request_timeout: timeout setting for this request. If one
|
72
|
+
number provided, it will be total request
|
73
|
+
timeout. It can also be a pair (tuple) of
|
74
|
+
(connection, read) timeouts.
|
75
|
+
:type _request_timeout: int, tuple(int, int), optional
|
76
|
+
:param _request_auth: set to override the auth_settings for an a single
|
77
|
+
request; this effectively ignores the
|
78
|
+
authentication in the spec for a single request.
|
79
|
+
:type _request_auth: dict, optional
|
80
|
+
:param _content_type: force content-type for the request.
|
81
|
+
:type _content_type: str, Optional
|
82
|
+
:param _headers: set to override the headers for a single
|
83
|
+
request; this effectively ignores the headers
|
84
|
+
in the spec for a single request.
|
85
|
+
:type _headers: dict, optional
|
86
|
+
:param _host_index: set to override the host_index for a single
|
87
|
+
request; this effectively ignores the host_index
|
88
|
+
in the spec for a single request.
|
89
|
+
:type _host_index: int, optional
|
90
|
+
:return: Returns the result object.
|
91
|
+
""" # noqa: E501
|
92
|
+
|
93
|
+
_param = self._create_json_web_key_set_serialize(
|
94
|
+
set=set,
|
95
|
+
create_json_web_key_set=create_json_web_key_set,
|
96
|
+
_request_auth=_request_auth,
|
97
|
+
_content_type=_content_type,
|
98
|
+
_headers=_headers,
|
99
|
+
_host_index=_host_index
|
99
100
|
)
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
'operation_id': 'delete_json_web_key',
|
108
|
-
'http_method': 'DELETE',
|
109
|
-
'servers': None,
|
110
|
-
},
|
111
|
-
params_map={
|
112
|
-
'all': [
|
113
|
-
'set',
|
114
|
-
'kid',
|
115
|
-
],
|
116
|
-
'required': [
|
117
|
-
'set',
|
118
|
-
'kid',
|
119
|
-
],
|
120
|
-
'nullable': [
|
121
|
-
],
|
122
|
-
'enum': [
|
123
|
-
],
|
124
|
-
'validation': [
|
125
|
-
]
|
126
|
-
},
|
127
|
-
root_map={
|
128
|
-
'validations': {
|
129
|
-
},
|
130
|
-
'allowed_values': {
|
131
|
-
},
|
132
|
-
'openapi_types': {
|
133
|
-
'set':
|
134
|
-
(str,),
|
135
|
-
'kid':
|
136
|
-
(str,),
|
137
|
-
},
|
138
|
-
'attribute_map': {
|
139
|
-
'set': 'set',
|
140
|
-
'kid': 'kid',
|
141
|
-
},
|
142
|
-
'location_map': {
|
143
|
-
'set': 'path',
|
144
|
-
'kid': 'path',
|
145
|
-
},
|
146
|
-
'collection_format_map': {
|
147
|
-
}
|
148
|
-
},
|
149
|
-
headers_map={
|
150
|
-
'accept': [
|
151
|
-
'application/json'
|
152
|
-
],
|
153
|
-
'content_type': [],
|
154
|
-
},
|
155
|
-
api_client=api_client
|
101
|
+
|
102
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
103
|
+
'201': "JsonWebKeySet",
|
104
|
+
}
|
105
|
+
response_data = self.api_client.call_api(
|
106
|
+
*_param,
|
107
|
+
_request_timeout=_request_timeout
|
156
108
|
)
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
]
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
109
|
+
response_data.read()
|
110
|
+
return self.api_client.response_deserialize(
|
111
|
+
response_data=response_data,
|
112
|
+
response_types_map=_response_types_map,
|
113
|
+
).data
|
114
|
+
|
115
|
+
|
116
|
+
@validate_call
|
117
|
+
def create_json_web_key_set_with_http_info(
|
118
|
+
self,
|
119
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
|
120
|
+
create_json_web_key_set: CreateJsonWebKeySet,
|
121
|
+
_request_timeout: Union[
|
122
|
+
None,
|
123
|
+
Annotated[StrictFloat, Field(gt=0)],
|
124
|
+
Tuple[
|
125
|
+
Annotated[StrictFloat, Field(gt=0)],
|
126
|
+
Annotated[StrictFloat, Field(gt=0)]
|
127
|
+
]
|
128
|
+
] = None,
|
129
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
130
|
+
_content_type: Optional[StrictStr] = None,
|
131
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
132
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
133
|
+
) -> ApiResponse[JsonWebKeySet]:
|
134
|
+
"""Create JSON Web Key
|
135
|
+
|
136
|
+
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.
|
137
|
+
|
138
|
+
:param set: The JSON Web Key Set ID (required)
|
139
|
+
:type set: str
|
140
|
+
:param create_json_web_key_set: (required)
|
141
|
+
:type create_json_web_key_set: CreateJsonWebKeySet
|
142
|
+
:param _request_timeout: timeout setting for this request. If one
|
143
|
+
number provided, it will be total request
|
144
|
+
timeout. It can also be a pair (tuple) of
|
145
|
+
(connection, read) timeouts.
|
146
|
+
:type _request_timeout: int, tuple(int, int), optional
|
147
|
+
:param _request_auth: set to override the auth_settings for an a single
|
148
|
+
request; this effectively ignores the
|
149
|
+
authentication in the spec for a single request.
|
150
|
+
:type _request_auth: dict, optional
|
151
|
+
:param _content_type: force content-type for the request.
|
152
|
+
:type _content_type: str, Optional
|
153
|
+
:param _headers: set to override the headers for a single
|
154
|
+
request; this effectively ignores the headers
|
155
|
+
in the spec for a single request.
|
156
|
+
:type _headers: dict, optional
|
157
|
+
:param _host_index: set to override the host_index for a single
|
158
|
+
request; this effectively ignores the host_index
|
159
|
+
in the spec for a single request.
|
160
|
+
:type _host_index: int, optional
|
161
|
+
:return: Returns the result object.
|
162
|
+
""" # noqa: E501
|
163
|
+
|
164
|
+
_param = self._create_json_web_key_set_serialize(
|
165
|
+
set=set,
|
166
|
+
create_json_web_key_set=create_json_web_key_set,
|
167
|
+
_request_auth=_request_auth,
|
168
|
+
_content_type=_content_type,
|
169
|
+
_headers=_headers,
|
170
|
+
_host_index=_host_index
|
207
171
|
)
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
'operation_id': 'get_json_web_key',
|
216
|
-
'http_method': 'GET',
|
217
|
-
'servers': None,
|
218
|
-
},
|
219
|
-
params_map={
|
220
|
-
'all': [
|
221
|
-
'set',
|
222
|
-
'kid',
|
223
|
-
],
|
224
|
-
'required': [
|
225
|
-
'set',
|
226
|
-
'kid',
|
227
|
-
],
|
228
|
-
'nullable': [
|
229
|
-
],
|
230
|
-
'enum': [
|
231
|
-
],
|
232
|
-
'validation': [
|
233
|
-
]
|
234
|
-
},
|
235
|
-
root_map={
|
236
|
-
'validations': {
|
237
|
-
},
|
238
|
-
'allowed_values': {
|
239
|
-
},
|
240
|
-
'openapi_types': {
|
241
|
-
'set':
|
242
|
-
(str,),
|
243
|
-
'kid':
|
244
|
-
(str,),
|
245
|
-
},
|
246
|
-
'attribute_map': {
|
247
|
-
'set': 'set',
|
248
|
-
'kid': 'kid',
|
249
|
-
},
|
250
|
-
'location_map': {
|
251
|
-
'set': 'path',
|
252
|
-
'kid': 'path',
|
253
|
-
},
|
254
|
-
'collection_format_map': {
|
255
|
-
}
|
256
|
-
},
|
257
|
-
headers_map={
|
258
|
-
'accept': [
|
259
|
-
'application/json'
|
260
|
-
],
|
261
|
-
'content_type': [],
|
262
|
-
},
|
263
|
-
api_client=api_client
|
172
|
+
|
173
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
174
|
+
'201': "JsonWebKeySet",
|
175
|
+
}
|
176
|
+
response_data = self.api_client.call_api(
|
177
|
+
*_param,
|
178
|
+
_request_timeout=_request_timeout
|
264
179
|
)
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
'oryAccessToken'
|
270
|
-
],
|
271
|
-
'endpoint_path': '/admin/keys/{set}',
|
272
|
-
'operation_id': 'get_json_web_key_set',
|
273
|
-
'http_method': 'GET',
|
274
|
-
'servers': None,
|
275
|
-
},
|
276
|
-
params_map={
|
277
|
-
'all': [
|
278
|
-
'set',
|
279
|
-
],
|
280
|
-
'required': [
|
281
|
-
'set',
|
282
|
-
],
|
283
|
-
'nullable': [
|
284
|
-
],
|
285
|
-
'enum': [
|
286
|
-
],
|
287
|
-
'validation': [
|
288
|
-
]
|
289
|
-
},
|
290
|
-
root_map={
|
291
|
-
'validations': {
|
292
|
-
},
|
293
|
-
'allowed_values': {
|
294
|
-
},
|
295
|
-
'openapi_types': {
|
296
|
-
'set':
|
297
|
-
(str,),
|
298
|
-
},
|
299
|
-
'attribute_map': {
|
300
|
-
'set': 'set',
|
301
|
-
},
|
302
|
-
'location_map': {
|
303
|
-
'set': 'path',
|
304
|
-
},
|
305
|
-
'collection_format_map': {
|
306
|
-
}
|
307
|
-
},
|
308
|
-
headers_map={
|
309
|
-
'accept': [
|
310
|
-
'application/json'
|
311
|
-
],
|
312
|
-
'content_type': [],
|
313
|
-
},
|
314
|
-
api_client=api_client
|
180
|
+
response_data.read()
|
181
|
+
return self.api_client.response_deserialize(
|
182
|
+
response_data=response_data,
|
183
|
+
response_types_map=_response_types_map,
|
315
184
|
)
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
'content_type': [
|
374
|
-
'application/json'
|
375
|
-
]
|
376
|
-
},
|
377
|
-
api_client=api_client
|
185
|
+
|
186
|
+
|
187
|
+
@validate_call
|
188
|
+
def create_json_web_key_set_without_preload_content(
|
189
|
+
self,
|
190
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
|
191
|
+
create_json_web_key_set: CreateJsonWebKeySet,
|
192
|
+
_request_timeout: Union[
|
193
|
+
None,
|
194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
195
|
+
Tuple[
|
196
|
+
Annotated[StrictFloat, Field(gt=0)],
|
197
|
+
Annotated[StrictFloat, Field(gt=0)]
|
198
|
+
]
|
199
|
+
] = None,
|
200
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
201
|
+
_content_type: Optional[StrictStr] = None,
|
202
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
203
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
204
|
+
) -> RESTResponseType:
|
205
|
+
"""Create JSON Web Key
|
206
|
+
|
207
|
+
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.
|
208
|
+
|
209
|
+
:param set: The JSON Web Key Set ID (required)
|
210
|
+
:type set: str
|
211
|
+
:param create_json_web_key_set: (required)
|
212
|
+
:type create_json_web_key_set: CreateJsonWebKeySet
|
213
|
+
:param _request_timeout: timeout setting for this request. If one
|
214
|
+
number provided, it will be total request
|
215
|
+
timeout. It can also be a pair (tuple) of
|
216
|
+
(connection, read) timeouts.
|
217
|
+
:type _request_timeout: int, tuple(int, int), optional
|
218
|
+
:param _request_auth: set to override the auth_settings for an a single
|
219
|
+
request; this effectively ignores the
|
220
|
+
authentication in the spec for a single request.
|
221
|
+
:type _request_auth: dict, optional
|
222
|
+
:param _content_type: force content-type for the request.
|
223
|
+
:type _content_type: str, Optional
|
224
|
+
:param _headers: set to override the headers for a single
|
225
|
+
request; this effectively ignores the headers
|
226
|
+
in the spec for a single request.
|
227
|
+
:type _headers: dict, optional
|
228
|
+
:param _host_index: set to override the host_index for a single
|
229
|
+
request; this effectively ignores the host_index
|
230
|
+
in the spec for a single request.
|
231
|
+
:type _host_index: int, optional
|
232
|
+
:return: Returns the result object.
|
233
|
+
""" # noqa: E501
|
234
|
+
|
235
|
+
_param = self._create_json_web_key_set_serialize(
|
236
|
+
set=set,
|
237
|
+
create_json_web_key_set=create_json_web_key_set,
|
238
|
+
_request_auth=_request_auth,
|
239
|
+
_content_type=_content_type,
|
240
|
+
_headers=_headers,
|
241
|
+
_host_index=_host_index
|
378
242
|
)
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
'operation_id': 'set_json_web_key_set',
|
387
|
-
'http_method': 'PUT',
|
388
|
-
'servers': None,
|
389
|
-
},
|
390
|
-
params_map={
|
391
|
-
'all': [
|
392
|
-
'set',
|
393
|
-
'json_web_key_set',
|
394
|
-
],
|
395
|
-
'required': [
|
396
|
-
'set',
|
397
|
-
],
|
398
|
-
'nullable': [
|
399
|
-
],
|
400
|
-
'enum': [
|
401
|
-
],
|
402
|
-
'validation': [
|
403
|
-
]
|
404
|
-
},
|
405
|
-
root_map={
|
406
|
-
'validations': {
|
407
|
-
},
|
408
|
-
'allowed_values': {
|
409
|
-
},
|
410
|
-
'openapi_types': {
|
411
|
-
'set':
|
412
|
-
(str,),
|
413
|
-
'json_web_key_set':
|
414
|
-
(JsonWebKeySet,),
|
415
|
-
},
|
416
|
-
'attribute_map': {
|
417
|
-
'set': 'set',
|
418
|
-
},
|
419
|
-
'location_map': {
|
420
|
-
'set': 'path',
|
421
|
-
'json_web_key_set': 'body',
|
422
|
-
},
|
423
|
-
'collection_format_map': {
|
424
|
-
}
|
425
|
-
},
|
426
|
-
headers_map={
|
427
|
-
'accept': [
|
428
|
-
'application/json'
|
429
|
-
],
|
430
|
-
'content_type': [
|
431
|
-
'application/json'
|
432
|
-
]
|
433
|
-
},
|
434
|
-
api_client=api_client
|
243
|
+
|
244
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
245
|
+
'201': "JsonWebKeySet",
|
246
|
+
}
|
247
|
+
response_data = self.api_client.call_api(
|
248
|
+
*_param,
|
249
|
+
_request_timeout=_request_timeout
|
435
250
|
)
|
251
|
+
return response_data.response
|
436
252
|
|
437
|
-
|
253
|
+
|
254
|
+
def _create_json_web_key_set_serialize(
|
438
255
|
self,
|
439
256
|
set,
|
440
257
|
create_json_web_key_set,
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
are pythonic names, e.g. snake case (default)
|
476
|
-
_content_type (str/None): force body content-type.
|
477
|
-
Default is None and content-type will be predicted by allowed
|
478
|
-
content-types and body.
|
479
|
-
_host_index (int/None): specifies the index of the server
|
480
|
-
that we want to use.
|
481
|
-
Default is read from the configuration.
|
482
|
-
_request_auths (list): set to override the auth_settings for an a single
|
483
|
-
request; this effectively ignores the authentication
|
484
|
-
in the spec for a single request.
|
485
|
-
Default is None
|
486
|
-
async_req (bool): execute request asynchronously
|
487
|
-
|
488
|
-
Returns:
|
489
|
-
JsonWebKeySet
|
490
|
-
If the method is called asynchronously, returns the request
|
491
|
-
thread.
|
492
|
-
"""
|
493
|
-
kwargs['async_req'] = kwargs.get(
|
494
|
-
'async_req', False
|
258
|
+
_request_auth,
|
259
|
+
_content_type,
|
260
|
+
_headers,
|
261
|
+
_host_index,
|
262
|
+
) -> RequestSerialized:
|
263
|
+
|
264
|
+
_host = None
|
265
|
+
|
266
|
+
_collection_formats: Dict[str, str] = {
|
267
|
+
}
|
268
|
+
|
269
|
+
_path_params: Dict[str, str] = {}
|
270
|
+
_query_params: List[Tuple[str, str]] = []
|
271
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
272
|
+
_form_params: List[Tuple[str, str]] = []
|
273
|
+
_files: Dict[str, str] = {}
|
274
|
+
_body_params: Optional[bytes] = None
|
275
|
+
|
276
|
+
# process the path parameters
|
277
|
+
if set is not None:
|
278
|
+
_path_params['set'] = set
|
279
|
+
# process the query parameters
|
280
|
+
# process the header parameters
|
281
|
+
# process the form parameters
|
282
|
+
# process the body parameter
|
283
|
+
if create_json_web_key_set is not None:
|
284
|
+
_body_params = create_json_web_key_set
|
285
|
+
|
286
|
+
|
287
|
+
# set the HTTP header `Accept`
|
288
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
289
|
+
[
|
290
|
+
'application/json'
|
291
|
+
]
|
495
292
|
)
|
496
|
-
|
497
|
-
|
293
|
+
|
294
|
+
# set the HTTP header `Content-Type`
|
295
|
+
if _content_type:
|
296
|
+
_header_params['Content-Type'] = _content_type
|
297
|
+
else:
|
298
|
+
_default_content_type = (
|
299
|
+
self.api_client.select_header_content_type(
|
300
|
+
[
|
301
|
+
'application/json'
|
302
|
+
]
|
303
|
+
)
|
304
|
+
)
|
305
|
+
if _default_content_type is not None:
|
306
|
+
_header_params['Content-Type'] = _default_content_type
|
307
|
+
|
308
|
+
# authentication setting
|
309
|
+
_auth_settings: List[str] = [
|
310
|
+
'oryAccessToken'
|
311
|
+
]
|
312
|
+
|
313
|
+
return self.api_client.param_serialize(
|
314
|
+
method='POST',
|
315
|
+
resource_path='/admin/keys/{set}',
|
316
|
+
path_params=_path_params,
|
317
|
+
query_params=_query_params,
|
318
|
+
header_params=_header_params,
|
319
|
+
body=_body_params,
|
320
|
+
post_params=_form_params,
|
321
|
+
files=_files,
|
322
|
+
auth_settings=_auth_settings,
|
323
|
+
collection_formats=_collection_formats,
|
324
|
+
_host=_host,
|
325
|
+
_request_auth=_request_auth
|
498
326
|
)
|
499
|
-
|
500
|
-
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
@validate_call
|
332
|
+
def delete_json_web_key(
|
333
|
+
self,
|
334
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set")],
|
335
|
+
kid: Annotated[StrictStr, Field(description="The JSON Web Key ID (kid)")],
|
336
|
+
_request_timeout: Union[
|
337
|
+
None,
|
338
|
+
Annotated[StrictFloat, Field(gt=0)],
|
339
|
+
Tuple[
|
340
|
+
Annotated[StrictFloat, Field(gt=0)],
|
341
|
+
Annotated[StrictFloat, Field(gt=0)]
|
342
|
+
]
|
343
|
+
] = None,
|
344
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
345
|
+
_content_type: Optional[StrictStr] = None,
|
346
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
347
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
348
|
+
) -> None:
|
349
|
+
"""Delete JSON Web Key
|
350
|
+
|
351
|
+
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.
|
352
|
+
|
353
|
+
:param set: The JSON Web Key Set (required)
|
354
|
+
:type set: str
|
355
|
+
:param kid: The JSON Web Key ID (kid) (required)
|
356
|
+
:type kid: str
|
357
|
+
:param _request_timeout: timeout setting for this request. If one
|
358
|
+
number provided, it will be total request
|
359
|
+
timeout. It can also be a pair (tuple) of
|
360
|
+
(connection, read) timeouts.
|
361
|
+
:type _request_timeout: int, tuple(int, int), optional
|
362
|
+
:param _request_auth: set to override the auth_settings for an a single
|
363
|
+
request; this effectively ignores the
|
364
|
+
authentication in the spec for a single request.
|
365
|
+
:type _request_auth: dict, optional
|
366
|
+
:param _content_type: force content-type for the request.
|
367
|
+
:type _content_type: str, Optional
|
368
|
+
:param _headers: set to override the headers for a single
|
369
|
+
request; this effectively ignores the headers
|
370
|
+
in the spec for a single request.
|
371
|
+
:type _headers: dict, optional
|
372
|
+
:param _host_index: set to override the host_index for a single
|
373
|
+
request; this effectively ignores the host_index
|
374
|
+
in the spec for a single request.
|
375
|
+
:type _host_index: int, optional
|
376
|
+
:return: Returns the result object.
|
377
|
+
""" # noqa: E501
|
378
|
+
|
379
|
+
_param = self._delete_json_web_key_serialize(
|
380
|
+
set=set,
|
381
|
+
kid=kid,
|
382
|
+
_request_auth=_request_auth,
|
383
|
+
_content_type=_content_type,
|
384
|
+
_headers=_headers,
|
385
|
+
_host_index=_host_index
|
501
386
|
)
|
502
|
-
|
503
|
-
|
387
|
+
|
388
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
389
|
+
'204': None,
|
390
|
+
}
|
391
|
+
response_data = self.api_client.call_api(
|
392
|
+
*_param,
|
393
|
+
_request_timeout=_request_timeout
|
504
394
|
)
|
505
|
-
|
506
|
-
|
395
|
+
response_data.read()
|
396
|
+
return self.api_client.response_deserialize(
|
397
|
+
response_data=response_data,
|
398
|
+
response_types_map=_response_types_map,
|
399
|
+
).data
|
400
|
+
|
401
|
+
|
402
|
+
@validate_call
|
403
|
+
def delete_json_web_key_with_http_info(
|
404
|
+
self,
|
405
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set")],
|
406
|
+
kid: Annotated[StrictStr, Field(description="The JSON Web Key ID (kid)")],
|
407
|
+
_request_timeout: Union[
|
408
|
+
None,
|
409
|
+
Annotated[StrictFloat, Field(gt=0)],
|
410
|
+
Tuple[
|
411
|
+
Annotated[StrictFloat, Field(gt=0)],
|
412
|
+
Annotated[StrictFloat, Field(gt=0)]
|
413
|
+
]
|
414
|
+
] = None,
|
415
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
416
|
+
_content_type: Optional[StrictStr] = None,
|
417
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
418
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
419
|
+
) -> ApiResponse[None]:
|
420
|
+
"""Delete JSON Web Key
|
421
|
+
|
422
|
+
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.
|
423
|
+
|
424
|
+
:param set: The JSON Web Key Set (required)
|
425
|
+
:type set: str
|
426
|
+
:param kid: The JSON Web Key ID (kid) (required)
|
427
|
+
:type kid: str
|
428
|
+
:param _request_timeout: timeout setting for this request. If one
|
429
|
+
number provided, it will be total request
|
430
|
+
timeout. It can also be a pair (tuple) of
|
431
|
+
(connection, read) timeouts.
|
432
|
+
:type _request_timeout: int, tuple(int, int), optional
|
433
|
+
:param _request_auth: set to override the auth_settings for an a single
|
434
|
+
request; this effectively ignores the
|
435
|
+
authentication in the spec for a single request.
|
436
|
+
:type _request_auth: dict, optional
|
437
|
+
:param _content_type: force content-type for the request.
|
438
|
+
:type _content_type: str, Optional
|
439
|
+
:param _headers: set to override the headers for a single
|
440
|
+
request; this effectively ignores the headers
|
441
|
+
in the spec for a single request.
|
442
|
+
:type _headers: dict, optional
|
443
|
+
:param _host_index: set to override the host_index for a single
|
444
|
+
request; this effectively ignores the host_index
|
445
|
+
in the spec for a single request.
|
446
|
+
:type _host_index: int, optional
|
447
|
+
:return: Returns the result object.
|
448
|
+
""" # noqa: E501
|
449
|
+
|
450
|
+
_param = self._delete_json_web_key_serialize(
|
451
|
+
set=set,
|
452
|
+
kid=kid,
|
453
|
+
_request_auth=_request_auth,
|
454
|
+
_content_type=_content_type,
|
455
|
+
_headers=_headers,
|
456
|
+
_host_index=_host_index
|
507
457
|
)
|
508
|
-
|
509
|
-
|
458
|
+
|
459
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
460
|
+
'204': None,
|
461
|
+
}
|
462
|
+
response_data = self.api_client.call_api(
|
463
|
+
*_param,
|
464
|
+
_request_timeout=_request_timeout
|
510
465
|
)
|
511
|
-
|
512
|
-
|
466
|
+
response_data.read()
|
467
|
+
return self.api_client.response_deserialize(
|
468
|
+
response_data=response_data,
|
469
|
+
response_types_map=_response_types_map,
|
513
470
|
)
|
514
|
-
kwargs['_content_type'] = kwargs.get(
|
515
|
-
'_content_type')
|
516
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
517
|
-
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
518
|
-
kwargs['set'] = \
|
519
|
-
set
|
520
|
-
kwargs['create_json_web_key_set'] = \
|
521
|
-
create_json_web_key_set
|
522
|
-
return self.create_json_web_key_set_endpoint.call_with_http_info(**kwargs)
|
523
471
|
|
524
|
-
|
472
|
+
|
473
|
+
@validate_call
|
474
|
+
def delete_json_web_key_without_preload_content(
|
475
|
+
self,
|
476
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set")],
|
477
|
+
kid: Annotated[StrictStr, Field(description="The JSON Web Key ID (kid)")],
|
478
|
+
_request_timeout: Union[
|
479
|
+
None,
|
480
|
+
Annotated[StrictFloat, Field(gt=0)],
|
481
|
+
Tuple[
|
482
|
+
Annotated[StrictFloat, Field(gt=0)],
|
483
|
+
Annotated[StrictFloat, Field(gt=0)]
|
484
|
+
]
|
485
|
+
] = None,
|
486
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
487
|
+
_content_type: Optional[StrictStr] = None,
|
488
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
489
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
490
|
+
) -> RESTResponseType:
|
491
|
+
"""Delete JSON Web Key
|
492
|
+
|
493
|
+
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.
|
494
|
+
|
495
|
+
:param set: The JSON Web Key Set (required)
|
496
|
+
:type set: str
|
497
|
+
:param kid: The JSON Web Key ID (kid) (required)
|
498
|
+
:type kid: str
|
499
|
+
:param _request_timeout: timeout setting for this request. If one
|
500
|
+
number provided, it will be total request
|
501
|
+
timeout. It can also be a pair (tuple) of
|
502
|
+
(connection, read) timeouts.
|
503
|
+
:type _request_timeout: int, tuple(int, int), optional
|
504
|
+
:param _request_auth: set to override the auth_settings for an a single
|
505
|
+
request; this effectively ignores the
|
506
|
+
authentication in the spec for a single request.
|
507
|
+
:type _request_auth: dict, optional
|
508
|
+
:param _content_type: force content-type for the request.
|
509
|
+
:type _content_type: str, Optional
|
510
|
+
:param _headers: set to override the headers for a single
|
511
|
+
request; this effectively ignores the headers
|
512
|
+
in the spec for a single request.
|
513
|
+
:type _headers: dict, optional
|
514
|
+
:param _host_index: set to override the host_index for a single
|
515
|
+
request; this effectively ignores the host_index
|
516
|
+
in the spec for a single request.
|
517
|
+
:type _host_index: int, optional
|
518
|
+
:return: Returns the result object.
|
519
|
+
""" # noqa: E501
|
520
|
+
|
521
|
+
_param = self._delete_json_web_key_serialize(
|
522
|
+
set=set,
|
523
|
+
kid=kid,
|
524
|
+
_request_auth=_request_auth,
|
525
|
+
_content_type=_content_type,
|
526
|
+
_headers=_headers,
|
527
|
+
_host_index=_host_index
|
528
|
+
)
|
529
|
+
|
530
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
531
|
+
'204': None,
|
532
|
+
}
|
533
|
+
response_data = self.api_client.call_api(
|
534
|
+
*_param,
|
535
|
+
_request_timeout=_request_timeout
|
536
|
+
)
|
537
|
+
return response_data.response
|
538
|
+
|
539
|
+
|
540
|
+
def _delete_json_web_key_serialize(
|
525
541
|
self,
|
526
542
|
set,
|
527
543
|
kid,
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
are pythonic names, e.g. snake case (default)
|
563
|
-
_content_type (str/None): force body content-type.
|
564
|
-
Default is None and content-type will be predicted by allowed
|
565
|
-
content-types and body.
|
566
|
-
_host_index (int/None): specifies the index of the server
|
567
|
-
that we want to use.
|
568
|
-
Default is read from the configuration.
|
569
|
-
_request_auths (list): set to override the auth_settings for an a single
|
570
|
-
request; this effectively ignores the authentication
|
571
|
-
in the spec for a single request.
|
572
|
-
Default is None
|
573
|
-
async_req (bool): execute request asynchronously
|
574
|
-
|
575
|
-
Returns:
|
576
|
-
None
|
577
|
-
If the method is called asynchronously, returns the request
|
578
|
-
thread.
|
579
|
-
"""
|
580
|
-
kwargs['async_req'] = kwargs.get(
|
581
|
-
'async_req', False
|
544
|
+
_request_auth,
|
545
|
+
_content_type,
|
546
|
+
_headers,
|
547
|
+
_host_index,
|
548
|
+
) -> RequestSerialized:
|
549
|
+
|
550
|
+
_host = None
|
551
|
+
|
552
|
+
_collection_formats: Dict[str, str] = {
|
553
|
+
}
|
554
|
+
|
555
|
+
_path_params: Dict[str, str] = {}
|
556
|
+
_query_params: List[Tuple[str, str]] = []
|
557
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
558
|
+
_form_params: List[Tuple[str, str]] = []
|
559
|
+
_files: Dict[str, str] = {}
|
560
|
+
_body_params: Optional[bytes] = None
|
561
|
+
|
562
|
+
# process the path parameters
|
563
|
+
if set is not None:
|
564
|
+
_path_params['set'] = set
|
565
|
+
if kid is not None:
|
566
|
+
_path_params['kid'] = kid
|
567
|
+
# process the query parameters
|
568
|
+
# process the header parameters
|
569
|
+
# process the form parameters
|
570
|
+
# process the body parameter
|
571
|
+
|
572
|
+
|
573
|
+
# set the HTTP header `Accept`
|
574
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
575
|
+
[
|
576
|
+
'application/json'
|
577
|
+
]
|
582
578
|
)
|
583
|
-
|
584
|
-
|
579
|
+
|
580
|
+
|
581
|
+
# authentication setting
|
582
|
+
_auth_settings: List[str] = [
|
583
|
+
'oryAccessToken'
|
584
|
+
]
|
585
|
+
|
586
|
+
return self.api_client.param_serialize(
|
587
|
+
method='DELETE',
|
588
|
+
resource_path='/admin/keys/{set}/{kid}',
|
589
|
+
path_params=_path_params,
|
590
|
+
query_params=_query_params,
|
591
|
+
header_params=_header_params,
|
592
|
+
body=_body_params,
|
593
|
+
post_params=_form_params,
|
594
|
+
files=_files,
|
595
|
+
auth_settings=_auth_settings,
|
596
|
+
collection_formats=_collection_formats,
|
597
|
+
_host=_host,
|
598
|
+
_request_auth=_request_auth
|
585
599
|
)
|
586
|
-
|
587
|
-
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
@validate_call
|
605
|
+
def delete_json_web_key_set(
|
606
|
+
self,
|
607
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set")],
|
608
|
+
_request_timeout: Union[
|
609
|
+
None,
|
610
|
+
Annotated[StrictFloat, Field(gt=0)],
|
611
|
+
Tuple[
|
612
|
+
Annotated[StrictFloat, Field(gt=0)],
|
613
|
+
Annotated[StrictFloat, Field(gt=0)]
|
614
|
+
]
|
615
|
+
] = None,
|
616
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
617
|
+
_content_type: Optional[StrictStr] = None,
|
618
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
619
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
620
|
+
) -> None:
|
621
|
+
"""Delete JSON Web Key Set
|
622
|
+
|
623
|
+
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.
|
624
|
+
|
625
|
+
:param set: The JSON Web Key Set (required)
|
626
|
+
:type set: str
|
627
|
+
:param _request_timeout: timeout setting for this request. If one
|
628
|
+
number provided, it will be total request
|
629
|
+
timeout. It can also be a pair (tuple) of
|
630
|
+
(connection, read) timeouts.
|
631
|
+
:type _request_timeout: int, tuple(int, int), optional
|
632
|
+
:param _request_auth: set to override the auth_settings for an a single
|
633
|
+
request; this effectively ignores the
|
634
|
+
authentication in the spec for a single request.
|
635
|
+
:type _request_auth: dict, optional
|
636
|
+
:param _content_type: force content-type for the request.
|
637
|
+
:type _content_type: str, Optional
|
638
|
+
:param _headers: set to override the headers for a single
|
639
|
+
request; this effectively ignores the headers
|
640
|
+
in the spec for a single request.
|
641
|
+
:type _headers: dict, optional
|
642
|
+
:param _host_index: set to override the host_index for a single
|
643
|
+
request; this effectively ignores the host_index
|
644
|
+
in the spec for a single request.
|
645
|
+
:type _host_index: int, optional
|
646
|
+
:return: Returns the result object.
|
647
|
+
""" # noqa: E501
|
648
|
+
|
649
|
+
_param = self._delete_json_web_key_set_serialize(
|
650
|
+
set=set,
|
651
|
+
_request_auth=_request_auth,
|
652
|
+
_content_type=_content_type,
|
653
|
+
_headers=_headers,
|
654
|
+
_host_index=_host_index
|
588
655
|
)
|
589
|
-
|
590
|
-
|
656
|
+
|
657
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
658
|
+
'204': None,
|
659
|
+
}
|
660
|
+
response_data = self.api_client.call_api(
|
661
|
+
*_param,
|
662
|
+
_request_timeout=_request_timeout
|
663
|
+
)
|
664
|
+
response_data.read()
|
665
|
+
return self.api_client.response_deserialize(
|
666
|
+
response_data=response_data,
|
667
|
+
response_types_map=_response_types_map,
|
668
|
+
).data
|
669
|
+
|
670
|
+
|
671
|
+
@validate_call
|
672
|
+
def delete_json_web_key_set_with_http_info(
|
673
|
+
self,
|
674
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set")],
|
675
|
+
_request_timeout: Union[
|
676
|
+
None,
|
677
|
+
Annotated[StrictFloat, Field(gt=0)],
|
678
|
+
Tuple[
|
679
|
+
Annotated[StrictFloat, Field(gt=0)],
|
680
|
+
Annotated[StrictFloat, Field(gt=0)]
|
681
|
+
]
|
682
|
+
] = None,
|
683
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
684
|
+
_content_type: Optional[StrictStr] = None,
|
685
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
686
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
687
|
+
) -> ApiResponse[None]:
|
688
|
+
"""Delete JSON Web Key Set
|
689
|
+
|
690
|
+
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.
|
691
|
+
|
692
|
+
:param set: The JSON Web Key Set (required)
|
693
|
+
:type set: str
|
694
|
+
:param _request_timeout: timeout setting for this request. If one
|
695
|
+
number provided, it will be total request
|
696
|
+
timeout. It can also be a pair (tuple) of
|
697
|
+
(connection, read) timeouts.
|
698
|
+
:type _request_timeout: int, tuple(int, int), optional
|
699
|
+
:param _request_auth: set to override the auth_settings for an a single
|
700
|
+
request; this effectively ignores the
|
701
|
+
authentication in the spec for a single request.
|
702
|
+
:type _request_auth: dict, optional
|
703
|
+
:param _content_type: force content-type for the request.
|
704
|
+
:type _content_type: str, Optional
|
705
|
+
:param _headers: set to override the headers for a single
|
706
|
+
request; this effectively ignores the headers
|
707
|
+
in the spec for a single request.
|
708
|
+
:type _headers: dict, optional
|
709
|
+
:param _host_index: set to override the host_index for a single
|
710
|
+
request; this effectively ignores the host_index
|
711
|
+
in the spec for a single request.
|
712
|
+
:type _host_index: int, optional
|
713
|
+
:return: Returns the result object.
|
714
|
+
""" # noqa: E501
|
715
|
+
|
716
|
+
_param = self._delete_json_web_key_set_serialize(
|
717
|
+
set=set,
|
718
|
+
_request_auth=_request_auth,
|
719
|
+
_content_type=_content_type,
|
720
|
+
_headers=_headers,
|
721
|
+
_host_index=_host_index
|
591
722
|
)
|
592
|
-
|
593
|
-
|
723
|
+
|
724
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
725
|
+
'204': None,
|
726
|
+
}
|
727
|
+
response_data = self.api_client.call_api(
|
728
|
+
*_param,
|
729
|
+
_request_timeout=_request_timeout
|
594
730
|
)
|
595
|
-
|
596
|
-
|
731
|
+
response_data.read()
|
732
|
+
return self.api_client.response_deserialize(
|
733
|
+
response_data=response_data,
|
734
|
+
response_types_map=_response_types_map,
|
597
735
|
)
|
598
|
-
|
599
|
-
|
736
|
+
|
737
|
+
|
738
|
+
@validate_call
|
739
|
+
def delete_json_web_key_set_without_preload_content(
|
740
|
+
self,
|
741
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set")],
|
742
|
+
_request_timeout: Union[
|
743
|
+
None,
|
744
|
+
Annotated[StrictFloat, Field(gt=0)],
|
745
|
+
Tuple[
|
746
|
+
Annotated[StrictFloat, Field(gt=0)],
|
747
|
+
Annotated[StrictFloat, Field(gt=0)]
|
748
|
+
]
|
749
|
+
] = None,
|
750
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
751
|
+
_content_type: Optional[StrictStr] = None,
|
752
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
753
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
754
|
+
) -> RESTResponseType:
|
755
|
+
"""Delete JSON Web Key Set
|
756
|
+
|
757
|
+
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.
|
758
|
+
|
759
|
+
:param set: The JSON Web Key Set (required)
|
760
|
+
:type set: str
|
761
|
+
:param _request_timeout: timeout setting for this request. If one
|
762
|
+
number provided, it will be total request
|
763
|
+
timeout. It can also be a pair (tuple) of
|
764
|
+
(connection, read) timeouts.
|
765
|
+
:type _request_timeout: int, tuple(int, int), optional
|
766
|
+
:param _request_auth: set to override the auth_settings for an a single
|
767
|
+
request; this effectively ignores the
|
768
|
+
authentication in the spec for a single request.
|
769
|
+
:type _request_auth: dict, optional
|
770
|
+
:param _content_type: force content-type for the request.
|
771
|
+
:type _content_type: str, Optional
|
772
|
+
:param _headers: set to override the headers for a single
|
773
|
+
request; this effectively ignores the headers
|
774
|
+
in the spec for a single request.
|
775
|
+
:type _headers: dict, optional
|
776
|
+
:param _host_index: set to override the host_index for a single
|
777
|
+
request; this effectively ignores the host_index
|
778
|
+
in the spec for a single request.
|
779
|
+
:type _host_index: int, optional
|
780
|
+
:return: Returns the result object.
|
781
|
+
""" # noqa: E501
|
782
|
+
|
783
|
+
_param = self._delete_json_web_key_set_serialize(
|
784
|
+
set=set,
|
785
|
+
_request_auth=_request_auth,
|
786
|
+
_content_type=_content_type,
|
787
|
+
_headers=_headers,
|
788
|
+
_host_index=_host_index
|
600
789
|
)
|
601
|
-
kwargs['_content_type'] = kwargs.get(
|
602
|
-
'_content_type')
|
603
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
604
|
-
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
605
|
-
kwargs['set'] = \
|
606
|
-
set
|
607
|
-
kwargs['kid'] = \
|
608
|
-
kid
|
609
|
-
return self.delete_json_web_key_endpoint.call_with_http_info(**kwargs)
|
610
790
|
|
611
|
-
|
791
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
792
|
+
'204': None,
|
793
|
+
}
|
794
|
+
response_data = self.api_client.call_api(
|
795
|
+
*_param,
|
796
|
+
_request_timeout=_request_timeout
|
797
|
+
)
|
798
|
+
return response_data.response
|
799
|
+
|
800
|
+
|
801
|
+
def _delete_json_web_key_set_serialize(
|
612
802
|
self,
|
613
803
|
set,
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
False if the variable names in the input data
|
647
|
-
are pythonic names, e.g. snake case (default)
|
648
|
-
_content_type (str/None): force body content-type.
|
649
|
-
Default is None and content-type will be predicted by allowed
|
650
|
-
content-types and body.
|
651
|
-
_host_index (int/None): specifies the index of the server
|
652
|
-
that we want to use.
|
653
|
-
Default is read from the configuration.
|
654
|
-
_request_auths (list): set to override the auth_settings for an a single
|
655
|
-
request; this effectively ignores the authentication
|
656
|
-
in the spec for a single request.
|
657
|
-
Default is None
|
658
|
-
async_req (bool): execute request asynchronously
|
659
|
-
|
660
|
-
Returns:
|
661
|
-
None
|
662
|
-
If the method is called asynchronously, returns the request
|
663
|
-
thread.
|
664
|
-
"""
|
665
|
-
kwargs['async_req'] = kwargs.get(
|
666
|
-
'async_req', False
|
804
|
+
_request_auth,
|
805
|
+
_content_type,
|
806
|
+
_headers,
|
807
|
+
_host_index,
|
808
|
+
) -> RequestSerialized:
|
809
|
+
|
810
|
+
_host = None
|
811
|
+
|
812
|
+
_collection_formats: Dict[str, str] = {
|
813
|
+
}
|
814
|
+
|
815
|
+
_path_params: Dict[str, str] = {}
|
816
|
+
_query_params: List[Tuple[str, str]] = []
|
817
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
818
|
+
_form_params: List[Tuple[str, str]] = []
|
819
|
+
_files: Dict[str, str] = {}
|
820
|
+
_body_params: Optional[bytes] = None
|
821
|
+
|
822
|
+
# process the path parameters
|
823
|
+
if set is not None:
|
824
|
+
_path_params['set'] = set
|
825
|
+
# process the query parameters
|
826
|
+
# process the header parameters
|
827
|
+
# process the form parameters
|
828
|
+
# process the body parameter
|
829
|
+
|
830
|
+
|
831
|
+
# set the HTTP header `Accept`
|
832
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
833
|
+
[
|
834
|
+
'application/json'
|
835
|
+
]
|
667
836
|
)
|
668
|
-
|
669
|
-
|
837
|
+
|
838
|
+
|
839
|
+
# authentication setting
|
840
|
+
_auth_settings: List[str] = [
|
841
|
+
'oryAccessToken'
|
842
|
+
]
|
843
|
+
|
844
|
+
return self.api_client.param_serialize(
|
845
|
+
method='DELETE',
|
846
|
+
resource_path='/admin/keys/{set}',
|
847
|
+
path_params=_path_params,
|
848
|
+
query_params=_query_params,
|
849
|
+
header_params=_header_params,
|
850
|
+
body=_body_params,
|
851
|
+
post_params=_form_params,
|
852
|
+
files=_files,
|
853
|
+
auth_settings=_auth_settings,
|
854
|
+
collection_formats=_collection_formats,
|
855
|
+
_host=_host,
|
856
|
+
_request_auth=_request_auth
|
670
857
|
)
|
671
|
-
|
672
|
-
|
858
|
+
|
859
|
+
|
860
|
+
|
861
|
+
|
862
|
+
@validate_call
|
863
|
+
def get_json_web_key(
|
864
|
+
self,
|
865
|
+
set: Annotated[StrictStr, Field(description="JSON Web Key Set ID")],
|
866
|
+
kid: Annotated[StrictStr, Field(description="JSON Web Key ID")],
|
867
|
+
_request_timeout: Union[
|
868
|
+
None,
|
869
|
+
Annotated[StrictFloat, Field(gt=0)],
|
870
|
+
Tuple[
|
871
|
+
Annotated[StrictFloat, Field(gt=0)],
|
872
|
+
Annotated[StrictFloat, Field(gt=0)]
|
873
|
+
]
|
874
|
+
] = None,
|
875
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
876
|
+
_content_type: Optional[StrictStr] = None,
|
877
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
878
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
879
|
+
) -> JsonWebKeySet:
|
880
|
+
"""Get JSON Web Key
|
881
|
+
|
882
|
+
This endpoint returns a singular JSON Web Key contained in a set. It is identified by the set and the specific key ID (kid).
|
883
|
+
|
884
|
+
:param set: JSON Web Key Set ID (required)
|
885
|
+
:type set: str
|
886
|
+
:param kid: JSON Web Key ID (required)
|
887
|
+
:type kid: str
|
888
|
+
:param _request_timeout: timeout setting for this request. If one
|
889
|
+
number provided, it will be total request
|
890
|
+
timeout. It can also be a pair (tuple) of
|
891
|
+
(connection, read) timeouts.
|
892
|
+
:type _request_timeout: int, tuple(int, int), optional
|
893
|
+
:param _request_auth: set to override the auth_settings for an a single
|
894
|
+
request; this effectively ignores the
|
895
|
+
authentication in the spec for a single request.
|
896
|
+
:type _request_auth: dict, optional
|
897
|
+
:param _content_type: force content-type for the request.
|
898
|
+
:type _content_type: str, Optional
|
899
|
+
:param _headers: set to override the headers for a single
|
900
|
+
request; this effectively ignores the headers
|
901
|
+
in the spec for a single request.
|
902
|
+
:type _headers: dict, optional
|
903
|
+
:param _host_index: set to override the host_index for a single
|
904
|
+
request; this effectively ignores the host_index
|
905
|
+
in the spec for a single request.
|
906
|
+
:type _host_index: int, optional
|
907
|
+
:return: Returns the result object.
|
908
|
+
""" # noqa: E501
|
909
|
+
|
910
|
+
_param = self._get_json_web_key_serialize(
|
911
|
+
set=set,
|
912
|
+
kid=kid,
|
913
|
+
_request_auth=_request_auth,
|
914
|
+
_content_type=_content_type,
|
915
|
+
_headers=_headers,
|
916
|
+
_host_index=_host_index
|
673
917
|
)
|
674
|
-
|
675
|
-
|
918
|
+
|
919
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
920
|
+
'200': "JsonWebKeySet",
|
921
|
+
}
|
922
|
+
response_data = self.api_client.call_api(
|
923
|
+
*_param,
|
924
|
+
_request_timeout=_request_timeout
|
676
925
|
)
|
677
|
-
|
678
|
-
|
926
|
+
response_data.read()
|
927
|
+
return self.api_client.response_deserialize(
|
928
|
+
response_data=response_data,
|
929
|
+
response_types_map=_response_types_map,
|
930
|
+
).data
|
931
|
+
|
932
|
+
|
933
|
+
@validate_call
|
934
|
+
def get_json_web_key_with_http_info(
|
935
|
+
self,
|
936
|
+
set: Annotated[StrictStr, Field(description="JSON Web Key Set ID")],
|
937
|
+
kid: Annotated[StrictStr, Field(description="JSON Web Key ID")],
|
938
|
+
_request_timeout: Union[
|
939
|
+
None,
|
940
|
+
Annotated[StrictFloat, Field(gt=0)],
|
941
|
+
Tuple[
|
942
|
+
Annotated[StrictFloat, Field(gt=0)],
|
943
|
+
Annotated[StrictFloat, Field(gt=0)]
|
944
|
+
]
|
945
|
+
] = None,
|
946
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
947
|
+
_content_type: Optional[StrictStr] = None,
|
948
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
949
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
950
|
+
) -> ApiResponse[JsonWebKeySet]:
|
951
|
+
"""Get JSON Web Key
|
952
|
+
|
953
|
+
This endpoint returns a singular JSON Web Key contained in a set. It is identified by the set and the specific key ID (kid).
|
954
|
+
|
955
|
+
:param set: JSON Web Key Set ID (required)
|
956
|
+
:type set: str
|
957
|
+
:param kid: JSON Web Key ID (required)
|
958
|
+
:type kid: str
|
959
|
+
:param _request_timeout: timeout setting for this request. If one
|
960
|
+
number provided, it will be total request
|
961
|
+
timeout. It can also be a pair (tuple) of
|
962
|
+
(connection, read) timeouts.
|
963
|
+
:type _request_timeout: int, tuple(int, int), optional
|
964
|
+
:param _request_auth: set to override the auth_settings for an a single
|
965
|
+
request; this effectively ignores the
|
966
|
+
authentication in the spec for a single request.
|
967
|
+
:type _request_auth: dict, optional
|
968
|
+
:param _content_type: force content-type for the request.
|
969
|
+
:type _content_type: str, Optional
|
970
|
+
:param _headers: set to override the headers for a single
|
971
|
+
request; this effectively ignores the headers
|
972
|
+
in the spec for a single request.
|
973
|
+
:type _headers: dict, optional
|
974
|
+
:param _host_index: set to override the host_index for a single
|
975
|
+
request; this effectively ignores the host_index
|
976
|
+
in the spec for a single request.
|
977
|
+
:type _host_index: int, optional
|
978
|
+
:return: Returns the result object.
|
979
|
+
""" # noqa: E501
|
980
|
+
|
981
|
+
_param = self._get_json_web_key_serialize(
|
982
|
+
set=set,
|
983
|
+
kid=kid,
|
984
|
+
_request_auth=_request_auth,
|
985
|
+
_content_type=_content_type,
|
986
|
+
_headers=_headers,
|
987
|
+
_host_index=_host_index
|
679
988
|
)
|
680
|
-
|
681
|
-
|
989
|
+
|
990
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
991
|
+
'200': "JsonWebKeySet",
|
992
|
+
}
|
993
|
+
response_data = self.api_client.call_api(
|
994
|
+
*_param,
|
995
|
+
_request_timeout=_request_timeout
|
682
996
|
)
|
683
|
-
|
684
|
-
|
997
|
+
response_data.read()
|
998
|
+
return self.api_client.response_deserialize(
|
999
|
+
response_data=response_data,
|
1000
|
+
response_types_map=_response_types_map,
|
685
1001
|
)
|
686
|
-
kwargs['_content_type'] = kwargs.get(
|
687
|
-
'_content_type')
|
688
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
689
|
-
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
690
|
-
kwargs['set'] = \
|
691
|
-
set
|
692
|
-
return self.delete_json_web_key_set_endpoint.call_with_http_info(**kwargs)
|
693
1002
|
|
694
|
-
|
1003
|
+
|
1004
|
+
@validate_call
|
1005
|
+
def get_json_web_key_without_preload_content(
|
1006
|
+
self,
|
1007
|
+
set: Annotated[StrictStr, Field(description="JSON Web Key Set ID")],
|
1008
|
+
kid: Annotated[StrictStr, Field(description="JSON Web Key ID")],
|
1009
|
+
_request_timeout: Union[
|
1010
|
+
None,
|
1011
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1012
|
+
Tuple[
|
1013
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1014
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1015
|
+
]
|
1016
|
+
] = None,
|
1017
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1018
|
+
_content_type: Optional[StrictStr] = None,
|
1019
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1020
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1021
|
+
) -> RESTResponseType:
|
1022
|
+
"""Get JSON Web Key
|
1023
|
+
|
1024
|
+
This endpoint returns a singular JSON Web Key contained in a set. It is identified by the set and the specific key ID (kid).
|
1025
|
+
|
1026
|
+
:param set: JSON Web Key Set ID (required)
|
1027
|
+
:type set: str
|
1028
|
+
:param kid: JSON Web Key ID (required)
|
1029
|
+
:type kid: str
|
1030
|
+
:param _request_timeout: timeout setting for this request. If one
|
1031
|
+
number provided, it will be total request
|
1032
|
+
timeout. It can also be a pair (tuple) of
|
1033
|
+
(connection, read) timeouts.
|
1034
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1035
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1036
|
+
request; this effectively ignores the
|
1037
|
+
authentication in the spec for a single request.
|
1038
|
+
:type _request_auth: dict, optional
|
1039
|
+
:param _content_type: force content-type for the request.
|
1040
|
+
:type _content_type: str, Optional
|
1041
|
+
:param _headers: set to override the headers for a single
|
1042
|
+
request; this effectively ignores the headers
|
1043
|
+
in the spec for a single request.
|
1044
|
+
:type _headers: dict, optional
|
1045
|
+
:param _host_index: set to override the host_index for a single
|
1046
|
+
request; this effectively ignores the host_index
|
1047
|
+
in the spec for a single request.
|
1048
|
+
:type _host_index: int, optional
|
1049
|
+
:return: Returns the result object.
|
1050
|
+
""" # noqa: E501
|
1051
|
+
|
1052
|
+
_param = self._get_json_web_key_serialize(
|
1053
|
+
set=set,
|
1054
|
+
kid=kid,
|
1055
|
+
_request_auth=_request_auth,
|
1056
|
+
_content_type=_content_type,
|
1057
|
+
_headers=_headers,
|
1058
|
+
_host_index=_host_index
|
1059
|
+
)
|
1060
|
+
|
1061
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1062
|
+
'200': "JsonWebKeySet",
|
1063
|
+
}
|
1064
|
+
response_data = self.api_client.call_api(
|
1065
|
+
*_param,
|
1066
|
+
_request_timeout=_request_timeout
|
1067
|
+
)
|
1068
|
+
return response_data.response
|
1069
|
+
|
1070
|
+
|
1071
|
+
def _get_json_web_key_serialize(
|
695
1072
|
self,
|
696
1073
|
set,
|
697
1074
|
kid,
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
are pythonic names, e.g. snake case (default)
|
733
|
-
_content_type (str/None): force body content-type.
|
734
|
-
Default is None and content-type will be predicted by allowed
|
735
|
-
content-types and body.
|
736
|
-
_host_index (int/None): specifies the index of the server
|
737
|
-
that we want to use.
|
738
|
-
Default is read from the configuration.
|
739
|
-
_request_auths (list): set to override the auth_settings for an a single
|
740
|
-
request; this effectively ignores the authentication
|
741
|
-
in the spec for a single request.
|
742
|
-
Default is None
|
743
|
-
async_req (bool): execute request asynchronously
|
744
|
-
|
745
|
-
Returns:
|
746
|
-
JsonWebKeySet
|
747
|
-
If the method is called asynchronously, returns the request
|
748
|
-
thread.
|
749
|
-
"""
|
750
|
-
kwargs['async_req'] = kwargs.get(
|
751
|
-
'async_req', False
|
1075
|
+
_request_auth,
|
1076
|
+
_content_type,
|
1077
|
+
_headers,
|
1078
|
+
_host_index,
|
1079
|
+
) -> RequestSerialized:
|
1080
|
+
|
1081
|
+
_host = None
|
1082
|
+
|
1083
|
+
_collection_formats: Dict[str, str] = {
|
1084
|
+
}
|
1085
|
+
|
1086
|
+
_path_params: Dict[str, str] = {}
|
1087
|
+
_query_params: List[Tuple[str, str]] = []
|
1088
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1089
|
+
_form_params: List[Tuple[str, str]] = []
|
1090
|
+
_files: Dict[str, str] = {}
|
1091
|
+
_body_params: Optional[bytes] = None
|
1092
|
+
|
1093
|
+
# process the path parameters
|
1094
|
+
if set is not None:
|
1095
|
+
_path_params['set'] = set
|
1096
|
+
if kid is not None:
|
1097
|
+
_path_params['kid'] = kid
|
1098
|
+
# process the query parameters
|
1099
|
+
# process the header parameters
|
1100
|
+
# process the form parameters
|
1101
|
+
# process the body parameter
|
1102
|
+
|
1103
|
+
|
1104
|
+
# set the HTTP header `Accept`
|
1105
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1106
|
+
[
|
1107
|
+
'application/json'
|
1108
|
+
]
|
752
1109
|
)
|
753
|
-
|
754
|
-
|
1110
|
+
|
1111
|
+
|
1112
|
+
# authentication setting
|
1113
|
+
_auth_settings: List[str] = [
|
1114
|
+
'oryAccessToken'
|
1115
|
+
]
|
1116
|
+
|
1117
|
+
return self.api_client.param_serialize(
|
1118
|
+
method='GET',
|
1119
|
+
resource_path='/admin/keys/{set}/{kid}',
|
1120
|
+
path_params=_path_params,
|
1121
|
+
query_params=_query_params,
|
1122
|
+
header_params=_header_params,
|
1123
|
+
body=_body_params,
|
1124
|
+
post_params=_form_params,
|
1125
|
+
files=_files,
|
1126
|
+
auth_settings=_auth_settings,
|
1127
|
+
collection_formats=_collection_formats,
|
1128
|
+
_host=_host,
|
1129
|
+
_request_auth=_request_auth
|
755
1130
|
)
|
756
|
-
|
757
|
-
|
1131
|
+
|
1132
|
+
|
1133
|
+
|
1134
|
+
|
1135
|
+
@validate_call
|
1136
|
+
def get_json_web_key_set(
|
1137
|
+
self,
|
1138
|
+
set: Annotated[StrictStr, Field(description="JSON Web Key Set ID")],
|
1139
|
+
_request_timeout: Union[
|
1140
|
+
None,
|
1141
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1142
|
+
Tuple[
|
1143
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1144
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1145
|
+
]
|
1146
|
+
] = None,
|
1147
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1148
|
+
_content_type: Optional[StrictStr] = None,
|
1149
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1150
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1151
|
+
) -> JsonWebKeySet:
|
1152
|
+
"""Retrieve a JSON Web Key Set
|
1153
|
+
|
1154
|
+
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.
|
1155
|
+
|
1156
|
+
:param set: JSON Web Key Set ID (required)
|
1157
|
+
:type set: str
|
1158
|
+
:param _request_timeout: timeout setting for this request. If one
|
1159
|
+
number provided, it will be total request
|
1160
|
+
timeout. It can also be a pair (tuple) of
|
1161
|
+
(connection, read) timeouts.
|
1162
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1163
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1164
|
+
request; this effectively ignores the
|
1165
|
+
authentication in the spec for a single request.
|
1166
|
+
:type _request_auth: dict, optional
|
1167
|
+
:param _content_type: force content-type for the request.
|
1168
|
+
:type _content_type: str, Optional
|
1169
|
+
:param _headers: set to override the headers for a single
|
1170
|
+
request; this effectively ignores the headers
|
1171
|
+
in the spec for a single request.
|
1172
|
+
:type _headers: dict, optional
|
1173
|
+
:param _host_index: set to override the host_index for a single
|
1174
|
+
request; this effectively ignores the host_index
|
1175
|
+
in the spec for a single request.
|
1176
|
+
:type _host_index: int, optional
|
1177
|
+
:return: Returns the result object.
|
1178
|
+
""" # noqa: E501
|
1179
|
+
|
1180
|
+
_param = self._get_json_web_key_set_serialize(
|
1181
|
+
set=set,
|
1182
|
+
_request_auth=_request_auth,
|
1183
|
+
_content_type=_content_type,
|
1184
|
+
_headers=_headers,
|
1185
|
+
_host_index=_host_index
|
758
1186
|
)
|
759
|
-
|
760
|
-
|
1187
|
+
|
1188
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1189
|
+
'200': "JsonWebKeySet",
|
1190
|
+
}
|
1191
|
+
response_data = self.api_client.call_api(
|
1192
|
+
*_param,
|
1193
|
+
_request_timeout=_request_timeout
|
761
1194
|
)
|
762
|
-
|
763
|
-
|
1195
|
+
response_data.read()
|
1196
|
+
return self.api_client.response_deserialize(
|
1197
|
+
response_data=response_data,
|
1198
|
+
response_types_map=_response_types_map,
|
1199
|
+
).data
|
1200
|
+
|
1201
|
+
|
1202
|
+
@validate_call
|
1203
|
+
def get_json_web_key_set_with_http_info(
|
1204
|
+
self,
|
1205
|
+
set: Annotated[StrictStr, Field(description="JSON Web Key Set ID")],
|
1206
|
+
_request_timeout: Union[
|
1207
|
+
None,
|
1208
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1209
|
+
Tuple[
|
1210
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1211
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1212
|
+
]
|
1213
|
+
] = None,
|
1214
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1215
|
+
_content_type: Optional[StrictStr] = None,
|
1216
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1217
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1218
|
+
) -> ApiResponse[JsonWebKeySet]:
|
1219
|
+
"""Retrieve a JSON Web Key Set
|
1220
|
+
|
1221
|
+
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.
|
1222
|
+
|
1223
|
+
:param set: JSON Web Key Set ID (required)
|
1224
|
+
:type set: str
|
1225
|
+
:param _request_timeout: timeout setting for this request. If one
|
1226
|
+
number provided, it will be total request
|
1227
|
+
timeout. It can also be a pair (tuple) of
|
1228
|
+
(connection, read) timeouts.
|
1229
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1230
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1231
|
+
request; this effectively ignores the
|
1232
|
+
authentication in the spec for a single request.
|
1233
|
+
:type _request_auth: dict, optional
|
1234
|
+
:param _content_type: force content-type for the request.
|
1235
|
+
:type _content_type: str, Optional
|
1236
|
+
:param _headers: set to override the headers for a single
|
1237
|
+
request; this effectively ignores the headers
|
1238
|
+
in the spec for a single request.
|
1239
|
+
:type _headers: dict, optional
|
1240
|
+
:param _host_index: set to override the host_index for a single
|
1241
|
+
request; this effectively ignores the host_index
|
1242
|
+
in the spec for a single request.
|
1243
|
+
:type _host_index: int, optional
|
1244
|
+
:return: Returns the result object.
|
1245
|
+
""" # noqa: E501
|
1246
|
+
|
1247
|
+
_param = self._get_json_web_key_set_serialize(
|
1248
|
+
set=set,
|
1249
|
+
_request_auth=_request_auth,
|
1250
|
+
_content_type=_content_type,
|
1251
|
+
_headers=_headers,
|
1252
|
+
_host_index=_host_index
|
764
1253
|
)
|
765
|
-
|
766
|
-
|
1254
|
+
|
1255
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1256
|
+
'200': "JsonWebKeySet",
|
1257
|
+
}
|
1258
|
+
response_data = self.api_client.call_api(
|
1259
|
+
*_param,
|
1260
|
+
_request_timeout=_request_timeout
|
767
1261
|
)
|
768
|
-
|
769
|
-
|
1262
|
+
response_data.read()
|
1263
|
+
return self.api_client.response_deserialize(
|
1264
|
+
response_data=response_data,
|
1265
|
+
response_types_map=_response_types_map,
|
770
1266
|
)
|
771
|
-
kwargs['_content_type'] = kwargs.get(
|
772
|
-
'_content_type')
|
773
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
774
|
-
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
775
|
-
kwargs['set'] = \
|
776
|
-
set
|
777
|
-
kwargs['kid'] = \
|
778
|
-
kid
|
779
|
-
return self.get_json_web_key_endpoint.call_with_http_info(**kwargs)
|
780
1267
|
|
781
|
-
|
1268
|
+
|
1269
|
+
@validate_call
|
1270
|
+
def get_json_web_key_set_without_preload_content(
|
782
1271
|
self,
|
783
|
-
set,
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
JsonWebKeySet
|
832
|
-
If the method is called asynchronously, returns the request
|
833
|
-
thread.
|
834
|
-
"""
|
835
|
-
kwargs['async_req'] = kwargs.get(
|
836
|
-
'async_req', False
|
837
|
-
)
|
838
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
839
|
-
'_return_http_data_only', True
|
1272
|
+
set: Annotated[StrictStr, Field(description="JSON Web Key Set ID")],
|
1273
|
+
_request_timeout: Union[
|
1274
|
+
None,
|
1275
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1276
|
+
Tuple[
|
1277
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1278
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1279
|
+
]
|
1280
|
+
] = None,
|
1281
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1282
|
+
_content_type: Optional[StrictStr] = None,
|
1283
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1284
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1285
|
+
) -> RESTResponseType:
|
1286
|
+
"""Retrieve a JSON Web Key Set
|
1287
|
+
|
1288
|
+
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.
|
1289
|
+
|
1290
|
+
:param set: JSON Web Key Set ID (required)
|
1291
|
+
:type set: str
|
1292
|
+
:param _request_timeout: timeout setting for this request. If one
|
1293
|
+
number provided, it will be total request
|
1294
|
+
timeout. It can also be a pair (tuple) of
|
1295
|
+
(connection, read) timeouts.
|
1296
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1297
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1298
|
+
request; this effectively ignores the
|
1299
|
+
authentication in the spec for a single request.
|
1300
|
+
:type _request_auth: dict, optional
|
1301
|
+
:param _content_type: force content-type for the request.
|
1302
|
+
:type _content_type: str, Optional
|
1303
|
+
:param _headers: set to override the headers for a single
|
1304
|
+
request; this effectively ignores the headers
|
1305
|
+
in the spec for a single request.
|
1306
|
+
:type _headers: dict, optional
|
1307
|
+
:param _host_index: set to override the host_index for a single
|
1308
|
+
request; this effectively ignores the host_index
|
1309
|
+
in the spec for a single request.
|
1310
|
+
:type _host_index: int, optional
|
1311
|
+
:return: Returns the result object.
|
1312
|
+
""" # noqa: E501
|
1313
|
+
|
1314
|
+
_param = self._get_json_web_key_set_serialize(
|
1315
|
+
set=set,
|
1316
|
+
_request_auth=_request_auth,
|
1317
|
+
_content_type=_content_type,
|
1318
|
+
_headers=_headers,
|
1319
|
+
_host_index=_host_index
|
840
1320
|
)
|
841
|
-
|
842
|
-
|
1321
|
+
|
1322
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1323
|
+
'200': "JsonWebKeySet",
|
1324
|
+
}
|
1325
|
+
response_data = self.api_client.call_api(
|
1326
|
+
*_param,
|
1327
|
+
_request_timeout=_request_timeout
|
843
1328
|
)
|
844
|
-
|
845
|
-
|
1329
|
+
return response_data.response
|
1330
|
+
|
1331
|
+
|
1332
|
+
def _get_json_web_key_set_serialize(
|
1333
|
+
self,
|
1334
|
+
set,
|
1335
|
+
_request_auth,
|
1336
|
+
_content_type,
|
1337
|
+
_headers,
|
1338
|
+
_host_index,
|
1339
|
+
) -> RequestSerialized:
|
1340
|
+
|
1341
|
+
_host = None
|
1342
|
+
|
1343
|
+
_collection_formats: Dict[str, str] = {
|
1344
|
+
}
|
1345
|
+
|
1346
|
+
_path_params: Dict[str, str] = {}
|
1347
|
+
_query_params: List[Tuple[str, str]] = []
|
1348
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1349
|
+
_form_params: List[Tuple[str, str]] = []
|
1350
|
+
_files: Dict[str, str] = {}
|
1351
|
+
_body_params: Optional[bytes] = None
|
1352
|
+
|
1353
|
+
# process the path parameters
|
1354
|
+
if set is not None:
|
1355
|
+
_path_params['set'] = set
|
1356
|
+
# process the query parameters
|
1357
|
+
# process the header parameters
|
1358
|
+
# process the form parameters
|
1359
|
+
# process the body parameter
|
1360
|
+
|
1361
|
+
|
1362
|
+
# set the HTTP header `Accept`
|
1363
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1364
|
+
[
|
1365
|
+
'application/json'
|
1366
|
+
]
|
846
1367
|
)
|
847
|
-
|
848
|
-
|
1368
|
+
|
1369
|
+
|
1370
|
+
# authentication setting
|
1371
|
+
_auth_settings: List[str] = [
|
1372
|
+
'oryAccessToken'
|
1373
|
+
]
|
1374
|
+
|
1375
|
+
return self.api_client.param_serialize(
|
1376
|
+
method='GET',
|
1377
|
+
resource_path='/admin/keys/{set}',
|
1378
|
+
path_params=_path_params,
|
1379
|
+
query_params=_query_params,
|
1380
|
+
header_params=_header_params,
|
1381
|
+
body=_body_params,
|
1382
|
+
post_params=_form_params,
|
1383
|
+
files=_files,
|
1384
|
+
auth_settings=_auth_settings,
|
1385
|
+
collection_formats=_collection_formats,
|
1386
|
+
_host=_host,
|
1387
|
+
_request_auth=_request_auth
|
849
1388
|
)
|
850
|
-
|
851
|
-
|
1389
|
+
|
1390
|
+
|
1391
|
+
|
1392
|
+
|
1393
|
+
@validate_call
|
1394
|
+
def set_json_web_key(
|
1395
|
+
self,
|
1396
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
|
1397
|
+
kid: Annotated[StrictStr, Field(description="JSON Web Key ID")],
|
1398
|
+
json_web_key: Optional[JsonWebKey] = None,
|
1399
|
+
_request_timeout: Union[
|
1400
|
+
None,
|
1401
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1402
|
+
Tuple[
|
1403
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1404
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1405
|
+
]
|
1406
|
+
] = None,
|
1407
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1408
|
+
_content_type: Optional[StrictStr] = None,
|
1409
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1410
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1411
|
+
) -> JsonWebKey:
|
1412
|
+
"""Set JSON Web Key
|
1413
|
+
|
1414
|
+
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.
|
1415
|
+
|
1416
|
+
:param set: The JSON Web Key Set ID (required)
|
1417
|
+
:type set: str
|
1418
|
+
:param kid: JSON Web Key ID (required)
|
1419
|
+
:type kid: str
|
1420
|
+
:param json_web_key:
|
1421
|
+
:type json_web_key: JsonWebKey
|
1422
|
+
:param _request_timeout: timeout setting for this request. If one
|
1423
|
+
number provided, it will be total request
|
1424
|
+
timeout. It can also be a pair (tuple) of
|
1425
|
+
(connection, read) timeouts.
|
1426
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1427
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1428
|
+
request; this effectively ignores the
|
1429
|
+
authentication in the spec for a single request.
|
1430
|
+
:type _request_auth: dict, optional
|
1431
|
+
:param _content_type: force content-type for the request.
|
1432
|
+
:type _content_type: str, Optional
|
1433
|
+
:param _headers: set to override the headers for a single
|
1434
|
+
request; this effectively ignores the headers
|
1435
|
+
in the spec for a single request.
|
1436
|
+
:type _headers: dict, optional
|
1437
|
+
:param _host_index: set to override the host_index for a single
|
1438
|
+
request; this effectively ignores the host_index
|
1439
|
+
in the spec for a single request.
|
1440
|
+
:type _host_index: int, optional
|
1441
|
+
:return: Returns the result object.
|
1442
|
+
""" # noqa: E501
|
1443
|
+
|
1444
|
+
_param = self._set_json_web_key_serialize(
|
1445
|
+
set=set,
|
1446
|
+
kid=kid,
|
1447
|
+
json_web_key=json_web_key,
|
1448
|
+
_request_auth=_request_auth,
|
1449
|
+
_content_type=_content_type,
|
1450
|
+
_headers=_headers,
|
1451
|
+
_host_index=_host_index
|
852
1452
|
)
|
853
|
-
|
854
|
-
|
1453
|
+
|
1454
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1455
|
+
'200': "JsonWebKey",
|
1456
|
+
}
|
1457
|
+
response_data = self.api_client.call_api(
|
1458
|
+
*_param,
|
1459
|
+
_request_timeout=_request_timeout
|
855
1460
|
)
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
set
|
862
|
-
return self.get_json_web_key_set_endpoint.call_with_http_info(**kwargs)
|
1461
|
+
response_data.read()
|
1462
|
+
return self.api_client.response_deserialize(
|
1463
|
+
response_data=response_data,
|
1464
|
+
response_types_map=_response_types_map,
|
1465
|
+
).data
|
863
1466
|
|
864
|
-
|
1467
|
+
|
1468
|
+
@validate_call
|
1469
|
+
def set_json_web_key_with_http_info(
|
865
1470
|
self,
|
866
|
-
set,
|
867
|
-
kid,
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
'async_req', False
|
1471
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
|
1472
|
+
kid: Annotated[StrictStr, Field(description="JSON Web Key ID")],
|
1473
|
+
json_web_key: Optional[JsonWebKey] = None,
|
1474
|
+
_request_timeout: Union[
|
1475
|
+
None,
|
1476
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1477
|
+
Tuple[
|
1478
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1479
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1480
|
+
]
|
1481
|
+
] = None,
|
1482
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1483
|
+
_content_type: Optional[StrictStr] = None,
|
1484
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1485
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1486
|
+
) -> ApiResponse[JsonWebKey]:
|
1487
|
+
"""Set JSON Web Key
|
1488
|
+
|
1489
|
+
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.
|
1490
|
+
|
1491
|
+
:param set: The JSON Web Key Set ID (required)
|
1492
|
+
:type set: str
|
1493
|
+
:param kid: JSON Web Key ID (required)
|
1494
|
+
:type kid: str
|
1495
|
+
:param json_web_key:
|
1496
|
+
:type json_web_key: JsonWebKey
|
1497
|
+
:param _request_timeout: timeout setting for this request. If one
|
1498
|
+
number provided, it will be total request
|
1499
|
+
timeout. It can also be a pair (tuple) of
|
1500
|
+
(connection, read) timeouts.
|
1501
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1502
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1503
|
+
request; this effectively ignores the
|
1504
|
+
authentication in the spec for a single request.
|
1505
|
+
:type _request_auth: dict, optional
|
1506
|
+
:param _content_type: force content-type for the request.
|
1507
|
+
:type _content_type: str, Optional
|
1508
|
+
:param _headers: set to override the headers for a single
|
1509
|
+
request; this effectively ignores the headers
|
1510
|
+
in the spec for a single request.
|
1511
|
+
:type _headers: dict, optional
|
1512
|
+
:param _host_index: set to override the host_index for a single
|
1513
|
+
request; this effectively ignores the host_index
|
1514
|
+
in the spec for a single request.
|
1515
|
+
:type _host_index: int, optional
|
1516
|
+
:return: Returns the result object.
|
1517
|
+
""" # noqa: E501
|
1518
|
+
|
1519
|
+
_param = self._set_json_web_key_serialize(
|
1520
|
+
set=set,
|
1521
|
+
kid=kid,
|
1522
|
+
json_web_key=json_web_key,
|
1523
|
+
_request_auth=_request_auth,
|
1524
|
+
_content_type=_content_type,
|
1525
|
+
_headers=_headers,
|
1526
|
+
_host_index=_host_index
|
923
1527
|
)
|
924
|
-
|
925
|
-
|
1528
|
+
|
1529
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1530
|
+
'200': "JsonWebKey",
|
1531
|
+
}
|
1532
|
+
response_data = self.api_client.call_api(
|
1533
|
+
*_param,
|
1534
|
+
_request_timeout=_request_timeout
|
926
1535
|
)
|
927
|
-
|
928
|
-
|
1536
|
+
response_data.read()
|
1537
|
+
return self.api_client.response_deserialize(
|
1538
|
+
response_data=response_data,
|
1539
|
+
response_types_map=_response_types_map,
|
929
1540
|
)
|
930
|
-
|
931
|
-
|
1541
|
+
|
1542
|
+
|
1543
|
+
@validate_call
|
1544
|
+
def set_json_web_key_without_preload_content(
|
1545
|
+
self,
|
1546
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
|
1547
|
+
kid: Annotated[StrictStr, Field(description="JSON Web Key ID")],
|
1548
|
+
json_web_key: Optional[JsonWebKey] = None,
|
1549
|
+
_request_timeout: Union[
|
1550
|
+
None,
|
1551
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1552
|
+
Tuple[
|
1553
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1554
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1555
|
+
]
|
1556
|
+
] = None,
|
1557
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1558
|
+
_content_type: Optional[StrictStr] = None,
|
1559
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1560
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1561
|
+
) -> RESTResponseType:
|
1562
|
+
"""Set JSON Web Key
|
1563
|
+
|
1564
|
+
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.
|
1565
|
+
|
1566
|
+
:param set: The JSON Web Key Set ID (required)
|
1567
|
+
:type set: str
|
1568
|
+
:param kid: JSON Web Key ID (required)
|
1569
|
+
:type kid: str
|
1570
|
+
:param json_web_key:
|
1571
|
+
:type json_web_key: JsonWebKey
|
1572
|
+
:param _request_timeout: timeout setting for this request. If one
|
1573
|
+
number provided, it will be total request
|
1574
|
+
timeout. It can also be a pair (tuple) of
|
1575
|
+
(connection, read) timeouts.
|
1576
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1577
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1578
|
+
request; this effectively ignores the
|
1579
|
+
authentication in the spec for a single request.
|
1580
|
+
:type _request_auth: dict, optional
|
1581
|
+
:param _content_type: force content-type for the request.
|
1582
|
+
:type _content_type: str, Optional
|
1583
|
+
:param _headers: set to override the headers for a single
|
1584
|
+
request; this effectively ignores the headers
|
1585
|
+
in the spec for a single request.
|
1586
|
+
:type _headers: dict, optional
|
1587
|
+
:param _host_index: set to override the host_index for a single
|
1588
|
+
request; this effectively ignores the host_index
|
1589
|
+
in the spec for a single request.
|
1590
|
+
:type _host_index: int, optional
|
1591
|
+
:return: Returns the result object.
|
1592
|
+
""" # noqa: E501
|
1593
|
+
|
1594
|
+
_param = self._set_json_web_key_serialize(
|
1595
|
+
set=set,
|
1596
|
+
kid=kid,
|
1597
|
+
json_web_key=json_web_key,
|
1598
|
+
_request_auth=_request_auth,
|
1599
|
+
_content_type=_content_type,
|
1600
|
+
_headers=_headers,
|
1601
|
+
_host_index=_host_index
|
932
1602
|
)
|
933
|
-
|
934
|
-
|
1603
|
+
|
1604
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1605
|
+
'200': "JsonWebKey",
|
1606
|
+
}
|
1607
|
+
response_data = self.api_client.call_api(
|
1608
|
+
*_param,
|
1609
|
+
_request_timeout=_request_timeout
|
935
1610
|
)
|
936
|
-
|
937
|
-
|
1611
|
+
return response_data.response
|
1612
|
+
|
1613
|
+
|
1614
|
+
def _set_json_web_key_serialize(
|
1615
|
+
self,
|
1616
|
+
set,
|
1617
|
+
kid,
|
1618
|
+
json_web_key,
|
1619
|
+
_request_auth,
|
1620
|
+
_content_type,
|
1621
|
+
_headers,
|
1622
|
+
_host_index,
|
1623
|
+
) -> RequestSerialized:
|
1624
|
+
|
1625
|
+
_host = None
|
1626
|
+
|
1627
|
+
_collection_formats: Dict[str, str] = {
|
1628
|
+
}
|
1629
|
+
|
1630
|
+
_path_params: Dict[str, str] = {}
|
1631
|
+
_query_params: List[Tuple[str, str]] = []
|
1632
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1633
|
+
_form_params: List[Tuple[str, str]] = []
|
1634
|
+
_files: Dict[str, str] = {}
|
1635
|
+
_body_params: Optional[bytes] = None
|
1636
|
+
|
1637
|
+
# process the path parameters
|
1638
|
+
if set is not None:
|
1639
|
+
_path_params['set'] = set
|
1640
|
+
if kid is not None:
|
1641
|
+
_path_params['kid'] = kid
|
1642
|
+
# process the query parameters
|
1643
|
+
# process the header parameters
|
1644
|
+
# process the form parameters
|
1645
|
+
# process the body parameter
|
1646
|
+
if json_web_key is not None:
|
1647
|
+
_body_params = json_web_key
|
1648
|
+
|
1649
|
+
|
1650
|
+
# set the HTTP header `Accept`
|
1651
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1652
|
+
[
|
1653
|
+
'application/json'
|
1654
|
+
]
|
938
1655
|
)
|
939
|
-
|
940
|
-
|
1656
|
+
|
1657
|
+
# set the HTTP header `Content-Type`
|
1658
|
+
if _content_type:
|
1659
|
+
_header_params['Content-Type'] = _content_type
|
1660
|
+
else:
|
1661
|
+
_default_content_type = (
|
1662
|
+
self.api_client.select_header_content_type(
|
1663
|
+
[
|
1664
|
+
'application/json'
|
1665
|
+
]
|
1666
|
+
)
|
1667
|
+
)
|
1668
|
+
if _default_content_type is not None:
|
1669
|
+
_header_params['Content-Type'] = _default_content_type
|
1670
|
+
|
1671
|
+
# authentication setting
|
1672
|
+
_auth_settings: List[str] = [
|
1673
|
+
'oryAccessToken'
|
1674
|
+
]
|
1675
|
+
|
1676
|
+
return self.api_client.param_serialize(
|
1677
|
+
method='PUT',
|
1678
|
+
resource_path='/admin/keys/{set}/{kid}',
|
1679
|
+
path_params=_path_params,
|
1680
|
+
query_params=_query_params,
|
1681
|
+
header_params=_header_params,
|
1682
|
+
body=_body_params,
|
1683
|
+
post_params=_form_params,
|
1684
|
+
files=_files,
|
1685
|
+
auth_settings=_auth_settings,
|
1686
|
+
collection_formats=_collection_formats,
|
1687
|
+
_host=_host,
|
1688
|
+
_request_auth=_request_auth
|
941
1689
|
)
|
942
|
-
kwargs['_content_type'] = kwargs.get(
|
943
|
-
'_content_type')
|
944
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
945
|
-
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
946
|
-
kwargs['set'] = \
|
947
|
-
set
|
948
|
-
kwargs['kid'] = \
|
949
|
-
kid
|
950
|
-
return self.set_json_web_key_endpoint.call_with_http_info(**kwargs)
|
951
1690
|
|
1691
|
+
|
1692
|
+
|
1693
|
+
|
1694
|
+
@validate_call
|
952
1695
|
def set_json_web_key_set(
|
953
1696
|
self,
|
954
|
-
set,
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1697
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
|
1698
|
+
json_web_key_set: Optional[JsonWebKeySet] = None,
|
1699
|
+
_request_timeout: Union[
|
1700
|
+
None,
|
1701
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1702
|
+
Tuple[
|
1703
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1704
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1705
|
+
]
|
1706
|
+
] = None,
|
1707
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1708
|
+
_content_type: Optional[StrictStr] = None,
|
1709
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1710
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1711
|
+
) -> JsonWebKeySet:
|
1712
|
+
"""Update a JSON Web Key Set
|
1713
|
+
|
1714
|
+
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.
|
1715
|
+
|
1716
|
+
:param set: The JSON Web Key Set ID (required)
|
1717
|
+
:type set: str
|
1718
|
+
:param json_web_key_set:
|
1719
|
+
:type json_web_key_set: JsonWebKeySet
|
1720
|
+
:param _request_timeout: timeout setting for this request. If one
|
1721
|
+
number provided, it will be total request
|
1722
|
+
timeout. It can also be a pair (tuple) of
|
1723
|
+
(connection, read) timeouts.
|
1724
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1725
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1726
|
+
request; this effectively ignores the
|
1727
|
+
authentication in the spec for a single request.
|
1728
|
+
:type _request_auth: dict, optional
|
1729
|
+
:param _content_type: force content-type for the request.
|
1730
|
+
:type _content_type: str, Optional
|
1731
|
+
:param _headers: set to override the headers for a single
|
1732
|
+
request; this effectively ignores the headers
|
1733
|
+
in the spec for a single request.
|
1734
|
+
:type _headers: dict, optional
|
1735
|
+
:param _host_index: set to override the host_index for a single
|
1736
|
+
request; this effectively ignores the host_index
|
1737
|
+
in the spec for a single request.
|
1738
|
+
:type _host_index: int, optional
|
1739
|
+
:return: Returns the result object.
|
1740
|
+
""" # noqa: E501
|
1741
|
+
|
1742
|
+
_param = self._set_json_web_key_set_serialize(
|
1743
|
+
set=set,
|
1744
|
+
json_web_key_set=json_web_key_set,
|
1745
|
+
_request_auth=_request_auth,
|
1746
|
+
_content_type=_content_type,
|
1747
|
+
_headers=_headers,
|
1748
|
+
_host_index=_host_index
|
1749
|
+
)
|
1750
|
+
|
1751
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1752
|
+
'200': "JsonWebKeySet",
|
1753
|
+
}
|
1754
|
+
response_data = self.api_client.call_api(
|
1755
|
+
*_param,
|
1756
|
+
_request_timeout=_request_timeout
|
1757
|
+
)
|
1758
|
+
response_data.read()
|
1759
|
+
return self.api_client.response_deserialize(
|
1760
|
+
response_data=response_data,
|
1761
|
+
response_types_map=_response_types_map,
|
1762
|
+
).data
|
1763
|
+
|
1764
|
+
|
1765
|
+
@validate_call
|
1766
|
+
def set_json_web_key_set_with_http_info(
|
1767
|
+
self,
|
1768
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
|
1769
|
+
json_web_key_set: Optional[JsonWebKeySet] = None,
|
1770
|
+
_request_timeout: Union[
|
1771
|
+
None,
|
1772
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1773
|
+
Tuple[
|
1774
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1775
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1776
|
+
]
|
1777
|
+
] = None,
|
1778
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1779
|
+
_content_type: Optional[StrictStr] = None,
|
1780
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1781
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1782
|
+
) -> ApiResponse[JsonWebKeySet]:
|
1783
|
+
"""Update a JSON Web Key Set
|
1784
|
+
|
1785
|
+
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.
|
1786
|
+
|
1787
|
+
:param set: The JSON Web Key Set ID (required)
|
1788
|
+
:type set: str
|
1789
|
+
:param json_web_key_set:
|
1790
|
+
:type json_web_key_set: JsonWebKeySet
|
1791
|
+
:param _request_timeout: timeout setting for this request. If one
|
1792
|
+
number provided, it will be total request
|
1793
|
+
timeout. It can also be a pair (tuple) of
|
1794
|
+
(connection, read) timeouts.
|
1795
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1796
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1797
|
+
request; this effectively ignores the
|
1798
|
+
authentication in the spec for a single request.
|
1799
|
+
:type _request_auth: dict, optional
|
1800
|
+
:param _content_type: force content-type for the request.
|
1801
|
+
:type _content_type: str, Optional
|
1802
|
+
:param _headers: set to override the headers for a single
|
1803
|
+
request; this effectively ignores the headers
|
1804
|
+
in the spec for a single request.
|
1805
|
+
:type _headers: dict, optional
|
1806
|
+
:param _host_index: set to override the host_index for a single
|
1807
|
+
request; this effectively ignores the host_index
|
1808
|
+
in the spec for a single request.
|
1809
|
+
:type _host_index: int, optional
|
1810
|
+
:return: Returns the result object.
|
1811
|
+
""" # noqa: E501
|
1812
|
+
|
1813
|
+
_param = self._set_json_web_key_set_serialize(
|
1814
|
+
set=set,
|
1815
|
+
json_web_key_set=json_web_key_set,
|
1816
|
+
_request_auth=_request_auth,
|
1817
|
+
_content_type=_content_type,
|
1818
|
+
_headers=_headers,
|
1819
|
+
_host_index=_host_index
|
1009
1820
|
)
|
1010
|
-
|
1011
|
-
|
1821
|
+
|
1822
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1823
|
+
'200': "JsonWebKeySet",
|
1824
|
+
}
|
1825
|
+
response_data = self.api_client.call_api(
|
1826
|
+
*_param,
|
1827
|
+
_request_timeout=_request_timeout
|
1012
1828
|
)
|
1013
|
-
|
1014
|
-
|
1829
|
+
response_data.read()
|
1830
|
+
return self.api_client.response_deserialize(
|
1831
|
+
response_data=response_data,
|
1832
|
+
response_types_map=_response_types_map,
|
1015
1833
|
)
|
1016
|
-
|
1017
|
-
|
1834
|
+
|
1835
|
+
|
1836
|
+
@validate_call
|
1837
|
+
def set_json_web_key_set_without_preload_content(
|
1838
|
+
self,
|
1839
|
+
set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
|
1840
|
+
json_web_key_set: Optional[JsonWebKeySet] = None,
|
1841
|
+
_request_timeout: Union[
|
1842
|
+
None,
|
1843
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1844
|
+
Tuple[
|
1845
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1846
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1847
|
+
]
|
1848
|
+
] = None,
|
1849
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1850
|
+
_content_type: Optional[StrictStr] = None,
|
1851
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1852
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1853
|
+
) -> RESTResponseType:
|
1854
|
+
"""Update a JSON Web Key Set
|
1855
|
+
|
1856
|
+
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.
|
1857
|
+
|
1858
|
+
:param set: The JSON Web Key Set ID (required)
|
1859
|
+
:type set: str
|
1860
|
+
:param json_web_key_set:
|
1861
|
+
:type json_web_key_set: JsonWebKeySet
|
1862
|
+
:param _request_timeout: timeout setting for this request. If one
|
1863
|
+
number provided, it will be total request
|
1864
|
+
timeout. It can also be a pair (tuple) of
|
1865
|
+
(connection, read) timeouts.
|
1866
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1867
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1868
|
+
request; this effectively ignores the
|
1869
|
+
authentication in the spec for a single request.
|
1870
|
+
:type _request_auth: dict, optional
|
1871
|
+
:param _content_type: force content-type for the request.
|
1872
|
+
:type _content_type: str, Optional
|
1873
|
+
:param _headers: set to override the headers for a single
|
1874
|
+
request; this effectively ignores the headers
|
1875
|
+
in the spec for a single request.
|
1876
|
+
:type _headers: dict, optional
|
1877
|
+
:param _host_index: set to override the host_index for a single
|
1878
|
+
request; this effectively ignores the host_index
|
1879
|
+
in the spec for a single request.
|
1880
|
+
:type _host_index: int, optional
|
1881
|
+
:return: Returns the result object.
|
1882
|
+
""" # noqa: E501
|
1883
|
+
|
1884
|
+
_param = self._set_json_web_key_set_serialize(
|
1885
|
+
set=set,
|
1886
|
+
json_web_key_set=json_web_key_set,
|
1887
|
+
_request_auth=_request_auth,
|
1888
|
+
_content_type=_content_type,
|
1889
|
+
_headers=_headers,
|
1890
|
+
_host_index=_host_index
|
1018
1891
|
)
|
1019
|
-
|
1020
|
-
|
1892
|
+
|
1893
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1894
|
+
'200': "JsonWebKeySet",
|
1895
|
+
}
|
1896
|
+
response_data = self.api_client.call_api(
|
1897
|
+
*_param,
|
1898
|
+
_request_timeout=_request_timeout
|
1021
1899
|
)
|
1022
|
-
|
1023
|
-
|
1900
|
+
return response_data.response
|
1901
|
+
|
1902
|
+
|
1903
|
+
def _set_json_web_key_set_serialize(
|
1904
|
+
self,
|
1905
|
+
set,
|
1906
|
+
json_web_key_set,
|
1907
|
+
_request_auth,
|
1908
|
+
_content_type,
|
1909
|
+
_headers,
|
1910
|
+
_host_index,
|
1911
|
+
) -> RequestSerialized:
|
1912
|
+
|
1913
|
+
_host = None
|
1914
|
+
|
1915
|
+
_collection_formats: Dict[str, str] = {
|
1916
|
+
}
|
1917
|
+
|
1918
|
+
_path_params: Dict[str, str] = {}
|
1919
|
+
_query_params: List[Tuple[str, str]] = []
|
1920
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1921
|
+
_form_params: List[Tuple[str, str]] = []
|
1922
|
+
_files: Dict[str, str] = {}
|
1923
|
+
_body_params: Optional[bytes] = None
|
1924
|
+
|
1925
|
+
# process the path parameters
|
1926
|
+
if set is not None:
|
1927
|
+
_path_params['set'] = set
|
1928
|
+
# process the query parameters
|
1929
|
+
# process the header parameters
|
1930
|
+
# process the form parameters
|
1931
|
+
# process the body parameter
|
1932
|
+
if json_web_key_set is not None:
|
1933
|
+
_body_params = json_web_key_set
|
1934
|
+
|
1935
|
+
|
1936
|
+
# set the HTTP header `Accept`
|
1937
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1938
|
+
[
|
1939
|
+
'application/json'
|
1940
|
+
]
|
1024
1941
|
)
|
1025
|
-
|
1026
|
-
|
1942
|
+
|
1943
|
+
# set the HTTP header `Content-Type`
|
1944
|
+
if _content_type:
|
1945
|
+
_header_params['Content-Type'] = _content_type
|
1946
|
+
else:
|
1947
|
+
_default_content_type = (
|
1948
|
+
self.api_client.select_header_content_type(
|
1949
|
+
[
|
1950
|
+
'application/json'
|
1951
|
+
]
|
1952
|
+
)
|
1953
|
+
)
|
1954
|
+
if _default_content_type is not None:
|
1955
|
+
_header_params['Content-Type'] = _default_content_type
|
1956
|
+
|
1957
|
+
# authentication setting
|
1958
|
+
_auth_settings: List[str] = [
|
1959
|
+
'oryAccessToken'
|
1960
|
+
]
|
1961
|
+
|
1962
|
+
return self.api_client.param_serialize(
|
1963
|
+
method='PUT',
|
1964
|
+
resource_path='/admin/keys/{set}',
|
1965
|
+
path_params=_path_params,
|
1966
|
+
query_params=_query_params,
|
1967
|
+
header_params=_header_params,
|
1968
|
+
body=_body_params,
|
1969
|
+
post_params=_form_params,
|
1970
|
+
files=_files,
|
1971
|
+
auth_settings=_auth_settings,
|
1972
|
+
collection_formats=_collection_formats,
|
1973
|
+
_host=_host,
|
1974
|
+
_request_auth=_request_auth
|
1027
1975
|
)
|
1028
|
-
|
1029
|
-
'_content_type')
|
1030
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
1031
|
-
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
1032
|
-
kwargs['set'] = \
|
1033
|
-
set
|
1034
|
-
return self.set_json_web_key_set_endpoint.call_with_http_info(**kwargs)
|
1976
|
+
|
1035
1977
|
|