ory-client 0.2.0.alpha26 → 0.2.0.alpha29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +90 -95
- data/docs/{AcceptOAuth2ConsentRequest.md → AcceptConsentRequest.md} +3 -3
- data/docs/{AcceptOAuth2LoginRequest.md → AcceptLoginRequest.md} +2 -2
- data/docs/AdminApi.md +2093 -15
- data/docs/{SuccessfulOAuth2RequestResponse.md → CompletedRequest.md} +2 -2
- data/docs/{OAuth2ConsentRequest.md → ConsentRequest.md} +3 -3
- data/docs/{AcceptOAuth2ConsentRequestSession.md → ConsentRequestSession.md} +2 -2
- data/docs/CreateProjectApiKeyRequest.md +18 -0
- data/docs/FlushInactiveOAuth2TokensRequest.md +18 -0
- data/docs/FlushLoginConsentRequest.md +18 -0
- data/docs/GenericError.md +1 -1
- data/docs/{JsonWebKey.md → JSONWebKey.md} +2 -2
- data/docs/JSONWebKeySet.md +18 -0
- data/docs/JsonError.md +7 -1
- data/docs/{AdminCreateJsonWebKeySetBody.md → JsonWebKeySetGeneratorRequest.md} +2 -2
- data/docs/{OAuth2LoginRequest.md → LoginRequest.md} +3 -3
- data/docs/{OAuth2LogoutRequest.md → LogoutRequest.md} +2 -2
- data/docs/ManagedIdentitySchema.md +1 -1
- data/docs/NormalizedProject.md +1 -1
- data/docs/NormalizedProjectRevision.md +25 -25
- data/docs/NormalizedProjectRevisionHook.md +4 -2
- data/docs/NormalizedProjectRevisionIdentitySchema.md +2 -2
- data/docs/NormalizedProjectRevisionThirdPartyProvider.md +1 -1
- data/docs/OAuth2Client.md +2 -26
- data/docs/{IntrospectedOAuth2Token.md → OAuth2TokenIntrospection.md} +2 -2
- data/docs/Oauth2TokenResponse.md +28 -0
- data/docs/{OAuth2TokenResponse.md → OauthTokenResponse.md} +2 -2
- data/docs/{OAuth2ConsentRequestOpenIDConnectContext.md → OpenIDConnectContext.md} +2 -2
- data/docs/Pagination.md +0 -4
- data/docs/PatchDocument.md +24 -0
- data/docs/{PreviousOAuth2ConsentSession.md → PreviousConsentSession.md} +4 -4
- data/docs/Project.md +2 -2
- data/docs/{ApiToken.md → ProjectApiKey.md} +5 -5
- data/docs/ProjectHost.md +2 -2
- data/docs/ProjectInvite.md +3 -3
- data/docs/ProjectMetadata.md +1 -1
- data/docs/PublicApi.md +738 -0
- data/docs/RefreshTokenHookRequest.md +0 -4
- data/docs/RefreshTokenHookResponse.md +1 -1
- data/docs/{RejectOAuth2Request.md → RejectRequest.md} +2 -2
- data/docs/{HandledOAuth2LoginRequest.md → RequestWasHandledResponse.md} +2 -2
- data/docs/Subscription.md +1 -1
- data/docs/{AdminTrustOAuth2JwtGrantIssuerBody.md → TrustJwtGrantIssuerBody.md} +3 -3
- data/docs/{TrustedOAuth2JwtGrantJsonWebKey.md → TrustedJsonWebKey.md} +2 -2
- data/docs/{TrustedOAuth2JwtGrantIssuer.md → TrustedJwtGrantIssuer.md} +3 -3
- data/docs/{OidcUserInfo.md → UserinfoResponse.md} +2 -2
- data/docs/V0alpha2Api.md +384 -3154
- data/docs/{OidcConfiguration.md → WellKnown.md} +2 -6
- data/lib/ory-client/api/admin_api.rb +2108 -14
- data/lib/ory-client/api/metadata_api.rb +1 -1
- data/lib/ory-client/api/public_api.rb +723 -0
- data/lib/ory-client/api/read_api.rb +1 -1
- data/lib/ory-client/api/v0alpha2_api.rb +349 -2964
- data/lib/ory-client/api/write_api.rb +1 -1
- data/lib/ory-client/api_client.rb +1 -1
- data/lib/ory-client/api_error.rb +1 -1
- data/lib/ory-client/configuration.rb +1 -8
- data/lib/ory-client/models/{accept_o_auth2_consent_request.rb → accept_consent_request.rb} +5 -5
- data/lib/ory-client/models/{accept_o_auth2_login_request.rb → accept_login_request.rb} +4 -4
- data/lib/ory-client/models/active_project.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_body.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_config.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_oidc_provider.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_password.rb +1 -1
- data/lib/ory-client/models/admin_create_identity_import_credentials_password_config.rb +1 -1
- data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +1 -1
- data/lib/ory-client/models/admin_identity_import_credentials.rb +1 -1
- data/lib/ory-client/models/admin_update_identity_body.rb +1 -1
- data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
- data/lib/ory-client/models/cloud_account.rb +1 -1
- data/lib/ory-client/models/cname_settings.rb +1 -1
- data/lib/ory-client/models/{successful_o_auth2_request_response.rb → completed_request.rb} +4 -4
- data/lib/ory-client/models/{o_auth2_consent_request.rb → consent_request.rb} +5 -5
- data/lib/ory-client/models/{accept_o_auth2_consent_request_session.rb → consent_request_session.rb} +4 -4
- data/lib/ory-client/models/create_custom_hostname_body.rb +1 -1
- data/lib/ory-client/models/{headers.rb → create_project_api_key_request.rb} +17 -14
- data/lib/ory-client/models/create_project_body.rb +1 -1
- data/lib/ory-client/models/create_subscription_payload.rb +1 -1
- data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
- data/lib/ory-client/models/expand_tree.rb +1 -1
- data/lib/ory-client/models/{handled_o_auth2_logout_request.rb → flush_inactive_o_auth2_tokens_request.rb} +12 -17
- data/lib/ory-client/models/{handled_o_auth2_consent_request.rb → flush_login_consent_request.rb} +12 -17
- data/lib/ory-client/models/generic_error.rb +4 -5
- data/lib/ory-client/models/generic_error_content.rb +1 -1
- data/lib/ory-client/models/get_check_response.rb +1 -1
- data/lib/ory-client/models/get_managed_identity_schema_location.rb +1 -1
- data/lib/ory-client/models/get_relation_tuples_response.rb +1 -1
- data/lib/ory-client/models/get_version200_response.rb +1 -1
- data/lib/ory-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-client/models/health_status.rb +1 -1
- data/lib/ory-client/models/identity.rb +1 -1
- data/lib/ory-client/models/identity_credentials.rb +1 -1
- data/lib/ory-client/models/identity_credentials_oidc.rb +1 -1
- data/lib/ory-client/models/identity_credentials_oidc_provider.rb +1 -1
- data/lib/ory-client/models/identity_credentials_password.rb +1 -1
- data/lib/ory-client/models/identity_credentials_type.rb +1 -1
- data/lib/ory-client/models/identity_schema_container.rb +1 -1
- data/lib/ory-client/models/identity_schema_preset.rb +1 -1
- data/lib/ory-client/models/identity_state.rb +1 -1
- data/lib/ory-client/models/invite_payload.rb +1 -1
- data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
- data/lib/ory-client/models/is_owner_for_project_by_slug_payload.rb +1 -1
- data/lib/ory-client/models/is_ready200_response.rb +1 -1
- data/lib/ory-client/models/is_ready503_response.rb +1 -1
- data/lib/ory-client/models/json_error.rb +35 -5
- data/lib/ory-client/models/json_patch.rb +1 -1
- data/lib/ory-client/models/json_web_key.rb +5 -4
- data/lib/ory-client/models/json_web_key_set.rb +6 -6
- data/lib/ory-client/models/{admin_create_json_web_key_set_body.rb → json_web_key_set_generator_request.rb} +4 -4
- data/lib/ory-client/models/keto_namespace.rb +1 -1
- data/lib/ory-client/models/{o_auth2_login_request.rb → login_request.rb} +5 -5
- data/lib/ory-client/models/{o_auth2_logout_request.rb → logout_request.rb} +4 -4
- data/lib/ory-client/models/managed_identity_schema.rb +2 -1
- data/lib/ory-client/models/managed_identity_schema_validation_result.rb +1 -1
- data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
- data/lib/ory-client/models/normalized_project.rb +2 -1
- data/lib/ory-client/models/normalized_project_revision.rb +35 -21
- data/lib/ory-client/models/normalized_project_revision_hook.rb +14 -2
- data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +3 -1
- data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +2 -1
- data/lib/ory-client/models/null_plan.rb +1 -1
- data/lib/ory-client/models/o_auth2_client.rb +13 -320
- data/lib/ory-client/models/{introspected_o_auth2_token.rb → o_auth2_token_introspection.rb} +5 -5
- data/lib/ory-client/models/{o_auth2_consent_session_expires_at.rb → oauth2_token_response.rb} +35 -25
- data/lib/ory-client/models/{o_auth2_token_response.rb → oauth_token_response.rb} +5 -5
- data/lib/ory-client/models/{o_auth2_consent_request_open_id_connect_context.rb → open_id_connect_context.rb} +4 -4
- data/lib/ory-client/models/pagination.rb +2 -56
- data/lib/ory-client/models/patch_delta.rb +1 -1
- data/lib/ory-client/models/{pagination_headers.rb → patch_document.rb} +50 -19
- data/lib/ory-client/models/{previous_o_auth2_consent_session.rb → previous_consent_session.rb} +6 -6
- data/lib/ory-client/models/project.rb +3 -1
- data/lib/ory-client/models/{api_token.rb → project_api_key.rb} +7 -4
- data/lib/ory-client/models/project_host.rb +3 -1
- data/lib/ory-client/models/project_invite.rb +4 -1
- data/lib/ory-client/models/project_metadata.rb +2 -1
- data/lib/ory-client/models/project_service_identity.rb +1 -1
- data/lib/ory-client/models/project_service_o_auth2.rb +1 -1
- data/lib/ory-client/models/project_service_permission.rb +1 -1
- data/lib/ory-client/models/project_services.rb +1 -1
- data/lib/ory-client/models/provision_mock_subscription_payload.rb +1 -1
- data/lib/ory-client/models/quota_custom_domains.rb +1 -1
- data/lib/ory-client/models/quota_project_member_seats.rb +1 -1
- data/lib/ory-client/models/recovery_address.rb +1 -1
- data/lib/ory-client/models/refresh_token_hook_request.rb +2 -20
- data/lib/ory-client/models/refresh_token_hook_response.rb +2 -2
- data/lib/ory-client/models/{reject_o_auth2_request.rb → reject_request.rb} +4 -4
- data/lib/ory-client/models/relation_query.rb +1 -1
- data/lib/ory-client/models/relation_tuple.rb +1 -1
- data/lib/ory-client/models/{handled_o_auth2_login_request.rb → request_was_handled_response.rb} +4 -4
- data/lib/ory-client/models/revoked_sessions.rb +1 -1
- data/lib/ory-client/models/schema_patch.rb +1 -1
- data/lib/ory-client/models/self_service_browser_location_change_required_error.rb +1 -1
- data/lib/ory-client/models/self_service_error.rb +1 -1
- data/lib/ory-client/models/self_service_flow_expired_error.rb +1 -1
- data/lib/ory-client/models/self_service_login_flow.rb +1 -1
- data/lib/ory-client/models/self_service_logout_url.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_flow.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_flow_state.rb +1 -1
- data/lib/ory-client/models/self_service_recovery_link.rb +1 -1
- data/lib/ory-client/models/self_service_registration_flow.rb +1 -1
- data/lib/ory-client/models/self_service_settings_flow.rb +1 -1
- data/lib/ory-client/models/self_service_settings_flow_state.rb +1 -1
- data/lib/ory-client/models/self_service_verification_flow.rb +1 -1
- data/lib/ory-client/models/self_service_verification_flow_state.rb +1 -1
- data/lib/ory-client/models/session.rb +1 -1
- data/lib/ory-client/models/session_authentication_method.rb +1 -1
- data/lib/ory-client/models/session_device.rb +1 -1
- data/lib/ory-client/models/settings_profile_form_config.rb +1 -1
- data/lib/ory-client/models/stripe_customer_response.rb +1 -1
- data/lib/ory-client/models/subject_set.rb +1 -1
- data/lib/ory-client/models/submit_self_service_flow_with_web_authn_registration_method.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +1 -1
- data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +1 -1
- data/lib/ory-client/models/subscription.rb +2 -1
- data/lib/ory-client/models/successful_project_update.rb +1 -1
- data/lib/ory-client/models/successful_self_service_login_without_browser.rb +1 -1
- data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +1 -1
- data/lib/ory-client/models/token_pagination.rb +1 -1
- data/lib/ory-client/models/token_pagination_headers.rb +1 -1
- data/lib/ory-client/models/{admin_trust_o_auth2_jwt_grant_issuer_body.rb → trust_jwt_grant_issuer_body.rb} +5 -5
- data/lib/ory-client/models/{trusted_o_auth2_jwt_grant_json_web_key.rb → trusted_json_web_key.rb} +4 -4
- data/lib/ory-client/models/{trusted_o_auth2_jwt_grant_issuer.rb → trusted_jwt_grant_issuer.rb} +5 -5
- data/lib/ory-client/models/ui_container.rb +1 -1
- data/lib/ory-client/models/ui_node.rb +1 -1
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_input_attributes.rb +13 -1
- data/lib/ory-client/models/ui_node_meta.rb +1 -1
- data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
- data/lib/ory-client/models/ui_text.rb +1 -1
- data/lib/ory-client/models/update_custom_hostname_body.rb +1 -1
- data/lib/ory-client/models/update_project.rb +1 -1
- data/lib/ory-client/models/update_subscription_payload.rb +1 -1
- data/lib/ory-client/models/{oidc_user_info.rb → userinfo_response.rb} +4 -4
- data/lib/ory-client/models/verifiable_identity_address.rb +1 -1
- data/lib/ory-client/models/version.rb +1 -1
- data/lib/ory-client/models/warning.rb +1 -1
- data/lib/ory-client/models/{oidc_configuration.rb → well_known.rb} +6 -40
- data/lib/ory-client/version.rb +2 -2
- data/lib/ory-client.rb +29 -33
- data/ory-client.gemspec +1 -1
- data/spec/api/admin_api_spec.rb +400 -5
- data/spec/api/metadata_api_spec.rb +1 -1
- data/spec/api/public_api_spec.rb +167 -0
- data/spec/api/read_api_spec.rb +1 -1
- data/spec/api/v0alpha2_api_spec.rb +38 -529
- data/spec/api/write_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/{accept_o_auth2_consent_request_spec.rb → accept_consent_request_spec.rb} +7 -7
- data/spec/models/{accept_o_auth2_login_request_spec.rb → accept_login_request_spec.rb} +7 -7
- data/spec/models/active_project_spec.rb +1 -1
- data/spec/models/admin_create_identity_body_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_config_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_provider_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_oidc_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_password_config_spec.rb +1 -1
- data/spec/models/admin_create_identity_import_credentials_password_spec.rb +1 -1
- data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +1 -1
- data/spec/models/admin_identity_import_credentials_spec.rb +1 -1
- data/spec/models/admin_update_identity_body_spec.rb +1 -1
- data/spec/models/authenticator_assurance_level_spec.rb +1 -1
- data/spec/models/cloud_account_spec.rb +1 -1
- data/spec/models/cname_settings_spec.rb +1 -1
- data/spec/models/{handled_o_auth2_logout_request_spec.rb → completed_request_spec.rb} +7 -7
- data/spec/models/{accept_o_auth2_consent_request_session_spec.rb → consent_request_session_spec.rb} +7 -7
- data/spec/models/{o_auth2_consent_request_spec.rb → consent_request_spec.rb} +7 -7
- data/spec/models/create_custom_hostname_body_spec.rb +1 -1
- data/spec/models/{handled_o_auth2_consent_request_spec.rb → create_project_api_key_request_spec.rb} +8 -8
- data/spec/models/create_project_body_spec.rb +1 -1
- data/spec/models/create_subscription_payload_spec.rb +1 -1
- data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
- data/spec/models/expand_tree_spec.rb +1 -1
- data/spec/models/flush_inactive_o_auth2_tokens_request_spec.rb +34 -0
- data/spec/models/{headers_spec.rb → flush_login_consent_request_spec.rb} +8 -8
- data/spec/models/generic_error_content_spec.rb +1 -1
- data/spec/models/generic_error_spec.rb +1 -1
- data/spec/models/get_check_response_spec.rb +1 -1
- data/spec/models/get_managed_identity_schema_location_spec.rb +1 -1
- data/spec/models/get_relation_tuples_response_spec.rb +1 -1
- data/spec/models/get_version200_response_spec.rb +1 -1
- data/spec/models/health_not_ready_status_spec.rb +1 -1
- data/spec/models/health_status_spec.rb +1 -1
- data/spec/models/identity_credentials_oidc_provider_spec.rb +1 -1
- data/spec/models/identity_credentials_oidc_spec.rb +1 -1
- data/spec/models/identity_credentials_password_spec.rb +1 -1
- data/spec/models/identity_credentials_spec.rb +1 -1
- data/spec/models/identity_credentials_type_spec.rb +1 -1
- data/spec/models/identity_schema_container_spec.rb +1 -1
- data/spec/models/identity_schema_preset_spec.rb +1 -1
- data/spec/models/identity_spec.rb +1 -1
- data/spec/models/identity_state_spec.rb +1 -1
- data/spec/models/invite_payload_spec.rb +1 -1
- data/spec/models/is_owner_for_project_by_slug_payload_spec.rb +1 -1
- data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
- data/spec/models/is_ready200_response_spec.rb +1 -1
- data/spec/models/is_ready503_response_spec.rb +1 -1
- data/spec/models/json_error_spec.rb +19 -1
- data/spec/models/json_patch_spec.rb +1 -1
- data/spec/models/{admin_create_json_web_key_set_body_spec.rb → json_web_key_set_generator_request_spec.rb} +7 -7
- data/spec/models/json_web_key_set_spec.rb +7 -7
- data/spec/models/json_web_key_spec.rb +7 -7
- data/spec/models/keto_namespace_spec.rb +1 -1
- data/spec/models/{o_auth2_login_request_spec.rb → login_request_spec.rb} +7 -7
- data/spec/models/{o_auth2_logout_request_spec.rb → logout_request_spec.rb} +7 -7
- data/spec/models/managed_identity_schema_spec.rb +1 -1
- data/spec/models/managed_identity_schema_validation_result_spec.rb +1 -1
- data/spec/models/needs_privileged_session_error_spec.rb +1 -1
- data/spec/models/normalized_project_revision_hook_spec.rb +7 -1
- data/spec/models/normalized_project_revision_identity_schema_spec.rb +1 -1
- data/spec/models/normalized_project_revision_spec.rb +1 -1
- data/spec/models/normalized_project_revision_third_party_provider_spec.rb +1 -1
- data/spec/models/normalized_project_spec.rb +1 -1
- data/spec/models/null_plan_spec.rb +1 -1
- data/spec/models/o_auth2_client_spec.rb +1 -73
- data/spec/models/{introspected_o_auth2_token_spec.rb → o_auth2_token_introspection_spec.rb} +7 -7
- data/spec/models/{o_auth2_token_response_spec.rb → oauth2_token_response_spec.rb} +7 -7
- data/spec/models/{o_auth2_consent_session_expires_at_spec.rb → oauth_token_response_spec.rb} +16 -10
- data/spec/models/{o_auth2_consent_request_open_id_connect_context_spec.rb → open_id_connect_context_spec.rb} +7 -7
- data/spec/models/pagination_spec.rb +1 -13
- data/spec/models/patch_delta_spec.rb +1 -1
- data/spec/models/{o_auth2_api_error_spec.rb → patch_document_spec.rb} +11 -11
- data/spec/models/{previous_o_auth2_consent_session_spec.rb → previous_consent_session_spec.rb} +7 -7
- data/spec/models/{api_token_spec.rb → project_api_key_spec.rb} +7 -7
- data/spec/models/project_host_spec.rb +1 -1
- data/spec/models/project_invite_spec.rb +1 -1
- data/spec/models/project_metadata_spec.rb +1 -1
- data/spec/models/project_service_identity_spec.rb +1 -1
- data/spec/models/project_service_o_auth2_spec.rb +1 -1
- data/spec/models/project_service_permission_spec.rb +1 -1
- data/spec/models/project_services_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/provision_mock_subscription_payload_spec.rb +1 -1
- data/spec/models/quota_custom_domains_spec.rb +1 -1
- data/spec/models/quota_project_member_seats_spec.rb +1 -1
- data/spec/models/recovery_address_spec.rb +1 -1
- data/spec/models/refresh_token_hook_request_spec.rb +1 -13
- data/spec/models/refresh_token_hook_response_spec.rb +1 -1
- data/spec/models/{reject_o_auth2_request_spec.rb → reject_request_spec.rb} +7 -7
- data/spec/models/relation_query_spec.rb +1 -1
- data/spec/models/relation_tuple_spec.rb +1 -1
- data/spec/models/{handled_o_auth2_login_request_spec.rb → request_was_handled_response_spec.rb} +7 -7
- data/spec/models/revoked_sessions_spec.rb +1 -1
- data/spec/models/schema_patch_spec.rb +1 -1
- data/spec/models/self_service_browser_location_change_required_error_spec.rb +1 -1
- data/spec/models/self_service_error_spec.rb +1 -1
- data/spec/models/self_service_flow_expired_error_spec.rb +1 -1
- data/spec/models/self_service_login_flow_spec.rb +1 -1
- data/spec/models/self_service_logout_url_spec.rb +1 -1
- data/spec/models/self_service_recovery_flow_spec.rb +1 -1
- data/spec/models/self_service_recovery_flow_state_spec.rb +1 -1
- data/spec/models/self_service_recovery_link_spec.rb +1 -1
- data/spec/models/self_service_registration_flow_spec.rb +1 -1
- data/spec/models/self_service_settings_flow_spec.rb +1 -1
- data/spec/models/self_service_settings_flow_state_spec.rb +1 -1
- data/spec/models/self_service_verification_flow_spec.rb +1 -1
- data/spec/models/self_service_verification_flow_state_spec.rb +1 -1
- data/spec/models/session_authentication_method_spec.rb +1 -1
- data/spec/models/session_device_spec.rb +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/settings_profile_form_config_spec.rb +1 -1
- data/spec/models/stripe_customer_response_spec.rb +1 -1
- data/spec/models/subject_set_spec.rb +1 -1
- data/spec/models/submit_self_service_flow_with_web_authn_registration_method_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_verification_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/subscription_spec.rb +1 -1
- data/spec/models/successful_project_update_spec.rb +1 -1
- data/spec/models/successful_self_service_login_without_browser_spec.rb +1 -1
- data/spec/models/successful_self_service_registration_without_browser_spec.rb +1 -1
- data/spec/models/token_pagination_headers_spec.rb +1 -1
- data/spec/models/token_pagination_spec.rb +1 -1
- data/spec/models/{admin_trust_o_auth2_jwt_grant_issuer_body_spec.rb → trust_jwt_grant_issuer_body_spec.rb} +7 -7
- data/spec/models/{trusted_o_auth2_jwt_grant_json_web_key_spec.rb → trusted_json_web_key_spec.rb} +7 -7
- data/spec/models/{trusted_o_auth2_jwt_grant_issuer_spec.rb → trusted_jwt_grant_issuer_spec.rb} +7 -7
- data/spec/models/ui_container_spec.rb +1 -1
- data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
- data/spec/models/ui_node_attributes_spec.rb +1 -1
- data/spec/models/ui_node_image_attributes_spec.rb +1 -1
- data/spec/models/ui_node_input_attributes_spec.rb +5 -1
- data/spec/models/ui_node_meta_spec.rb +1 -1
- data/spec/models/ui_node_script_attributes_spec.rb +1 -1
- data/spec/models/ui_node_spec.rb +1 -1
- data/spec/models/ui_node_text_attributes_spec.rb +1 -1
- data/spec/models/ui_text_spec.rb +1 -1
- data/spec/models/update_custom_hostname_body_spec.rb +1 -1
- data/spec/models/update_project_spec.rb +1 -1
- data/spec/models/update_subscription_payload_spec.rb +1 -1
- data/spec/models/{oidc_user_info_spec.rb → userinfo_response_spec.rb} +7 -7
- data/spec/models/verifiable_identity_address_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/models/warning_spec.rb +1 -1
- data/spec/models/{oidc_configuration_spec.rb → well_known_spec.rb} +7 -19
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.2/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.4/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.2/ext/stringio/Makefile +2 -2
- metadata +109 -125
- data/docs/HandledOAuth2ConsentRequest.md +0 -18
- data/docs/HandledOAuth2LogoutRequest.md +0 -18
- data/docs/Headers.md +0 -18
- data/docs/IDTokenClaims.md +0 -44
- data/docs/JsonWebKeySet.md +0 -18
- data/docs/OAuth2AccessRequest.md +0 -24
- data/docs/OAuth2ApiError.md +0 -24
- data/docs/OAuth2ConsentSession.md +0 -38
- data/docs/OAuth2ConsentSessionExpiresAt.md +0 -26
- data/docs/PaginationHeaders.md +0 -20
- data/docs/UpdateOAuth2ClientLifespans.md +0 -40
- data/lib/ory-client/models/id_token_claims.rb +0 -343
- data/lib/ory-client/models/o_auth2_access_request.rb +0 -256
- data/lib/ory-client/models/o_auth2_api_error.rb +0 -251
- data/lib/ory-client/models/o_auth2_consent_session.rb +0 -313
- data/lib/ory-client/models/update_o_auth2_client_lifespans.rb +0 -535
- data/spec/models/id_token_claims_spec.rb +0 -112
- data/spec/models/o_auth2_access_request_spec.rb +0 -52
- data/spec/models/o_auth2_consent_session_spec.rb +0 -94
- data/spec/models/pagination_headers_spec.rb +0 -40
- data/spec/models/successful_o_auth2_request_response_spec.rb +0 -34
- data/spec/models/update_o_auth2_client_lifespans_spec.rb +0 -100
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.2.0-alpha.
|
6
|
+
The version of the OpenAPI document: v0.2.0-alpha.29
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.0.1
|
@@ -19,31 +19,2125 @@ module OryClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
22
|
+
# Accept a Consent Request
|
23
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider includes additional information, such as session data for access and ID tokens, and if the consent request should be used as basis for future requests. The response contains a redirect URL which the consent provider should redirect the user-agent to.
|
24
|
+
# @param consent_challenge [String]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [AcceptConsentRequest] :accept_consent_request
|
27
|
+
# @return [CompletedRequest]
|
28
|
+
def accept_consent_request(consent_challenge, opts = {})
|
29
|
+
data, _status_code, _headers = accept_consent_request_with_http_info(consent_challenge, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Accept a Consent Request
|
34
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider includes additional information, such as session data for access and ID tokens, and if the consent request should be used as basis for future requests. The response contains a redirect URL which the consent provider should redirect the user-agent to.
|
35
|
+
# @param consent_challenge [String]
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [AcceptConsentRequest] :accept_consent_request
|
38
|
+
# @return [Array<(CompletedRequest, Integer, Hash)>] CompletedRequest data, response status code and response headers
|
39
|
+
def accept_consent_request_with_http_info(consent_challenge, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.accept_consent_request ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'consent_challenge' is set
|
44
|
+
if @api_client.config.client_side_validation && consent_challenge.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'consent_challenge' when calling AdminApi.accept_consent_request"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/oauth2/auth/requests/consent/accept'
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = opts[:query_params] || {}
|
52
|
+
query_params[:'consent_challenge'] = consent_challenge
|
53
|
+
|
54
|
+
# header parameters
|
55
|
+
header_params = opts[:header_params] || {}
|
56
|
+
# HTTP header 'Accept' (if needed)
|
57
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
58
|
+
# HTTP header 'Content-Type'
|
59
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
60
|
+
if !content_type.nil?
|
61
|
+
header_params['Content-Type'] = content_type
|
62
|
+
end
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = opts[:form_params] || {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'accept_consent_request'])
|
69
|
+
|
70
|
+
# return_type
|
71
|
+
return_type = opts[:debug_return_type] || 'CompletedRequest'
|
72
|
+
|
73
|
+
# auth_names
|
74
|
+
auth_names = opts[:debug_auth_names] || []
|
75
|
+
|
76
|
+
new_options = opts.merge(
|
77
|
+
:operation => :"AdminApi.accept_consent_request",
|
78
|
+
:header_params => header_params,
|
79
|
+
:query_params => query_params,
|
80
|
+
:form_params => form_params,
|
81
|
+
:body => post_body,
|
82
|
+
:auth_names => auth_names,
|
83
|
+
:return_type => return_type
|
84
|
+
)
|
85
|
+
|
86
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug "API called: AdminApi#accept_consent_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
|
+
end
|
90
|
+
return data, status_code, headers
|
91
|
+
end
|
92
|
+
|
93
|
+
# Accept a Login Request
|
94
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has successfully authenticated and includes additional information such as the subject's ID and if ORY Hydra should remember the subject's subject agent for future authentication attempts by setting a cookie. The response contains a redirect URL which the login provider should redirect the user-agent to.
|
95
|
+
# @param login_challenge [String]
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @option opts [AcceptLoginRequest] :accept_login_request
|
98
|
+
# @return [CompletedRequest]
|
99
|
+
def accept_login_request(login_challenge, opts = {})
|
100
|
+
data, _status_code, _headers = accept_login_request_with_http_info(login_challenge, opts)
|
101
|
+
data
|
102
|
+
end
|
103
|
+
|
104
|
+
# Accept a Login Request
|
105
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has successfully authenticated and includes additional information such as the subject's ID and if ORY Hydra should remember the subject's subject agent for future authentication attempts by setting a cookie. The response contains a redirect URL which the login provider should redirect the user-agent to.
|
106
|
+
# @param login_challenge [String]
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @option opts [AcceptLoginRequest] :accept_login_request
|
109
|
+
# @return [Array<(CompletedRequest, Integer, Hash)>] CompletedRequest data, response status code and response headers
|
110
|
+
def accept_login_request_with_http_info(login_challenge, opts = {})
|
111
|
+
if @api_client.config.debugging
|
112
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.accept_login_request ...'
|
113
|
+
end
|
114
|
+
# verify the required parameter 'login_challenge' is set
|
115
|
+
if @api_client.config.client_side_validation && login_challenge.nil?
|
116
|
+
fail ArgumentError, "Missing the required parameter 'login_challenge' when calling AdminApi.accept_login_request"
|
117
|
+
end
|
118
|
+
# resource path
|
119
|
+
local_var_path = '/oauth2/auth/requests/login/accept'
|
120
|
+
|
121
|
+
# query parameters
|
122
|
+
query_params = opts[:query_params] || {}
|
123
|
+
query_params[:'login_challenge'] = login_challenge
|
124
|
+
|
125
|
+
# header parameters
|
126
|
+
header_params = opts[:header_params] || {}
|
127
|
+
# HTTP header 'Accept' (if needed)
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
129
|
+
# HTTP header 'Content-Type'
|
130
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
131
|
+
if !content_type.nil?
|
132
|
+
header_params['Content-Type'] = content_type
|
133
|
+
end
|
134
|
+
|
135
|
+
# form parameters
|
136
|
+
form_params = opts[:form_params] || {}
|
137
|
+
|
138
|
+
# http body (model)
|
139
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'accept_login_request'])
|
140
|
+
|
141
|
+
# return_type
|
142
|
+
return_type = opts[:debug_return_type] || 'CompletedRequest'
|
143
|
+
|
144
|
+
# auth_names
|
145
|
+
auth_names = opts[:debug_auth_names] || []
|
146
|
+
|
147
|
+
new_options = opts.merge(
|
148
|
+
:operation => :"AdminApi.accept_login_request",
|
149
|
+
:header_params => header_params,
|
150
|
+
:query_params => query_params,
|
151
|
+
:form_params => form_params,
|
152
|
+
:body => post_body,
|
153
|
+
:auth_names => auth_names,
|
154
|
+
:return_type => return_type
|
155
|
+
)
|
156
|
+
|
157
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
158
|
+
if @api_client.config.debugging
|
159
|
+
@api_client.config.logger.debug "API called: AdminApi#accept_login_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
160
|
+
end
|
161
|
+
return data, status_code, headers
|
162
|
+
end
|
163
|
+
|
164
|
+
# Accept a Logout Request
|
165
|
+
# When a user or an application requests ORY Hydra to log out a user, this endpoint is used to confirm that logout request. No body is required. The response contains a redirect URL which the consent provider should redirect the user-agent to.
|
166
|
+
# @param logout_challenge [String]
|
167
|
+
# @param [Hash] opts the optional parameters
|
168
|
+
# @return [CompletedRequest]
|
169
|
+
def accept_logout_request(logout_challenge, opts = {})
|
170
|
+
data, _status_code, _headers = accept_logout_request_with_http_info(logout_challenge, opts)
|
171
|
+
data
|
172
|
+
end
|
173
|
+
|
174
|
+
# Accept a Logout Request
|
175
|
+
# When a user or an application requests ORY Hydra to log out a user, this endpoint is used to confirm that logout request. No body is required. The response contains a redirect URL which the consent provider should redirect the user-agent to.
|
176
|
+
# @param logout_challenge [String]
|
177
|
+
# @param [Hash] opts the optional parameters
|
178
|
+
# @return [Array<(CompletedRequest, Integer, Hash)>] CompletedRequest data, response status code and response headers
|
179
|
+
def accept_logout_request_with_http_info(logout_challenge, opts = {})
|
180
|
+
if @api_client.config.debugging
|
181
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.accept_logout_request ...'
|
182
|
+
end
|
183
|
+
# verify the required parameter 'logout_challenge' is set
|
184
|
+
if @api_client.config.client_side_validation && logout_challenge.nil?
|
185
|
+
fail ArgumentError, "Missing the required parameter 'logout_challenge' when calling AdminApi.accept_logout_request"
|
186
|
+
end
|
187
|
+
# resource path
|
188
|
+
local_var_path = '/oauth2/auth/requests/logout/accept'
|
189
|
+
|
190
|
+
# query parameters
|
191
|
+
query_params = opts[:query_params] || {}
|
192
|
+
query_params[:'logout_challenge'] = logout_challenge
|
193
|
+
|
194
|
+
# header parameters
|
195
|
+
header_params = opts[:header_params] || {}
|
196
|
+
# HTTP header 'Accept' (if needed)
|
197
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
198
|
+
|
199
|
+
# form parameters
|
200
|
+
form_params = opts[:form_params] || {}
|
201
|
+
|
202
|
+
# http body (model)
|
203
|
+
post_body = opts[:debug_body]
|
204
|
+
|
205
|
+
# return_type
|
206
|
+
return_type = opts[:debug_return_type] || 'CompletedRequest'
|
207
|
+
|
208
|
+
# auth_names
|
209
|
+
auth_names = opts[:debug_auth_names] || []
|
210
|
+
|
211
|
+
new_options = opts.merge(
|
212
|
+
:operation => :"AdminApi.accept_logout_request",
|
213
|
+
:header_params => header_params,
|
214
|
+
:query_params => query_params,
|
215
|
+
:form_params => form_params,
|
216
|
+
:body => post_body,
|
217
|
+
:auth_names => auth_names,
|
218
|
+
:return_type => return_type
|
219
|
+
)
|
220
|
+
|
221
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
222
|
+
if @api_client.config.debugging
|
223
|
+
@api_client.config.logger.debug "API called: AdminApi#accept_logout_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
224
|
+
end
|
225
|
+
return data, status_code, headers
|
226
|
+
end
|
227
|
+
|
228
|
+
# Generate a New JSON Web Key
|
229
|
+
# 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.
|
230
|
+
# @param set [String] The set
|
231
|
+
# @param [Hash] opts the optional parameters
|
232
|
+
# @option opts [JsonWebKeySetGeneratorRequest] :json_web_key_set_generator_request
|
233
|
+
# @return [JSONWebKeySet]
|
234
|
+
def create_json_web_key_set(set, opts = {})
|
235
|
+
data, _status_code, _headers = create_json_web_key_set_with_http_info(set, opts)
|
236
|
+
data
|
237
|
+
end
|
238
|
+
|
239
|
+
# Generate a New JSON Web Key
|
240
|
+
# 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.
|
241
|
+
# @param set [String] The set
|
242
|
+
# @param [Hash] opts the optional parameters
|
243
|
+
# @option opts [JsonWebKeySetGeneratorRequest] :json_web_key_set_generator_request
|
244
|
+
# @return [Array<(JSONWebKeySet, Integer, Hash)>] JSONWebKeySet data, response status code and response headers
|
245
|
+
def create_json_web_key_set_with_http_info(set, opts = {})
|
246
|
+
if @api_client.config.debugging
|
247
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.create_json_web_key_set ...'
|
248
|
+
end
|
249
|
+
# verify the required parameter 'set' is set
|
250
|
+
if @api_client.config.client_side_validation && set.nil?
|
251
|
+
fail ArgumentError, "Missing the required parameter 'set' when calling AdminApi.create_json_web_key_set"
|
252
|
+
end
|
253
|
+
# resource path
|
254
|
+
local_var_path = '/keys/{set}'.sub('{' + 'set' + '}', CGI.escape(set.to_s))
|
255
|
+
|
256
|
+
# query parameters
|
257
|
+
query_params = opts[:query_params] || {}
|
258
|
+
|
259
|
+
# header parameters
|
260
|
+
header_params = opts[:header_params] || {}
|
261
|
+
# HTTP header 'Accept' (if needed)
|
262
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
263
|
+
# HTTP header 'Content-Type'
|
264
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
265
|
+
if !content_type.nil?
|
266
|
+
header_params['Content-Type'] = content_type
|
267
|
+
end
|
268
|
+
|
269
|
+
# form parameters
|
270
|
+
form_params = opts[:form_params] || {}
|
271
|
+
|
272
|
+
# http body (model)
|
273
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'json_web_key_set_generator_request'])
|
274
|
+
|
275
|
+
# return_type
|
276
|
+
return_type = opts[:debug_return_type] || 'JSONWebKeySet'
|
277
|
+
|
278
|
+
# auth_names
|
279
|
+
auth_names = opts[:debug_auth_names] || []
|
280
|
+
|
281
|
+
new_options = opts.merge(
|
282
|
+
:operation => :"AdminApi.create_json_web_key_set",
|
283
|
+
:header_params => header_params,
|
284
|
+
:query_params => query_params,
|
285
|
+
:form_params => form_params,
|
286
|
+
:body => post_body,
|
287
|
+
:auth_names => auth_names,
|
288
|
+
:return_type => return_type
|
289
|
+
)
|
290
|
+
|
291
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
292
|
+
if @api_client.config.debugging
|
293
|
+
@api_client.config.logger.debug "API called: AdminApi#create_json_web_key_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
294
|
+
end
|
295
|
+
return data, status_code, headers
|
296
|
+
end
|
297
|
+
|
298
|
+
# Create an OAuth 2.0 Client
|
299
|
+
# Create a new OAuth 2.0 client If you pass `client_secret` the secret will be used, otherwise a random secret will be generated. The secret will be returned in the response and you will not be able to retrieve it later on. Write the secret down and keep it somwhere safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
300
|
+
# @param o_auth2_client [OAuth2Client]
|
301
|
+
# @param [Hash] opts the optional parameters
|
302
|
+
# @return [OAuth2Client]
|
303
|
+
def create_o_auth2_client(o_auth2_client, opts = {})
|
304
|
+
data, _status_code, _headers = create_o_auth2_client_with_http_info(o_auth2_client, opts)
|
305
|
+
data
|
306
|
+
end
|
307
|
+
|
308
|
+
# Create an OAuth 2.0 Client
|
309
|
+
# Create a new OAuth 2.0 client If you pass `client_secret` the secret will be used, otherwise a random secret will be generated. The secret will be returned in the response and you will not be able to retrieve it later on. Write the secret down and keep it somwhere safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
310
|
+
# @param o_auth2_client [OAuth2Client]
|
311
|
+
# @param [Hash] opts the optional parameters
|
312
|
+
# @return [Array<(OAuth2Client, Integer, Hash)>] OAuth2Client data, response status code and response headers
|
313
|
+
def create_o_auth2_client_with_http_info(o_auth2_client, opts = {})
|
314
|
+
if @api_client.config.debugging
|
315
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.create_o_auth2_client ...'
|
316
|
+
end
|
317
|
+
# verify the required parameter 'o_auth2_client' is set
|
318
|
+
if @api_client.config.client_side_validation && o_auth2_client.nil?
|
319
|
+
fail ArgumentError, "Missing the required parameter 'o_auth2_client' when calling AdminApi.create_o_auth2_client"
|
320
|
+
end
|
321
|
+
# resource path
|
322
|
+
local_var_path = '/clients'
|
323
|
+
|
324
|
+
# query parameters
|
325
|
+
query_params = opts[:query_params] || {}
|
326
|
+
|
327
|
+
# header parameters
|
328
|
+
header_params = opts[:header_params] || {}
|
329
|
+
# HTTP header 'Accept' (if needed)
|
330
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
331
|
+
# HTTP header 'Content-Type'
|
332
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
333
|
+
if !content_type.nil?
|
334
|
+
header_params['Content-Type'] = content_type
|
335
|
+
end
|
336
|
+
|
337
|
+
# form parameters
|
338
|
+
form_params = opts[:form_params] || {}
|
339
|
+
|
340
|
+
# http body (model)
|
341
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(o_auth2_client)
|
342
|
+
|
343
|
+
# return_type
|
344
|
+
return_type = opts[:debug_return_type] || 'OAuth2Client'
|
345
|
+
|
346
|
+
# auth_names
|
347
|
+
auth_names = opts[:debug_auth_names] || []
|
348
|
+
|
349
|
+
new_options = opts.merge(
|
350
|
+
:operation => :"AdminApi.create_o_auth2_client",
|
351
|
+
:header_params => header_params,
|
352
|
+
:query_params => query_params,
|
353
|
+
:form_params => form_params,
|
354
|
+
:body => post_body,
|
355
|
+
:auth_names => auth_names,
|
356
|
+
:return_type => return_type
|
357
|
+
)
|
358
|
+
|
359
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
360
|
+
if @api_client.config.debugging
|
361
|
+
@api_client.config.logger.debug "API called: AdminApi#create_o_auth2_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
362
|
+
end
|
363
|
+
return data, status_code, headers
|
364
|
+
end
|
365
|
+
|
366
|
+
# Delete a JSON Web Key
|
367
|
+
# 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.
|
368
|
+
# @param kid [String] The kid of the desired key
|
369
|
+
# @param set [String] The set
|
370
|
+
# @param [Hash] opts the optional parameters
|
371
|
+
# @return [nil]
|
372
|
+
def delete_json_web_key(kid, set, opts = {})
|
373
|
+
delete_json_web_key_with_http_info(kid, set, opts)
|
374
|
+
nil
|
375
|
+
end
|
376
|
+
|
377
|
+
# Delete a JSON Web Key
|
378
|
+
# 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.
|
379
|
+
# @param kid [String] The kid of the desired key
|
380
|
+
# @param set [String] The set
|
381
|
+
# @param [Hash] opts the optional parameters
|
382
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
383
|
+
def delete_json_web_key_with_http_info(kid, set, opts = {})
|
384
|
+
if @api_client.config.debugging
|
385
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.delete_json_web_key ...'
|
386
|
+
end
|
387
|
+
# verify the required parameter 'kid' is set
|
388
|
+
if @api_client.config.client_side_validation && kid.nil?
|
389
|
+
fail ArgumentError, "Missing the required parameter 'kid' when calling AdminApi.delete_json_web_key"
|
390
|
+
end
|
391
|
+
# verify the required parameter 'set' is set
|
392
|
+
if @api_client.config.client_side_validation && set.nil?
|
393
|
+
fail ArgumentError, "Missing the required parameter 'set' when calling AdminApi.delete_json_web_key"
|
394
|
+
end
|
395
|
+
# resource path
|
396
|
+
local_var_path = '/keys/{set}/{kid}'.sub('{' + 'kid' + '}', CGI.escape(kid.to_s)).sub('{' + 'set' + '}', CGI.escape(set.to_s))
|
397
|
+
|
398
|
+
# query parameters
|
399
|
+
query_params = opts[:query_params] || {}
|
400
|
+
|
401
|
+
# header parameters
|
402
|
+
header_params = opts[:header_params] || {}
|
403
|
+
# HTTP header 'Accept' (if needed)
|
404
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
405
|
+
|
406
|
+
# form parameters
|
407
|
+
form_params = opts[:form_params] || {}
|
408
|
+
|
409
|
+
# http body (model)
|
410
|
+
post_body = opts[:debug_body]
|
411
|
+
|
412
|
+
# return_type
|
413
|
+
return_type = opts[:debug_return_type]
|
414
|
+
|
415
|
+
# auth_names
|
416
|
+
auth_names = opts[:debug_auth_names] || []
|
417
|
+
|
418
|
+
new_options = opts.merge(
|
419
|
+
:operation => :"AdminApi.delete_json_web_key",
|
420
|
+
:header_params => header_params,
|
421
|
+
:query_params => query_params,
|
422
|
+
:form_params => form_params,
|
423
|
+
:body => post_body,
|
424
|
+
:auth_names => auth_names,
|
425
|
+
:return_type => return_type
|
426
|
+
)
|
427
|
+
|
428
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
429
|
+
if @api_client.config.debugging
|
430
|
+
@api_client.config.logger.debug "API called: AdminApi#delete_json_web_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
431
|
+
end
|
432
|
+
return data, status_code, headers
|
433
|
+
end
|
434
|
+
|
435
|
+
# Delete a JSON Web Key Set
|
436
|
+
# 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.
|
437
|
+
# @param set [String] The set
|
438
|
+
# @param [Hash] opts the optional parameters
|
439
|
+
# @return [nil]
|
440
|
+
def delete_json_web_key_set(set, opts = {})
|
441
|
+
delete_json_web_key_set_with_http_info(set, opts)
|
442
|
+
nil
|
443
|
+
end
|
444
|
+
|
445
|
+
# Delete a JSON Web Key Set
|
446
|
+
# 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.
|
447
|
+
# @param set [String] The set
|
448
|
+
# @param [Hash] opts the optional parameters
|
449
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
450
|
+
def delete_json_web_key_set_with_http_info(set, opts = {})
|
451
|
+
if @api_client.config.debugging
|
452
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.delete_json_web_key_set ...'
|
453
|
+
end
|
454
|
+
# verify the required parameter 'set' is set
|
455
|
+
if @api_client.config.client_side_validation && set.nil?
|
456
|
+
fail ArgumentError, "Missing the required parameter 'set' when calling AdminApi.delete_json_web_key_set"
|
457
|
+
end
|
458
|
+
# resource path
|
459
|
+
local_var_path = '/keys/{set}'.sub('{' + 'set' + '}', CGI.escape(set.to_s))
|
460
|
+
|
461
|
+
# query parameters
|
462
|
+
query_params = opts[:query_params] || {}
|
463
|
+
|
464
|
+
# header parameters
|
465
|
+
header_params = opts[:header_params] || {}
|
466
|
+
# HTTP header 'Accept' (if needed)
|
467
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
468
|
+
|
469
|
+
# form parameters
|
470
|
+
form_params = opts[:form_params] || {}
|
471
|
+
|
472
|
+
# http body (model)
|
473
|
+
post_body = opts[:debug_body]
|
474
|
+
|
475
|
+
# return_type
|
476
|
+
return_type = opts[:debug_return_type]
|
477
|
+
|
478
|
+
# auth_names
|
479
|
+
auth_names = opts[:debug_auth_names] || []
|
480
|
+
|
481
|
+
new_options = opts.merge(
|
482
|
+
:operation => :"AdminApi.delete_json_web_key_set",
|
483
|
+
:header_params => header_params,
|
484
|
+
:query_params => query_params,
|
485
|
+
:form_params => form_params,
|
486
|
+
:body => post_body,
|
487
|
+
:auth_names => auth_names,
|
488
|
+
:return_type => return_type
|
489
|
+
)
|
490
|
+
|
491
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
492
|
+
if @api_client.config.debugging
|
493
|
+
@api_client.config.logger.debug "API called: AdminApi#delete_json_web_key_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
494
|
+
end
|
495
|
+
return data, status_code, headers
|
496
|
+
end
|
497
|
+
|
498
|
+
# Deletes an OAuth 2.0 Client
|
499
|
+
# Delete an existing OAuth 2.0 Client by its ID. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. Make sure that this endpoint is well protected and only callable by first-party components.
|
500
|
+
# @param id [String] The id of the OAuth 2.0 Client.
|
501
|
+
# @param [Hash] opts the optional parameters
|
502
|
+
# @return [nil]
|
503
|
+
def delete_o_auth2_client(id, opts = {})
|
504
|
+
delete_o_auth2_client_with_http_info(id, opts)
|
505
|
+
nil
|
506
|
+
end
|
507
|
+
|
508
|
+
# Deletes an OAuth 2.0 Client
|
509
|
+
# Delete an existing OAuth 2.0 Client by its ID. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. Make sure that this endpoint is well protected and only callable by first-party components.
|
510
|
+
# @param id [String] The id of the OAuth 2.0 Client.
|
511
|
+
# @param [Hash] opts the optional parameters
|
512
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
513
|
+
def delete_o_auth2_client_with_http_info(id, opts = {})
|
514
|
+
if @api_client.config.debugging
|
515
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.delete_o_auth2_client ...'
|
516
|
+
end
|
517
|
+
# verify the required parameter 'id' is set
|
518
|
+
if @api_client.config.client_side_validation && id.nil?
|
519
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.delete_o_auth2_client"
|
520
|
+
end
|
521
|
+
# resource path
|
522
|
+
local_var_path = '/clients/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
523
|
+
|
524
|
+
# query parameters
|
525
|
+
query_params = opts[:query_params] || {}
|
526
|
+
|
527
|
+
# header parameters
|
528
|
+
header_params = opts[:header_params] || {}
|
529
|
+
# HTTP header 'Accept' (if needed)
|
530
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
531
|
+
|
532
|
+
# form parameters
|
533
|
+
form_params = opts[:form_params] || {}
|
534
|
+
|
535
|
+
# http body (model)
|
536
|
+
post_body = opts[:debug_body]
|
537
|
+
|
538
|
+
# return_type
|
539
|
+
return_type = opts[:debug_return_type]
|
540
|
+
|
541
|
+
# auth_names
|
542
|
+
auth_names = opts[:debug_auth_names] || []
|
543
|
+
|
544
|
+
new_options = opts.merge(
|
545
|
+
:operation => :"AdminApi.delete_o_auth2_client",
|
546
|
+
:header_params => header_params,
|
547
|
+
:query_params => query_params,
|
548
|
+
:form_params => form_params,
|
549
|
+
:body => post_body,
|
550
|
+
:auth_names => auth_names,
|
551
|
+
:return_type => return_type
|
552
|
+
)
|
553
|
+
|
554
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
555
|
+
if @api_client.config.debugging
|
556
|
+
@api_client.config.logger.debug "API called: AdminApi#delete_o_auth2_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
557
|
+
end
|
558
|
+
return data, status_code, headers
|
559
|
+
end
|
560
|
+
|
561
|
+
# Delete OAuth2 Access Tokens from a Client
|
562
|
+
# This endpoint deletes OAuth2 access tokens issued for a client from the database
|
563
|
+
# @param client_id [String]
|
564
|
+
# @param [Hash] opts the optional parameters
|
565
|
+
# @return [nil]
|
566
|
+
def delete_o_auth2_token(client_id, opts = {})
|
567
|
+
delete_o_auth2_token_with_http_info(client_id, opts)
|
568
|
+
nil
|
569
|
+
end
|
570
|
+
|
571
|
+
# Delete OAuth2 Access Tokens from a Client
|
572
|
+
# This endpoint deletes OAuth2 access tokens issued for a client from the database
|
573
|
+
# @param client_id [String]
|
574
|
+
# @param [Hash] opts the optional parameters
|
575
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
576
|
+
def delete_o_auth2_token_with_http_info(client_id, opts = {})
|
577
|
+
if @api_client.config.debugging
|
578
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.delete_o_auth2_token ...'
|
579
|
+
end
|
580
|
+
# verify the required parameter 'client_id' is set
|
581
|
+
if @api_client.config.client_side_validation && client_id.nil?
|
582
|
+
fail ArgumentError, "Missing the required parameter 'client_id' when calling AdminApi.delete_o_auth2_token"
|
583
|
+
end
|
584
|
+
# resource path
|
585
|
+
local_var_path = '/oauth2/tokens'
|
586
|
+
|
587
|
+
# query parameters
|
588
|
+
query_params = opts[:query_params] || {}
|
589
|
+
query_params[:'client_id'] = client_id
|
590
|
+
|
591
|
+
# header parameters
|
592
|
+
header_params = opts[:header_params] || {}
|
593
|
+
# HTTP header 'Accept' (if needed)
|
594
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
595
|
+
|
596
|
+
# form parameters
|
597
|
+
form_params = opts[:form_params] || {}
|
598
|
+
|
599
|
+
# http body (model)
|
600
|
+
post_body = opts[:debug_body]
|
601
|
+
|
602
|
+
# return_type
|
603
|
+
return_type = opts[:debug_return_type]
|
604
|
+
|
605
|
+
# auth_names
|
606
|
+
auth_names = opts[:debug_auth_names] || []
|
607
|
+
|
608
|
+
new_options = opts.merge(
|
609
|
+
:operation => :"AdminApi.delete_o_auth2_token",
|
610
|
+
:header_params => header_params,
|
611
|
+
:query_params => query_params,
|
612
|
+
:form_params => form_params,
|
613
|
+
:body => post_body,
|
614
|
+
:auth_names => auth_names,
|
615
|
+
:return_type => return_type
|
616
|
+
)
|
617
|
+
|
618
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
619
|
+
if @api_client.config.debugging
|
620
|
+
@api_client.config.logger.debug "API called: AdminApi#delete_o_auth2_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
621
|
+
end
|
622
|
+
return data, status_code, headers
|
623
|
+
end
|
624
|
+
|
625
|
+
# Delete a Trusted OAuth2 JWT Bearer Grant Type Issuer
|
626
|
+
# Use this endpoint to delete trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. Once deleted, the associated issuer will no longer be able to perform the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grant.
|
627
|
+
# @param id [String] The id of the desired grant
|
628
|
+
# @param [Hash] opts the optional parameters
|
629
|
+
# @return [nil]
|
630
|
+
def delete_trusted_jwt_grant_issuer(id, opts = {})
|
631
|
+
delete_trusted_jwt_grant_issuer_with_http_info(id, opts)
|
632
|
+
nil
|
633
|
+
end
|
634
|
+
|
635
|
+
# Delete a Trusted OAuth2 JWT Bearer Grant Type Issuer
|
636
|
+
# Use this endpoint to delete trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. Once deleted, the associated issuer will no longer be able to perform the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grant.
|
637
|
+
# @param id [String] The id of the desired grant
|
638
|
+
# @param [Hash] opts the optional parameters
|
639
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
640
|
+
def delete_trusted_jwt_grant_issuer_with_http_info(id, opts = {})
|
641
|
+
if @api_client.config.debugging
|
642
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.delete_trusted_jwt_grant_issuer ...'
|
643
|
+
end
|
644
|
+
# verify the required parameter 'id' is set
|
645
|
+
if @api_client.config.client_side_validation && id.nil?
|
646
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.delete_trusted_jwt_grant_issuer"
|
647
|
+
end
|
648
|
+
# resource path
|
649
|
+
local_var_path = '/trust/grants/jwt-bearer/issuers/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
650
|
+
|
651
|
+
# query parameters
|
652
|
+
query_params = opts[:query_params] || {}
|
653
|
+
|
654
|
+
# header parameters
|
655
|
+
header_params = opts[:header_params] || {}
|
656
|
+
# HTTP header 'Accept' (if needed)
|
657
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
658
|
+
|
659
|
+
# form parameters
|
660
|
+
form_params = opts[:form_params] || {}
|
661
|
+
|
662
|
+
# http body (model)
|
663
|
+
post_body = opts[:debug_body]
|
664
|
+
|
665
|
+
# return_type
|
666
|
+
return_type = opts[:debug_return_type]
|
667
|
+
|
668
|
+
# auth_names
|
669
|
+
auth_names = opts[:debug_auth_names] || []
|
670
|
+
|
671
|
+
new_options = opts.merge(
|
672
|
+
:operation => :"AdminApi.delete_trusted_jwt_grant_issuer",
|
673
|
+
:header_params => header_params,
|
674
|
+
:query_params => query_params,
|
675
|
+
:form_params => form_params,
|
676
|
+
:body => post_body,
|
677
|
+
:auth_names => auth_names,
|
678
|
+
:return_type => return_type
|
679
|
+
)
|
680
|
+
|
681
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
682
|
+
if @api_client.config.debugging
|
683
|
+
@api_client.config.logger.debug "API called: AdminApi#delete_trusted_jwt_grant_issuer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
684
|
+
end
|
685
|
+
return data, status_code, headers
|
686
|
+
end
|
687
|
+
|
688
|
+
# Flush Expired OAuth2 Access Tokens
|
689
|
+
# This endpoint flushes expired OAuth2 access tokens from the database. You can set a time after which no tokens will be not be touched, in case you want to keep recent tokens for auditing. Refresh tokens can not be flushed as they are deleted automatically when performing the refresh flow.
|
690
|
+
# @param [Hash] opts the optional parameters
|
691
|
+
# @option opts [FlushInactiveOAuth2TokensRequest] :flush_inactive_o_auth2_tokens_request
|
692
|
+
# @return [nil]
|
693
|
+
def flush_inactive_o_auth2_tokens(opts = {})
|
694
|
+
flush_inactive_o_auth2_tokens_with_http_info(opts)
|
695
|
+
nil
|
696
|
+
end
|
697
|
+
|
698
|
+
# Flush Expired OAuth2 Access Tokens
|
699
|
+
# This endpoint flushes expired OAuth2 access tokens from the database. You can set a time after which no tokens will be not be touched, in case you want to keep recent tokens for auditing. Refresh tokens can not be flushed as they are deleted automatically when performing the refresh flow.
|
700
|
+
# @param [Hash] opts the optional parameters
|
701
|
+
# @option opts [FlushInactiveOAuth2TokensRequest] :flush_inactive_o_auth2_tokens_request
|
702
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
703
|
+
def flush_inactive_o_auth2_tokens_with_http_info(opts = {})
|
704
|
+
if @api_client.config.debugging
|
705
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.flush_inactive_o_auth2_tokens ...'
|
706
|
+
end
|
707
|
+
# resource path
|
708
|
+
local_var_path = '/oauth2/flush'
|
709
|
+
|
710
|
+
# query parameters
|
711
|
+
query_params = opts[:query_params] || {}
|
712
|
+
|
713
|
+
# header parameters
|
714
|
+
header_params = opts[:header_params] || {}
|
715
|
+
# HTTP header 'Accept' (if needed)
|
716
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
717
|
+
# HTTP header 'Content-Type'
|
718
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
719
|
+
if !content_type.nil?
|
720
|
+
header_params['Content-Type'] = content_type
|
721
|
+
end
|
722
|
+
|
723
|
+
# form parameters
|
724
|
+
form_params = opts[:form_params] || {}
|
725
|
+
|
726
|
+
# http body (model)
|
727
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'flush_inactive_o_auth2_tokens_request'])
|
728
|
+
|
729
|
+
# return_type
|
730
|
+
return_type = opts[:debug_return_type]
|
731
|
+
|
732
|
+
# auth_names
|
733
|
+
auth_names = opts[:debug_auth_names] || []
|
734
|
+
|
735
|
+
new_options = opts.merge(
|
736
|
+
:operation => :"AdminApi.flush_inactive_o_auth2_tokens",
|
737
|
+
:header_params => header_params,
|
738
|
+
:query_params => query_params,
|
739
|
+
:form_params => form_params,
|
740
|
+
:body => post_body,
|
741
|
+
:auth_names => auth_names,
|
742
|
+
:return_type => return_type
|
743
|
+
)
|
744
|
+
|
745
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
746
|
+
if @api_client.config.debugging
|
747
|
+
@api_client.config.logger.debug "API called: AdminApi#flush_inactive_o_auth2_tokens\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
748
|
+
end
|
749
|
+
return data, status_code, headers
|
750
|
+
end
|
751
|
+
|
752
|
+
# Get Consent Request Information
|
753
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request.
|
754
|
+
# @param consent_challenge [String]
|
755
|
+
# @param [Hash] opts the optional parameters
|
756
|
+
# @return [ConsentRequest]
|
757
|
+
def get_consent_request(consent_challenge, opts = {})
|
758
|
+
data, _status_code, _headers = get_consent_request_with_http_info(consent_challenge, opts)
|
759
|
+
data
|
760
|
+
end
|
761
|
+
|
762
|
+
# Get Consent Request Information
|
763
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request.
|
764
|
+
# @param consent_challenge [String]
|
765
|
+
# @param [Hash] opts the optional parameters
|
766
|
+
# @return [Array<(ConsentRequest, Integer, Hash)>] ConsentRequest data, response status code and response headers
|
767
|
+
def get_consent_request_with_http_info(consent_challenge, opts = {})
|
768
|
+
if @api_client.config.debugging
|
769
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.get_consent_request ...'
|
770
|
+
end
|
771
|
+
# verify the required parameter 'consent_challenge' is set
|
772
|
+
if @api_client.config.client_side_validation && consent_challenge.nil?
|
773
|
+
fail ArgumentError, "Missing the required parameter 'consent_challenge' when calling AdminApi.get_consent_request"
|
774
|
+
end
|
775
|
+
# resource path
|
776
|
+
local_var_path = '/oauth2/auth/requests/consent'
|
777
|
+
|
778
|
+
# query parameters
|
779
|
+
query_params = opts[:query_params] || {}
|
780
|
+
query_params[:'consent_challenge'] = consent_challenge
|
781
|
+
|
782
|
+
# header parameters
|
783
|
+
header_params = opts[:header_params] || {}
|
784
|
+
# HTTP header 'Accept' (if needed)
|
785
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
786
|
+
|
787
|
+
# form parameters
|
788
|
+
form_params = opts[:form_params] || {}
|
789
|
+
|
790
|
+
# http body (model)
|
791
|
+
post_body = opts[:debug_body]
|
792
|
+
|
793
|
+
# return_type
|
794
|
+
return_type = opts[:debug_return_type] || 'ConsentRequest'
|
795
|
+
|
796
|
+
# auth_names
|
797
|
+
auth_names = opts[:debug_auth_names] || []
|
798
|
+
|
799
|
+
new_options = opts.merge(
|
800
|
+
:operation => :"AdminApi.get_consent_request",
|
801
|
+
:header_params => header_params,
|
802
|
+
:query_params => query_params,
|
803
|
+
:form_params => form_params,
|
804
|
+
:body => post_body,
|
805
|
+
:auth_names => auth_names,
|
806
|
+
:return_type => return_type
|
807
|
+
)
|
808
|
+
|
809
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
810
|
+
if @api_client.config.debugging
|
811
|
+
@api_client.config.logger.debug "API called: AdminApi#get_consent_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
812
|
+
end
|
813
|
+
return data, status_code, headers
|
814
|
+
end
|
815
|
+
|
816
|
+
# Fetch a JSON Web Key
|
817
|
+
# This endpoint returns a singular JSON Web Key, identified by the set and the specific key ID (kid).
|
818
|
+
# @param kid [String] The kid of the desired key
|
819
|
+
# @param set [String] The set
|
820
|
+
# @param [Hash] opts the optional parameters
|
821
|
+
# @return [JSONWebKeySet]
|
822
|
+
def get_json_web_key(kid, set, opts = {})
|
823
|
+
data, _status_code, _headers = get_json_web_key_with_http_info(kid, set, opts)
|
824
|
+
data
|
825
|
+
end
|
826
|
+
|
827
|
+
# Fetch a JSON Web Key
|
828
|
+
# This endpoint returns a singular JSON Web Key, identified by the set and the specific key ID (kid).
|
829
|
+
# @param kid [String] The kid of the desired key
|
830
|
+
# @param set [String] The set
|
831
|
+
# @param [Hash] opts the optional parameters
|
832
|
+
# @return [Array<(JSONWebKeySet, Integer, Hash)>] JSONWebKeySet data, response status code and response headers
|
833
|
+
def get_json_web_key_with_http_info(kid, set, opts = {})
|
834
|
+
if @api_client.config.debugging
|
835
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.get_json_web_key ...'
|
836
|
+
end
|
837
|
+
# verify the required parameter 'kid' is set
|
838
|
+
if @api_client.config.client_side_validation && kid.nil?
|
839
|
+
fail ArgumentError, "Missing the required parameter 'kid' when calling AdminApi.get_json_web_key"
|
840
|
+
end
|
841
|
+
# verify the required parameter 'set' is set
|
842
|
+
if @api_client.config.client_side_validation && set.nil?
|
843
|
+
fail ArgumentError, "Missing the required parameter 'set' when calling AdminApi.get_json_web_key"
|
844
|
+
end
|
845
|
+
# resource path
|
846
|
+
local_var_path = '/keys/{set}/{kid}'.sub('{' + 'kid' + '}', CGI.escape(kid.to_s)).sub('{' + 'set' + '}', CGI.escape(set.to_s))
|
847
|
+
|
848
|
+
# query parameters
|
849
|
+
query_params = opts[:query_params] || {}
|
850
|
+
|
851
|
+
# header parameters
|
852
|
+
header_params = opts[:header_params] || {}
|
853
|
+
# HTTP header 'Accept' (if needed)
|
854
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
855
|
+
|
856
|
+
# form parameters
|
857
|
+
form_params = opts[:form_params] || {}
|
858
|
+
|
859
|
+
# http body (model)
|
860
|
+
post_body = opts[:debug_body]
|
861
|
+
|
862
|
+
# return_type
|
863
|
+
return_type = opts[:debug_return_type] || 'JSONWebKeySet'
|
864
|
+
|
865
|
+
# auth_names
|
866
|
+
auth_names = opts[:debug_auth_names] || []
|
867
|
+
|
868
|
+
new_options = opts.merge(
|
869
|
+
:operation => :"AdminApi.get_json_web_key",
|
870
|
+
:header_params => header_params,
|
871
|
+
:query_params => query_params,
|
872
|
+
:form_params => form_params,
|
873
|
+
:body => post_body,
|
874
|
+
:auth_names => auth_names,
|
875
|
+
:return_type => return_type
|
876
|
+
)
|
877
|
+
|
878
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
879
|
+
if @api_client.config.debugging
|
880
|
+
@api_client.config.logger.debug "API called: AdminApi#get_json_web_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
881
|
+
end
|
882
|
+
return data, status_code, headers
|
883
|
+
end
|
884
|
+
|
885
|
+
# Retrieve a JSON Web Key Set
|
886
|
+
# 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.
|
887
|
+
# @param set [String] The set
|
888
|
+
# @param [Hash] opts the optional parameters
|
889
|
+
# @return [JSONWebKeySet]
|
890
|
+
def get_json_web_key_set(set, opts = {})
|
891
|
+
data, _status_code, _headers = get_json_web_key_set_with_http_info(set, opts)
|
892
|
+
data
|
893
|
+
end
|
894
|
+
|
895
|
+
# Retrieve a JSON Web Key Set
|
896
|
+
# 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.
|
897
|
+
# @param set [String] The set
|
898
|
+
# @param [Hash] opts the optional parameters
|
899
|
+
# @return [Array<(JSONWebKeySet, Integer, Hash)>] JSONWebKeySet data, response status code and response headers
|
900
|
+
def get_json_web_key_set_with_http_info(set, opts = {})
|
901
|
+
if @api_client.config.debugging
|
902
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.get_json_web_key_set ...'
|
903
|
+
end
|
904
|
+
# verify the required parameter 'set' is set
|
905
|
+
if @api_client.config.client_side_validation && set.nil?
|
906
|
+
fail ArgumentError, "Missing the required parameter 'set' when calling AdminApi.get_json_web_key_set"
|
907
|
+
end
|
908
|
+
# resource path
|
909
|
+
local_var_path = '/keys/{set}'.sub('{' + 'set' + '}', CGI.escape(set.to_s))
|
910
|
+
|
911
|
+
# query parameters
|
912
|
+
query_params = opts[:query_params] || {}
|
913
|
+
|
914
|
+
# header parameters
|
915
|
+
header_params = opts[:header_params] || {}
|
916
|
+
# HTTP header 'Accept' (if needed)
|
917
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
918
|
+
|
919
|
+
# form parameters
|
920
|
+
form_params = opts[:form_params] || {}
|
921
|
+
|
922
|
+
# http body (model)
|
923
|
+
post_body = opts[:debug_body]
|
924
|
+
|
925
|
+
# return_type
|
926
|
+
return_type = opts[:debug_return_type] || 'JSONWebKeySet'
|
927
|
+
|
928
|
+
# auth_names
|
929
|
+
auth_names = opts[:debug_auth_names] || []
|
930
|
+
|
931
|
+
new_options = opts.merge(
|
932
|
+
:operation => :"AdminApi.get_json_web_key_set",
|
933
|
+
:header_params => header_params,
|
934
|
+
:query_params => query_params,
|
935
|
+
:form_params => form_params,
|
936
|
+
:body => post_body,
|
937
|
+
:auth_names => auth_names,
|
938
|
+
:return_type => return_type
|
939
|
+
)
|
940
|
+
|
941
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
942
|
+
if @api_client.config.debugging
|
943
|
+
@api_client.config.logger.debug "API called: AdminApi#get_json_web_key_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
944
|
+
end
|
945
|
+
return data, status_code, headers
|
946
|
+
end
|
947
|
+
|
948
|
+
# Get a Login Request
|
949
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process.
|
950
|
+
# @param login_challenge [String]
|
951
|
+
# @param [Hash] opts the optional parameters
|
952
|
+
# @return [LoginRequest]
|
953
|
+
def get_login_request(login_challenge, opts = {})
|
954
|
+
data, _status_code, _headers = get_login_request_with_http_info(login_challenge, opts)
|
955
|
+
data
|
956
|
+
end
|
957
|
+
|
958
|
+
# Get a Login Request
|
959
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process.
|
960
|
+
# @param login_challenge [String]
|
961
|
+
# @param [Hash] opts the optional parameters
|
962
|
+
# @return [Array<(LoginRequest, Integer, Hash)>] LoginRequest data, response status code and response headers
|
963
|
+
def get_login_request_with_http_info(login_challenge, opts = {})
|
964
|
+
if @api_client.config.debugging
|
965
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.get_login_request ...'
|
966
|
+
end
|
967
|
+
# verify the required parameter 'login_challenge' is set
|
968
|
+
if @api_client.config.client_side_validation && login_challenge.nil?
|
969
|
+
fail ArgumentError, "Missing the required parameter 'login_challenge' when calling AdminApi.get_login_request"
|
970
|
+
end
|
971
|
+
# resource path
|
972
|
+
local_var_path = '/oauth2/auth/requests/login'
|
973
|
+
|
974
|
+
# query parameters
|
975
|
+
query_params = opts[:query_params] || {}
|
976
|
+
query_params[:'login_challenge'] = login_challenge
|
977
|
+
|
978
|
+
# header parameters
|
979
|
+
header_params = opts[:header_params] || {}
|
980
|
+
# HTTP header 'Accept' (if needed)
|
981
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
982
|
+
|
983
|
+
# form parameters
|
984
|
+
form_params = opts[:form_params] || {}
|
985
|
+
|
986
|
+
# http body (model)
|
987
|
+
post_body = opts[:debug_body]
|
988
|
+
|
989
|
+
# return_type
|
990
|
+
return_type = opts[:debug_return_type] || 'LoginRequest'
|
991
|
+
|
992
|
+
# auth_names
|
993
|
+
auth_names = opts[:debug_auth_names] || []
|
994
|
+
|
995
|
+
new_options = opts.merge(
|
996
|
+
:operation => :"AdminApi.get_login_request",
|
997
|
+
:header_params => header_params,
|
998
|
+
:query_params => query_params,
|
999
|
+
:form_params => form_params,
|
1000
|
+
:body => post_body,
|
1001
|
+
:auth_names => auth_names,
|
1002
|
+
:return_type => return_type
|
1003
|
+
)
|
1004
|
+
|
1005
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1006
|
+
if @api_client.config.debugging
|
1007
|
+
@api_client.config.logger.debug "API called: AdminApi#get_login_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1008
|
+
end
|
1009
|
+
return data, status_code, headers
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
# Get a Logout Request
|
1013
|
+
# Use this endpoint to fetch a logout request.
|
1014
|
+
# @param logout_challenge [String]
|
1015
|
+
# @param [Hash] opts the optional parameters
|
1016
|
+
# @return [LogoutRequest]
|
1017
|
+
def get_logout_request(logout_challenge, opts = {})
|
1018
|
+
data, _status_code, _headers = get_logout_request_with_http_info(logout_challenge, opts)
|
1019
|
+
data
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
# Get a Logout Request
|
1023
|
+
# Use this endpoint to fetch a logout request.
|
1024
|
+
# @param logout_challenge [String]
|
1025
|
+
# @param [Hash] opts the optional parameters
|
1026
|
+
# @return [Array<(LogoutRequest, Integer, Hash)>] LogoutRequest data, response status code and response headers
|
1027
|
+
def get_logout_request_with_http_info(logout_challenge, opts = {})
|
1028
|
+
if @api_client.config.debugging
|
1029
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.get_logout_request ...'
|
1030
|
+
end
|
1031
|
+
# verify the required parameter 'logout_challenge' is set
|
1032
|
+
if @api_client.config.client_side_validation && logout_challenge.nil?
|
1033
|
+
fail ArgumentError, "Missing the required parameter 'logout_challenge' when calling AdminApi.get_logout_request"
|
1034
|
+
end
|
1035
|
+
# resource path
|
1036
|
+
local_var_path = '/oauth2/auth/requests/logout'
|
1037
|
+
|
1038
|
+
# query parameters
|
1039
|
+
query_params = opts[:query_params] || {}
|
1040
|
+
query_params[:'logout_challenge'] = logout_challenge
|
1041
|
+
|
1042
|
+
# header parameters
|
1043
|
+
header_params = opts[:header_params] || {}
|
1044
|
+
# HTTP header 'Accept' (if needed)
|
1045
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1046
|
+
|
1047
|
+
# form parameters
|
1048
|
+
form_params = opts[:form_params] || {}
|
1049
|
+
|
1050
|
+
# http body (model)
|
1051
|
+
post_body = opts[:debug_body]
|
1052
|
+
|
1053
|
+
# return_type
|
1054
|
+
return_type = opts[:debug_return_type] || 'LogoutRequest'
|
1055
|
+
|
1056
|
+
# auth_names
|
1057
|
+
auth_names = opts[:debug_auth_names] || []
|
1058
|
+
|
1059
|
+
new_options = opts.merge(
|
1060
|
+
:operation => :"AdminApi.get_logout_request",
|
1061
|
+
:header_params => header_params,
|
1062
|
+
:query_params => query_params,
|
1063
|
+
:form_params => form_params,
|
1064
|
+
:body => post_body,
|
1065
|
+
:auth_names => auth_names,
|
1066
|
+
:return_type => return_type
|
1067
|
+
)
|
1068
|
+
|
1069
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1070
|
+
if @api_client.config.debugging
|
1071
|
+
@api_client.config.logger.debug "API called: AdminApi#get_logout_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1072
|
+
end
|
1073
|
+
return data, status_code, headers
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
# Get an OAuth 2.0 Client
|
1077
|
+
# Get an OAuth 2.0 client by its ID. This endpoint never returns the client secret. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
1078
|
+
# @param id [String] The id of the OAuth 2.0 Client.
|
1079
|
+
# @param [Hash] opts the optional parameters
|
1080
|
+
# @return [OAuth2Client]
|
1081
|
+
def get_o_auth2_client(id, opts = {})
|
1082
|
+
data, _status_code, _headers = get_o_auth2_client_with_http_info(id, opts)
|
1083
|
+
data
|
1084
|
+
end
|
1085
|
+
|
1086
|
+
# Get an OAuth 2.0 Client
|
1087
|
+
# Get an OAuth 2.0 client by its ID. This endpoint never returns the client secret. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
1088
|
+
# @param id [String] The id of the OAuth 2.0 Client.
|
1089
|
+
# @param [Hash] opts the optional parameters
|
1090
|
+
# @return [Array<(OAuth2Client, Integer, Hash)>] OAuth2Client data, response status code and response headers
|
1091
|
+
def get_o_auth2_client_with_http_info(id, opts = {})
|
1092
|
+
if @api_client.config.debugging
|
1093
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.get_o_auth2_client ...'
|
1094
|
+
end
|
1095
|
+
# verify the required parameter 'id' is set
|
1096
|
+
if @api_client.config.client_side_validation && id.nil?
|
1097
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.get_o_auth2_client"
|
1098
|
+
end
|
1099
|
+
# resource path
|
1100
|
+
local_var_path = '/clients/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1101
|
+
|
1102
|
+
# query parameters
|
1103
|
+
query_params = opts[:query_params] || {}
|
1104
|
+
|
1105
|
+
# header parameters
|
1106
|
+
header_params = opts[:header_params] || {}
|
1107
|
+
# HTTP header 'Accept' (if needed)
|
1108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1109
|
+
|
1110
|
+
# form parameters
|
1111
|
+
form_params = opts[:form_params] || {}
|
1112
|
+
|
1113
|
+
# http body (model)
|
1114
|
+
post_body = opts[:debug_body]
|
1115
|
+
|
1116
|
+
# return_type
|
1117
|
+
return_type = opts[:debug_return_type] || 'OAuth2Client'
|
1118
|
+
|
1119
|
+
# auth_names
|
1120
|
+
auth_names = opts[:debug_auth_names] || []
|
1121
|
+
|
1122
|
+
new_options = opts.merge(
|
1123
|
+
:operation => :"AdminApi.get_o_auth2_client",
|
1124
|
+
:header_params => header_params,
|
1125
|
+
:query_params => query_params,
|
1126
|
+
:form_params => form_params,
|
1127
|
+
:body => post_body,
|
1128
|
+
:auth_names => auth_names,
|
1129
|
+
:return_type => return_type
|
1130
|
+
)
|
1131
|
+
|
1132
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1133
|
+
if @api_client.config.debugging
|
1134
|
+
@api_client.config.logger.debug "API called: AdminApi#get_o_auth2_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1135
|
+
end
|
1136
|
+
return data, status_code, headers
|
1137
|
+
end
|
1138
|
+
|
1139
|
+
# Get a Trusted OAuth2 JWT Bearer Grant Type Issuer
|
1140
|
+
# Use this endpoint to get a trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship.
|
1141
|
+
# @param id [String] The id of the desired grant
|
1142
|
+
# @param [Hash] opts the optional parameters
|
1143
|
+
# @return [TrustedJwtGrantIssuer]
|
1144
|
+
def get_trusted_jwt_grant_issuer(id, opts = {})
|
1145
|
+
data, _status_code, _headers = get_trusted_jwt_grant_issuer_with_http_info(id, opts)
|
1146
|
+
data
|
1147
|
+
end
|
1148
|
+
|
1149
|
+
# Get a Trusted OAuth2 JWT Bearer Grant Type Issuer
|
1150
|
+
# Use this endpoint to get a trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship.
|
1151
|
+
# @param id [String] The id of the desired grant
|
1152
|
+
# @param [Hash] opts the optional parameters
|
1153
|
+
# @return [Array<(TrustedJwtGrantIssuer, Integer, Hash)>] TrustedJwtGrantIssuer data, response status code and response headers
|
1154
|
+
def get_trusted_jwt_grant_issuer_with_http_info(id, opts = {})
|
1155
|
+
if @api_client.config.debugging
|
1156
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.get_trusted_jwt_grant_issuer ...'
|
1157
|
+
end
|
1158
|
+
# verify the required parameter 'id' is set
|
1159
|
+
if @api_client.config.client_side_validation && id.nil?
|
1160
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.get_trusted_jwt_grant_issuer"
|
1161
|
+
end
|
1162
|
+
# resource path
|
1163
|
+
local_var_path = '/trust/grants/jwt-bearer/issuers/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1164
|
+
|
1165
|
+
# query parameters
|
1166
|
+
query_params = opts[:query_params] || {}
|
1167
|
+
|
1168
|
+
# header parameters
|
1169
|
+
header_params = opts[:header_params] || {}
|
1170
|
+
# HTTP header 'Accept' (if needed)
|
1171
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1172
|
+
|
1173
|
+
# form parameters
|
1174
|
+
form_params = opts[:form_params] || {}
|
1175
|
+
|
1176
|
+
# http body (model)
|
1177
|
+
post_body = opts[:debug_body]
|
1178
|
+
|
1179
|
+
# return_type
|
1180
|
+
return_type = opts[:debug_return_type] || 'TrustedJwtGrantIssuer'
|
1181
|
+
|
1182
|
+
# auth_names
|
1183
|
+
auth_names = opts[:debug_auth_names] || []
|
1184
|
+
|
1185
|
+
new_options = opts.merge(
|
1186
|
+
:operation => :"AdminApi.get_trusted_jwt_grant_issuer",
|
1187
|
+
:header_params => header_params,
|
1188
|
+
:query_params => query_params,
|
1189
|
+
:form_params => form_params,
|
1190
|
+
:body => post_body,
|
1191
|
+
:auth_names => auth_names,
|
1192
|
+
:return_type => return_type
|
1193
|
+
)
|
1194
|
+
|
1195
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1196
|
+
if @api_client.config.debugging
|
1197
|
+
@api_client.config.logger.debug "API called: AdminApi#get_trusted_jwt_grant_issuer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1198
|
+
end
|
1199
|
+
return data, status_code, headers
|
1200
|
+
end
|
1201
|
+
|
1202
|
+
# Introspect OAuth2 Tokens
|
1203
|
+
# The introspection endpoint allows to check if a token (both refresh and access) is active or not. An active token is neither expired nor revoked. If a token is active, additional information on the token will be included. You can set additional data for a token by setting `accessTokenExtra` during the consent flow. For more information [read this blog post](https://www.oauth.com/oauth2-servers/token-introspection-endpoint/).
|
1204
|
+
# @param token [String] The string value of the token. For access tokens, this is the \\\"access_token\\\" value returned from the token endpoint defined in OAuth 2.0. For refresh tokens, this is the \\\"refresh_token\\\" value returned.
|
1205
|
+
# @param [Hash] opts the optional parameters
|
1206
|
+
# @option opts [String] :scope An optional, space separated list of required scopes. If the access token was not granted one of the scopes, the result of active will be false.
|
1207
|
+
# @return [OAuth2TokenIntrospection]
|
1208
|
+
def introspect_o_auth2_token(token, opts = {})
|
1209
|
+
data, _status_code, _headers = introspect_o_auth2_token_with_http_info(token, opts)
|
1210
|
+
data
|
1211
|
+
end
|
1212
|
+
|
1213
|
+
# Introspect OAuth2 Tokens
|
1214
|
+
# The introspection endpoint allows to check if a token (both refresh and access) is active or not. An active token is neither expired nor revoked. If a token is active, additional information on the token will be included. You can set additional data for a token by setting `accessTokenExtra` during the consent flow. For more information [read this blog post](https://www.oauth.com/oauth2-servers/token-introspection-endpoint/).
|
1215
|
+
# @param token [String] The string value of the token. For access tokens, this is the \\\"access_token\\\" value returned from the token endpoint defined in OAuth 2.0. For refresh tokens, this is the \\\"refresh_token\\\" value returned.
|
1216
|
+
# @param [Hash] opts the optional parameters
|
1217
|
+
# @option opts [String] :scope An optional, space separated list of required scopes. If the access token was not granted one of the scopes, the result of active will be false.
|
1218
|
+
# @return [Array<(OAuth2TokenIntrospection, Integer, Hash)>] OAuth2TokenIntrospection data, response status code and response headers
|
1219
|
+
def introspect_o_auth2_token_with_http_info(token, opts = {})
|
1220
|
+
if @api_client.config.debugging
|
1221
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.introspect_o_auth2_token ...'
|
1222
|
+
end
|
1223
|
+
# verify the required parameter 'token' is set
|
1224
|
+
if @api_client.config.client_side_validation && token.nil?
|
1225
|
+
fail ArgumentError, "Missing the required parameter 'token' when calling AdminApi.introspect_o_auth2_token"
|
1226
|
+
end
|
1227
|
+
# resource path
|
1228
|
+
local_var_path = '/oauth2/introspect'
|
1229
|
+
|
1230
|
+
# query parameters
|
1231
|
+
query_params = opts[:query_params] || {}
|
1232
|
+
|
1233
|
+
# header parameters
|
1234
|
+
header_params = opts[:header_params] || {}
|
1235
|
+
# HTTP header 'Accept' (if needed)
|
1236
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1237
|
+
# HTTP header 'Content-Type'
|
1238
|
+
content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1239
|
+
if !content_type.nil?
|
1240
|
+
header_params['Content-Type'] = content_type
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
# form parameters
|
1244
|
+
form_params = opts[:form_params] || {}
|
1245
|
+
form_params['token'] = token
|
1246
|
+
form_params['scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
1247
|
+
|
1248
|
+
# http body (model)
|
1249
|
+
post_body = opts[:debug_body]
|
1250
|
+
|
1251
|
+
# return_type
|
1252
|
+
return_type = opts[:debug_return_type] || 'OAuth2TokenIntrospection'
|
1253
|
+
|
1254
|
+
# auth_names
|
1255
|
+
auth_names = opts[:debug_auth_names] || []
|
1256
|
+
|
1257
|
+
new_options = opts.merge(
|
1258
|
+
:operation => :"AdminApi.introspect_o_auth2_token",
|
1259
|
+
:header_params => header_params,
|
1260
|
+
:query_params => query_params,
|
1261
|
+
:form_params => form_params,
|
1262
|
+
:body => post_body,
|
1263
|
+
:auth_names => auth_names,
|
1264
|
+
:return_type => return_type
|
1265
|
+
)
|
1266
|
+
|
1267
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1268
|
+
if @api_client.config.debugging
|
1269
|
+
@api_client.config.logger.debug "API called: AdminApi#introspect_o_auth2_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1270
|
+
end
|
1271
|
+
return data, status_code, headers
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
# List OAuth 2.0 Clients
|
1275
|
+
# This endpoint lists all clients in the database, and never returns client secrets. As a default it lists the first 100 clients. The `limit` parameter can be used to retrieve more clients, but it has an upper bound at 500 objects. Pagination should be used to retrieve more than 500 objects. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. The \"Link\" header is also included in successful responses, which contains one or more links for pagination, formatted like so: '<https://hydra-url/admin/clients?limit={limit}&offset={offset}>; rel=\"{page}\"', where page is one of the following applicable pages: 'first', 'next', 'last', and 'previous'. Multiple links can be included in this header, and will be separated by a comma.
|
1276
|
+
# @param [Hash] opts the optional parameters
|
1277
|
+
# @option opts [Integer] :limit The maximum amount of clients to returned, upper bound is 500 clients.
|
1278
|
+
# @option opts [Integer] :offset The offset from where to start looking.
|
1279
|
+
# @option opts [String] :client_name The name of the clients to filter by.
|
1280
|
+
# @option opts [String] :owner The owner of the clients to filter by.
|
1281
|
+
# @return [Array<OAuth2Client>]
|
1282
|
+
def list_o_auth2_clients(opts = {})
|
1283
|
+
data, _status_code, _headers = list_o_auth2_clients_with_http_info(opts)
|
1284
|
+
data
|
1285
|
+
end
|
1286
|
+
|
1287
|
+
# List OAuth 2.0 Clients
|
1288
|
+
# This endpoint lists all clients in the database, and never returns client secrets. As a default it lists the first 100 clients. The `limit` parameter can be used to retrieve more clients, but it has an upper bound at 500 objects. Pagination should be used to retrieve more than 500 objects. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. The \"Link\" header is also included in successful responses, which contains one or more links for pagination, formatted like so: '<https://hydra-url/admin/clients?limit={limit}&offset={offset}>; rel=\"{page}\"', where page is one of the following applicable pages: 'first', 'next', 'last', and 'previous'. Multiple links can be included in this header, and will be separated by a comma.
|
1289
|
+
# @param [Hash] opts the optional parameters
|
1290
|
+
# @option opts [Integer] :limit The maximum amount of clients to returned, upper bound is 500 clients.
|
1291
|
+
# @option opts [Integer] :offset The offset from where to start looking.
|
1292
|
+
# @option opts [String] :client_name The name of the clients to filter by.
|
1293
|
+
# @option opts [String] :owner The owner of the clients to filter by.
|
1294
|
+
# @return [Array<(Array<OAuth2Client>, Integer, Hash)>] Array<OAuth2Client> data, response status code and response headers
|
1295
|
+
def list_o_auth2_clients_with_http_info(opts = {})
|
1296
|
+
if @api_client.config.debugging
|
1297
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.list_o_auth2_clients ...'
|
1298
|
+
end
|
1299
|
+
# resource path
|
1300
|
+
local_var_path = '/clients'
|
1301
|
+
|
1302
|
+
# query parameters
|
1303
|
+
query_params = opts[:query_params] || {}
|
1304
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1305
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1306
|
+
query_params[:'client_name'] = opts[:'client_name'] if !opts[:'client_name'].nil?
|
1307
|
+
query_params[:'owner'] = opts[:'owner'] if !opts[:'owner'].nil?
|
1308
|
+
|
1309
|
+
# header parameters
|
1310
|
+
header_params = opts[:header_params] || {}
|
1311
|
+
# HTTP header 'Accept' (if needed)
|
1312
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1313
|
+
|
1314
|
+
# form parameters
|
1315
|
+
form_params = opts[:form_params] || {}
|
1316
|
+
|
1317
|
+
# http body (model)
|
1318
|
+
post_body = opts[:debug_body]
|
1319
|
+
|
1320
|
+
# return_type
|
1321
|
+
return_type = opts[:debug_return_type] || 'Array<OAuth2Client>'
|
1322
|
+
|
1323
|
+
# auth_names
|
1324
|
+
auth_names = opts[:debug_auth_names] || []
|
1325
|
+
|
1326
|
+
new_options = opts.merge(
|
1327
|
+
:operation => :"AdminApi.list_o_auth2_clients",
|
1328
|
+
:header_params => header_params,
|
1329
|
+
:query_params => query_params,
|
1330
|
+
:form_params => form_params,
|
1331
|
+
:body => post_body,
|
1332
|
+
:auth_names => auth_names,
|
1333
|
+
:return_type => return_type
|
1334
|
+
)
|
1335
|
+
|
1336
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1337
|
+
if @api_client.config.debugging
|
1338
|
+
@api_client.config.logger.debug "API called: AdminApi#list_o_auth2_clients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1339
|
+
end
|
1340
|
+
return data, status_code, headers
|
1341
|
+
end
|
1342
|
+
|
1343
|
+
# Lists All Consent Sessions of a Subject
|
1344
|
+
# This endpoint lists all subject's granted consent sessions, including client and granted scope. If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an empty JSON array with status code 200 OK. The \"Link\" header is also included in successful responses, which contains one or more links for pagination, formatted like so: '<https://hydra-url/admin/oauth2/auth/sessions/consent?subject={user}&limit={limit}&offset={offset}>; rel=\"{page}\"', where page is one of the following applicable pages: 'first', 'next', 'last', and 'previous'. Multiple links can be included in this header, and will be separated by a comma.
|
1345
|
+
# @param subject [String]
|
1346
|
+
# @param [Hash] opts the optional parameters
|
1347
|
+
# @option opts [Integer] :limit The maximum amount of consent sessions to be returned, upper bound is 500 sessions.
|
1348
|
+
# @option opts [Integer] :offset The offset from where to start looking.
|
1349
|
+
# @return [Array<PreviousConsentSession>]
|
1350
|
+
def list_subject_consent_sessions(subject, opts = {})
|
1351
|
+
data, _status_code, _headers = list_subject_consent_sessions_with_http_info(subject, opts)
|
1352
|
+
data
|
1353
|
+
end
|
1354
|
+
|
1355
|
+
# Lists All Consent Sessions of a Subject
|
1356
|
+
# This endpoint lists all subject's granted consent sessions, including client and granted scope. If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an empty JSON array with status code 200 OK. The \"Link\" header is also included in successful responses, which contains one or more links for pagination, formatted like so: '<https://hydra-url/admin/oauth2/auth/sessions/consent?subject={user}&limit={limit}&offset={offset}>; rel=\"{page}\"', where page is one of the following applicable pages: 'first', 'next', 'last', and 'previous'. Multiple links can be included in this header, and will be separated by a comma.
|
1357
|
+
# @param subject [String]
|
1358
|
+
# @param [Hash] opts the optional parameters
|
1359
|
+
# @option opts [Integer] :limit The maximum amount of consent sessions to be returned, upper bound is 500 sessions.
|
1360
|
+
# @option opts [Integer] :offset The offset from where to start looking.
|
1361
|
+
# @return [Array<(Array<PreviousConsentSession>, Integer, Hash)>] Array<PreviousConsentSession> data, response status code and response headers
|
1362
|
+
def list_subject_consent_sessions_with_http_info(subject, opts = {})
|
1363
|
+
if @api_client.config.debugging
|
1364
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.list_subject_consent_sessions ...'
|
1365
|
+
end
|
1366
|
+
# verify the required parameter 'subject' is set
|
1367
|
+
if @api_client.config.client_side_validation && subject.nil?
|
1368
|
+
fail ArgumentError, "Missing the required parameter 'subject' when calling AdminApi.list_subject_consent_sessions"
|
1369
|
+
end
|
1370
|
+
# resource path
|
1371
|
+
local_var_path = '/oauth2/auth/sessions/consent'
|
1372
|
+
|
1373
|
+
# query parameters
|
1374
|
+
query_params = opts[:query_params] || {}
|
1375
|
+
query_params[:'subject'] = subject
|
1376
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1377
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1378
|
+
|
1379
|
+
# header parameters
|
1380
|
+
header_params = opts[:header_params] || {}
|
1381
|
+
# HTTP header 'Accept' (if needed)
|
1382
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1383
|
+
|
1384
|
+
# form parameters
|
1385
|
+
form_params = opts[:form_params] || {}
|
1386
|
+
|
1387
|
+
# http body (model)
|
1388
|
+
post_body = opts[:debug_body]
|
1389
|
+
|
1390
|
+
# return_type
|
1391
|
+
return_type = opts[:debug_return_type] || 'Array<PreviousConsentSession>'
|
1392
|
+
|
1393
|
+
# auth_names
|
1394
|
+
auth_names = opts[:debug_auth_names] || []
|
1395
|
+
|
1396
|
+
new_options = opts.merge(
|
1397
|
+
:operation => :"AdminApi.list_subject_consent_sessions",
|
1398
|
+
:header_params => header_params,
|
1399
|
+
:query_params => query_params,
|
1400
|
+
:form_params => form_params,
|
1401
|
+
:body => post_body,
|
1402
|
+
:auth_names => auth_names,
|
1403
|
+
:return_type => return_type
|
1404
|
+
)
|
1405
|
+
|
1406
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1407
|
+
if @api_client.config.debugging
|
1408
|
+
@api_client.config.logger.debug "API called: AdminApi#list_subject_consent_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1409
|
+
end
|
1410
|
+
return data, status_code, headers
|
1411
|
+
end
|
1412
|
+
|
1413
|
+
# List Trusted OAuth2 JWT Bearer Grant Type Issuers
|
1414
|
+
# Use this endpoint to list all trusted JWT Bearer Grant Type Issuers.
|
1415
|
+
# @param [Hash] opts the optional parameters
|
1416
|
+
# @option opts [String] :issuer If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned.
|
1417
|
+
# @option opts [Integer] :limit The maximum amount of policies returned, upper bound is 500 policies
|
1418
|
+
# @option opts [Integer] :offset The offset from where to start looking.
|
1419
|
+
# @return [Array<TrustedJwtGrantIssuer>]
|
1420
|
+
def list_trusted_jwt_grant_issuers(opts = {})
|
1421
|
+
data, _status_code, _headers = list_trusted_jwt_grant_issuers_with_http_info(opts)
|
1422
|
+
data
|
1423
|
+
end
|
1424
|
+
|
1425
|
+
# List Trusted OAuth2 JWT Bearer Grant Type Issuers
|
1426
|
+
# Use this endpoint to list all trusted JWT Bearer Grant Type Issuers.
|
1427
|
+
# @param [Hash] opts the optional parameters
|
1428
|
+
# @option opts [String] :issuer If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned.
|
1429
|
+
# @option opts [Integer] :limit The maximum amount of policies returned, upper bound is 500 policies
|
1430
|
+
# @option opts [Integer] :offset The offset from where to start looking.
|
1431
|
+
# @return [Array<(Array<TrustedJwtGrantIssuer>, Integer, Hash)>] Array<TrustedJwtGrantIssuer> data, response status code and response headers
|
1432
|
+
def list_trusted_jwt_grant_issuers_with_http_info(opts = {})
|
1433
|
+
if @api_client.config.debugging
|
1434
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.list_trusted_jwt_grant_issuers ...'
|
1435
|
+
end
|
1436
|
+
# resource path
|
1437
|
+
local_var_path = '/trust/grants/jwt-bearer/issuers'
|
1438
|
+
|
1439
|
+
# query parameters
|
1440
|
+
query_params = opts[:query_params] || {}
|
1441
|
+
query_params[:'issuer'] = opts[:'issuer'] if !opts[:'issuer'].nil?
|
1442
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1443
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1444
|
+
|
1445
|
+
# header parameters
|
1446
|
+
header_params = opts[:header_params] || {}
|
1447
|
+
# HTTP header 'Accept' (if needed)
|
1448
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1449
|
+
|
1450
|
+
# form parameters
|
1451
|
+
form_params = opts[:form_params] || {}
|
1452
|
+
|
1453
|
+
# http body (model)
|
1454
|
+
post_body = opts[:debug_body]
|
1455
|
+
|
1456
|
+
# return_type
|
1457
|
+
return_type = opts[:debug_return_type] || 'Array<TrustedJwtGrantIssuer>'
|
1458
|
+
|
1459
|
+
# auth_names
|
1460
|
+
auth_names = opts[:debug_auth_names] || []
|
1461
|
+
|
1462
|
+
new_options = opts.merge(
|
1463
|
+
:operation => :"AdminApi.list_trusted_jwt_grant_issuers",
|
1464
|
+
:header_params => header_params,
|
1465
|
+
:query_params => query_params,
|
1466
|
+
:form_params => form_params,
|
1467
|
+
:body => post_body,
|
1468
|
+
:auth_names => auth_names,
|
1469
|
+
:return_type => return_type
|
1470
|
+
)
|
1471
|
+
|
1472
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1473
|
+
if @api_client.config.debugging
|
1474
|
+
@api_client.config.logger.debug "API called: AdminApi#list_trusted_jwt_grant_issuers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1475
|
+
end
|
1476
|
+
return data, status_code, headers
|
1477
|
+
end
|
1478
|
+
|
1479
|
+
# Patch an OAuth 2.0 Client
|
1480
|
+
# Patch an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
1481
|
+
# @param id [String] The id of the OAuth 2.0 Client.
|
1482
|
+
# @param patch_document [Array<PatchDocument>]
|
1483
|
+
# @param [Hash] opts the optional parameters
|
1484
|
+
# @return [OAuth2Client]
|
1485
|
+
def patch_o_auth2_client(id, patch_document, opts = {})
|
1486
|
+
data, _status_code, _headers = patch_o_auth2_client_with_http_info(id, patch_document, opts)
|
1487
|
+
data
|
1488
|
+
end
|
1489
|
+
|
1490
|
+
# Patch an OAuth 2.0 Client
|
1491
|
+
# Patch an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
1492
|
+
# @param id [String] The id of the OAuth 2.0 Client.
|
1493
|
+
# @param patch_document [Array<PatchDocument>]
|
1494
|
+
# @param [Hash] opts the optional parameters
|
1495
|
+
# @return [Array<(OAuth2Client, Integer, Hash)>] OAuth2Client data, response status code and response headers
|
1496
|
+
def patch_o_auth2_client_with_http_info(id, patch_document, opts = {})
|
1497
|
+
if @api_client.config.debugging
|
1498
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.patch_o_auth2_client ...'
|
1499
|
+
end
|
1500
|
+
# verify the required parameter 'id' is set
|
1501
|
+
if @api_client.config.client_side_validation && id.nil?
|
1502
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.patch_o_auth2_client"
|
1503
|
+
end
|
1504
|
+
# verify the required parameter 'patch_document' is set
|
1505
|
+
if @api_client.config.client_side_validation && patch_document.nil?
|
1506
|
+
fail ArgumentError, "Missing the required parameter 'patch_document' when calling AdminApi.patch_o_auth2_client"
|
1507
|
+
end
|
1508
|
+
# resource path
|
1509
|
+
local_var_path = '/clients/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1510
|
+
|
1511
|
+
# query parameters
|
1512
|
+
query_params = opts[:query_params] || {}
|
1513
|
+
|
1514
|
+
# header parameters
|
1515
|
+
header_params = opts[:header_params] || {}
|
1516
|
+
# HTTP header 'Accept' (if needed)
|
1517
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1518
|
+
# HTTP header 'Content-Type'
|
1519
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1520
|
+
if !content_type.nil?
|
1521
|
+
header_params['Content-Type'] = content_type
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
# form parameters
|
1525
|
+
form_params = opts[:form_params] || {}
|
1526
|
+
|
1527
|
+
# http body (model)
|
1528
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_document)
|
1529
|
+
|
1530
|
+
# return_type
|
1531
|
+
return_type = opts[:debug_return_type] || 'OAuth2Client'
|
1532
|
+
|
1533
|
+
# auth_names
|
1534
|
+
auth_names = opts[:debug_auth_names] || []
|
1535
|
+
|
1536
|
+
new_options = opts.merge(
|
1537
|
+
:operation => :"AdminApi.patch_o_auth2_client",
|
1538
|
+
:header_params => header_params,
|
1539
|
+
:query_params => query_params,
|
1540
|
+
:form_params => form_params,
|
1541
|
+
:body => post_body,
|
1542
|
+
:auth_names => auth_names,
|
1543
|
+
:return_type => return_type
|
1544
|
+
)
|
1545
|
+
|
1546
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1547
|
+
if @api_client.config.debugging
|
1548
|
+
@api_client.config.logger.debug "API called: AdminApi#patch_o_auth2_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1549
|
+
end
|
1550
|
+
return data, status_code, headers
|
1551
|
+
end
|
1552
|
+
|
1553
|
+
# Reject a Consent Request
|
1554
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has not authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider must include a reason why the consent was not granted. The response contains a redirect URL which the consent provider should redirect the user-agent to.
|
1555
|
+
# @param consent_challenge [String]
|
1556
|
+
# @param [Hash] opts the optional parameters
|
1557
|
+
# @option opts [RejectRequest] :reject_request
|
1558
|
+
# @return [CompletedRequest]
|
1559
|
+
def reject_consent_request(consent_challenge, opts = {})
|
1560
|
+
data, _status_code, _headers = reject_consent_request_with_http_info(consent_challenge, opts)
|
1561
|
+
data
|
1562
|
+
end
|
1563
|
+
|
1564
|
+
# Reject a Consent Request
|
1565
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider to authenticate the subject and then tell ORY Hydra now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. The consent provider which handles this request and is a web app implemented and hosted by you. It shows a subject interface which asks the subject to grant or deny the client access to the requested scope (\"Application my-dropbox-app wants write access to all your private files\"). The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells ORY Hydra if the subject accepted or rejected the request. This endpoint tells ORY Hydra that the subject has not authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider must include a reason why the consent was not granted. The response contains a redirect URL which the consent provider should redirect the user-agent to.
|
1566
|
+
# @param consent_challenge [String]
|
1567
|
+
# @param [Hash] opts the optional parameters
|
1568
|
+
# @option opts [RejectRequest] :reject_request
|
1569
|
+
# @return [Array<(CompletedRequest, Integer, Hash)>] CompletedRequest data, response status code and response headers
|
1570
|
+
def reject_consent_request_with_http_info(consent_challenge, opts = {})
|
1571
|
+
if @api_client.config.debugging
|
1572
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.reject_consent_request ...'
|
1573
|
+
end
|
1574
|
+
# verify the required parameter 'consent_challenge' is set
|
1575
|
+
if @api_client.config.client_side_validation && consent_challenge.nil?
|
1576
|
+
fail ArgumentError, "Missing the required parameter 'consent_challenge' when calling AdminApi.reject_consent_request"
|
1577
|
+
end
|
1578
|
+
# resource path
|
1579
|
+
local_var_path = '/oauth2/auth/requests/consent/reject'
|
1580
|
+
|
1581
|
+
# query parameters
|
1582
|
+
query_params = opts[:query_params] || {}
|
1583
|
+
query_params[:'consent_challenge'] = consent_challenge
|
1584
|
+
|
1585
|
+
# header parameters
|
1586
|
+
header_params = opts[:header_params] || {}
|
1587
|
+
# HTTP header 'Accept' (if needed)
|
1588
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1589
|
+
# HTTP header 'Content-Type'
|
1590
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1591
|
+
if !content_type.nil?
|
1592
|
+
header_params['Content-Type'] = content_type
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
# form parameters
|
1596
|
+
form_params = opts[:form_params] || {}
|
1597
|
+
|
1598
|
+
# http body (model)
|
1599
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'reject_request'])
|
1600
|
+
|
1601
|
+
# return_type
|
1602
|
+
return_type = opts[:debug_return_type] || 'CompletedRequest'
|
1603
|
+
|
1604
|
+
# auth_names
|
1605
|
+
auth_names = opts[:debug_auth_names] || []
|
1606
|
+
|
1607
|
+
new_options = opts.merge(
|
1608
|
+
:operation => :"AdminApi.reject_consent_request",
|
1609
|
+
:header_params => header_params,
|
1610
|
+
:query_params => query_params,
|
1611
|
+
:form_params => form_params,
|
1612
|
+
:body => post_body,
|
1613
|
+
:auth_names => auth_names,
|
1614
|
+
:return_type => return_type
|
1615
|
+
)
|
1616
|
+
|
1617
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1618
|
+
if @api_client.config.debugging
|
1619
|
+
@api_client.config.logger.debug "API called: AdminApi#reject_consent_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1620
|
+
end
|
1621
|
+
return data, status_code, headers
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
# Reject a Login Request
|
1625
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has not authenticated and includes a reason why the authentication was be denied. The response contains a redirect URL which the login provider should redirect the user-agent to.
|
1626
|
+
# @param login_challenge [String]
|
1627
|
+
# @param [Hash] opts the optional parameters
|
1628
|
+
# @option opts [RejectRequest] :reject_request
|
1629
|
+
# @return [CompletedRequest]
|
1630
|
+
def reject_login_request(login_challenge, opts = {})
|
1631
|
+
data, _status_code, _headers = reject_login_request_with_http_info(login_challenge, opts)
|
1632
|
+
data
|
1633
|
+
end
|
1634
|
+
|
1635
|
+
# Reject a Login Request
|
1636
|
+
# When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY Hydra asks the login provider (sometimes called \"identity provider\") to authenticate the subject and then tell ORY Hydra now about it. The login provider is an web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells ORY Hydra that the subject has not authenticated and includes a reason why the authentication was be denied. The response contains a redirect URL which the login provider should redirect the user-agent to.
|
1637
|
+
# @param login_challenge [String]
|
1638
|
+
# @param [Hash] opts the optional parameters
|
1639
|
+
# @option opts [RejectRequest] :reject_request
|
1640
|
+
# @return [Array<(CompletedRequest, Integer, Hash)>] CompletedRequest data, response status code and response headers
|
1641
|
+
def reject_login_request_with_http_info(login_challenge, opts = {})
|
1642
|
+
if @api_client.config.debugging
|
1643
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.reject_login_request ...'
|
1644
|
+
end
|
1645
|
+
# verify the required parameter 'login_challenge' is set
|
1646
|
+
if @api_client.config.client_side_validation && login_challenge.nil?
|
1647
|
+
fail ArgumentError, "Missing the required parameter 'login_challenge' when calling AdminApi.reject_login_request"
|
1648
|
+
end
|
1649
|
+
# resource path
|
1650
|
+
local_var_path = '/oauth2/auth/requests/login/reject'
|
1651
|
+
|
1652
|
+
# query parameters
|
1653
|
+
query_params = opts[:query_params] || {}
|
1654
|
+
query_params[:'login_challenge'] = login_challenge
|
1655
|
+
|
1656
|
+
# header parameters
|
1657
|
+
header_params = opts[:header_params] || {}
|
1658
|
+
# HTTP header 'Accept' (if needed)
|
1659
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1660
|
+
# HTTP header 'Content-Type'
|
1661
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1662
|
+
if !content_type.nil?
|
1663
|
+
header_params['Content-Type'] = content_type
|
1664
|
+
end
|
1665
|
+
|
1666
|
+
# form parameters
|
1667
|
+
form_params = opts[:form_params] || {}
|
1668
|
+
|
1669
|
+
# http body (model)
|
1670
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'reject_request'])
|
1671
|
+
|
1672
|
+
# return_type
|
1673
|
+
return_type = opts[:debug_return_type] || 'CompletedRequest'
|
1674
|
+
|
1675
|
+
# auth_names
|
1676
|
+
auth_names = opts[:debug_auth_names] || []
|
1677
|
+
|
1678
|
+
new_options = opts.merge(
|
1679
|
+
:operation => :"AdminApi.reject_login_request",
|
1680
|
+
:header_params => header_params,
|
1681
|
+
:query_params => query_params,
|
1682
|
+
:form_params => form_params,
|
1683
|
+
:body => post_body,
|
1684
|
+
:auth_names => auth_names,
|
1685
|
+
:return_type => return_type
|
1686
|
+
)
|
1687
|
+
|
1688
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1689
|
+
if @api_client.config.debugging
|
1690
|
+
@api_client.config.logger.debug "API called: AdminApi#reject_login_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1691
|
+
end
|
1692
|
+
return data, status_code, headers
|
1693
|
+
end
|
1694
|
+
|
1695
|
+
# Reject a Logout Request
|
1696
|
+
# When a user or an application requests ORY Hydra to log out a user, this endpoint is used to deny that logout request. No body is required. The response is empty as the logout provider has to chose what action to perform next.
|
1697
|
+
# @param logout_challenge [String]
|
1698
|
+
# @param [Hash] opts the optional parameters
|
1699
|
+
# @option opts [RejectRequest] :reject_request
|
1700
|
+
# @return [nil]
|
1701
|
+
def reject_logout_request(logout_challenge, opts = {})
|
1702
|
+
reject_logout_request_with_http_info(logout_challenge, opts)
|
1703
|
+
nil
|
1704
|
+
end
|
1705
|
+
|
1706
|
+
# Reject a Logout Request
|
1707
|
+
# When a user or an application requests ORY Hydra to log out a user, this endpoint is used to deny that logout request. No body is required. The response is empty as the logout provider has to chose what action to perform next.
|
1708
|
+
# @param logout_challenge [String]
|
1709
|
+
# @param [Hash] opts the optional parameters
|
1710
|
+
# @option opts [RejectRequest] :reject_request
|
1711
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1712
|
+
def reject_logout_request_with_http_info(logout_challenge, opts = {})
|
1713
|
+
if @api_client.config.debugging
|
1714
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.reject_logout_request ...'
|
1715
|
+
end
|
1716
|
+
# verify the required parameter 'logout_challenge' is set
|
1717
|
+
if @api_client.config.client_side_validation && logout_challenge.nil?
|
1718
|
+
fail ArgumentError, "Missing the required parameter 'logout_challenge' when calling AdminApi.reject_logout_request"
|
1719
|
+
end
|
1720
|
+
# resource path
|
1721
|
+
local_var_path = '/oauth2/auth/requests/logout/reject'
|
1722
|
+
|
1723
|
+
# query parameters
|
1724
|
+
query_params = opts[:query_params] || {}
|
1725
|
+
query_params[:'logout_challenge'] = logout_challenge
|
1726
|
+
|
1727
|
+
# header parameters
|
1728
|
+
header_params = opts[:header_params] || {}
|
1729
|
+
# HTTP header 'Accept' (if needed)
|
1730
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1731
|
+
# HTTP header 'Content-Type'
|
1732
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded'])
|
1733
|
+
if !content_type.nil?
|
1734
|
+
header_params['Content-Type'] = content_type
|
1735
|
+
end
|
1736
|
+
|
1737
|
+
# form parameters
|
1738
|
+
form_params = opts[:form_params] || {}
|
1739
|
+
|
1740
|
+
# http body (model)
|
1741
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'reject_request'])
|
1742
|
+
|
1743
|
+
# return_type
|
1744
|
+
return_type = opts[:debug_return_type]
|
1745
|
+
|
1746
|
+
# auth_names
|
1747
|
+
auth_names = opts[:debug_auth_names] || []
|
1748
|
+
|
1749
|
+
new_options = opts.merge(
|
1750
|
+
:operation => :"AdminApi.reject_logout_request",
|
1751
|
+
:header_params => header_params,
|
1752
|
+
:query_params => query_params,
|
1753
|
+
:form_params => form_params,
|
1754
|
+
:body => post_body,
|
1755
|
+
:auth_names => auth_names,
|
1756
|
+
:return_type => return_type
|
1757
|
+
)
|
1758
|
+
|
1759
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1760
|
+
if @api_client.config.debugging
|
1761
|
+
@api_client.config.logger.debug "API called: AdminApi#reject_logout_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1762
|
+
end
|
1763
|
+
return data, status_code, headers
|
1764
|
+
end
|
1765
|
+
|
1766
|
+
# Invalidates All Login Sessions of a Certain User Invalidates a Subject's Authentication Session
|
1767
|
+
# This endpoint invalidates a subject's authentication session. After revoking the authentication session, the subject has to re-authenticate at ORY Hydra. This endpoint does not invalidate any tokens and does not work with OpenID Connect Front- or Back-channel logout.
|
1768
|
+
# @param subject [String]
|
1769
|
+
# @param [Hash] opts the optional parameters
|
1770
|
+
# @return [nil]
|
1771
|
+
def revoke_authentication_session(subject, opts = {})
|
1772
|
+
revoke_authentication_session_with_http_info(subject, opts)
|
1773
|
+
nil
|
1774
|
+
end
|
1775
|
+
|
1776
|
+
# Invalidates All Login Sessions of a Certain User Invalidates a Subject's Authentication Session
|
1777
|
+
# This endpoint invalidates a subject's authentication session. After revoking the authentication session, the subject has to re-authenticate at ORY Hydra. This endpoint does not invalidate any tokens and does not work with OpenID Connect Front- or Back-channel logout.
|
1778
|
+
# @param subject [String]
|
1779
|
+
# @param [Hash] opts the optional parameters
|
1780
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1781
|
+
def revoke_authentication_session_with_http_info(subject, opts = {})
|
1782
|
+
if @api_client.config.debugging
|
1783
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.revoke_authentication_session ...'
|
1784
|
+
end
|
1785
|
+
# verify the required parameter 'subject' is set
|
1786
|
+
if @api_client.config.client_side_validation && subject.nil?
|
1787
|
+
fail ArgumentError, "Missing the required parameter 'subject' when calling AdminApi.revoke_authentication_session"
|
1788
|
+
end
|
1789
|
+
# resource path
|
1790
|
+
local_var_path = '/oauth2/auth/sessions/login'
|
1791
|
+
|
1792
|
+
# query parameters
|
1793
|
+
query_params = opts[:query_params] || {}
|
1794
|
+
query_params[:'subject'] = subject
|
1795
|
+
|
1796
|
+
# header parameters
|
1797
|
+
header_params = opts[:header_params] || {}
|
1798
|
+
# HTTP header 'Accept' (if needed)
|
1799
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1800
|
+
|
1801
|
+
# form parameters
|
1802
|
+
form_params = opts[:form_params] || {}
|
1803
|
+
|
1804
|
+
# http body (model)
|
1805
|
+
post_body = opts[:debug_body]
|
1806
|
+
|
1807
|
+
# return_type
|
1808
|
+
return_type = opts[:debug_return_type]
|
1809
|
+
|
1810
|
+
# auth_names
|
1811
|
+
auth_names = opts[:debug_auth_names] || []
|
1812
|
+
|
1813
|
+
new_options = opts.merge(
|
1814
|
+
:operation => :"AdminApi.revoke_authentication_session",
|
1815
|
+
:header_params => header_params,
|
1816
|
+
:query_params => query_params,
|
1817
|
+
:form_params => form_params,
|
1818
|
+
:body => post_body,
|
1819
|
+
:auth_names => auth_names,
|
1820
|
+
:return_type => return_type
|
1821
|
+
)
|
1822
|
+
|
1823
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1824
|
+
if @api_client.config.debugging
|
1825
|
+
@api_client.config.logger.debug "API called: AdminApi#revoke_authentication_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1826
|
+
end
|
1827
|
+
return data, status_code, headers
|
1828
|
+
end
|
1829
|
+
|
1830
|
+
# Revokes Consent Sessions of a Subject for a Specific OAuth 2.0 Client
|
1831
|
+
# This endpoint revokes a subject's granted consent sessions for a specific OAuth 2.0 Client and invalidates all associated OAuth 2.0 Access Tokens.
|
1832
|
+
# @param subject [String] The subject (Subject) who's consent sessions should be deleted.
|
1833
|
+
# @param [Hash] opts the optional parameters
|
1834
|
+
# @option opts [String] :client If set, deletes only those consent sessions by the Subject that have been granted to the specified OAuth 2.0 Client ID
|
1835
|
+
# @option opts [Boolean] :all If set to `?all=true`, deletes all consent sessions by the Subject that have been granted.
|
1836
|
+
# @return [nil]
|
1837
|
+
def revoke_consent_sessions(subject, opts = {})
|
1838
|
+
revoke_consent_sessions_with_http_info(subject, opts)
|
1839
|
+
nil
|
1840
|
+
end
|
1841
|
+
|
1842
|
+
# Revokes Consent Sessions of a Subject for a Specific OAuth 2.0 Client
|
1843
|
+
# This endpoint revokes a subject's granted consent sessions for a specific OAuth 2.0 Client and invalidates all associated OAuth 2.0 Access Tokens.
|
1844
|
+
# @param subject [String] The subject (Subject) who's consent sessions should be deleted.
|
1845
|
+
# @param [Hash] opts the optional parameters
|
1846
|
+
# @option opts [String] :client If set, deletes only those consent sessions by the Subject that have been granted to the specified OAuth 2.0 Client ID
|
1847
|
+
# @option opts [Boolean] :all If set to `?all=true`, deletes all consent sessions by the Subject that have been granted.
|
1848
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1849
|
+
def revoke_consent_sessions_with_http_info(subject, opts = {})
|
1850
|
+
if @api_client.config.debugging
|
1851
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.revoke_consent_sessions ...'
|
1852
|
+
end
|
1853
|
+
# verify the required parameter 'subject' is set
|
1854
|
+
if @api_client.config.client_side_validation && subject.nil?
|
1855
|
+
fail ArgumentError, "Missing the required parameter 'subject' when calling AdminApi.revoke_consent_sessions"
|
1856
|
+
end
|
1857
|
+
# resource path
|
1858
|
+
local_var_path = '/oauth2/auth/sessions/consent'
|
1859
|
+
|
1860
|
+
# query parameters
|
1861
|
+
query_params = opts[:query_params] || {}
|
1862
|
+
query_params[:'subject'] = subject
|
1863
|
+
query_params[:'client'] = opts[:'client'] if !opts[:'client'].nil?
|
1864
|
+
query_params[:'all'] = opts[:'all'] if !opts[:'all'].nil?
|
1865
|
+
|
1866
|
+
# header parameters
|
1867
|
+
header_params = opts[:header_params] || {}
|
1868
|
+
# HTTP header 'Accept' (if needed)
|
1869
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1870
|
+
|
1871
|
+
# form parameters
|
1872
|
+
form_params = opts[:form_params] || {}
|
1873
|
+
|
1874
|
+
# http body (model)
|
1875
|
+
post_body = opts[:debug_body]
|
1876
|
+
|
1877
|
+
# return_type
|
1878
|
+
return_type = opts[:debug_return_type]
|
1879
|
+
|
1880
|
+
# auth_names
|
1881
|
+
auth_names = opts[:debug_auth_names] || []
|
1882
|
+
|
1883
|
+
new_options = opts.merge(
|
1884
|
+
:operation => :"AdminApi.revoke_consent_sessions",
|
1885
|
+
:header_params => header_params,
|
1886
|
+
:query_params => query_params,
|
1887
|
+
:form_params => form_params,
|
1888
|
+
:body => post_body,
|
1889
|
+
:auth_names => auth_names,
|
1890
|
+
:return_type => return_type
|
1891
|
+
)
|
1892
|
+
|
1893
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1894
|
+
if @api_client.config.debugging
|
1895
|
+
@api_client.config.logger.debug "API called: AdminApi#revoke_consent_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1896
|
+
end
|
1897
|
+
return data, status_code, headers
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
# Trust an OAuth2 JWT Bearer Grant Type Issuer
|
1901
|
+
# Use this endpoint to establish a trust relationship for a JWT issuer to perform JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants [RFC7523](https://datatracker.ietf.org/doc/html/rfc7523).
|
1902
|
+
# @param [Hash] opts the optional parameters
|
1903
|
+
# @option opts [TrustJwtGrantIssuerBody] :trust_jwt_grant_issuer_body
|
1904
|
+
# @return [TrustedJwtGrantIssuer]
|
1905
|
+
def trust_jwt_grant_issuer(opts = {})
|
1906
|
+
data, _status_code, _headers = trust_jwt_grant_issuer_with_http_info(opts)
|
1907
|
+
data
|
1908
|
+
end
|
1909
|
+
|
1910
|
+
# Trust an OAuth2 JWT Bearer Grant Type Issuer
|
1911
|
+
# Use this endpoint to establish a trust relationship for a JWT issuer to perform JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants [RFC7523](https://datatracker.ietf.org/doc/html/rfc7523).
|
1912
|
+
# @param [Hash] opts the optional parameters
|
1913
|
+
# @option opts [TrustJwtGrantIssuerBody] :trust_jwt_grant_issuer_body
|
1914
|
+
# @return [Array<(TrustedJwtGrantIssuer, Integer, Hash)>] TrustedJwtGrantIssuer data, response status code and response headers
|
1915
|
+
def trust_jwt_grant_issuer_with_http_info(opts = {})
|
1916
|
+
if @api_client.config.debugging
|
1917
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.trust_jwt_grant_issuer ...'
|
1918
|
+
end
|
1919
|
+
# resource path
|
1920
|
+
local_var_path = '/trust/grants/jwt-bearer/issuers'
|
1921
|
+
|
1922
|
+
# query parameters
|
1923
|
+
query_params = opts[:query_params] || {}
|
1924
|
+
|
1925
|
+
# header parameters
|
1926
|
+
header_params = opts[:header_params] || {}
|
1927
|
+
# HTTP header 'Accept' (if needed)
|
1928
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1929
|
+
# HTTP header 'Content-Type'
|
1930
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
1931
|
+
if !content_type.nil?
|
1932
|
+
header_params['Content-Type'] = content_type
|
1933
|
+
end
|
1934
|
+
|
1935
|
+
# form parameters
|
1936
|
+
form_params = opts[:form_params] || {}
|
1937
|
+
|
1938
|
+
# http body (model)
|
1939
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'trust_jwt_grant_issuer_body'])
|
1940
|
+
|
1941
|
+
# return_type
|
1942
|
+
return_type = opts[:debug_return_type] || 'TrustedJwtGrantIssuer'
|
1943
|
+
|
1944
|
+
# auth_names
|
1945
|
+
auth_names = opts[:debug_auth_names] || []
|
1946
|
+
|
1947
|
+
new_options = opts.merge(
|
1948
|
+
:operation => :"AdminApi.trust_jwt_grant_issuer",
|
1949
|
+
:header_params => header_params,
|
1950
|
+
:query_params => query_params,
|
1951
|
+
:form_params => form_params,
|
1952
|
+
:body => post_body,
|
1953
|
+
:auth_names => auth_names,
|
1954
|
+
:return_type => return_type
|
1955
|
+
)
|
1956
|
+
|
1957
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1958
|
+
if @api_client.config.debugging
|
1959
|
+
@api_client.config.logger.debug "API called: AdminApi#trust_jwt_grant_issuer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1960
|
+
end
|
1961
|
+
return data, status_code, headers
|
1962
|
+
end
|
1963
|
+
|
1964
|
+
# Update a JSON Web Key
|
1965
|
+
# 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.
|
1966
|
+
# @param kid [String] The kid of the desired key
|
1967
|
+
# @param set [String] The set
|
1968
|
+
# @param [Hash] opts the optional parameters
|
1969
|
+
# @option opts [JSONWebKey] :json_web_key
|
1970
|
+
# @return [JSONWebKey]
|
1971
|
+
def update_json_web_key(kid, set, opts = {})
|
1972
|
+
data, _status_code, _headers = update_json_web_key_with_http_info(kid, set, opts)
|
1973
|
+
data
|
1974
|
+
end
|
1975
|
+
|
1976
|
+
# Update a JSON Web Key
|
1977
|
+
# 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.
|
1978
|
+
# @param kid [String] The kid of the desired key
|
1979
|
+
# @param set [String] The set
|
1980
|
+
# @param [Hash] opts the optional parameters
|
1981
|
+
# @option opts [JSONWebKey] :json_web_key
|
1982
|
+
# @return [Array<(JSONWebKey, Integer, Hash)>] JSONWebKey data, response status code and response headers
|
1983
|
+
def update_json_web_key_with_http_info(kid, set, opts = {})
|
1984
|
+
if @api_client.config.debugging
|
1985
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.update_json_web_key ...'
|
1986
|
+
end
|
1987
|
+
# verify the required parameter 'kid' is set
|
1988
|
+
if @api_client.config.client_side_validation && kid.nil?
|
1989
|
+
fail ArgumentError, "Missing the required parameter 'kid' when calling AdminApi.update_json_web_key"
|
1990
|
+
end
|
1991
|
+
# verify the required parameter 'set' is set
|
1992
|
+
if @api_client.config.client_side_validation && set.nil?
|
1993
|
+
fail ArgumentError, "Missing the required parameter 'set' when calling AdminApi.update_json_web_key"
|
1994
|
+
end
|
1995
|
+
# resource path
|
1996
|
+
local_var_path = '/keys/{set}/{kid}'.sub('{' + 'kid' + '}', CGI.escape(kid.to_s)).sub('{' + 'set' + '}', CGI.escape(set.to_s))
|
1997
|
+
|
1998
|
+
# query parameters
|
1999
|
+
query_params = opts[:query_params] || {}
|
2000
|
+
|
2001
|
+
# header parameters
|
2002
|
+
header_params = opts[:header_params] || {}
|
2003
|
+
# HTTP header 'Accept' (if needed)
|
2004
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2005
|
+
# HTTP header 'Content-Type'
|
2006
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2007
|
+
if !content_type.nil?
|
2008
|
+
header_params['Content-Type'] = content_type
|
2009
|
+
end
|
2010
|
+
|
2011
|
+
# form parameters
|
2012
|
+
form_params = opts[:form_params] || {}
|
2013
|
+
|
2014
|
+
# http body (model)
|
2015
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'json_web_key'])
|
2016
|
+
|
2017
|
+
# return_type
|
2018
|
+
return_type = opts[:debug_return_type] || 'JSONWebKey'
|
2019
|
+
|
2020
|
+
# auth_names
|
2021
|
+
auth_names = opts[:debug_auth_names] || []
|
2022
|
+
|
2023
|
+
new_options = opts.merge(
|
2024
|
+
:operation => :"AdminApi.update_json_web_key",
|
2025
|
+
:header_params => header_params,
|
2026
|
+
:query_params => query_params,
|
2027
|
+
:form_params => form_params,
|
2028
|
+
:body => post_body,
|
2029
|
+
:auth_names => auth_names,
|
2030
|
+
:return_type => return_type
|
2031
|
+
)
|
2032
|
+
|
2033
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2034
|
+
if @api_client.config.debugging
|
2035
|
+
@api_client.config.logger.debug "API called: AdminApi#update_json_web_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2036
|
+
end
|
2037
|
+
return data, status_code, headers
|
2038
|
+
end
|
2039
|
+
|
2040
|
+
# Update a JSON Web Key Set
|
2041
|
+
# 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.
|
2042
|
+
# @param set [String] The set
|
2043
|
+
# @param [Hash] opts the optional parameters
|
2044
|
+
# @option opts [JSONWebKeySet] :json_web_key_set
|
2045
|
+
# @return [JSONWebKeySet]
|
2046
|
+
def update_json_web_key_set(set, opts = {})
|
2047
|
+
data, _status_code, _headers = update_json_web_key_set_with_http_info(set, opts)
|
2048
|
+
data
|
2049
|
+
end
|
2050
|
+
|
2051
|
+
# Update a JSON Web Key Set
|
2052
|
+
# 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.
|
2053
|
+
# @param set [String] The set
|
2054
|
+
# @param [Hash] opts the optional parameters
|
2055
|
+
# @option opts [JSONWebKeySet] :json_web_key_set
|
2056
|
+
# @return [Array<(JSONWebKeySet, Integer, Hash)>] JSONWebKeySet data, response status code and response headers
|
2057
|
+
def update_json_web_key_set_with_http_info(set, opts = {})
|
2058
|
+
if @api_client.config.debugging
|
2059
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.update_json_web_key_set ...'
|
2060
|
+
end
|
2061
|
+
# verify the required parameter 'set' is set
|
2062
|
+
if @api_client.config.client_side_validation && set.nil?
|
2063
|
+
fail ArgumentError, "Missing the required parameter 'set' when calling AdminApi.update_json_web_key_set"
|
2064
|
+
end
|
2065
|
+
# resource path
|
2066
|
+
local_var_path = '/keys/{set}'.sub('{' + 'set' + '}', CGI.escape(set.to_s))
|
2067
|
+
|
2068
|
+
# query parameters
|
2069
|
+
query_params = opts[:query_params] || {}
|
2070
|
+
|
2071
|
+
# header parameters
|
2072
|
+
header_params = opts[:header_params] || {}
|
2073
|
+
# HTTP header 'Accept' (if needed)
|
2074
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2075
|
+
# HTTP header 'Content-Type'
|
2076
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
2077
|
+
if !content_type.nil?
|
2078
|
+
header_params['Content-Type'] = content_type
|
2079
|
+
end
|
2080
|
+
|
2081
|
+
# form parameters
|
2082
|
+
form_params = opts[:form_params] || {}
|
2083
|
+
|
2084
|
+
# http body (model)
|
2085
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'json_web_key_set'])
|
2086
|
+
|
2087
|
+
# return_type
|
2088
|
+
return_type = opts[:debug_return_type] || 'JSONWebKeySet'
|
2089
|
+
|
2090
|
+
# auth_names
|
2091
|
+
auth_names = opts[:debug_auth_names] || []
|
2092
|
+
|
2093
|
+
new_options = opts.merge(
|
2094
|
+
:operation => :"AdminApi.update_json_web_key_set",
|
2095
|
+
:header_params => header_params,
|
2096
|
+
:query_params => query_params,
|
2097
|
+
:form_params => form_params,
|
2098
|
+
:body => post_body,
|
2099
|
+
:auth_names => auth_names,
|
2100
|
+
:return_type => return_type
|
2101
|
+
)
|
2102
|
+
|
2103
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2104
|
+
if @api_client.config.debugging
|
2105
|
+
@api_client.config.logger.debug "API called: AdminApi#update_json_web_key_set\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2106
|
+
end
|
2107
|
+
return data, status_code, headers
|
2108
|
+
end
|
2109
|
+
|
2110
|
+
# Update an OAuth 2.0 Client
|
2111
|
+
# Update an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
23
2112
|
# @param id [String] The id of the OAuth 2.0 Client.
|
2113
|
+
# @param o_auth2_client [OAuth2Client]
|
24
2114
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [UpdateOAuth2ClientLifespans] :update_o_auth2_client_lifespans
|
26
2115
|
# @return [OAuth2Client]
|
27
|
-
def
|
28
|
-
data, _status_code, _headers =
|
2116
|
+
def update_o_auth2_client(id, o_auth2_client, opts = {})
|
2117
|
+
data, _status_code, _headers = update_o_auth2_client_with_http_info(id, o_auth2_client, opts)
|
29
2118
|
data
|
30
2119
|
end
|
31
2120
|
|
32
|
-
#
|
2121
|
+
# Update an OAuth 2.0 Client
|
2122
|
+
# Update an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
|
33
2123
|
# @param id [String] The id of the OAuth 2.0 Client.
|
2124
|
+
# @param o_auth2_client [OAuth2Client]
|
34
2125
|
# @param [Hash] opts the optional parameters
|
35
|
-
# @option opts [UpdateOAuth2ClientLifespans] :update_o_auth2_client_lifespans
|
36
2126
|
# @return [Array<(OAuth2Client, Integer, Hash)>] OAuth2Client data, response status code and response headers
|
37
|
-
def
|
2127
|
+
def update_o_auth2_client_with_http_info(id, o_auth2_client, opts = {})
|
38
2128
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.
|
2129
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.update_o_auth2_client ...'
|
40
2130
|
end
|
41
2131
|
# verify the required parameter 'id' is set
|
42
2132
|
if @api_client.config.client_side_validation && id.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.
|
2133
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.update_o_auth2_client"
|
2134
|
+
end
|
2135
|
+
# verify the required parameter 'o_auth2_client' is set
|
2136
|
+
if @api_client.config.client_side_validation && o_auth2_client.nil?
|
2137
|
+
fail ArgumentError, "Missing the required parameter 'o_auth2_client' when calling AdminApi.update_o_auth2_client"
|
44
2138
|
end
|
45
2139
|
# resource path
|
46
|
-
local_var_path = '/
|
2140
|
+
local_var_path = '/clients/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
47
2141
|
|
48
2142
|
# query parameters
|
49
2143
|
query_params = opts[:query_params] || {}
|
@@ -62,7 +2156,7 @@ module OryClient
|
|
62
2156
|
form_params = opts[:form_params] || {}
|
63
2157
|
|
64
2158
|
# http body (model)
|
65
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
2159
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(o_auth2_client)
|
66
2160
|
|
67
2161
|
# return_type
|
68
2162
|
return_type = opts[:debug_return_type] || 'OAuth2Client'
|
@@ -71,7 +2165,7 @@ module OryClient
|
|
71
2165
|
auth_names = opts[:debug_auth_names] || []
|
72
2166
|
|
73
2167
|
new_options = opts.merge(
|
74
|
-
:operation => :"AdminApi.
|
2168
|
+
:operation => :"AdminApi.update_o_auth2_client",
|
75
2169
|
:header_params => header_params,
|
76
2170
|
:query_params => query_params,
|
77
2171
|
:form_params => form_params,
|
@@ -82,7 +2176,7 @@ module OryClient
|
|
82
2176
|
|
83
2177
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
84
2178
|
if @api_client.config.debugging
|
85
|
-
@api_client.config.logger.debug "API called: AdminApi#
|
2179
|
+
@api_client.config.logger.debug "API called: AdminApi#update_o_auth2_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
2180
|
end
|
87
2181
|
return data, status_code, headers
|
88
2182
|
end
|