From a09ab90ab522fb564651bb269b0441e32828ac4d Mon Sep 17 00:00:00 2001 From: aeneasr <aeneas@ory.sh> Date: Sat, 27 Apr 2019 01:49:23 +0200 Subject: [PATCH] sdk: Ignore sdk directory when generating OA spec Previously, the SDK directory was included when generating the Swagger specification. This caused issues due to duplicate models. This patch resolves that issue. Closes #1384 Signed-off-by: aeneasr <aeneas@ory.sh> --- Makefile | 2 +- docs/api.swagger.json | 1616 ++--------------- go.sum | 5 - sdk/go/hydra/models/authentication_request.go | 126 -- sdk/go/hydra/models/authentication_session.go | 101 -- sdk/go/hydra/models/client.go | 4 +- .../models/consent_request_session_data.go | 2 +- sdk/go/hydra/models/empty_response.go | 4 +- sdk/go/hydra/models/generic_error.go | 4 +- .../models/handled_authentication_request.go | 96 - .../hydra/models/handled_consent_request.go | 2 +- sdk/go/hydra/models/login_request.go | 2 +- sdk/go/hydra/models/logout_request.go | 2 +- .../hydra/models/open_id_connect_context.go | 2 +- .../hydra/models/request_handler_response.go | 2 +- .../swagger_flush_inactive_access_tokens.go | 4 +- .../models/swagger_json_web_key_query.go | 6 +- sdk/go/hydra/models/swagger_jwk_create_set.go | 2 +- sdk/go/hydra/models/swagger_jwk_set_query.go | 2 +- sdk/go/hydra/models/swagger_jwk_update_set.go | 2 +- .../models/swagger_jwk_update_set_key.go | 2 +- .../swagger_o_auth_introspection_request.go | 8 +- ...swagger_revoke_o_auth2_token_parameters.go | 4 +- .../models/swaggeroauth2_token_parameters.go | 4 +- sdk/go/hydra/models/well_known.go | 2 +- sdk/java/hydra-client-resttemplate/README.md | 19 - .../docs/AuthenticationRequest.md | 18 - .../docs/AuthenticationSession.md | 12 - .../hydra-client-resttemplate/docs/Client.md | 40 - .../docs/ConsentRequestSessionData.md | 11 - .../docs/CreateRequest.md | 12 - .../docs/HandledAuthenticationRequest.md | 14 - .../docs/HandledConsentRequest.md | 14 - .../docs/HandledLoginRequest.md | 15 - .../docs/Introspection.md | 22 - .../docs/RequestDeniedError.md | 14 - .../docs/RequestHandlerResponse.md | 10 - .../docs/SwaggerHealthStatus.md | 10 - .../docs/SwaggerJSONWebKey.md | 26 - .../docs/SwaggerJSONWebKeySet.md | 10 - .../docs/SwaggerNotReadyStatus.md | 10 - .../docs/SwaggerOAuthIntrospectionRequest.md | 2 +- .../docs/SwaggerOAuthTokenResponse.md | 15 - .../docs/SwaggerVersion.md | 10 - .../docs/Swaggeroauth2TokenResponse.md | 13 - .../docs/SwaggeruserinfoResponsePayload.md | 28 - .../java/com/github/ory/hydra/ApiClient.java | 2 +- .../com/github/ory/hydra/api/AdminApi.java | 2 +- .../com/github/ory/hydra/api/HealthApi.java | 2 +- .../com/github/ory/hydra/api/PublicApi.java | 2 +- .../com/github/ory/hydra/api/VersionApi.java | 2 +- .../com/github/ory/hydra/auth/ApiKeyAuth.java | 2 +- .../github/ory/hydra/auth/HttpBasicAuth.java | 2 +- .../java/com/github/ory/hydra/auth/OAuth.java | 2 +- .../ory/hydra/model/AcceptConsentRequest.java | 2 +- .../ory/hydra/model/AcceptLoginRequest.java | 2 +- .../hydra/model/AuthenticationRequest.java | 294 --- .../hydra/model/AuthenticationSession.java | 138 -- .../com/github/ory/hydra/model/Client.java | 848 --------- .../ory/hydra/model/CompletedRequest.java | 2 +- .../ory/hydra/model/ConsentRequest.java | 2 +- .../hydra/model/ConsentRequestSession.java | 2 +- .../model/ConsentRequestSessionData.java | 132 -- .../github/ory/hydra/model/CreateRequest.java | 137 -- .../github/ory/hydra/model/EmptyResponse.java | 6 +- .../FlushInactiveOAuth2TokensRequest.java | 2 +- .../github/ory/hydra/model/GenericError.java | 2 +- .../model/HandledAuthenticationRequest.java | 182 -- .../hydra/model/HandledConsentRequest.java | 201 -- .../ory/hydra/model/HandledLoginRequest.java | 216 --- .../ory/hydra/model/HealthNotReadyStatus.java | 2 +- .../github/ory/hydra/model/HealthStatus.java | 2 +- .../github/ory/hydra/model/Introspection.java | 387 ---- .../github/ory/hydra/model/JSONWebKey.java | 2 +- .../github/ory/hydra/model/JSONWebKeySet.java | 2 +- .../model/JsonWebKeySetGeneratorRequest.java | 2 +- .../github/ory/hydra/model/LoginRequest.java | 2 +- .../github/ory/hydra/model/LogoutRequest.java | 2 +- .../github/ory/hydra/model/OAuth2Client.java | 2 +- .../hydra/model/OAuth2TokenIntrospection.java | 2 +- .../ory/hydra/model/Oauth2TokenResponse.java | 2 +- .../ory/hydra/model/OauthTokenResponse.java | 2 +- .../ory/hydra/model/OpenIDConnectContext.java | 2 +- .../hydra/model/PreviousConsentSession.java | 2 +- .../github/ory/hydra/model/RejectRequest.java | 2 +- .../ory/hydra/model/RequestDeniedError.java | 182 -- .../hydra/model/RequestHandlerResponse.java | 90 - .../SwaggerFlushInactiveAccessTokens.java | 5 +- .../ory/hydra/model/SwaggerHealthStatus.java | 91 - .../ory/hydra/model/SwaggerJSONWebKey.java | 469 ----- .../ory/hydra/model/SwaggerJSONWebKeySet.java | 102 -- .../hydra/model/SwaggerJsonWebKeyQuery.java | 2 +- .../ory/hydra/model/SwaggerJwkCreateSet.java | 2 +- .../ory/hydra/model/SwaggerJwkSetQuery.java | 2 +- .../ory/hydra/model/SwaggerJwkUpdateSet.java | 2 +- .../hydra/model/SwaggerJwkUpdateSetKey.java | 2 +- .../hydra/model/SwaggerNotReadyStatus.java | 102 -- .../SwaggerOAuthIntrospectionRequest.java | 9 +- .../model/SwaggerOAuthTokenResponse.java | 206 --- .../SwaggerRevokeOAuth2TokenParameters.java | 5 +- .../ory/hydra/model/SwaggerVersion.java | 91 - .../model/Swaggeroauth2TokenParameters.java | 5 +- .../model/Swaggeroauth2TokenResponse.java | 160 -- .../model/SwaggeruserinfoResponsePayload.java | 505 ------ .../ory/hydra/model/UserinfoResponse.java | 2 +- .../com/github/ory/hydra/model/Version.java | 2 +- .../com/github/ory/hydra/model/WellKnown.java | 2 +- sdk/js/swagger/README.md | 19 - sdk/js/swagger/docs/AuthenticationRequest.md | 16 - sdk/js/swagger/docs/AuthenticationSession.md | 10 - sdk/js/swagger/docs/Client.md | 38 - .../swagger/docs/ConsentRequestSessionData.md | 9 - sdk/js/swagger/docs/CreateRequest.md | 10 - .../docs/HandledAuthenticationRequest.md | 12 - sdk/js/swagger/docs/HandledConsentRequest.md | 12 - sdk/js/swagger/docs/HandledLoginRequest.md | 13 - sdk/js/swagger/docs/Introspection.md | 20 - sdk/js/swagger/docs/RequestDeniedError.md | 12 - sdk/js/swagger/docs/RequestHandlerResponse.md | 8 - sdk/js/swagger/docs/SwaggerHealthStatus.md | 8 - sdk/js/swagger/docs/SwaggerJSONWebKey.md | 24 - sdk/js/swagger/docs/SwaggerJSONWebKeySet.md | 8 - sdk/js/swagger/docs/SwaggerNotReadyStatus.md | 8 - .../docs/SwaggerOAuthIntrospectionRequest.md | 2 +- .../swagger/docs/SwaggerOAuthTokenResponse.md | 13 - sdk/js/swagger/docs/SwaggerVersion.md | 8 - .../docs/Swaggeroauth2TokenResponse.md | 11 - .../docs/SwaggeruserinfoResponsePayload.md | 26 - sdk/js/swagger/src/index.js | 101 +- .../src/model/AuthenticationRequest.js | 152 -- .../src/model/AuthenticationSession.js | 101 -- sdk/js/swagger/src/model/Client.js | 351 ---- .../src/model/ConsentRequestSessionData.js | 91 - sdk/js/swagger/src/model/CreateRequest.js | 104 -- sdk/js/swagger/src/model/EmptyResponse.js | 2 +- .../src/model/HandledAuthenticationRequest.js | 119 -- .../src/model/HandledConsentRequest.js | 117 -- .../swagger/src/model/HandledLoginRequest.js | 128 -- sdk/js/swagger/src/model/Introspection.js | 192 -- .../swagger/src/model/RequestDeniedError.js | 118 -- .../src/model/RequestHandlerResponse.js | 82 - .../model/SwaggerFlushInactiveAccessTokens.js | 1 - .../swagger/src/model/SwaggerHealthStatus.js | 83 - sdk/js/swagger/src/model/SwaggerJSONWebKey.js | 231 --- .../swagger/src/model/SwaggerJSONWebKeySet.js | 83 - .../src/model/SwaggerNotReadyStatus.js | 83 - .../model/SwaggerOAuthIntrospectionRequest.js | 5 +- .../src/model/SwaggerOAuthTokenResponse.js | 128 -- .../SwaggerRevokeOAuth2TokenParameters.js | 1 - sdk/js/swagger/src/model/SwaggerVersion.js | 83 - .../src/model/Swaggeroauth2TokenParameters.js | 1 - .../src/model/Swaggeroauth2TokenResponse.js | 110 -- .../model/SwaggeruserinfoResponsePayload.js | 245 --- sdk/php/swagger/README.md | 23 +- sdk/php/swagger/autoload.php | 6 +- sdk/php/swagger/docs/Api/AdminApi.md | 180 +- sdk/php/swagger/docs/Api/HealthApi.md | 14 +- sdk/php/swagger/docs/Api/PublicApi.md | 46 +- sdk/php/swagger/docs/Api/VersionApi.md | 8 +- .../docs/Model/AcceptConsentRequest.md | 2 +- .../docs/Model/AuthenticationRequest.md | 18 - .../docs/Model/AuthenticationSession.md | 12 - sdk/php/swagger/docs/Model/Client.md | 40 - sdk/php/swagger/docs/Model/ConsentRequest.md | 4 +- .../docs/Model/ConsentRequestSessionData.md | 11 - sdk/php/swagger/docs/Model/CreateRequest.md | 12 - .../Model/HandledAuthenticationRequest.md | 14 - .../docs/Model/HandledConsentRequest.md | 14 - .../swagger/docs/Model/HandledLoginRequest.md | 15 - sdk/php/swagger/docs/Model/Introspection.md | 22 - sdk/php/swagger/docs/Model/JSONWebKeySet.md | 2 +- sdk/php/swagger/docs/Model/LoginRequest.md | 4 +- sdk/php/swagger/docs/Model/OAuth2Client.md | 2 +- .../docs/Model/PreviousConsentSession.md | 4 +- .../swagger/docs/Model/RequestDeniedError.md | 14 - .../docs/Model/RequestHandlerResponse.md | 10 - .../Model/SwaggerFlushInactiveAccessTokens.md | 2 +- .../swagger/docs/Model/SwaggerHealthStatus.md | 10 - .../swagger/docs/Model/SwaggerJSONWebKey.md | 26 - .../docs/Model/SwaggerJSONWebKeySet.md | 10 - .../swagger/docs/Model/SwaggerJwkCreateSet.md | 2 +- .../swagger/docs/Model/SwaggerJwkUpdateSet.md | 2 +- .../docs/Model/SwaggerJwkUpdateSetKey.md | 2 +- .../docs/Model/SwaggerNotReadyStatus.md | 10 - .../Model/SwaggerOAuthIntrospectionRequest.md | 2 +- .../docs/Model/SwaggerOAuthTokenResponse.md | 15 - sdk/php/swagger/docs/Model/SwaggerVersion.md | 10 - .../docs/Model/Swaggeroauth2TokenResponse.md | 13 - .../Model/SwaggeruserinfoResponsePayload.md | 28 - sdk/php/swagger/lib/Api/AdminApi.php | 492 ++--- sdk/php/swagger/lib/Api/HealthApi.php | 58 +- sdk/php/swagger/lib/Api/PublicApi.php | 116 +- sdk/php/swagger/lib/Api/VersionApi.php | 40 +- sdk/php/swagger/lib/ApiClient.php | 12 +- sdk/php/swagger/lib/ApiException.php | 6 +- sdk/php/swagger/lib/Configuration.php | 8 +- .../lib/Model/AcceptConsentRequest.php | 16 +- .../swagger/lib/Model/AcceptLoginRequest.php | 10 +- .../lib/Model/AuthenticationRequest.php | 458 ----- .../lib/Model/AuthenticationSession.php | 297 --- sdk/php/swagger/lib/Model/Client.php | 1064 ----------- .../swagger/lib/Model/CompletedRequest.php | 10 +- sdk/php/swagger/lib/Model/ConsentRequest.php | 22 +- .../lib/Model/ConsentRequestSession.php | 10 +- .../lib/Model/ConsentRequestSessionData.php | 269 --- sdk/php/swagger/lib/Model/CreateRequest.php | 315 ---- sdk/php/swagger/lib/Model/EmptyResponse.php | 12 +- .../FlushInactiveOAuth2TokensRequest.php | 10 +- sdk/php/swagger/lib/Model/GenericError.php | 10 +- .../Model/HandledAuthenticationRequest.php | 356 ---- .../lib/Model/HandledConsentRequest.php | 350 ---- .../swagger/lib/Model/HandledLoginRequest.php | 383 ---- .../lib/Model/HealthNotReadyStatus.php | 10 +- sdk/php/swagger/lib/Model/HealthStatus.php | 10 +- sdk/php/swagger/lib/Model/Introspection.php | 573 ------ sdk/php/swagger/lib/Model/JSONWebKey.php | 10 +- sdk/php/swagger/lib/Model/JSONWebKeySet.php | 16 +- .../Model/JsonWebKeySetGeneratorRequest.php | 10 +- sdk/php/swagger/lib/Model/LoginRequest.php | 22 +- sdk/php/swagger/lib/Model/LogoutRequest.php | 10 +- sdk/php/swagger/lib/Model/OAuth2Client.php | 16 +- .../lib/Model/OAuth2TokenIntrospection.php | 10 +- .../swagger/lib/Model/Oauth2TokenResponse.php | 10 +- .../swagger/lib/Model/OauthTokenResponse.php | 10 +- .../lib/Model/OpenIDConnectContext.php | 10 +- .../lib/Model/PreviousConsentSession.php | 22 +- sdk/php/swagger/lib/Model/RejectRequest.php | 10 +- .../swagger/lib/Model/RequestDeniedError.php | 350 ---- .../lib/Model/RequestHandlerResponse.php | 242 --- .../SwaggerFlushInactiveAccessTokens.php | 17 +- .../swagger/lib/Model/SwaggerHealthStatus.php | 243 --- .../swagger/lib/Model/SwaggerJSONWebKey.php | 699 ------- .../lib/Model/SwaggerJSONWebKeySet.php | 243 --- .../lib/Model/SwaggerJsonWebKeyQuery.php | 10 +- .../swagger/lib/Model/SwaggerJwkCreateSet.php | 16 +- .../swagger/lib/Model/SwaggerJwkSetQuery.php | 10 +- .../swagger/lib/Model/SwaggerJwkUpdateSet.php | 16 +- .../lib/Model/SwaggerJwkUpdateSetKey.php | 16 +- .../lib/Model/SwaggerNotReadyStatus.php | 243 --- .../SwaggerOAuthIntrospectionRequest.php | 13 +- .../lib/Model/SwaggerOAuthTokenResponse.php | 378 ---- .../SwaggerRevokeOAuth2TokenParameters.php | 11 +- sdk/php/swagger/lib/Model/SwaggerVersion.php | 243 --- .../Model/Swaggeroauth2TokenParameters.php | 11 +- .../lib/Model/Swaggeroauth2TokenResponse.php | 324 ---- .../Model/SwaggeruserinfoResponsePayload.php | 729 -------- .../swagger/lib/Model/UserinfoResponse.php | 10 +- sdk/php/swagger/lib/Model/Version.php | 10 +- sdk/php/swagger/lib/Model/WellKnown.php | 10 +- sdk/php/swagger/lib/ObjectSerializer.php | 8 +- 250 files changed, 977 insertions(+), 18524 deletions(-) delete mode 100644 sdk/go/hydra/models/authentication_request.go delete mode 100644 sdk/go/hydra/models/authentication_session.go delete mode 100644 sdk/go/hydra/models/handled_authentication_request.go delete mode 100644 sdk/java/hydra-client-resttemplate/docs/AuthenticationRequest.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/AuthenticationSession.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/Client.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/ConsentRequestSessionData.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/CreateRequest.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/HandledAuthenticationRequest.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/HandledConsentRequest.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/HandledLoginRequest.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/Introspection.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/RequestDeniedError.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/RequestHandlerResponse.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/SwaggerHealthStatus.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/SwaggerJSONWebKey.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/SwaggerJSONWebKeySet.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/SwaggerNotReadyStatus.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/SwaggerOAuthTokenResponse.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/SwaggerVersion.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/Swaggeroauth2TokenResponse.md delete mode 100644 sdk/java/hydra-client-resttemplate/docs/SwaggeruserinfoResponsePayload.md delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AuthenticationRequest.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AuthenticationSession.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Client.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/ConsentRequestSessionData.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/CreateRequest.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HandledAuthenticationRequest.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HandledConsentRequest.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HandledLoginRequest.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Introspection.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/RequestDeniedError.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/RequestHandlerResponse.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerHealthStatus.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJSONWebKey.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJSONWebKeySet.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerNotReadyStatus.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerOAuthTokenResponse.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerVersion.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Swaggeroauth2TokenResponse.java delete mode 100644 sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggeruserinfoResponsePayload.java delete mode 100644 sdk/js/swagger/docs/AuthenticationRequest.md delete mode 100644 sdk/js/swagger/docs/AuthenticationSession.md delete mode 100644 sdk/js/swagger/docs/Client.md delete mode 100644 sdk/js/swagger/docs/ConsentRequestSessionData.md delete mode 100644 sdk/js/swagger/docs/CreateRequest.md delete mode 100644 sdk/js/swagger/docs/HandledAuthenticationRequest.md delete mode 100644 sdk/js/swagger/docs/HandledConsentRequest.md delete mode 100644 sdk/js/swagger/docs/HandledLoginRequest.md delete mode 100644 sdk/js/swagger/docs/Introspection.md delete mode 100644 sdk/js/swagger/docs/RequestDeniedError.md delete mode 100644 sdk/js/swagger/docs/RequestHandlerResponse.md delete mode 100644 sdk/js/swagger/docs/SwaggerHealthStatus.md delete mode 100644 sdk/js/swagger/docs/SwaggerJSONWebKey.md delete mode 100644 sdk/js/swagger/docs/SwaggerJSONWebKeySet.md delete mode 100644 sdk/js/swagger/docs/SwaggerNotReadyStatus.md delete mode 100644 sdk/js/swagger/docs/SwaggerOAuthTokenResponse.md delete mode 100644 sdk/js/swagger/docs/SwaggerVersion.md delete mode 100644 sdk/js/swagger/docs/Swaggeroauth2TokenResponse.md delete mode 100644 sdk/js/swagger/docs/SwaggeruserinfoResponsePayload.md delete mode 100644 sdk/js/swagger/src/model/AuthenticationRequest.js delete mode 100644 sdk/js/swagger/src/model/AuthenticationSession.js delete mode 100644 sdk/js/swagger/src/model/Client.js delete mode 100644 sdk/js/swagger/src/model/ConsentRequestSessionData.js delete mode 100644 sdk/js/swagger/src/model/CreateRequest.js delete mode 100644 sdk/js/swagger/src/model/HandledAuthenticationRequest.js delete mode 100644 sdk/js/swagger/src/model/HandledConsentRequest.js delete mode 100644 sdk/js/swagger/src/model/HandledLoginRequest.js delete mode 100644 sdk/js/swagger/src/model/Introspection.js delete mode 100644 sdk/js/swagger/src/model/RequestDeniedError.js delete mode 100644 sdk/js/swagger/src/model/RequestHandlerResponse.js delete mode 100644 sdk/js/swagger/src/model/SwaggerHealthStatus.js delete mode 100644 sdk/js/swagger/src/model/SwaggerJSONWebKey.js delete mode 100644 sdk/js/swagger/src/model/SwaggerJSONWebKeySet.js delete mode 100644 sdk/js/swagger/src/model/SwaggerNotReadyStatus.js delete mode 100644 sdk/js/swagger/src/model/SwaggerOAuthTokenResponse.js delete mode 100644 sdk/js/swagger/src/model/SwaggerVersion.js delete mode 100644 sdk/js/swagger/src/model/Swaggeroauth2TokenResponse.js delete mode 100644 sdk/js/swagger/src/model/SwaggeruserinfoResponsePayload.js delete mode 100644 sdk/php/swagger/docs/Model/AuthenticationRequest.md delete mode 100644 sdk/php/swagger/docs/Model/AuthenticationSession.md delete mode 100644 sdk/php/swagger/docs/Model/Client.md delete mode 100644 sdk/php/swagger/docs/Model/ConsentRequestSessionData.md delete mode 100644 sdk/php/swagger/docs/Model/CreateRequest.md delete mode 100644 sdk/php/swagger/docs/Model/HandledAuthenticationRequest.md delete mode 100644 sdk/php/swagger/docs/Model/HandledConsentRequest.md delete mode 100644 sdk/php/swagger/docs/Model/HandledLoginRequest.md delete mode 100644 sdk/php/swagger/docs/Model/Introspection.md delete mode 100644 sdk/php/swagger/docs/Model/RequestDeniedError.md delete mode 100644 sdk/php/swagger/docs/Model/RequestHandlerResponse.md delete mode 100644 sdk/php/swagger/docs/Model/SwaggerHealthStatus.md delete mode 100644 sdk/php/swagger/docs/Model/SwaggerJSONWebKey.md delete mode 100644 sdk/php/swagger/docs/Model/SwaggerJSONWebKeySet.md delete mode 100644 sdk/php/swagger/docs/Model/SwaggerNotReadyStatus.md delete mode 100644 sdk/php/swagger/docs/Model/SwaggerOAuthTokenResponse.md delete mode 100644 sdk/php/swagger/docs/Model/SwaggerVersion.md delete mode 100644 sdk/php/swagger/docs/Model/Swaggeroauth2TokenResponse.md delete mode 100644 sdk/php/swagger/docs/Model/SwaggeruserinfoResponsePayload.md delete mode 100644 sdk/php/swagger/lib/Model/AuthenticationRequest.php delete mode 100644 sdk/php/swagger/lib/Model/AuthenticationSession.php delete mode 100644 sdk/php/swagger/lib/Model/Client.php delete mode 100644 sdk/php/swagger/lib/Model/ConsentRequestSessionData.php delete mode 100644 sdk/php/swagger/lib/Model/CreateRequest.php delete mode 100644 sdk/php/swagger/lib/Model/HandledAuthenticationRequest.php delete mode 100644 sdk/php/swagger/lib/Model/HandledConsentRequest.php delete mode 100644 sdk/php/swagger/lib/Model/HandledLoginRequest.php delete mode 100644 sdk/php/swagger/lib/Model/Introspection.php delete mode 100644 sdk/php/swagger/lib/Model/RequestDeniedError.php delete mode 100644 sdk/php/swagger/lib/Model/RequestHandlerResponse.php delete mode 100644 sdk/php/swagger/lib/Model/SwaggerHealthStatus.php delete mode 100644 sdk/php/swagger/lib/Model/SwaggerJSONWebKey.php delete mode 100644 sdk/php/swagger/lib/Model/SwaggerJSONWebKeySet.php delete mode 100644 sdk/php/swagger/lib/Model/SwaggerNotReadyStatus.php delete mode 100644 sdk/php/swagger/lib/Model/SwaggerOAuthTokenResponse.php delete mode 100644 sdk/php/swagger/lib/Model/SwaggerVersion.php delete mode 100644 sdk/php/swagger/lib/Model/Swaggeroauth2TokenResponse.php delete mode 100644 sdk/php/swagger/lib/Model/SwaggeruserinfoResponsePayload.php diff --git a/Makefile b/Makefile index a59f134c170..5545c1208cb 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ sdk: rm -rf ./vendor/ GO111MODULE=on go mod tidy GO111MODULE=on go mod vendor - GO111MODULE=off swagger generate spec -m -o ./docs/api.swagger.json + GO111MODULE=off swagger generate spec -m -o ./docs/api.swagger.json -x sdk GO111MODULE=off swagger validate ./docs/api.swagger.json rm -rf ./sdk/go/hydra diff --git a/docs/api.swagger.json b/docs/api.swagger.json index e357a763393..dc56523f467 100644 --- a/docs/api.swagger.json +++ b/docs/api.swagger.json @@ -1809,1075 +1809,165 @@ } }, "definitions": { - "AuthenticationRequest": { - "type": "object", - "title": "AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest Contains information on an ongoing login request.", - "properties": { - "challenge": { - "description": "Challenge is the identifier (\"authentication challenge\") of the consent authentication request. It is used to\nidentify the session.", - "type": "string", - "x-go-name": "Challenge" - }, - "client": { - "$ref": "#/definitions/Client" - }, - "oidc_context": { - "$ref": "#/definitions/OpenIDConnectContext" - }, - "request_url": { - "description": "RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which\ninitiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but\nmight come in handy if you want to deal with additional request parameters.", - "type": "string", - "x-go-name": "RequestURL" - }, - "requested_access_token_audience": { - "description": "RequestedScope contains the access token audience as requested by the OAuth 2.0 Client.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "RequestedAudience" - }, - "requested_scope": { - "description": "RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "RequestedScope" - }, - "session_id": { - "description": "SessionID is the authentication session ID. It is set if the browser had a valid authentication session at\nORY Hydra during the login flow. It can be used to associate consecutive login requests by a certain user.", - "type": "string", - "x-go-name": "SessionID" - }, - "skip": { - "description": "Skip, if true, implies that the client has requested the same scopes from the same user previously.\nIf true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL.\n\nThis feature allows you to update / set session information.", - "type": "boolean", - "x-go-name": "Skip" - }, - "subject": { - "description": "Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope\nrequested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type\nwhen accepting the login request, or the request will fail.", - "type": "string", - "x-go-name": "Subject" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "AuthenticationSession": { - "description": "AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession authentication session", - "type": "object", - "properties": { - "AuthenticatedAt": { - "description": "authenticated at\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time\nFormat: date-time", - "type": "string", - "format": "date-time" - }, - "ID": { - "description": "ID", - "type": "string" - }, - "Subject": { - "description": "subject", - "type": "string" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "Client": { - "type": "object", - "title": "Client Client represents an OAuth 2.0 Client.", - "properties": { - "allowed_cors_origins": { - "description": "AllowedCORSOrigins are one or more URLs (scheme://host[:port]) which are allowed to make CORS requests\nto the /oauth/token endpoint. If this array is empty, the sever's CORS origin configuration (`CORS_ALLOWED_ORIGINS`)\nwill be used instead. If this array is set, the allowed origins are appended to the server's CORS origin configuration.\nBe aware that environment variable `CORS_ENABLED` MUST be set to `true` for this to work.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "AllowedCORSOrigins" - }, - "audience": { - "description": "Audience is a whitelist defining the audiences this client is allowed to request tokens for. An audience limits\nthe applicability of an OAuth 2.0 Access Token to, for example, certain API endpoints. The value is a list\nof URLs. URLs MUST NOT contain whitespaces.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Audience" - }, - "backchannel_logout_session_required": { - "description": "Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout\nToken to identify the RP session with the OP when the backchannel_logout_uri is used.\nIf omitted, the default value is false.", - "type": "boolean", - "x-go-name": "BackChannelLogoutSessionRequired" - }, - "backchannel_logout_uri": { - "description": "RP URL that will cause the RP to log itself out when sent a Logout Token by the OP.", - "type": "string", - "x-go-name": "BackChannelLogoutURI" - }, - "client_id": { - "description": "ClientID is the id for this client.", - "type": "string", - "x-go-name": "ClientID" - }, - "client_name": { - "description": "Name is the human-readable string name of the client to be presented to the\nend-user during authorization.", - "type": "string", - "x-go-name": "Name" - }, - "client_secret": { - "description": "Secret is the client's secret. The secret will be included in the create request as cleartext, and then\nnever again. The secret is stored using BCrypt so it is impossible to recover it. Tell your users\nthat they need to write the secret down as it will not be made available again.", - "type": "string", - "x-go-name": "Secret" - }, - "client_secret_expires_at": { - "description": "SecretExpiresAt is an integer holding the time at which the client\nsecret will expire or 0 if it will not expire. The time is\nrepresented as the number of seconds from 1970-01-01T00:00:00Z as\nmeasured in UTC until the date/time of expiration.\n\nThis feature is currently not supported and it's value will always\nbe set to 0.", - "type": "integer", - "format": "int64", - "x-go-name": "SecretExpiresAt" - }, - "client_uri": { - "description": "ClientURI is an URL string of a web page providing information about the client.\nIf present, the server SHOULD display this URL to the end-user in\na clickable fashion.", - "type": "string", - "x-go-name": "ClientURI" - }, - "contacts": { - "description": "Contacts is a array of strings representing ways to contact people responsible\nfor this client, typically email addresses.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Contacts" - }, - "created_at": { - "description": "CreatedAt returns the timestamp of the client's creation.\nFormat: date-time", - "type": "string", - "format": "date-time", - "x-go-name": "CreatedAt" - }, - "frontchannel_logout_session_required": { - "description": "Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be\nincluded to identify the RP session with the OP when the frontchannel_logout_uri is used.\nIf omitted, the default value is false.", - "type": "boolean", - "x-go-name": "FrontChannelLogoutSessionRequired" - }, - "frontchannel_logout_uri": { - "description": "RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query\nparameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the\nrequest and to determine which of the potentially multiple sessions is to be logged out; if either is\nincluded, both MUST be.", - "type": "string", - "x-go-name": "FrontChannelLogoutURI" - }, - "grant_types": { - "description": "GrantTypes is an array of grant types the client is allowed to use.", - "type": "array", - "pattern": "client_credentials|authorization_code|implicit|refresh_token", - "items": { - "type": "string" - }, - "x-go-name": "GrantTypes" - }, - "jwks": { - "$ref": "#/definitions/swaggerJSONWebKeySet" - }, - "jwks_uri": { - "description": "URL for the Client's JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains\nthe signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the\nClient's encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing\nand encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced\nJWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both\nsignatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used\nto provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST\nmatch those in the certificate.", - "type": "string", - "x-go-name": "JSONWebKeysURI" - }, - "logo_uri": { - "description": "LogoURI is an URL string that references a logo for the client.", - "type": "string", - "x-go-name": "LogoURI" - }, - "owner": { - "description": "Owner is a string identifying the owner of the OAuth 2.0 Client.", - "type": "string", - "x-go-name": "Owner" - }, - "policy_uri": { - "description": "PolicyURI is a URL string that points to a human-readable privacy policy document\nthat describes how the deployment organization collects, uses,\nretains, and discloses personal data.", - "type": "string", - "x-go-name": "PolicyURI" - }, - "post_logout_redirect_uris": { - "description": "Array of URLs supplied by the RP to which it MAY request that the End-User's User Agent be redirected using the\npost_logout_redirect_uri parameter after a logout has been performed.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "PostLogoutRedirectUris" - }, - "redirect_uris": { - "description": "RedirectURIs is an array of allowed redirect urls for the client, for example http://mydomain/oauth/callback .", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "RedirectUris" - }, - "request_object_signing_alg": { - "description": "JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. All Request Objects\nfrom this Client MUST be rejected, if not signed with this algorithm.", - "type": "string", - "x-go-name": "RequestObjectSigningAlgorithm" - }, - "request_uris": { - "description": "Array of request_uri values that are pre-registered by the RP for use at the OP. Servers MAY cache the\ncontents of the files referenced by these URIs and not retrieve them at the time they are used in a request.\nOPs can require that request_uri values used be pre-registered with the require_request_uri_registration\ndiscovery parameter.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "RequestUris" - }, - "response_types": { - "description": "ResponseTypes is an array of the OAuth 2.0 response type strings that the client can\nuse at the authorization endpoint.", - "type": "array", - "pattern": "id_token|code|token", - "items": { - "type": "string" - }, - "x-go-name": "ResponseTypes" - }, - "scope": { - "description": "Scope is a string containing a space-separated list of scope values (as\ndescribed in Section 3.3 of OAuth 2.0 [RFC6749]) that the client\ncan use when requesting access tokens.", - "type": "string", - "pattern": "([a-zA-Z0-9\\.\\*]+\\s?)+", - "x-go-name": "Scope" - }, - "sector_identifier_uri": { - "description": "URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a\nfile with a single JSON array of redirect_uri values.", - "type": "string", - "x-go-name": "SectorIdentifierURI" - }, - "subject_type": { - "description": "SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a\nlist of the supported subject_type values for this server. Valid types include `pairwise` and `public`.", - "type": "string", - "x-go-name": "SubjectType" - }, - "token_endpoint_auth_method": { - "description": "Requested Client Authentication method for the Token Endpoint. The options are client_secret_post,\nclient_secret_basic, private_key_jwt, and none.", - "type": "string", - "x-go-name": "TokenEndpointAuthMethod" - }, - "tos_uri": { - "description": "TermsOfServiceURI is a URL string that points to a human-readable terms of service\ndocument for the client that describes a contractual relationship\nbetween the end-user and the client that the end-user accepts when\nauthorizing the client.", - "type": "string", - "x-go-name": "TermsOfServiceURI" - }, - "updated_at": { - "description": "UpdatedAt returns the timestamp of the last update.\nFormat: date-time", - "type": "string", - "format": "date-time", - "x-go-name": "UpdatedAt" - }, - "userinfo_signed_response_alg": { - "description": "JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT\n[JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims\nas a UTF-8 encoded JSON object using the application/json content-type.", - "type": "string", - "x-go-name": "UserinfoSignedResponseAlg" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "ConsentRequest": { - "type": "object", - "title": "ConsentRequest ConsentRequest ConsentRequest ConsentRequest ConsentRequest ConsentRequest ConsentRequest Contains information on an ongoing consent request.", - "properties": { - "acr": { - "description": "ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it\nto express that, for example, a user authenticated using two factor authentication.", - "type": "string", - "x-go-name": "ACR" - }, - "challenge": { - "description": "Challenge is the identifier (\"authorization challenge\") of the consent authorization request. It is used to\nidentify the session.", - "type": "string", - "x-go-name": "Challenge" - }, - "client": { - "$ref": "#/definitions/Client" - }, - "context": { - "description": "Context contains arbitrary information set by the login endpoint or is empty if not set.", - "type": "object", - "additionalProperties": { - "type": "object" - }, - "x-go-name": "Context" - }, - "login_challenge": { - "description": "LoginChallenge is the login challenge this consent challenge belongs to. It can be used to associate\na login and consent request in the login \u0026 consent app.", - "type": "string", - "x-go-name": "LoginChallenge" - }, - "login_session_id": { - "description": "LoginSessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag)\nthis ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false)\nthis will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back-\nchannel logout. It's value can generally be used to associate consecutive login requests by a certain user.", - "type": "string", - "x-go-name": "LoginSessionID" - }, - "oidc_context": { - "$ref": "#/definitions/OpenIDConnectContext" - }, - "request_url": { - "description": "RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which\ninitiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but\nmight come in handy if you want to deal with additional request parameters.", - "type": "string", - "x-go-name": "RequestURL" - }, - "requested_access_token_audience": { - "description": "RequestedScope contains the access token audience as requested by the OAuth 2.0 Client.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "RequestedAudience" - }, - "requested_scope": { - "description": "RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "RequestedScope" - }, - "skip": { - "description": "Skip, if true, implies that the client has requested the same scopes from the same user previously.\nIf true, you must not ask the user to grant the requested scopes. You must however either allow or deny the\nconsent request using the usual API call.", - "type": "boolean", - "x-go-name": "Skip" - }, - "subject": { - "description": "Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope\nrequested by the OAuth 2.0 client.", - "type": "string", - "x-go-name": "Subject" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "ConsentRequestSessionData": { - "type": "object", - "title": "ConsentRequestSessionData Used to pass session data to a consent request.", - "properties": { - "access_token": { - "description": "AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the\nrefresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection.\nIf only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties\ncan access that endpoint as well, sensitive data from the session might be exposed to them. Use with care!", - "type": "object", - "additionalProperties": { - "type": "object" - }, - "x-go-name": "AccessToken" - }, - "id_token": { - "description": "IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable\nby anyone that has access to the ID Challenge. Use with care!", - "type": "object", - "additionalProperties": { - "type": "object" - }, - "x-go-name": "IDToken" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "FlushInactiveOAuth2TokensRequest": { - "description": "FlushInactiveOAuth2TokensRequest flush inactive o auth2 tokens request", - "type": "object", - "properties": { - "notAfter": { - "description": "NotAfter sets after which point tokens should not be flushed. This is useful when you want to keep a history\nof recently issued tokens for auditing.\nFormat: date-time", - "type": "string", - "format": "date-time", - "x-go-name": "NotAfter" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "HandledAuthenticationRequest": { - "type": "object", - "title": "HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest The request payload used to accept a login request.", - "required": [ - "subject" - ], - "properties": { - "acr": { - "description": "ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it\nto express that, for example, a user authenticated using two factor authentication.", - "type": "string", - "x-go-name": "ACR" - }, - "force_subject_identifier": { - "description": "ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the\n(Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID\nConnect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client.\n\nPlease note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the\nsub claim in the OAuth 2.0 Introspection.\n\nPer default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself\nyou can use this field. Please note that setting this field has no effect if `pairwise` is not configured in\nORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's\nconfiguration).\n\nPlease also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies\nthat you have to compute this value on every authentication process (probably depending on the client ID or some\nother unique value).\n\nIf you fail to compute the proper value, then authentication processes which have id_token_hint set might fail.", - "type": "string", - "x-go-name": "ForceSubjectIdentifier" - }, - "remember": { - "description": "Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store\na cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she\nwill not be asked to log in again.", - "type": "boolean", - "x-go-name": "Remember" - }, - "remember_for": { - "description": "RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the\nauthorization will be remembered indefinitely.", - "type": "integer", - "format": "int64", - "x-go-name": "RememberFor" - }, - "subject": { - "description": "Subject is the user ID of the end-user that authenticated.", - "type": "string", - "x-go-name": "Subject" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "HandledConsentRequest": { - "type": "object", - "title": "HandledConsentRequest HandledConsentRequest The request payload used to accept a consent request.", - "properties": { - "grant_access_token_audience": { - "description": "GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "GrantedAudience" - }, - "grant_scope": { - "description": "GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "GrantedScope" - }, - "remember": { - "description": "Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same\nclient asks the same user for the same, or a subset of, scope.", - "type": "boolean", - "x-go-name": "Remember" - }, - "remember_for": { - "description": "RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the\nauthorization will be remembered indefinitely.", - "type": "integer", - "format": "int64", - "x-go-name": "RememberFor" - }, - "session": { - "$ref": "#/definitions/ConsentRequestSessionData" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "HandledLoginRequest": { - "type": "object", - "title": "HandledLoginRequest HandledLoginRequest HandledLoginRequest HandledLoginRequest is the request payload used to accept a login request.", - "required": [ - "subject" - ], - "properties": { - "acr": { - "description": "ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it\nto express that, for example, a user authenticated using two factor authentication.", - "type": "string", - "x-go-name": "ACR" - }, - "context": { - "description": "Context is an optional object which can hold arbitrary data. The data will be made available when fetching the\nconsent request under the \"context\" field. This is useful in scenarios where login and consent endpoints share\ndata.", - "type": "object", - "additionalProperties": { - "type": "object" - }, - "x-go-name": "Context" - }, - "force_subject_identifier": { - "description": "ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the\n(Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID\nConnect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client.\n\nPlease note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the\nsub claim in the OAuth 2.0 Introspection.\n\nPer default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself\nyou can use this field. Please note that setting this field has no effect if `pairwise` is not configured in\nORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's\nconfiguration).\n\nPlease also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies\nthat you have to compute this value on every authentication process (probably depending on the client ID or some\nother unique value).\n\nIf you fail to compute the proper value, then authentication processes which have id_token_hint set might fail.", - "type": "string", - "x-go-name": "ForceSubjectIdentifier" - }, - "remember": { - "description": "Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store\na cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she\nwill not be asked to log in again.", - "type": "boolean", - "x-go-name": "Remember" - }, - "remember_for": { - "description": "RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the\nauthorization will be remembered indefinitely.", - "type": "integer", - "format": "int64", - "x-go-name": "RememberFor" - }, - "subject": { - "description": "Subject is the user ID of the end-user that authenticated.", - "type": "string", - "x-go-name": "Subject" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "Introspection": { - "description": "https://tools.ietf.org/html/rfc7662", - "type": "object", - "title": "Introspection Introspection Introspection Introspection Introspection Introspection contains an access token's session data as specified by IETF RFC 7662, see:", - "required": [ - "active" - ], - "properties": { - "active": { - "description": "Active is a boolean indicator of whether or not the presented token\nis currently active. The specifics of a token's \"active\" state\nwill vary depending on the implementation of the authorization\nserver and the information it keeps about its tokens, but a \"true\"\nvalue return for the \"active\" property will generally indicate\nthat a given token has been issued by this authorization server,\nhas not been revoked by the resource owner, and is within its\ngiven time window of validity (e.g., after its issuance time and\nbefore its expiration time).", - "type": "boolean", - "x-go-name": "Active" - }, - "aud": { - "description": "Audience contains a list of the token's intended audiences.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Audience" - }, - "client_id": { - "description": "ClientID is aclient identifier for the OAuth 2.0 client that\nrequested this token.", - "type": "string", - "x-go-name": "ClientID" - }, - "exp": { - "description": "Expires at is an integer timestamp, measured in the number of seconds\nsince January 1 1970 UTC, indicating when this token will expire.", - "type": "integer", - "format": "int64", - "x-go-name": "ExpiresAt" - }, - "ext": { - "description": "Extra is arbitrary data set by the session.", - "type": "object", - "additionalProperties": { - "type": "object" - }, - "x-go-name": "Extra" - }, - "iat": { - "description": "Issued at is an integer timestamp, measured in the number of seconds\nsince January 1 1970 UTC, indicating when this token was\noriginally issued.", - "type": "integer", - "format": "int64", - "x-go-name": "IssuedAt" - }, - "iss": { - "description": "IssuerURL is a string representing the issuer of this token", - "type": "string", - "x-go-name": "Issuer" - }, - "nbf": { - "description": "NotBefore is an integer timestamp, measured in the number of seconds\nsince January 1 1970 UTC, indicating when this token is not to be\nused before.", - "type": "integer", - "format": "int64", - "x-go-name": "NotBefore" - }, - "obfuscated_subject": { - "description": "ObfuscatedSubject is set when the subject identifier algorithm was set to \"pairwise\" during authorization.\nIt is the `sub` value of the ID Token that was issued.", - "type": "string", - "x-go-name": "ObfuscatedSubject" - }, - "scope": { - "description": "Scope is a JSON string containing a space-separated list of\nscopes associated with this token.", - "type": "string", - "x-go-name": "Scope" - }, - "sub": { - "description": "Subject of the token, as defined in JWT [RFC7519].\nUsually a machine-readable identifier of the resource owner who\nauthorized this token.", - "type": "string", - "x-go-name": "Subject" - }, - "token_type": { - "description": "TokenType is the introspected token's type, for example `access_token` or `refresh_token`.", - "type": "string", - "x-go-name": "TokenType" - }, - "username": { - "description": "Username is a human-readable identifier for the resource owner who\nauthorized this token.", - "type": "string", - "x-go-name": "Username" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "JSONWebKey": { - "type": "object", - "required": [ - "use", - "kty", - "kid", - "alg" - ], - "properties": { - "alg": { - "description": "The \"alg\" (algorithm) parameter identifies the algorithm intended for\nuse with the key. The values used should either be registered in the\nIANA \"JSON Web Signature and Encryption Algorithms\" registry\nestablished by [JWA] or be a value that contains a Collision-\nResistant Name.", - "type": "string", - "x-go-name": "Alg", - "example": "RS256" - }, - "crv": { - "type": "string", - "x-go-name": "Crv", - "example": "P-256" - }, - "d": { - "type": "string", - "x-go-name": "D", - "example": "T_N8I-6He3M8a7X1vWt6TGIx4xB_GP3Mb4SsZSA4v-orvJzzRiQhLlRR81naWYxfQAYt5isDI6_C2L9bdWo4FFPjGQFvNoRX-_sBJyBI_rl-TBgsZYoUlAj3J92WmY2inbA-PwyJfsaIIDceYBC-eX-xiCu6qMqkZi3MwQAFL6bMdPEM0z4JBcwFT3VdiWAIRUuACWQwrXMq672x7fMuaIaHi7XDGgt1ith23CLfaREmJku9PQcchbt_uEY-hqrFY6ntTtS4paWWQj86xLL94S-Tf6v6xkL918PfLSOTq6XCzxvlFwzBJqApnAhbwqLjpPhgUG04EDRrqrSBc5Y1BLevn6Ip5h1AhessBp3wLkQgz_roeckt-ybvzKTjESMuagnpqLvOT7Y9veIug2MwPJZI2VjczRc1vzMs25XrFQ8DpUy-bNdp89TmvAXwctUMiJdgHloJw23Cv03gIUAkDnsTqZmkpbIf-crpgNKFmQP_EDKoe8p_PXZZgfbRri3NoEVGP7Mk6yEu8LjJhClhZaBNjuWw2-KlBfOA3g79mhfBnkInee5KO9mGR50qPk1V-MorUYNTFMZIm0kFE6eYVWFBwJHLKYhHU34DoiK1VP-svZpC2uAMFNA_UJEwM9CQ2b8qe4-5e9aywMvwcuArRkAB5mBIfOaOJao3mfukKAE" - }, - "dp": { - "type": "string", - "x-go-name": "Dp", - "example": "G4sPXkc6Ya9y8oJW9_ILj4xuppu0lzi_H7VTkS8xj5SdX3coE0oimYwxIi2emTAue0UOa5dpgFGyBJ4c8tQ2VF402XRugKDTP8akYhFo5tAA77Qe_NmtuYZc3C3m3I24G2GvR5sSDxUyAN2zq8Lfn9EUms6rY3Ob8YeiKkTiBj0" - }, - "dq": { - "type": "string", - "x-go-name": "Dq", - "example": "s9lAH9fggBsoFR8Oac2R_E2gw282rT2kGOAhvIllETE1efrA6huUUvMfBcMpn8lqeW6vzznYY5SSQF7pMdC_agI3nG8Ibp1BUb0JUiraRNqUfLhcQb_d9GF4Dh7e74WbRsobRonujTYN1xCaP6TO61jvWrX-L18txXw494Q_cgk" - }, - "e": { - "type": "string", - "x-go-name": "E", - "example": "AQAB" - }, - "k": { - "type": "string", - "x-go-name": "K", - "example": "GawgguFyGrWKav7AX4VKUg" - }, - "kid": { - "description": "The \"kid\" (key ID) parameter is used to match a specific key. This\nis used, for instance, to choose among a set of keys within a JWK Set\nduring key rollover. The structure of the \"kid\" value is\nunspecified. When \"kid\" values are used within a JWK Set, different\nkeys within the JWK Set SHOULD use distinct \"kid\" values. (One\nexample in which different keys might use the same \"kid\" value is if\nthey have different \"kty\" (key type) values but are considered to be\nequivalent alternatives by the application using them.) The \"kid\"\nvalue is a case-sensitive string.", - "type": "string", - "x-go-name": "Kid", - "example": "1603dfe0af8f4596" - }, - "kty": { - "description": "The \"kty\" (key type) parameter identifies the cryptographic algorithm\nfamily used with the key, such as \"RSA\" or \"EC\". \"kty\" values should\neither be registered in the IANA \"JSON Web Key Types\" registry\nestablished by [JWA] or be a value that contains a Collision-\nResistant Name. The \"kty\" value is a case-sensitive string.", - "type": "string", - "x-go-name": "Kty", - "example": "RSA" - }, - "n": { - "type": "string", - "x-go-name": "N", - "example": "vTqrxUyQPl_20aqf5kXHwDZrel-KovIp8s7ewJod2EXHl8tWlRB3_Rem34KwBfqlKQGp1nqah-51H4Jzruqe0cFP58hPEIt6WqrvnmJCXxnNuIB53iX_uUUXXHDHBeaPCSRoNJzNysjoJ30TIUsKBiirhBa7f235PXbKiHducLevV6PcKxJ5cY8zO286qJLBWSPm-OIevwqsIsSIH44Qtm9sioFikhkbLwoqwWORGAY0nl6XvVOlhADdLjBSqSAeT1FPuCDCnXwzCDR8N9IFB_IjdStFkC-rVt2K5BYfPd0c3yFp_vHR15eRd0zJ8XQ7woBC8Vnsac6Et1pKS59pX6256DPWu8UDdEOolKAPgcd_g2NpA76cAaF_jcT80j9KrEzw8Tv0nJBGesuCjPNjGs_KzdkWTUXt23Hn9QJsdc1MZuaW0iqXBepHYfYoqNelzVte117t4BwVp0kUM6we0IqyXClaZgOI8S-WDBw2_Ovdm8e5NmhYAblEVoygcX8Y46oH6bKiaCQfKCFDMcRgChme7AoE1yZZYsPbaG_3IjPrC4LBMHQw8rM9dWjJ8ImjicvZ1pAm0dx-KHCP3y5PVKrxBDf1zSOsBRkOSjB8TPODnJMz6-jd5hTtZxpZPwPoIdCanTZ3ZD6uRBpTmDwtpRGm63UQs1m5FWPwb0T2IF0" - }, - "p": { - "type": "string", - "x-go-name": "P", - "example": "6NbkXwDWUhi-eR55Cgbf27FkQDDWIamOaDr0rj1q0f1fFEz1W5A_09YvG09Fiv1AO2-D8Rl8gS1Vkz2i0zCSqnyy8A025XOcRviOMK7nIxE4OH_PEsko8dtIrb3TmE2hUXvCkmzw9EsTF1LQBOGC6iusLTXepIC1x9ukCKFZQvdgtEObQ5kzd9Nhq-cdqmSeMVLoxPLd1blviVT9Vm8-y12CtYpeJHOaIDtVPLlBhJiBoPKWg3vxSm4XxIliNOefqegIlsmTIa3MpS6WWlCK3yHhat0Q-rRxDxdyiVdG_wzJvp0Iw_2wms7pe-PgNPYvUWH9JphWP5K38YqEBiJFXQ" - }, - "q": { - "type": "string", - "x-go-name": "Q", - "example": "0A1FmpOWR91_RAWpqreWSavNaZb9nXeKiBo0DQGBz32DbqKqQ8S4aBJmbRhJcctjCLjain-ivut477tAUMmzJwVJDDq2MZFwC9Q-4VYZmFU4HJityQuSzHYe64RjN-E_NQ02TWhG3QGW6roq6c57c99rrUsETwJJiwS8M5p15Miuz53DaOjv-uqqFAFfywN5WkxHbraBcjHtMiQuyQbQqkCFh-oanHkwYNeytsNhTu2mQmwR5DR2roZ2nPiFjC6nsdk-A7E3S3wMzYYFw7jvbWWoYWo9vB40_MY2Y0FYQSqcDzcBIcq_0tnnasf3VW4Fdx6m80RzOb2Fsnln7vKXAQ" - }, - "qi": { - "type": "string", - "x-go-name": "Qi", - "example": "GyM_p6JrXySiz1toFgKbWV-JdI3jQ4ypu9rbMWx3rQJBfmt0FoYzgUIZEVFEcOqwemRN81zoDAaa-Bk0KWNGDjJHZDdDmFhW3AN7lI-puxk_mHZGJ11rxyR8O55XLSe3SPmRfKwZI6yU24ZxvQKFYItdldUKGzO6Ia6zTKhAVRU" - }, - "use": { - "description": "Use (\"public key use\") identifies the intended use of\nthe public key. The \"use\" parameter is employed to indicate whether\na public key is used for encrypting data or verifying the signature\non data. Values are commonly \"sig\" (signature) or \"enc\" (encryption).", - "type": "string", - "x-go-name": "Use", - "example": "sig" - }, - "x": { - "type": "string", - "x-go-name": "X", - "example": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU" - }, - "x5c": { - "description": "The \"x5c\" (X.509 certificate chain) parameter contains a chain of one\nor more PKIX certificates [RFC5280]. The certificate chain is\nrepresented as a JSON array of certificate value strings. Each\nstring in the array is a base64-encoded (Section 4 of [RFC4648] --\nnot base64url-encoded) DER [ITU.X690.1994] PKIX certificate value.\nThe PKIX certificate containing the key value MUST be the first\ncertificate.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "X5c" - }, - "y": { - "type": "string", - "x-go-name": "Y", - "example": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0" - } - }, - "x-go-name": "swaggerJSONWebKey", - "x-go-package": "github.com/ory/hydra/jwk" - }, - "JSONWebKeySet": { - "type": "object", - "properties": { - "keys": { - "description": "The value of the \"keys\" parameter is an array of JWK values. By\ndefault, the order of the JWK values within the array does not imply\nan order of preference among them, although applications of JWK Sets\ncan choose to assign a meaning to the order for their purposes, if\ndesired.", - "type": "array", - "items": { - "$ref": "#/definitions/JSONWebKey" - }, - "x-go-name": "Keys" - } - }, - "x-go-name": "swaggerJSONWebKeySet", - "x-go-package": "github.com/ory/hydra/jwk" - }, - "LoginRequest": { - "type": "object", - "title": "LoginRequest Contains information on an ongoing login request.", - "properties": { - "challenge": { - "description": "Challenge is the identifier (\"login challenge\") of the login request. It is used to\nidentify the session.", - "type": "string", - "x-go-name": "Challenge" - }, - "client": { - "$ref": "#/definitions/Client" - }, - "oidc_context": { - "$ref": "#/definitions/OpenIDConnectContext" - }, - "request_url": { - "description": "RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which\ninitiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but\nmight come in handy if you want to deal with additional request parameters.", - "type": "string", - "x-go-name": "RequestURL" - }, - "requested_access_token_audience": { - "description": "RequestedScope contains the access token audience as requested by the OAuth 2.0 Client.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "RequestedAudience" - }, - "requested_scope": { - "description": "RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "RequestedScope" - }, - "session_id": { - "description": "SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag)\nthis ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false)\nthis will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back-\nchannel logout. It's value can generally be used to associate consecutive login requests by a certain user.", - "type": "string", - "x-go-name": "SessionID" - }, - "skip": { - "description": "Skip, if true, implies that the client has requested the same scopes from the same user previously.\nIf true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL.\n\nThis feature allows you to update / set session information.", - "type": "boolean", - "x-go-name": "Skip" - }, - "subject": { - "description": "Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope\nrequested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type\nwhen accepting the login request, or the request will fail.", - "type": "string", - "x-go-name": "Subject" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "LogoutRequest": { - "type": "object", - "title": "LogoutRequest LogoutRequest Contains information about an ongoing logout request.", - "properties": { - "request_url": { - "description": "RequestURL is the original Logout URL requested.", - "type": "string", - "x-go-name": "RequestURL" - }, - "rp_initiated": { - "description": "RPInitiated is set to true if the request was initiated by a Relying Party (RP), also known as an OAuth 2.0 Client.", - "type": "boolean", - "x-go-name": "RPInitiated" - }, - "sid": { - "description": "SessionID is the login session ID that was requested to log out.", - "type": "string", - "x-go-name": "SessionID" - }, - "subject": { - "description": "Subject is the user for whom the logout was request.", - "type": "string", - "x-go-name": "Subject" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "OpenIDConnectContext": { + "JSONWebKey": { "type": "object", - "title": "OpenIDConnectContext Contains optional information about the OpenID Connect request.", + "required": [ + "use", + "kty", + "kid", + "alg" + ], "properties": { - "acr_values": { - "description": "ACRValues is the Authentication AuthorizationContext Class Reference requested in the OAuth 2.0 Authorization request.\nIt is a parameter defined by OpenID Connect and expresses which level of authentication (e.g. 2FA) is required.\n\nOpenID Connect defines it as follows:\n\u003e Requested Authentication AuthorizationContext Class Reference values. Space-separated string that specifies the acr values\nthat the Authorization Server is being requested to use for processing this Authentication Request, with the\nvalues appearing in order of preference. The Authentication AuthorizationContext Class satisfied by the authentication\nperformed is returned as the acr Claim Value, as specified in Section 2. The acr Claim is requested as a\nVoluntary Claim by this parameter.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "ACRValues" - }, - "display": { - "description": "Display is a string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User.\nThe defined values are:\npage: The Authorization Server SHOULD display the authentication and consent UI consistent with a full User Agent page view. If the display parameter is not specified, this is the default display mode.\npopup: The Authorization Server SHOULD display the authentication and consent UI consistent with a popup User Agent window. The popup User Agent window should be of an appropriate size for a login-focused dialog and should not obscure the entire window that it is popping up over.\ntouch: The Authorization Server SHOULD display the authentication and consent UI consistent with a device that leverages a touch interface.\nwap: The Authorization Server SHOULD display the authentication and consent UI consistent with a \"feature phone\" type display.\n\nThe Authorization Server MAY also attempt to detect the capabilities of the User Agent and present an appropriate display.", + "alg": { + "description": "The \"alg\" (algorithm) parameter identifies the algorithm intended for\nuse with the key. The values used should either be registered in the\nIANA \"JSON Web Signature and Encryption Algorithms\" registry\nestablished by [JWA] or be a value that contains a Collision-\nResistant Name.", "type": "string", - "x-go-name": "Display" - }, - "id_token_hint_claims": { - "description": "IDTokenHintClaims are the claims of the ID Token previously issued by the Authorization Server being passed as a hint about the\nEnd-User's current or past authenticated session with the Client.", - "type": "object", - "additionalProperties": { - "type": "object" - }, - "x-go-name": "IDTokenHintClaims" + "x-go-name": "Alg", + "example": "RS256" }, - "login_hint": { - "description": "LoginHint hints about the login identifier the End-User might use to log in (if necessary).\nThis hint can be used by an RP if it first asks the End-User for their e-mail address (or other identifier)\nand then wants to pass that value as a hint to the discovered authorization service. This value MAY also be a\nphone number in the format specified for the phone_number Claim. The use of this parameter is optional.", + "crv": { "type": "string", - "x-go-name": "LoginHint" - }, - "ui_locales": { - "description": "UILocales is the End-User'id preferred languages and scripts for the user interface, represented as a\nspace-separated list of BCP47 [RFC5646] language tag values, ordered by preference. For instance, the value\n\"fr-CA fr en\" represents a preference for French as spoken in Canada, then French (without a region designation),\nfollowed by English (without a region designation). An error SHOULD NOT result if some or all of the requested\nlocales are not supported by the OpenID Provider.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "UILocales" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "PreviousConsentSession": { - "description": "The response used to return used consent requests\nsame as HandledLoginRequest, just with consent_request exposed as json", - "type": "object", - "properties": { - "consent_request": { - "$ref": "#/definitions/consentRequest" - }, - "grant_access_token_audience": { - "description": "GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "GrantedAudience" - }, - "grant_scope": { - "description": "GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "GrantedScope" - }, - "remember": { - "description": "Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same\nclient asks the same user for the same, or a subset of, scope.", - "type": "boolean", - "x-go-name": "Remember" - }, - "remember_for": { - "description": "RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the\nauthorization will be remembered indefinitely.", - "type": "integer", - "format": "int64", - "x-go-name": "RememberFor" + "x-go-name": "Crv", + "example": "P-256" }, - "session": { - "$ref": "#/definitions/consentRequestSession" - } - }, - "x-go-package": "github.com/ory/hydra/consent" - }, - "RequestDeniedError": { - "type": "object", - "title": "RequestDeniedError The request payload used to accept a login or consent request.", - "properties": { - "error": { - "description": "name", + "d": { "type": "string", - "x-go-name": "Name" + "x-go-name": "D", + "example": "T_N8I-6He3M8a7X1vWt6TGIx4xB_GP3Mb4SsZSA4v-orvJzzRiQhLlRR81naWYxfQAYt5isDI6_C2L9bdWo4FFPjGQFvNoRX-_sBJyBI_rl-TBgsZYoUlAj3J92WmY2inbA-PwyJfsaIIDceYBC-eX-xiCu6qMqkZi3MwQAFL6bMdPEM0z4JBcwFT3VdiWAIRUuACWQwrXMq672x7fMuaIaHi7XDGgt1ith23CLfaREmJku9PQcchbt_uEY-hqrFY6ntTtS4paWWQj86xLL94S-Tf6v6xkL918PfLSOTq6XCzxvlFwzBJqApnAhbwqLjpPhgUG04EDRrqrSBc5Y1BLevn6Ip5h1AhessBp3wLkQgz_roeckt-ybvzKTjESMuagnpqLvOT7Y9veIug2MwPJZI2VjczRc1vzMs25XrFQ8DpUy-bNdp89TmvAXwctUMiJdgHloJw23Cv03gIUAkDnsTqZmkpbIf-crpgNKFmQP_EDKoe8p_PXZZgfbRri3NoEVGP7Mk6yEu8LjJhClhZaBNjuWw2-KlBfOA3g79mhfBnkInee5KO9mGR50qPk1V-MorUYNTFMZIm0kFE6eYVWFBwJHLKYhHU34DoiK1VP-svZpC2uAMFNA_UJEwM9CQ2b8qe4-5e9aywMvwcuArRkAB5mBIfOaOJao3mfukKAE" }, - "error_debug": { - "description": "debug", + "dp": { "type": "string", - "x-go-name": "Debug" + "x-go-name": "Dp", + "example": "G4sPXkc6Ya9y8oJW9_ILj4xuppu0lzi_H7VTkS8xj5SdX3coE0oimYwxIi2emTAue0UOa5dpgFGyBJ4c8tQ2VF402XRugKDTP8akYhFo5tAA77Qe_NmtuYZc3C3m3I24G2GvR5sSDxUyAN2zq8Lfn9EUms6rY3Ob8YeiKkTiBj0" }, - "error_description": { - "description": "description", + "dq": { "type": "string", - "x-go-name": "Description" + "x-go-name": "Dq", + "example": "s9lAH9fggBsoFR8Oac2R_E2gw282rT2kGOAhvIllETE1efrA6huUUvMfBcMpn8lqeW6vzznYY5SSQF7pMdC_agI3nG8Ibp1BUb0JUiraRNqUfLhcQb_d9GF4Dh7e74WbRsobRonujTYN1xCaP6TO61jvWrX-L18txXw494Q_cgk" }, - "error_hint": { - "description": "hint", + "e": { "type": "string", - "x-go-name": "Hint" + "x-go-name": "E", + "example": "AQAB" }, - "status_code": { - "description": "code", - "type": "integer", - "format": "int64", - "x-go-name": "Code" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "RequestHandlerResponse": { - "type": "object", - "title": "RequestHandlerResponse RequestHandlerResponse The response payload sent when accepting or rejecting a login or consent request.", - "properties": { - "redirect_to": { - "description": "RedirectURL is the URL which you should redirect the user to once the authentication process is completed.", - "type": "string", - "x-go-name": "RedirectTo" - } - }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "WellKnown": { - "description": "It includes links to several endpoints (e.g. /oauth2/token) and exposes information on supported signature algorithms\namong others.", - "type": "object", - "title": "WellKnown WellKnown WellKnown represents important OpenID Connect discovery metadata", - "required": [ - "authorization_endpoint", - "id_token_signing_alg_values_supported", - "issuer", - "jwks_uri", - "response_types_supported", - "subject_types_supported", - "token_endpoint" - ], - "properties": { - "authorization_endpoint": { - "description": "URL of the OP's OAuth 2.0 Authorization Endpoint.", + "k": { "type": "string", - "x-go-name": "AuthURL" - }, - "backchannel_logout_session_supported": { - "description": "Boolean value specifying whether the OP can pass a sid (session ID) Claim in the Logout Token to identify the RP\nsession with the OP. If supported, the sid Claim is also included in ID Tokens issued by the OP", - "type": "boolean", - "x-go-name": "BackChannelLogoutSessionSupported" - }, - "backchannel_logout_supported": { - "description": "Boolean value specifying whether the OP supports back-channel logout, with true indicating support.", - "type": "boolean", - "x-go-name": "BackChannelLogoutSupported" - }, - "claims_parameter_supported": { - "description": "Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support.", - "type": "boolean", - "x-go-name": "ClaimsParameterSupported" - }, - "claims_supported": { - "description": "JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply\nvalues for. Note that for privacy or other reasons, this might not be an exhaustive list.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "ClaimsSupported" + "x-go-name": "K", + "example": "GawgguFyGrWKav7AX4VKUg" }, - "end_session_endpoint": { - "description": "URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the OP.", + "kid": { + "description": "The \"kid\" (key ID) parameter is used to match a specific key. This\nis used, for instance, to choose among a set of keys within a JWK Set\nduring key rollover. The structure of the \"kid\" value is\nunspecified. When \"kid\" values are used within a JWK Set, different\nkeys within the JWK Set SHOULD use distinct \"kid\" values. (One\nexample in which different keys might use the same \"kid\" value is if\nthey have different \"kty\" (key type) values but are considered to be\nequivalent alternatives by the application using them.) The \"kid\"\nvalue is a case-sensitive string.", "type": "string", - "x-go-name": "EndSessionEndpoint" - }, - "frontchannel_logout_session_supported": { - "description": "Boolean value specifying whether the OP can pass iss (issuer) and sid (session ID) query parameters to identify\nthe RP session with the OP when the frontchannel_logout_uri is used. If supported, the sid Claim is also\nincluded in ID Tokens issued by the OP.", - "type": "boolean", - "x-go-name": "FrontChannelLogoutSessionSupported" - }, - "frontchannel_logout_supported": { - "description": "Boolean value specifying whether the OP supports HTTP-based logout, with true indicating support.", - "type": "boolean", - "x-go-name": "FrontChannelLogoutSupported" - }, - "grant_types_supported": { - "description": "JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "GrantTypesSupported" - }, - "id_token_signing_alg_values_supported": { - "description": "JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for the ID Token\nto encode the Claims in a JWT.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "IDTokenSigningAlgValuesSupported" + "x-go-name": "Kid", + "example": "1603dfe0af8f4596" }, - "issuer": { - "description": "URL using the https scheme with no query or fragment component that the OP asserts as its IssuerURL Identifier.\nIf IssuerURL discovery is supported , this value MUST be identical to the issuer value returned\nby WebFinger. This also MUST be identical to the iss Claim value in ID Tokens issued from this IssuerURL.", + "kty": { + "description": "The \"kty\" (key type) parameter identifies the cryptographic algorithm\nfamily used with the key, such as \"RSA\" or \"EC\". \"kty\" values should\neither be registered in the IANA \"JSON Web Key Types\" registry\nestablished by [JWA] or be a value that contains a Collision-\nResistant Name. The \"kty\" value is a case-sensitive string.", "type": "string", - "x-go-name": "Issuer" + "x-go-name": "Kty", + "example": "RSA" }, - "jwks_uri": { - "description": "URL of the OP's JSON Web Key Set [JWK] document. This contains the signing key(s) the RP uses to validate\nsignatures from the OP. The JWK Set MAY also contain the Server's encryption key(s), which are used by RPs\nto encrypt requests to the Server. When both signing and encryption keys are made available, a use (Key Use)\nparameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage.\nAlthough some algorithms allow the same key to be used for both signatures and encryption, doing so is\nNOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of\nkeys provided. When used, the bare key values MUST still be present and MUST match those in the certificate.", + "n": { "type": "string", - "x-go-name": "JWKsURI" + "x-go-name": "N", + "example": "vTqrxUyQPl_20aqf5kXHwDZrel-KovIp8s7ewJod2EXHl8tWlRB3_Rem34KwBfqlKQGp1nqah-51H4Jzruqe0cFP58hPEIt6WqrvnmJCXxnNuIB53iX_uUUXXHDHBeaPCSRoNJzNysjoJ30TIUsKBiirhBa7f235PXbKiHducLevV6PcKxJ5cY8zO286qJLBWSPm-OIevwqsIsSIH44Qtm9sioFikhkbLwoqwWORGAY0nl6XvVOlhADdLjBSqSAeT1FPuCDCnXwzCDR8N9IFB_IjdStFkC-rVt2K5BYfPd0c3yFp_vHR15eRd0zJ8XQ7woBC8Vnsac6Et1pKS59pX6256DPWu8UDdEOolKAPgcd_g2NpA76cAaF_jcT80j9KrEzw8Tv0nJBGesuCjPNjGs_KzdkWTUXt23Hn9QJsdc1MZuaW0iqXBepHYfYoqNelzVte117t4BwVp0kUM6we0IqyXClaZgOI8S-WDBw2_Ovdm8e5NmhYAblEVoygcX8Y46oH6bKiaCQfKCFDMcRgChme7AoE1yZZYsPbaG_3IjPrC4LBMHQw8rM9dWjJ8ImjicvZ1pAm0dx-KHCP3y5PVKrxBDf1zSOsBRkOSjB8TPODnJMz6-jd5hTtZxpZPwPoIdCanTZ3ZD6uRBpTmDwtpRGm63UQs1m5FWPwb0T2IF0" }, - "registration_endpoint": { - "description": "URL of the OP's Dynamic Client Registration Endpoint.", + "p": { "type": "string", - "x-go-name": "RegistrationEndpoint" + "x-go-name": "P", + "example": "6NbkXwDWUhi-eR55Cgbf27FkQDDWIamOaDr0rj1q0f1fFEz1W5A_09YvG09Fiv1AO2-D8Rl8gS1Vkz2i0zCSqnyy8A025XOcRviOMK7nIxE4OH_PEsko8dtIrb3TmE2hUXvCkmzw9EsTF1LQBOGC6iusLTXepIC1x9ukCKFZQvdgtEObQ5kzd9Nhq-cdqmSeMVLoxPLd1blviVT9Vm8-y12CtYpeJHOaIDtVPLlBhJiBoPKWg3vxSm4XxIliNOefqegIlsmTIa3MpS6WWlCK3yHhat0Q-rRxDxdyiVdG_wzJvp0Iw_2wms7pe-PgNPYvUWH9JphWP5K38YqEBiJFXQ" }, - "request_parameter_supported": { - "description": "Boolean value specifying whether the OP supports use of the request parameter, with true indicating support.", - "type": "boolean", - "x-go-name": "RequestParameterSupported" + "q": { + "type": "string", + "x-go-name": "Q", + "example": "0A1FmpOWR91_RAWpqreWSavNaZb9nXeKiBo0DQGBz32DbqKqQ8S4aBJmbRhJcctjCLjain-ivut477tAUMmzJwVJDDq2MZFwC9Q-4VYZmFU4HJityQuSzHYe64RjN-E_NQ02TWhG3QGW6roq6c57c99rrUsETwJJiwS8M5p15Miuz53DaOjv-uqqFAFfywN5WkxHbraBcjHtMiQuyQbQqkCFh-oanHkwYNeytsNhTu2mQmwR5DR2roZ2nPiFjC6nsdk-A7E3S3wMzYYFw7jvbWWoYWo9vB40_MY2Y0FYQSqcDzcBIcq_0tnnasf3VW4Fdx6m80RzOb2Fsnln7vKXAQ" }, - "request_uri_parameter_supported": { - "description": "Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support.", - "type": "boolean", - "x-go-name": "RequestURIParameterSupported" + "qi": { + "type": "string", + "x-go-name": "Qi", + "example": "GyM_p6JrXySiz1toFgKbWV-JdI3jQ4ypu9rbMWx3rQJBfmt0FoYzgUIZEVFEcOqwemRN81zoDAaa-Bk0KWNGDjJHZDdDmFhW3AN7lI-puxk_mHZGJ11rxyR8O55XLSe3SPmRfKwZI6yU24ZxvQKFYItdldUKGzO6Ia6zTKhAVRU" }, - "require_request_uri_registration": { - "description": "Boolean value specifying whether the OP requires any request_uri values used to be pre-registered\nusing the request_uris registration parameter.", - "type": "boolean", - "x-go-name": "RequireRequestURIRegistration" + "use": { + "description": "Use (\"public key use\") identifies the intended use of\nthe public key. The \"use\" parameter is employed to indicate whether\na public key is used for encrypting data or verifying the signature\non data. Values are commonly \"sig\" (signature) or \"enc\" (encryption).", + "type": "string", + "x-go-name": "Use", + "example": "sig" }, - "response_modes_supported": { - "description": "JSON array containing a list of the OAuth 2.0 response_mode values that this OP supports.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "ResponseModesSupported" + "x": { + "type": "string", + "x-go-name": "X", + "example": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU" }, - "response_types_supported": { - "description": "JSON array containing a list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID\nProviders MUST support the code, id_token, and the token id_token Response Type values.", + "x5c": { + "description": "The \"x5c\" (X.509 certificate chain) parameter contains a chain of one\nor more PKIX certificates [RFC5280]. The certificate chain is\nrepresented as a JSON array of certificate value strings. Each\nstring in the array is a base64-encoded (Section 4 of [RFC4648] --\nnot base64url-encoded) DER [ITU.X690.1994] PKIX certificate value.\nThe PKIX certificate containing the key value MUST be the first\ncertificate.", "type": "array", "items": { "type": "string" }, - "x-go-name": "ResponseTypes" + "x-go-name": "X5c" }, - "revocation_endpoint": { - "description": "URL of the authorization server's OAuth 2.0 revocation endpoint.", + "y": { "type": "string", - "x-go-name": "RevocationEndpoint" - }, - "scopes_supported": { - "description": "SON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST\nsupport the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used", + "x-go-name": "Y", + "example": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0" + } + }, + "x-go-name": "swaggerJSONWebKey", + "x-go-package": "github.com/ory/hydra/jwk" + }, + "JSONWebKeySet": { + "type": "object", + "properties": { + "keys": { + "description": "The value of the \"keys\" parameter is an array of JWK values. By\ndefault, the order of the JWK values within the array does not imply\nan order of preference among them, although applications of JWK Sets\ncan choose to assign a meaning to the order for their purposes, if\ndesired.", "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/JSONWebKey" }, - "x-go-name": "ScopesSupported" + "x-go-name": "Keys" + } + }, + "x-go-name": "swaggerJSONWebKeySet", + "x-go-package": "github.com/ory/hydra/jwk" + }, + "PreviousConsentSession": { + "description": "The response used to return used consent requests\nsame as HandledLoginRequest, just with consent_request exposed as json", + "type": "object", + "properties": { + "consent_request": { + "$ref": "#/definitions/consentRequest" }, - "subject_types_supported": { - "description": "JSON array containing a list of the Subject Identifier types that this OP supports. Valid types include\npairwise and public.", + "grant_access_token_audience": { + "description": "GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`.", "type": "array", "items": { "type": "string" }, - "x-go-name": "SubjectTypes" - }, - "token_endpoint": { - "description": "URL of the OP's OAuth 2.0 Token Endpoint", - "type": "string", - "x-go-name": "TokenURL" + "x-go-name": "GrantedAudience" }, - "token_endpoint_auth_methods_supported": { - "description": "JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are\nclient_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0", + "grant_scope": { + "description": "GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`", "type": "array", "items": { "type": "string" }, - "x-go-name": "TokenEndpointAuthMethodsSupported" + "x-go-name": "GrantedScope" }, - "userinfo_endpoint": { - "description": "URL of the OP's UserInfo Endpoint.", - "type": "string", - "x-go-name": "UserinfoEndpoint" + "remember": { + "description": "Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same\nclient asks the same user for the same, or a subset of, scope.", + "type": "boolean", + "x-go-name": "Remember" }, - "userinfo_signing_alg_values_supported": { - "description": "JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "UserinfoSigningAlgValuesSupported" + "remember_for": { + "description": "RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the\nauthorization will be remembered indefinitely.", + "type": "integer", + "format": "int64", + "x-go-name": "RememberFor" + }, + "session": { + "$ref": "#/definitions/consentRequestSession" } }, - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" + "x-go-package": "github.com/ory/hydra/consent" }, "acceptConsentRequest": { "type": "object", @@ -3072,39 +2162,10 @@ "x-go-name": "ConsentRequestSessionData", "x-go-package": "github.com/ory/hydra/consent" }, - "createRequest": { - "description": "CreateRequest create request", - "type": "object", - "required": [ - "alg", - "kid", - "use" - ], - "properties": { - "alg": { - "description": "The algorithm to be used for creating the key. Supports \"RS256\", \"ES512\", \"HS512\", and \"HS256\"", - "type": "string", - "x-go-name": "Algorithm" - }, - "kid": { - "description": "The kid of the key to be created", - "type": "string", - "x-go-name": "KeyID" - }, - "use": { - "description": "The \"use\" (public key use) parameter identifies the intended use of\nthe public key. The \"use\" parameter is employed to indicate whether\na public key is used for encrypting data or verifying the signature\non data. Valid values are \"enc\" and \"sig\".", - "type": "string", - "x-go-name": "Use" - } - }, - "x-go-name": "CreateRequest", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, "emptyResponse": { - "description": "EmptyResponse Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is\ntypically 201.", + "description": "Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is\ntypically 201.", "type": "object", - "x-go-name": "EmptyResponse", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" + "x-go-package": "github.com/ory/hydra" }, "flushInactiveOAuth2TokensRequest": { "type": "object", @@ -3122,7 +2183,7 @@ "genericError": { "description": "Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred.", "type": "object", - "title": "GenericError Error response", + "title": "Error response", "required": [ "error" ], @@ -3153,8 +2214,7 @@ "example": "Object with ID 12345 does not exist" } }, - "x-go-name": "GenericError", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" + "x-go-package": "github.com/ory/hydra" }, "healthNotReadyStatus": { "type": "object", @@ -3644,209 +2704,76 @@ "type": "array", "items": { "type": "string" - }, - "x-go-name": "ACRValues" - }, - "display": { - "description": "Display is a string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User.\nThe defined values are:\npage: The Authorization Server SHOULD display the authentication and consent UI consistent with a full User Agent page view. If the display parameter is not specified, this is the default display mode.\npopup: The Authorization Server SHOULD display the authentication and consent UI consistent with a popup User Agent window. The popup User Agent window should be of an appropriate size for a login-focused dialog and should not obscure the entire window that it is popping up over.\ntouch: The Authorization Server SHOULD display the authentication and consent UI consistent with a device that leverages a touch interface.\nwap: The Authorization Server SHOULD display the authentication and consent UI consistent with a \"feature phone\" type display.\n\nThe Authorization Server MAY also attempt to detect the capabilities of the User Agent and present an appropriate display.", - "type": "string", - "x-go-name": "Display" - }, - "id_token_hint_claims": { - "description": "IDTokenHintClaims are the claims of the ID Token previously issued by the Authorization Server being passed as a hint about the\nEnd-User's current or past authenticated session with the Client.", - "type": "object", - "additionalProperties": { - "type": "object" - }, - "x-go-name": "IDTokenHintClaims" - }, - "login_hint": { - "description": "LoginHint hints about the login identifier the End-User might use to log in (if necessary).\nThis hint can be used by an RP if it first asks the End-User for their e-mail address (or other identifier)\nand then wants to pass that value as a hint to the discovered authorization service. This value MAY also be a\nphone number in the format specified for the phone_number Claim. The use of this parameter is optional.", - "type": "string", - "x-go-name": "LoginHint" - }, - "ui_locales": { - "description": "UILocales is the End-User'id preferred languages and scripts for the user interface, represented as a\nspace-separated list of BCP47 [RFC5646] language tag values, ordered by preference. For instance, the value\n\"fr-CA fr en\" represents a preference for French as spoken in Canada, then French (without a region designation),\nfollowed by English (without a region designation). An error SHOULD NOT result if some or all of the requested\nlocales are not supported by the OpenID Provider.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "UILocales" - } - }, - "x-go-name": "OpenIDConnectContext", - "x-go-package": "github.com/ory/hydra/consent" - }, - "rejectRequest": { - "type": "object", - "title": "The request payload used to accept a login or consent request.", - "properties": { - "error": { - "type": "string", - "x-go-name": "Name" - }, - "error_debug": { - "type": "string", - "x-go-name": "Debug" - }, - "error_description": { - "type": "string", - "x-go-name": "Description" - }, - "error_hint": { - "type": "string", - "x-go-name": "Hint" - }, - "status_code": { - "type": "integer", - "format": "int64", - "x-go-name": "Code" - } - }, - "x-go-name": "RequestDeniedError", - "x-go-package": "github.com/ory/hydra/consent" - }, - "swaggerFlushInactiveAccessTokens": { - "description": "SwaggerFlushInactiveAccessTokens swagger flush inactive access tokens", - "type": "object", - "properties": { - "Body": { - "$ref": "#/definitions/FlushInactiveOAuth2TokensRequest" - } - }, - "x-go-name": "SwaggerFlushInactiveAccessTokens", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "swaggerHealthStatus": { - "description": "SwaggerHealthStatus swagger health status", - "type": "object", - "properties": { - "status": { - "description": "Status always contains \"ok\".", - "type": "string", - "x-go-name": "Status" - } - }, - "x-go-name": "SwaggerHealthStatus", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "swaggerJSONWebKey": { - "description": "SwaggerJSONWebKey swagger JSON web key", - "type": "object", - "required": [ - "alg", - "kid", - "kty", - "use" - ], - "properties": { - "alg": { - "description": "The \"alg\" (algorithm) parameter identifies the algorithm intended for\nuse with the key. The values used should either be registered in the\nIANA \"JSON Web Signature and Encryption Algorithms\" registry\nestablished by [JWA] or be a value that contains a Collision-\nResistant Name.", - "type": "string", - "x-go-name": "Alg" - }, - "crv": { - "description": "crv", - "type": "string", - "x-go-name": "Crv" - }, - "d": { - "description": "d", - "type": "string", - "x-go-name": "D" - }, - "dp": { - "description": "dp", - "type": "string", - "x-go-name": "Dp" - }, - "dq": { - "description": "dq", - "type": "string", - "x-go-name": "Dq" - }, - "e": { - "description": "e", - "type": "string", - "x-go-name": "E" - }, - "k": { - "description": "k", - "type": "string", - "x-go-name": "K" - }, - "kid": { - "description": "The \"kid\" (key ID) parameter is used to match a specific key. This\nis used, for instance, to choose among a set of keys within a JWK Set\nduring key rollover. The structure of the \"kid\" value is\nunspecified. When \"kid\" values are used within a JWK Set, different\nkeys within the JWK Set SHOULD use distinct \"kid\" values. (One\nexample in which different keys might use the same \"kid\" value is if\nthey have different \"kty\" (key type) values but are considered to be\nequivalent alternatives by the application using them.) The \"kid\"\nvalue is a case-sensitive string.", - "type": "string", - "x-go-name": "Kid" + }, + "x-go-name": "ACRValues" }, - "kty": { - "description": "The \"kty\" (key type) parameter identifies the cryptographic algorithm\nfamily used with the key, such as \"RSA\" or \"EC\". \"kty\" values should\neither be registered in the IANA \"JSON Web Key Types\" registry\nestablished by [JWA] or be a value that contains a Collision-\nResistant Name. The \"kty\" value is a case-sensitive string.", + "display": { + "description": "Display is a string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User.\nThe defined values are:\npage: The Authorization Server SHOULD display the authentication and consent UI consistent with a full User Agent page view. If the display parameter is not specified, this is the default display mode.\npopup: The Authorization Server SHOULD display the authentication and consent UI consistent with a popup User Agent window. The popup User Agent window should be of an appropriate size for a login-focused dialog and should not obscure the entire window that it is popping up over.\ntouch: The Authorization Server SHOULD display the authentication and consent UI consistent with a device that leverages a touch interface.\nwap: The Authorization Server SHOULD display the authentication and consent UI consistent with a \"feature phone\" type display.\n\nThe Authorization Server MAY also attempt to detect the capabilities of the User Agent and present an appropriate display.", "type": "string", - "x-go-name": "Kty" + "x-go-name": "Display" }, - "n": { - "description": "n", - "type": "string", - "x-go-name": "N" + "id_token_hint_claims": { + "description": "IDTokenHintClaims are the claims of the ID Token previously issued by the Authorization Server being passed as a hint about the\nEnd-User's current or past authenticated session with the Client.", + "type": "object", + "additionalProperties": { + "type": "object" + }, + "x-go-name": "IDTokenHintClaims" }, - "p": { - "description": "p", + "login_hint": { + "description": "LoginHint hints about the login identifier the End-User might use to log in (if necessary).\nThis hint can be used by an RP if it first asks the End-User for their e-mail address (or other identifier)\nand then wants to pass that value as a hint to the discovered authorization service. This value MAY also be a\nphone number in the format specified for the phone_number Claim. The use of this parameter is optional.", "type": "string", - "x-go-name": "P" + "x-go-name": "LoginHint" }, - "q": { - "description": "q", + "ui_locales": { + "description": "UILocales is the End-User'id preferred languages and scripts for the user interface, represented as a\nspace-separated list of BCP47 [RFC5646] language tag values, ordered by preference. For instance, the value\n\"fr-CA fr en\" represents a preference for French as spoken in Canada, then French (without a region designation),\nfollowed by English (without a region designation). An error SHOULD NOT result if some or all of the requested\nlocales are not supported by the OpenID Provider.", + "type": "array", + "items": { + "type": "string" + }, + "x-go-name": "UILocales" + } + }, + "x-go-name": "OpenIDConnectContext", + "x-go-package": "github.com/ory/hydra/consent" + }, + "rejectRequest": { + "type": "object", + "title": "The request payload used to accept a login or consent request.", + "properties": { + "error": { "type": "string", - "x-go-name": "Q" + "x-go-name": "Name" }, - "qi": { - "description": "qi", + "error_debug": { "type": "string", - "x-go-name": "Qi" + "x-go-name": "Debug" }, - "use": { - "description": "Use (\"public key use\") identifies the intended use of\nthe public key. The \"use\" parameter is employed to indicate whether\na public key is used for encrypting data or verifying the signature\non data. Values are commonly \"sig\" (signature) or \"enc\" (encryption).", + "error_description": { "type": "string", - "x-go-name": "Use" + "x-go-name": "Description" }, - "x": { - "description": "x", + "error_hint": { "type": "string", - "x-go-name": "X" - }, - "x5c": { - "description": "The \"x5c\" (X.509 certificate chain) parameter contains a chain of one\nor more PKIX certificates [RFC5280]. The certificate chain is\nrepresented as a JSON array of certificate value strings. Each\nstring in the array is a base64-encoded (Section 4 of [RFC4648] --\nnot base64url-encoded) DER [ITU.X690.1994] PKIX certificate value.\nThe PKIX certificate containing the key value MUST be the first\ncertificate.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "X5c" + "x-go-name": "Hint" }, - "y": { - "description": "y", - "type": "string", - "x-go-name": "Y" + "status_code": { + "type": "integer", + "format": "int64", + "x-go-name": "Code" } }, - "x-go-name": "SwaggerJSONWebKey", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" + "x-go-name": "RequestDeniedError", + "x-go-package": "github.com/ory/hydra/consent" }, - "swaggerJSONWebKeySet": { - "description": "SwaggerJSONWebKeySet swagger JSON web key set", + "swaggerFlushInactiveAccessTokens": { "type": "object", "properties": { - "keys": { - "description": "The value of the \"keys\" parameter is an array of JWK values. By\ndefault, the order of the JWK values within the array does not imply\nan order of preference among them, although applications of JWK Sets\ncan choose to assign a meaning to the order for their purposes, if\ndesired.", - "type": "array", - "items": { - "$ref": "#/definitions/swaggerJSONWebKey" - }, - "x-go-name": "Keys" + "Body": { + "$ref": "#/definitions/flushInactiveOAuth2TokensRequest" } }, - "x-go-name": "SwaggerJSONWebKeySet", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" + "x-go-package": "github.com/ory/hydra/oauth2" }, "swaggerJsonWebKeyQuery": { "type": "object", @@ -3866,7 +2793,6 @@ "x-go-name": "Set" } }, - "x-go-name": "SwaggerJSONWebKeyQuery", "x-go-package": "github.com/ory/hydra/jwk" }, "swaggerJwkCreateSet": { @@ -3884,7 +2810,6 @@ "x-go-name": "Set" } }, - "x-go-name": "SwaggerJwkCreateSet", "x-go-package": "github.com/ory/hydra/jwk" }, "swaggerJwkSetQuery": { @@ -3899,7 +2824,6 @@ "x-go-name": "Set" } }, - "x-go-name": "SwaggerJwkSetQuery", "x-go-package": "github.com/ory/hydra/jwk" }, "swaggerJwkUpdateSet": { @@ -3917,7 +2841,6 @@ "x-go-name": "Set" } }, - "x-go-name": "SwaggerJwkUpdateSet", "x-go-package": "github.com/ory/hydra/jwk" }, "swaggerJwkUpdateSetKey": { @@ -3941,27 +2864,9 @@ "x-go-name": "Set" } }, - "x-go-name": "SwaggerJwkUpdateSetKey", "x-go-package": "github.com/ory/hydra/jwk" }, - "swaggerNotReadyStatus": { - "description": "SwaggerNotReadyStatus swagger not ready status", - "type": "object", - "properties": { - "errors": { - "description": "Errors contains a list of errors that caused the not ready status.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-go-name": "Errors" - } - }, - "x-go-name": "SwaggerNotReadyStatus", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, "swaggerOAuthIntrospectionRequest": { - "description": "SwaggerOAuthIntrospectionRequest swagger o auth introspection request", "type": "object", "required": [ "token" @@ -3973,57 +2878,14 @@ "x-go-name": "Scope" }, "token": { - "description": "The string value of the token. For access tokens, this\nis the \"access_token\" value returned from the token endpoint\ndefined in OAuth 2.0 [RFC6749], Section 5.1.\nThis endpoint DOES NOT accept refresh tokens for validation.", + "description": "The string value of the token. For access tokens, this\nis the \"access_token\" value returned from the token endpoint\ndefined in OAuth 2.0. For refresh tokens, this is the \"refresh_token\"\nvalue returned.", "type": "string", "x-go-name": "Token" } }, - "x-go-name": "SwaggerOAuthIntrospectionRequest", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "swaggerOAuthTokenResponse": { - "description": "SwaggerOAuthTokenResponse The token response", - "type": "object", - "properties": { - "access_token": { - "description": "The access token issued by the authorization server.", - "type": "string", - "x-go-name": "AccessToken" - }, - "expires_in": { - "description": "The lifetime in seconds of the access token. For\nexample, the value \"3600\" denotes that the access token will\nexpire in one hour from the time the response was generated.", - "type": "integer", - "format": "int64", - "x-go-name": "ExpiresIn" - }, - "id_token": { - "description": "To retrieve a refresh token request the id_token scope.", - "type": "integer", - "format": "int64", - "x-go-name": "IDToken" - }, - "refresh_token": { - "description": "The refresh token, which can be used to obtain new\naccess tokens. To retrieve it add the scope \"offline\" to your access token request.", - "type": "string", - "x-go-name": "RefreshToken" - }, - "scope": { - "description": "The scope of the access token", - "type": "integer", - "format": "int64", - "x-go-name": "Scope" - }, - "token_type": { - "description": "The type of the token issued", - "type": "string", - "x-go-name": "TokenType" - } - }, - "x-go-name": "SwaggerOAuthTokenResponse", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" + "x-go-package": "github.com/ory/hydra/oauth2" }, "swaggerRevokeOAuth2TokenParameters": { - "description": "SwaggerRevokeOAuth2TokenParameters swagger revoke o auth2 token parameters", "type": "object", "required": [ "token" @@ -4035,24 +2897,9 @@ "x-go-name": "Token" } }, - "x-go-name": "SwaggerRevokeOAuth2TokenParameters", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "swaggerVersion": { - "description": "SwaggerVersion swagger version", - "type": "object", - "properties": { - "version": { - "description": "Version is the service's version.", - "type": "string", - "x-go-name": "Version" - } - }, - "x-go-name": "SwaggerVersion", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" + "x-go-package": "github.com/ory/hydra/oauth2" }, "swaggeroauth2TokenParameters": { - "description": "Swaggeroauth2TokenParameters swaggeroauth2 token parameters", "type": "object", "required": [ "grant_type" @@ -4079,140 +2926,7 @@ "x-go-name": "RedirectURI" } }, - "x-go-name": "Swaggeroauth2TokenParameters", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "swaggeroauth2TokenResponse": { - "description": "Swaggeroauth2TokenResponse The Access Token Response", - "type": "object", - "properties": { - "access_token": { - "description": "access token", - "type": "string", - "x-go-name": "AccessToken" - }, - "client_id": { - "description": "refresh token", - "type": "string", - "x-go-name": "RefreshToken" - }, - "code": { - "description": "token type", - "type": "string", - "x-go-name": "TokenType" - }, - "redirect_uri": { - "description": "expires in", - "type": "string", - "x-go-name": "ExpiresIn" - } - }, - "x-go-name": "Swaggeroauth2TokenResponse", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" - }, - "swaggeruserinfoResponsePayload": { - "description": "SwaggeruserinfoResponsePayload The userinfo response", - "type": "object", - "properties": { - "birthdate": { - "description": "End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates.", - "type": "string", - "x-go-name": "Birthdate" - }, - "email": { - "description": "End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.", - "type": "string", - "x-go-name": "Email" - }, - "email_verified": { - "description": "True if the End-User's e-mail address has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this e-mail address was controlled by the End-User at the time the verification was performed. The means by which an e-mail address is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating.", - "type": "boolean", - "x-go-name": "EmailVerified" - }, - "family_name": { - "description": "Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.", - "type": "string", - "x-go-name": "FamilyName" - }, - "gender": { - "description": "End-User's gender. Values defined by this specification are female and male. Other values MAY be used when neither of the defined values are applicable.", - "type": "string", - "x-go-name": "Gender" - }, - "given_name": { - "description": "Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.", - "type": "string", - "x-go-name": "GivenName" - }, - "locale": { - "description": "End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.", - "type": "string", - "x-go-name": "Locale" - }, - "middle_name": { - "description": "Middle name(s) of the End-User. Note that in some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used.", - "type": "string", - "x-go-name": "MiddleName" - }, - "name": { - "description": "End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.", - "type": "string", - "x-go-name": "Name" - }, - "nickname": { - "description": "Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael.", - "type": "string", - "x-go-name": "Nickname" - }, - "phone_number": { - "description": "End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.", - "type": "string", - "x-go-name": "PhoneNumber" - }, - "phone_number_verified": { - "description": "True if the End-User's phone number has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this phone number was controlled by the End-User at the time the verification was performed. The means by which a phone number is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. When true, the phone_number Claim MUST be in E.164 format and any extensions MUST be represented in RFC 3966 format.", - "type": "boolean", - "x-go-name": "PhoneNumberVerified" - }, - "picture": { - "description": "URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.", - "type": "string", - "x-go-name": "Picture" - }, - "preferred_username": { - "description": "Non-unique shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as @, /, or whitespace.", - "type": "string", - "x-go-name": "PreferredUsername" - }, - "profile": { - "description": "URL of the End-User's profile page. The contents of this Web page SHOULD be about the End-User.", - "type": "string", - "x-go-name": "Profile" - }, - "sub": { - "description": "Subject - Identifier for the End-User at the IssuerURL.", - "type": "string", - "x-go-name": "Subject" - }, - "updated_at": { - "description": "Time the End-User's information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time.", - "type": "integer", - "format": "int64", - "x-go-name": "UpdatedAt" - }, - "website": { - "description": "URL of the End-User's Web page or blog. This Web page SHOULD contain information published by the End-User or an organization that the End-User is affiliated with.", - "type": "string", - "x-go-name": "Website" - }, - "zoneinfo": { - "description": "String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.", - "type": "string", - "x-go-name": "Zoneinfo" - } - }, - "x-go-name": "SwaggeruserinfoResponsePayload", - "x-go-package": "github.com/ory/hydra/sdk/go/hydra/models" + "x-go-package": "github.com/ory/hydra/oauth2" }, "userinfoResponse": { "description": "The userinfo response", diff --git a/go.sum b/go.sum index daed5f964fd..807f1380d85 100644 --- a/go.sum +++ b/go.sum @@ -503,11 +503,6 @@ github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJ github.com/ory/dockertest v3.3.4+incompatible h1:VrpM6Gqg7CrPm3bL4Wm1skO+zFWLbh7/Xb5kGEbJRh8= github.com/ory/dockertest v3.3.4+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= github.com/ory/fosite v0.29.0/go.mod h1:0atSZmXO7CAcs6NPMI/Qtot8tmZYj04Nddoold4S2h0= -github.com/ory/fosite v0.29.3 h1:YKv7Mf0EDS+JVSucgr6NbXCIjTDcs6jEs1VLtlA2dFc= -github.com/ory/fosite v0.29.3/go.mod h1:0atSZmXO7CAcs6NPMI/Qtot8tmZYj04Nddoold4S2h0= -github.com/ory/fosite v0.29.4/go.mod h1:0atSZmXO7CAcs6NPMI/Qtot8tmZYj04Nddoold4S2h0= -github.com/ory/fosite v0.29.5 h1:+d79no+JKQIMDqunY6a5XpScbUVomTY2Z/ylO3USFCU= -github.com/ory/fosite v0.29.5/go.mod h1:0atSZmXO7CAcs6NPMI/Qtot8tmZYj04Nddoold4S2h0= github.com/ory/fosite v0.29.6 h1:ZL5O6t71sAioew2u9gi41FpyjN5wEOC1Is6mEM/hI9w= github.com/ory/fosite v0.29.6/go.mod h1:0atSZmXO7CAcs6NPMI/Qtot8tmZYj04Nddoold4S2h0= github.com/ory/go-acc v0.0.0-20181118080137-ddc355013f90 h1:Bpk3eqc3rbJT2mE+uS9ETzmi2cEL4RuIKz2iUeteh04= diff --git a/sdk/go/hydra/models/authentication_request.go b/sdk/go/hydra/models/authentication_request.go deleted file mode 100644 index f96753e1d1c..00000000000 --- a/sdk/go/hydra/models/authentication_request.go +++ /dev/null @@ -1,126 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - strfmt "github.com/go-openapi/strfmt" - - "github.com/go-openapi/errors" - "github.com/go-openapi/swag" -) - -// AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest AuthenticationRequest Contains information on an ongoing login request. -// swagger:model AuthenticationRequest -type AuthenticationRequest struct { - - // Challenge is the identifier ("authentication challenge") of the consent authentication request. It is used to - // identify the session. - Challenge string `json:"challenge,omitempty"` - - // RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which - // initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but - // might come in handy if you want to deal with additional request parameters. - RequestURL string `json:"request_url,omitempty"` - - // RequestedScope contains the access token audience as requested by the OAuth 2.0 Client. - RequestedAudience []string `json:"requested_access_token_audience"` - - // RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. - RequestedScope []string `json:"requested_scope"` - - // SessionID is the authentication session ID. It is set if the browser had a valid authentication session at - // ORY Hydra during the login flow. It can be used to associate consecutive login requests by a certain user. - SessionID string `json:"session_id,omitempty"` - - // Skip, if true, implies that the client has requested the same scopes from the same user previously. - // If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. - // - // This feature allows you to update / set session information. - Skip bool `json:"skip,omitempty"` - - // Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope - // requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type - // when accepting the login request, or the request will fail. - Subject string `json:"subject,omitempty"` - - // client - Client *Client `json:"client,omitempty"` - - // oidc context - OidcContext *OpenIDConnectContext `json:"oidc_context,omitempty"` -} - -// Validate validates this authentication request -func (m *AuthenticationRequest) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateClient(formats); err != nil { - res = append(res, err) - } - - if err := m.validateOidcContext(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *AuthenticationRequest) validateClient(formats strfmt.Registry) error { - - if swag.IsZero(m.Client) { // not required - return nil - } - - if m.Client != nil { - if err := m.Client.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("client") - } - return err - } - } - - return nil -} - -func (m *AuthenticationRequest) validateOidcContext(formats strfmt.Registry) error { - - if swag.IsZero(m.OidcContext) { // not required - return nil - } - - if m.OidcContext != nil { - if err := m.OidcContext.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("oidc_context") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *AuthenticationRequest) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *AuthenticationRequest) UnmarshalBinary(b []byte) error { - var res AuthenticationRequest - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/sdk/go/hydra/models/authentication_session.go b/sdk/go/hydra/models/authentication_session.go deleted file mode 100644 index bed13375f74..00000000000 --- a/sdk/go/hydra/models/authentication_session.go +++ /dev/null @@ -1,101 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - strfmt "github.com/go-openapi/strfmt" - - "github.com/go-openapi/errors" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession authentication session -// swagger:model AuthenticationSession -type AuthenticationSession struct { - - // authenticated at - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - // Format: date-time - AuthenticatedAt strfmt.DateTime `json:"AuthenticatedAt,omitempty"` - - // ID - ID string `json:"ID,omitempty"` - - // subject - Subject string `json:"Subject,omitempty"` -} - -// Validate validates this authentication session -func (m *AuthenticationSession) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateAuthenticatedAt(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *AuthenticationSession) validateAuthenticatedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.AuthenticatedAt) { // not required - return nil - } - - if err := validate.FormatOf("AuthenticatedAt", "body", "date-time", m.AuthenticatedAt.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *AuthenticationSession) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *AuthenticationSession) UnmarshalBinary(b []byte) error { - var res AuthenticationSession - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/sdk/go/hydra/models/client.go b/sdk/go/hydra/models/client.go index dfea88e6cd7..d311a75d147 100644 --- a/sdk/go/hydra/models/client.go +++ b/sdk/go/hydra/models/client.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/validate" ) -// Client Client Client represents an OAuth 2.0 Client. +// Client Client represents an OAuth 2.0 Client. // swagger:model Client type Client struct { @@ -50,7 +50,6 @@ type Client struct { // CreatedAt returns the timestamp of the client's creation. // Format: date-time - // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be @@ -155,7 +154,6 @@ type Client struct { // UpdatedAt returns the timestamp of the last update. // Format: date-time - // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` // JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT diff --git a/sdk/go/hydra/models/consent_request_session_data.go b/sdk/go/hydra/models/consent_request_session_data.go index 442778a0389..3fe77745013 100644 --- a/sdk/go/hydra/models/consent_request_session_data.go +++ b/sdk/go/hydra/models/consent_request_session_data.go @@ -11,7 +11,7 @@ import ( "github.com/go-openapi/swag" ) -// ConsentRequestSessionData ConsentRequestSessionData Used to pass session data to a consent request. +// ConsentRequestSessionData Used to pass session data to a consent request. // swagger:model ConsentRequestSessionData type ConsentRequestSessionData struct { diff --git a/sdk/go/hydra/models/empty_response.go b/sdk/go/hydra/models/empty_response.go index 6eaed2a2100..68db4989eff 100644 --- a/sdk/go/hydra/models/empty_response.go +++ b/sdk/go/hydra/models/empty_response.go @@ -5,7 +5,7 @@ package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command -// EmptyResponse EmptyResponse Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is +// EmptyResponse Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is // typically 201. -// swagger:model EmptyResponse +// swagger:model emptyResponse type EmptyResponse interface{} diff --git a/sdk/go/hydra/models/generic_error.go b/sdk/go/hydra/models/generic_error.go index 1ee4bb88a7e..6db5020308d 100644 --- a/sdk/go/hydra/models/generic_error.go +++ b/sdk/go/hydra/models/generic_error.go @@ -13,10 +13,10 @@ import ( "github.com/go-openapi/validate" ) -// GenericError GenericError Error response +// GenericError Error response // // Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred. -// swagger:model GenericError +// swagger:model genericError type GenericError struct { // Code represents the error status code (404, 403, 401, ...). diff --git a/sdk/go/hydra/models/handled_authentication_request.go b/sdk/go/hydra/models/handled_authentication_request.go deleted file mode 100644 index 2dbb60f7d56..00000000000 --- a/sdk/go/hydra/models/handled_authentication_request.go +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - strfmt "github.com/go-openapi/strfmt" - - "github.com/go-openapi/errors" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest HandledAuthenticationRequest The request payload used to accept a login request. -// swagger:model HandledAuthenticationRequest -type HandledAuthenticationRequest struct { - - // ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it - // to express that, for example, a user authenticated using two factor authentication. - ACR string `json:"acr,omitempty"` - - // ForceSubjectIdentifier forces the "pairwise" user ID of the end-user that authenticated. The "pairwise" user ID refers to the - // (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID - // Connect specification. It allows you to set an obfuscated subject ("user") identifier that is unique to the client. - // - // Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the - // sub claim in the OAuth 2.0 Introspection. - // - // Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself - // you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in - // ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's - // configuration). - // - // Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies - // that you have to compute this value on every authentication process (probably depending on the client ID or some - // other unique value). - // - // If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. - ForceSubjectIdentifier string `json:"force_subject_identifier,omitempty"` - - // Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store - // a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she - // will not be asked to log in again. - Remember bool `json:"remember,omitempty"` - - // RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the - // authorization will be remembered indefinitely. - RememberFor int64 `json:"remember_for,omitempty"` - - // Subject is the user ID of the end-user that authenticated. - // Required: true - Subject *string `json:"subject"` -} - -// Validate validates this handled authentication request -func (m *HandledAuthenticationRequest) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateSubject(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *HandledAuthenticationRequest) validateSubject(formats strfmt.Registry) error { - - if err := validate.Required("subject", "body", m.Subject); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *HandledAuthenticationRequest) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *HandledAuthenticationRequest) UnmarshalBinary(b []byte) error { - var res HandledAuthenticationRequest - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/sdk/go/hydra/models/handled_consent_request.go b/sdk/go/hydra/models/handled_consent_request.go index b921a1e191e..38c6ad90a53 100644 --- a/sdk/go/hydra/models/handled_consent_request.go +++ b/sdk/go/hydra/models/handled_consent_request.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/swag" ) -// HandledConsentRequest HandledConsentRequest HandledConsentRequest The request payload used to accept a consent request. +// HandledConsentRequest The request payload used to accept a consent request. // swagger:model HandledConsentRequest type HandledConsentRequest struct { diff --git a/sdk/go/hydra/models/login_request.go b/sdk/go/hydra/models/login_request.go index 81df12a9d3b..8c721ef40cf 100644 --- a/sdk/go/hydra/models/login_request.go +++ b/sdk/go/hydra/models/login_request.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/swag" ) -// LoginRequest LoginRequest Contains information on an ongoing login request. +// LoginRequest Contains information on an ongoing login request. // swagger:model LoginRequest type LoginRequest struct { diff --git a/sdk/go/hydra/models/logout_request.go b/sdk/go/hydra/models/logout_request.go index 9adcd425853..5f080d6c2a5 100644 --- a/sdk/go/hydra/models/logout_request.go +++ b/sdk/go/hydra/models/logout_request.go @@ -11,7 +11,7 @@ import ( "github.com/go-openapi/swag" ) -// LogoutRequest LogoutRequest LogoutRequest Contains information about an ongoing logout request. +// LogoutRequest Contains information about an ongoing logout request. // swagger:model LogoutRequest type LogoutRequest struct { diff --git a/sdk/go/hydra/models/open_id_connect_context.go b/sdk/go/hydra/models/open_id_connect_context.go index 5488c51f2c6..c861a587461 100644 --- a/sdk/go/hydra/models/open_id_connect_context.go +++ b/sdk/go/hydra/models/open_id_connect_context.go @@ -11,7 +11,7 @@ import ( "github.com/go-openapi/swag" ) -// OpenIDConnectContext OpenIDConnectContext Contains optional information about the OpenID Connect request. +// OpenIDConnectContext Contains optional information about the OpenID Connect request. // swagger:model OpenIDConnectContext type OpenIDConnectContext struct { diff --git a/sdk/go/hydra/models/request_handler_response.go b/sdk/go/hydra/models/request_handler_response.go index 65d535287ef..c3e1cbe44da 100644 --- a/sdk/go/hydra/models/request_handler_response.go +++ b/sdk/go/hydra/models/request_handler_response.go @@ -11,7 +11,7 @@ import ( "github.com/go-openapi/swag" ) -// RequestHandlerResponse RequestHandlerResponse RequestHandlerResponse The response payload sent when accepting or rejecting a login or consent request. +// RequestHandlerResponse The response payload sent when accepting or rejecting a login or consent request. // swagger:model RequestHandlerResponse type RequestHandlerResponse struct { diff --git a/sdk/go/hydra/models/swagger_flush_inactive_access_tokens.go b/sdk/go/hydra/models/swagger_flush_inactive_access_tokens.go index 142c2bfb3e8..d7d1f945910 100644 --- a/sdk/go/hydra/models/swagger_flush_inactive_access_tokens.go +++ b/sdk/go/hydra/models/swagger_flush_inactive_access_tokens.go @@ -12,8 +12,8 @@ import ( "github.com/go-openapi/swag" ) -// SwaggerFlushInactiveAccessTokens SwaggerFlushInactiveAccessTokens swagger flush inactive access tokens -// swagger:model SwaggerFlushInactiveAccessTokens +// SwaggerFlushInactiveAccessTokens swagger flush inactive access tokens +// swagger:model swaggerFlushInactiveAccessTokens type SwaggerFlushInactiveAccessTokens struct { // body diff --git a/sdk/go/hydra/models/swagger_json_web_key_query.go b/sdk/go/hydra/models/swagger_json_web_key_query.go index fafe15f5c89..098aa41934e 100644 --- a/sdk/go/hydra/models/swagger_json_web_key_query.go +++ b/sdk/go/hydra/models/swagger_json_web_key_query.go @@ -13,8 +13,8 @@ import ( "github.com/go-openapi/validate" ) -// SwaggerJSONWebKeyQuery swagger JSON web key query -// swagger:model SwaggerJSONWebKeyQuery +// SwaggerJSONWebKeyQuery swagger Json web key query +// swagger:model swaggerJsonWebKeyQuery type SwaggerJSONWebKeyQuery struct { // The kid of the desired key @@ -28,7 +28,7 @@ type SwaggerJSONWebKeyQuery struct { Set *string `json:"set"` } -// Validate validates this swagger JSON web key query +// Validate validates this swagger Json web key query func (m *SwaggerJSONWebKeyQuery) Validate(formats strfmt.Registry) error { var res []error diff --git a/sdk/go/hydra/models/swagger_jwk_create_set.go b/sdk/go/hydra/models/swagger_jwk_create_set.go index f5856380ec1..a1a40d685c0 100644 --- a/sdk/go/hydra/models/swagger_jwk_create_set.go +++ b/sdk/go/hydra/models/swagger_jwk_create_set.go @@ -14,7 +14,7 @@ import ( ) // SwaggerJwkCreateSet swagger jwk create set -// swagger:model SwaggerJwkCreateSet +// swagger:model swaggerJwkCreateSet type SwaggerJwkCreateSet struct { // body diff --git a/sdk/go/hydra/models/swagger_jwk_set_query.go b/sdk/go/hydra/models/swagger_jwk_set_query.go index e0e99a5933d..3df12e9d67a 100644 --- a/sdk/go/hydra/models/swagger_jwk_set_query.go +++ b/sdk/go/hydra/models/swagger_jwk_set_query.go @@ -14,7 +14,7 @@ import ( ) // SwaggerJwkSetQuery swagger jwk set query -// swagger:model SwaggerJwkSetQuery +// swagger:model swaggerJwkSetQuery type SwaggerJwkSetQuery struct { // The set diff --git a/sdk/go/hydra/models/swagger_jwk_update_set.go b/sdk/go/hydra/models/swagger_jwk_update_set.go index 60dd4a69c3b..441f90e5658 100644 --- a/sdk/go/hydra/models/swagger_jwk_update_set.go +++ b/sdk/go/hydra/models/swagger_jwk_update_set.go @@ -14,7 +14,7 @@ import ( ) // SwaggerJwkUpdateSet swagger jwk update set -// swagger:model SwaggerJwkUpdateSet +// swagger:model swaggerJwkUpdateSet type SwaggerJwkUpdateSet struct { // body diff --git a/sdk/go/hydra/models/swagger_jwk_update_set_key.go b/sdk/go/hydra/models/swagger_jwk_update_set_key.go index 3fd8eec1bb9..b7d18dc61e0 100644 --- a/sdk/go/hydra/models/swagger_jwk_update_set_key.go +++ b/sdk/go/hydra/models/swagger_jwk_update_set_key.go @@ -14,7 +14,7 @@ import ( ) // SwaggerJwkUpdateSetKey swagger jwk update set key -// swagger:model SwaggerJwkUpdateSetKey +// swagger:model swaggerJwkUpdateSetKey type SwaggerJwkUpdateSetKey struct { // body diff --git a/sdk/go/hydra/models/swagger_o_auth_introspection_request.go b/sdk/go/hydra/models/swagger_o_auth_introspection_request.go index 1b0972716c8..206f33e2b76 100644 --- a/sdk/go/hydra/models/swagger_o_auth_introspection_request.go +++ b/sdk/go/hydra/models/swagger_o_auth_introspection_request.go @@ -13,8 +13,8 @@ import ( "github.com/go-openapi/validate" ) -// SwaggerOAuthIntrospectionRequest SwaggerOAuthIntrospectionRequest swagger o auth introspection request -// swagger:model SwaggerOAuthIntrospectionRequest +// SwaggerOAuthIntrospectionRequest swagger o auth introspection request +// swagger:model swaggerOAuthIntrospectionRequest type SwaggerOAuthIntrospectionRequest struct { // An optional, space separated list of required scopes. If the access token was not granted one of the @@ -25,8 +25,8 @@ type SwaggerOAuthIntrospectionRequest struct { // 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 [RFC6749], Section 5.1. - // This endpoint DOES NOT accept refresh tokens for validation. + // defined in OAuth 2.0. For refresh tokens, this is the "refresh_token" + // value returned. // Required: true Token *string `json:"token"` } diff --git a/sdk/go/hydra/models/swagger_revoke_o_auth2_token_parameters.go b/sdk/go/hydra/models/swagger_revoke_o_auth2_token_parameters.go index f0adaa921f0..08a973c0566 100644 --- a/sdk/go/hydra/models/swagger_revoke_o_auth2_token_parameters.go +++ b/sdk/go/hydra/models/swagger_revoke_o_auth2_token_parameters.go @@ -13,8 +13,8 @@ import ( "github.com/go-openapi/validate" ) -// SwaggerRevokeOAuth2TokenParameters SwaggerRevokeOAuth2TokenParameters swagger revoke o auth2 token parameters -// swagger:model SwaggerRevokeOAuth2TokenParameters +// SwaggerRevokeOAuth2TokenParameters swagger revoke o auth2 token parameters +// swagger:model swaggerRevokeOAuth2TokenParameters type SwaggerRevokeOAuth2TokenParameters struct { // in: formData diff --git a/sdk/go/hydra/models/swaggeroauth2_token_parameters.go b/sdk/go/hydra/models/swaggeroauth2_token_parameters.go index 3ec4f82e1a8..c574ac70eb4 100644 --- a/sdk/go/hydra/models/swaggeroauth2_token_parameters.go +++ b/sdk/go/hydra/models/swaggeroauth2_token_parameters.go @@ -13,8 +13,8 @@ import ( "github.com/go-openapi/validate" ) -// Swaggeroauth2TokenParameters Swaggeroauth2TokenParameters swaggeroauth2 token parameters -// swagger:model Swaggeroauth2TokenParameters +// Swaggeroauth2TokenParameters swaggeroauth2 token parameters +// swagger:model swaggeroauth2TokenParameters type Swaggeroauth2TokenParameters struct { // in: formData diff --git a/sdk/go/hydra/models/well_known.go b/sdk/go/hydra/models/well_known.go index 748b7fc4c57..089eb378056 100644 --- a/sdk/go/hydra/models/well_known.go +++ b/sdk/go/hydra/models/well_known.go @@ -13,7 +13,7 @@ import ( "github.com/go-openapi/validate" ) -// WellKnown WellKnown WellKnown WellKnown represents important OpenID Connect discovery metadata +// WellKnown WellKnown represents important OpenID Connect discovery metadata // // It includes links to several endpoints (e.g. /oauth2/token) and exposes information on supported signature algorithms // among others. diff --git a/sdk/java/hydra-client-resttemplate/README.md b/sdk/java/hydra-client-resttemplate/README.md index 5c81c4270da..65e69fd2245 100644 --- a/sdk/java/hydra-client-resttemplate/README.md +++ b/sdk/java/hydra-client-resttemplate/README.md @@ -133,23 +133,14 @@ Class | Method | HTTP request | Description - [AcceptConsentRequest](docs/AcceptConsentRequest.md) - [AcceptLoginRequest](docs/AcceptLoginRequest.md) - - [AuthenticationRequest](docs/AuthenticationRequest.md) - - [AuthenticationSession](docs/AuthenticationSession.md) - - [Client](docs/Client.md) - [CompletedRequest](docs/CompletedRequest.md) - [ConsentRequest](docs/ConsentRequest.md) - [ConsentRequestSession](docs/ConsentRequestSession.md) - - [ConsentRequestSessionData](docs/ConsentRequestSessionData.md) - - [CreateRequest](docs/CreateRequest.md) - [EmptyResponse](docs/EmptyResponse.md) - [FlushInactiveOAuth2TokensRequest](docs/FlushInactiveOAuth2TokensRequest.md) - [GenericError](docs/GenericError.md) - - [HandledAuthenticationRequest](docs/HandledAuthenticationRequest.md) - - [HandledConsentRequest](docs/HandledConsentRequest.md) - - [HandledLoginRequest](docs/HandledLoginRequest.md) - [HealthNotReadyStatus](docs/HealthNotReadyStatus.md) - [HealthStatus](docs/HealthStatus.md) - - [Introspection](docs/Introspection.md) - [JSONWebKey](docs/JSONWebKey.md) - [JSONWebKeySet](docs/JSONWebKeySet.md) - [JsonWebKeySetGeneratorRequest](docs/JsonWebKeySetGeneratorRequest.md) @@ -162,25 +153,15 @@ Class | Method | HTTP request | Description - [OpenIDConnectContext](docs/OpenIDConnectContext.md) - [PreviousConsentSession](docs/PreviousConsentSession.md) - [RejectRequest](docs/RejectRequest.md) - - [RequestDeniedError](docs/RequestDeniedError.md) - - [RequestHandlerResponse](docs/RequestHandlerResponse.md) - [SwaggerFlushInactiveAccessTokens](docs/SwaggerFlushInactiveAccessTokens.md) - - [SwaggerHealthStatus](docs/SwaggerHealthStatus.md) - - [SwaggerJSONWebKey](docs/SwaggerJSONWebKey.md) - - [SwaggerJSONWebKeySet](docs/SwaggerJSONWebKeySet.md) - [SwaggerJsonWebKeyQuery](docs/SwaggerJsonWebKeyQuery.md) - [SwaggerJwkCreateSet](docs/SwaggerJwkCreateSet.md) - [SwaggerJwkSetQuery](docs/SwaggerJwkSetQuery.md) - [SwaggerJwkUpdateSet](docs/SwaggerJwkUpdateSet.md) - [SwaggerJwkUpdateSetKey](docs/SwaggerJwkUpdateSetKey.md) - - [SwaggerNotReadyStatus](docs/SwaggerNotReadyStatus.md) - [SwaggerOAuthIntrospectionRequest](docs/SwaggerOAuthIntrospectionRequest.md) - - [SwaggerOAuthTokenResponse](docs/SwaggerOAuthTokenResponse.md) - [SwaggerRevokeOAuth2TokenParameters](docs/SwaggerRevokeOAuth2TokenParameters.md) - - [SwaggerVersion](docs/SwaggerVersion.md) - [Swaggeroauth2TokenParameters](docs/Swaggeroauth2TokenParameters.md) - - [Swaggeroauth2TokenResponse](docs/Swaggeroauth2TokenResponse.md) - - [SwaggeruserinfoResponsePayload](docs/SwaggeruserinfoResponsePayload.md) - [UserinfoResponse](docs/UserinfoResponse.md) - [Version](docs/Version.md) - [WellKnown](docs/WellKnown.md) diff --git a/sdk/java/hydra-client-resttemplate/docs/AuthenticationRequest.md b/sdk/java/hydra-client-resttemplate/docs/AuthenticationRequest.md deleted file mode 100644 index c2452c26f14..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/AuthenticationRequest.md +++ /dev/null @@ -1,18 +0,0 @@ - -# AuthenticationRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**challenge** | **String** | Challenge is the identifier (\"authentication challenge\") of the consent authentication request. It is used to identify the session. | [optional] -**client** | [**Client**](Client.md) | | [optional] -**oidcContext** | [**OpenIDConnectContext**](OpenIDConnectContext.md) | | [optional] -**requestUrl** | **String** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | [optional] -**requestedAccessTokenAudience** | **List<String>** | RequestedScope contains the access token audience as requested by the OAuth 2.0 Client. | [optional] -**requestedScope** | **List<String>** | RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. | [optional] -**sessionId** | **String** | SessionID is the authentication session ID. It is set if the browser had a valid authentication session at ORY Hydra during the login flow. It can be used to associate consecutive login requests by a certain user. | [optional] -**skip** | **Boolean** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. | [optional] -**subject** | **String** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/AuthenticationSession.md b/sdk/java/hydra-client-resttemplate/docs/AuthenticationSession.md deleted file mode 100644 index fea36dc9796..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/AuthenticationSession.md +++ /dev/null @@ -1,12 +0,0 @@ - -# AuthenticationSession - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authenticatedAt** | [**DateTime**](DateTime.md) | authenticated at Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time | [optional] -**ID** | **String** | ID | [optional] -**subject** | **String** | subject | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/Client.md b/sdk/java/hydra-client-resttemplate/docs/Client.md deleted file mode 100644 index f7d416cce43..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/Client.md +++ /dev/null @@ -1,40 +0,0 @@ - -# Client - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowedCorsOrigins** | **List<String>** | AllowedCORSOrigins are one or more URLs (scheme://host[:port]) which are allowed to make CORS requests to the /oauth/token endpoint. If this array is empty, the sever's CORS origin configuration (`CORS_ALLOWED_ORIGINS`) will be used instead. If this array is set, the allowed origins are appended to the server's CORS origin configuration. Be aware that environment variable `CORS_ENABLED` MUST be set to `true` for this to work. | [optional] -**audience** | **List<String>** | Audience is a whitelist defining the audiences this client is allowed to request tokens for. An audience limits the applicability of an OAuth 2.0 Access Token to, for example, certain API endpoints. The value is a list of URLs. URLs MUST NOT contain whitespaces. | [optional] -**backchannelLogoutSessionRequired** | **Boolean** | Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. | [optional] -**backchannelLogoutUri** | **String** | RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. | [optional] -**clientId** | **String** | ClientID is the id for this client. | [optional] -**clientName** | **String** | Name is the human-readable string name of the client to be presented to the end-user during authorization. | [optional] -**clientSecret** | **String** | Secret is the client's secret. The secret will be included in the create request as cleartext, and then never again. The secret is stored using BCrypt so it is impossible to recover it. Tell your users that they need to write the secret down as it will not be made available again. | [optional] -**clientSecretExpiresAt** | **Long** | SecretExpiresAt is an integer holding the time at which the client secret will expire or 0 if it will not expire. The time is represented as the number of seconds from 1970-01-01T00:00:00Z as measured in UTC until the date/time of expiration. This feature is currently not supported and it's value will always be set to 0. | [optional] -**clientUri** | **String** | ClientURI is an URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion. | [optional] -**contacts** | **List<String>** | Contacts is a array of strings representing ways to contact people responsible for this client, typically email addresses. | [optional] -**createdAt** | [**DateTime**](DateTime.md) | CreatedAt returns the timestamp of the client's creation. Format: date-time | [optional] -**frontchannelLogoutSessionRequired** | **Boolean** | Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used. If omitted, the default value is false. | [optional] -**frontchannelLogoutUri** | **String** | RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the request and to determine which of the potentially multiple sessions is to be logged out; if either is included, both MUST be. | [optional] -**grantTypes** | **List<String>** | GrantTypes is an array of grant types the client is allowed to use. | [optional] -**jwks** | [**SwaggerJSONWebKeySet**](SwaggerJSONWebKeySet.md) | | [optional] -**jwksUri** | **String** | URL for the Client's JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains the signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the Client's encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate. | [optional] -**logoUri** | **String** | LogoURI is an URL string that references a logo for the client. | [optional] -**owner** | **String** | Owner is a string identifying the owner of the OAuth 2.0 Client. | [optional] -**policyUri** | **String** | PolicyURI is a URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data. | [optional] -**postLogoutRedirectUris** | **List<String>** | Array of URLs supplied by the RP to which it MAY request that the End-User's User Agent be redirected using the post_logout_redirect_uri parameter after a logout has been performed. | [optional] -**redirectUris** | **List<String>** | RedirectURIs is an array of allowed redirect urls for the client, for example http://mydomain/oauth/callback . | [optional] -**requestObjectSigningAlg** | **String** | JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. All Request Objects from this Client MUST be rejected, if not signed with this algorithm. | [optional] -**requestUris** | **List<String>** | Array of request_uri values that are pre-registered by the RP for use at the OP. Servers MAY cache the contents of the files referenced by these URIs and not retrieve them at the time they are used in a request. OPs can require that request_uri values used be pre-registered with the require_request_uri_registration discovery parameter. | [optional] -**responseTypes** | **List<String>** | ResponseTypes is an array of the OAuth 2.0 response type strings that the client can use at the authorization endpoint. | [optional] -**scope** | **String** | Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] -**sectorIdentifierUri** | **String** | URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] -**subjectType** | **String** | SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] -**tokenEndpointAuthMethod** | **String** | Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none. | [optional] -**tosUri** | **String** | TermsOfServiceURI is a URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. | [optional] -**updatedAt** | [**DateTime**](DateTime.md) | UpdatedAt returns the timestamp of the last update. Format: date-time | [optional] -**userinfoSignedResponseAlg** | **String** | JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type. | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/ConsentRequestSessionData.md b/sdk/java/hydra-client-resttemplate/docs/ConsentRequestSessionData.md deleted file mode 100644 index 58031d1ef46..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/ConsentRequestSessionData.md +++ /dev/null @@ -1,11 +0,0 @@ - -# ConsentRequestSessionData - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessToken** | **Map<String, Object>** | AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! | [optional] -**idToken** | **Map<String, Object>** | IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable by anyone that has access to the ID Challenge. Use with care! | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/CreateRequest.md b/sdk/java/hydra-client-resttemplate/docs/CreateRequest.md deleted file mode 100644 index 4419b877533..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/CreateRequest.md +++ /dev/null @@ -1,12 +0,0 @@ - -# CreateRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**alg** | **String** | The algorithm to be used for creating the key. Supports \"RS256\", \"ES512\", \"HS512\", and \"HS256\" | -**kid** | **String** | The kid of the key to be created | -**use** | **String** | The \"use\" (public key use) parameter identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Valid values are \"enc\" and \"sig\". | - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/HandledAuthenticationRequest.md b/sdk/java/hydra-client-resttemplate/docs/HandledAuthenticationRequest.md deleted file mode 100644 index c6bf025fa82..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/HandledAuthenticationRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - -# HandledAuthenticationRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acr** | **String** | ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. | [optional] -**forceSubjectIdentifier** | **String** | ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. | [optional] -**remember** | **Boolean** | Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. | [optional] -**rememberFor** | **Long** | RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] -**subject** | **String** | Subject is the user ID of the end-user that authenticated. | - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/HandledConsentRequest.md b/sdk/java/hydra-client-resttemplate/docs/HandledConsentRequest.md deleted file mode 100644 index 9615a0b3679..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/HandledConsentRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - -# HandledConsentRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**grantAccessTokenAudience** | **List<String>** | GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`. | [optional] -**grantScope** | **List<String>** | GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`. | [optional] -**remember** | **Boolean** | Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. | [optional] -**rememberFor** | **Long** | RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] -**session** | [**ConsentRequestSessionData**](ConsentRequestSessionData.md) | | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/HandledLoginRequest.md b/sdk/java/hydra-client-resttemplate/docs/HandledLoginRequest.md deleted file mode 100644 index 7774f4ff9cb..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/HandledLoginRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - -# HandledLoginRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acr** | **String** | ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. | [optional] -**context** | **Map<String, Object>** | Context is an optional object which can hold arbitrary data. The data will be made available when fetching the consent request under the \"context\" field. This is useful in scenarios where login and consent endpoints share data. | [optional] -**forceSubjectIdentifier** | **String** | ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. | [optional] -**remember** | **Boolean** | Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. | [optional] -**rememberFor** | **Long** | RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] -**subject** | **String** | Subject is the user ID of the end-user that authenticated. | - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/Introspection.md b/sdk/java/hydra-client-resttemplate/docs/Introspection.md deleted file mode 100644 index 0ae15cc7157..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/Introspection.md +++ /dev/null @@ -1,22 +0,0 @@ - -# Introspection - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **Boolean** | Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's \"active\" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a \"true\" value return for the \"active\" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time). | -**aud** | **List<String>** | Audience contains a list of the token's intended audiences. | [optional] -**clientId** | **String** | ClientID is aclient identifier for the OAuth 2.0 client that requested this token. | [optional] -**exp** | **Long** | Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire. | [optional] -**ext** | **Map<String, Object>** | Extra is arbitrary data set by the session. | [optional] -**iat** | **Long** | Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued. | [optional] -**iss** | **String** | IssuerURL is a string representing the issuer of this token | [optional] -**nbf** | **Long** | NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before. | [optional] -**obfuscatedSubject** | **String** | ObfuscatedSubject is set when the subject identifier algorithm was set to \"pairwise\" during authorization. It is the `sub` value of the ID Token that was issued. | [optional] -**scope** | **String** | Scope is a JSON string containing a space-separated list of scopes associated with this token. | [optional] -**sub** | **String** | Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token. | [optional] -**tokenType** | **String** | TokenType is the introspected token's type, for example `access_token` or `refresh_token`. | [optional] -**username** | **String** | Username is a human-readable identifier for the resource owner who authorized this token. | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/RequestDeniedError.md b/sdk/java/hydra-client-resttemplate/docs/RequestDeniedError.md deleted file mode 100644 index f6982ce53a8..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/RequestDeniedError.md +++ /dev/null @@ -1,14 +0,0 @@ - -# RequestDeniedError - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | **String** | name | [optional] -**errorDebug** | **String** | debug | [optional] -**errorDescription** | **String** | description | [optional] -**errorHint** | **String** | hint | [optional] -**statusCode** | **Long** | code | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/RequestHandlerResponse.md b/sdk/java/hydra-client-resttemplate/docs/RequestHandlerResponse.md deleted file mode 100644 index f11ef0020c3..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/RequestHandlerResponse.md +++ /dev/null @@ -1,10 +0,0 @@ - -# RequestHandlerResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**redirectTo** | **String** | RedirectURL is the URL which you should redirect the user to once the authentication process is completed. | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/SwaggerHealthStatus.md b/sdk/java/hydra-client-resttemplate/docs/SwaggerHealthStatus.md deleted file mode 100644 index 8489938c54c..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/SwaggerHealthStatus.md +++ /dev/null @@ -1,10 +0,0 @@ - -# SwaggerHealthStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **String** | Status always contains \"ok\". | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/SwaggerJSONWebKey.md b/sdk/java/hydra-client-resttemplate/docs/SwaggerJSONWebKey.md deleted file mode 100644 index efe28580f8b..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/SwaggerJSONWebKey.md +++ /dev/null @@ -1,26 +0,0 @@ - -# SwaggerJSONWebKey - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**alg** | **String** | The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. | -**crv** | **String** | crv | [optional] -**d** | **String** | d | [optional] -**dp** | **String** | dp | [optional] -**dq** | **String** | dq | [optional] -**e** | **String** | e | [optional] -**k** | **String** | k | [optional] -**kid** | **String** | The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string. | -**kty** | **String** | The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string. | -**n** | **String** | n | [optional] -**p** | **String** | p | [optional] -**q** | **String** | q | [optional] -**qi** | **String** | qi | [optional] -**use** | **String** | Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption). | -**x** | **String** | x | [optional] -**x5c** | **List<String>** | The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate. | [optional] -**y** | **String** | y | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/SwaggerJSONWebKeySet.md b/sdk/java/hydra-client-resttemplate/docs/SwaggerJSONWebKeySet.md deleted file mode 100644 index 1063064e4e3..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/SwaggerJSONWebKeySet.md +++ /dev/null @@ -1,10 +0,0 @@ - -# SwaggerJSONWebKeySet - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**keys** | [**List<SwaggerJSONWebKey>**](SwaggerJSONWebKey.md) | The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/SwaggerNotReadyStatus.md b/sdk/java/hydra-client-resttemplate/docs/SwaggerNotReadyStatus.md deleted file mode 100644 index 548402c3065..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/SwaggerNotReadyStatus.md +++ /dev/null @@ -1,10 +0,0 @@ - -# SwaggerNotReadyStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | **Map<String, String>** | Errors contains a list of errors that caused the not ready status. | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/SwaggerOAuthIntrospectionRequest.md b/sdk/java/hydra-client-resttemplate/docs/SwaggerOAuthIntrospectionRequest.md index 2ee69f7f233..f972f0ef628 100644 --- a/sdk/java/hydra-client-resttemplate/docs/SwaggerOAuthIntrospectionRequest.md +++ b/sdk/java/hydra-client-resttemplate/docs/SwaggerOAuthIntrospectionRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **scope** | **String** | 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. in: formData | [optional] -**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 [RFC6749], Section 5.1. This endpoint DOES NOT accept refresh tokens for validation. | +**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. | diff --git a/sdk/java/hydra-client-resttemplate/docs/SwaggerOAuthTokenResponse.md b/sdk/java/hydra-client-resttemplate/docs/SwaggerOAuthTokenResponse.md deleted file mode 100644 index 237b84fed40..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/SwaggerOAuthTokenResponse.md +++ /dev/null @@ -1,15 +0,0 @@ - -# SwaggerOAuthTokenResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessToken** | **String** | The access token issued by the authorization server. | [optional] -**expiresIn** | **Long** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional] -**idToken** | **Long** | To retrieve a refresh token request the id_token scope. | [optional] -**refreshToken** | **String** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional] -**scope** | **Long** | The scope of the access token | [optional] -**tokenType** | **String** | The type of the token issued | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/SwaggerVersion.md b/sdk/java/hydra-client-resttemplate/docs/SwaggerVersion.md deleted file mode 100644 index 4367a1fb34c..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/SwaggerVersion.md +++ /dev/null @@ -1,10 +0,0 @@ - -# SwaggerVersion - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**version** | **String** | Version is the service's version. | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/Swaggeroauth2TokenResponse.md b/sdk/java/hydra-client-resttemplate/docs/Swaggeroauth2TokenResponse.md deleted file mode 100644 index 1093ebe7927..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/Swaggeroauth2TokenResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - -# Swaggeroauth2TokenResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessToken** | **String** | access token | [optional] -**clientId** | **String** | refresh token | [optional] -**code** | **String** | token type | [optional] -**redirectUri** | **String** | expires in | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/docs/SwaggeruserinfoResponsePayload.md b/sdk/java/hydra-client-resttemplate/docs/SwaggeruserinfoResponsePayload.md deleted file mode 100644 index 0f18e1de151..00000000000 --- a/sdk/java/hydra-client-resttemplate/docs/SwaggeruserinfoResponsePayload.md +++ /dev/null @@ -1,28 +0,0 @@ - -# SwaggeruserinfoResponsePayload - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**birthdate** | **String** | End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates. | [optional] -**email** | **String** | End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7. | [optional] -**emailVerified** | **Boolean** | True if the End-User's e-mail address has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this e-mail address was controlled by the End-User at the time the verification was performed. The means by which an e-mail address is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. | [optional] -**familyName** | **String** | Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters. | [optional] -**gender** | **String** | End-User's gender. Values defined by this specification are female and male. Other values MAY be used when neither of the defined values are applicable. | [optional] -**givenName** | **String** | Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters. | [optional] -**locale** | **String** | End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well. | [optional] -**middleName** | **String** | Middle name(s) of the End-User. Note that in some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used. | [optional] -**name** | **String** | End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences. | [optional] -**nickname** | **String** | Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael. | [optional] -**phoneNumber** | **String** | End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678. | [optional] -**phoneNumberVerified** | **Boolean** | True if the End-User's phone number has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this phone number was controlled by the End-User at the time the verification was performed. The means by which a phone number is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. When true, the phone_number Claim MUST be in E.164 format and any extensions MUST be represented in RFC 3966 format. | [optional] -**picture** | **String** | URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User. | [optional] -**preferredUsername** | **String** | Non-unique shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as @, /, or whitespace. | [optional] -**profile** | **String** | URL of the End-User's profile page. The contents of this Web page SHOULD be about the End-User. | [optional] -**sub** | **String** | Subject - Identifier for the End-User at the IssuerURL. | [optional] -**updatedAt** | **Long** | Time the End-User's information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. | [optional] -**website** | **String** | URL of the End-User's Web page or blog. This Web page SHOULD contain information published by the End-User or an organization that the End-User is affiliated with. | [optional] -**zoneinfo** | **String** | String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles. | [optional] - - - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/ApiClient.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/ApiClient.java index aa3dd36cd1a..e1375d1c421 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/ApiClient.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/ApiClient.java @@ -50,7 +50,7 @@ import com.github.ory.hydra.auth.ApiKeyAuth; import com.github.ory.hydra.auth.OAuth; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") @Component("com.github.ory.hydra.ApiClient") public class ApiClient { public enum CollectionFormat { diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/AdminApi.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/AdminApi.java index a18b9ff870a..734a0884c2d 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/AdminApi.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/AdminApi.java @@ -37,7 +37,7 @@ import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") @Component("com.github.ory.hydra.api.AdminApi") public class AdminApi { private ApiClient apiClient; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/HealthApi.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/HealthApi.java index 714e9944973..daf29069f50 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/HealthApi.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/HealthApi.java @@ -25,7 +25,7 @@ import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") @Component("com.github.ory.hydra.api.HealthApi") public class HealthApi { private ApiClient apiClient; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/PublicApi.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/PublicApi.java index 1ff393d905a..4d2365a8ca4 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/PublicApi.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/PublicApi.java @@ -27,7 +27,7 @@ import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") @Component("com.github.ory.hydra.api.PublicApi") public class PublicApi { private ApiClient apiClient; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/VersionApi.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/VersionApi.java index bd73d66d934..46f7a1a0075 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/VersionApi.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/api/VersionApi.java @@ -23,7 +23,7 @@ import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") @Component("com.github.ory.hydra.api.VersionApi") public class VersionApi { private ApiClient apiClient; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/auth/ApiKeyAuth.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/auth/ApiKeyAuth.java index a45d29ebf71..0e47ea72737 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/auth/ApiKeyAuth.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/auth/ApiKeyAuth.java @@ -3,7 +3,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.util.MultiValueMap; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/auth/HttpBasicAuth.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/auth/HttpBasicAuth.java index 11b73d68dde..18a42c16044 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/auth/HttpBasicAuth.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/auth/HttpBasicAuth.java @@ -7,7 +7,7 @@ import org.springframework.util.Base64Utils; import org.springframework.util.MultiValueMap; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/auth/OAuth.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/auth/OAuth.java index cdb67a117bf..93094bc6034 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/auth/OAuth.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/auth/OAuth.java @@ -3,7 +3,7 @@ import org.springframework.http.HttpHeaders; import org.springframework.util.MultiValueMap; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class OAuth implements Authentication { private String accessToken; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AcceptConsentRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AcceptConsentRequest.java index 93cc885fef5..64bb1c66436 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AcceptConsentRequest.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AcceptConsentRequest.java @@ -26,7 +26,7 @@ /** * AcceptConsentRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class AcceptConsentRequest { @JsonProperty("grant_access_token_audience") private List<String> grantAccessTokenAudience = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AcceptLoginRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AcceptLoginRequest.java index d44bcf14c25..6b947748704 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AcceptLoginRequest.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AcceptLoginRequest.java @@ -26,7 +26,7 @@ /** * AcceptLoginRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class AcceptLoginRequest { @JsonProperty("acr") private String acr = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AuthenticationRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AuthenticationRequest.java deleted file mode 100644 index 4bd2a586f40..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AuthenticationRequest.java +++ /dev/null @@ -1,294 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import com.github.ory.hydra.model.Client; -import com.github.ory.hydra.model.OpenIDConnectContext; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; - -/** - * AuthenticationRequest - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class AuthenticationRequest { - @JsonProperty("challenge") - private String challenge = null; - - @JsonProperty("client") - private Client client = null; - - @JsonProperty("oidc_context") - private OpenIDConnectContext oidcContext = null; - - @JsonProperty("request_url") - private String requestUrl = null; - - @JsonProperty("requested_access_token_audience") - private List<String> requestedAccessTokenAudience = null; - - @JsonProperty("requested_scope") - private List<String> requestedScope = null; - - @JsonProperty("session_id") - private String sessionId = null; - - @JsonProperty("skip") - private Boolean skip = null; - - @JsonProperty("subject") - private String subject = null; - - public AuthenticationRequest challenge(String challenge) { - this.challenge = challenge; - return this; - } - - /** - * Challenge is the identifier (\"authentication challenge\") of the consent authentication request. It is used to identify the session. - * @return challenge - **/ - @ApiModelProperty(value = "Challenge is the identifier (\"authentication challenge\") of the consent authentication request. It is used to identify the session.") - public String getChallenge() { - return challenge; - } - - public void setChallenge(String challenge) { - this.challenge = challenge; - } - - public AuthenticationRequest client(Client client) { - this.client = client; - return this; - } - - /** - * Get client - * @return client - **/ - @ApiModelProperty(value = "") - public Client getClient() { - return client; - } - - public void setClient(Client client) { - this.client = client; - } - - public AuthenticationRequest oidcContext(OpenIDConnectContext oidcContext) { - this.oidcContext = oidcContext; - return this; - } - - /** - * Get oidcContext - * @return oidcContext - **/ - @ApiModelProperty(value = "") - public OpenIDConnectContext getOidcContext() { - return oidcContext; - } - - public void setOidcContext(OpenIDConnectContext oidcContext) { - this.oidcContext = oidcContext; - } - - public AuthenticationRequest requestUrl(String requestUrl) { - this.requestUrl = requestUrl; - return this; - } - - /** - * RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. - * @return requestUrl - **/ - @ApiModelProperty(value = "RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters.") - public String getRequestUrl() { - return requestUrl; - } - - public void setRequestUrl(String requestUrl) { - this.requestUrl = requestUrl; - } - - public AuthenticationRequest requestedAccessTokenAudience(List<String> requestedAccessTokenAudience) { - this.requestedAccessTokenAudience = requestedAccessTokenAudience; - return this; - } - - public AuthenticationRequest addRequestedAccessTokenAudienceItem(String requestedAccessTokenAudienceItem) { - if (this.requestedAccessTokenAudience == null) { - this.requestedAccessTokenAudience = new ArrayList<String>(); - } - this.requestedAccessTokenAudience.add(requestedAccessTokenAudienceItem); - return this; - } - - /** - * RequestedScope contains the access token audience as requested by the OAuth 2.0 Client. - * @return requestedAccessTokenAudience - **/ - @ApiModelProperty(value = "RequestedScope contains the access token audience as requested by the OAuth 2.0 Client.") - public List<String> getRequestedAccessTokenAudience() { - return requestedAccessTokenAudience; - } - - public void setRequestedAccessTokenAudience(List<String> requestedAccessTokenAudience) { - this.requestedAccessTokenAudience = requestedAccessTokenAudience; - } - - public AuthenticationRequest requestedScope(List<String> requestedScope) { - this.requestedScope = requestedScope; - return this; - } - - public AuthenticationRequest addRequestedScopeItem(String requestedScopeItem) { - if (this.requestedScope == null) { - this.requestedScope = new ArrayList<String>(); - } - this.requestedScope.add(requestedScopeItem); - return this; - } - - /** - * RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. - * @return requestedScope - **/ - @ApiModelProperty(value = "RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client.") - public List<String> getRequestedScope() { - return requestedScope; - } - - public void setRequestedScope(List<String> requestedScope) { - this.requestedScope = requestedScope; - } - - public AuthenticationRequest sessionId(String sessionId) { - this.sessionId = sessionId; - return this; - } - - /** - * SessionID is the authentication session ID. It is set if the browser had a valid authentication session at ORY Hydra during the login flow. It can be used to associate consecutive login requests by a certain user. - * @return sessionId - **/ - @ApiModelProperty(value = "SessionID is the authentication session ID. It is set if the browser had a valid authentication session at ORY Hydra during the login flow. It can be used to associate consecutive login requests by a certain user.") - public String getSessionId() { - return sessionId; - } - - public void setSessionId(String sessionId) { - this.sessionId = sessionId; - } - - public AuthenticationRequest skip(Boolean skip) { - this.skip = skip; - return this; - } - - /** - * Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. - * @return skip - **/ - @ApiModelProperty(value = "Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information.") - public Boolean getSkip() { - return skip; - } - - public void setSkip(Boolean skip) { - this.skip = skip; - } - - public AuthenticationRequest subject(String subject) { - this.subject = subject; - return this; - } - - /** - * Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. - * @return subject - **/ - @ApiModelProperty(value = "Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail.") - public String getSubject() { - return subject; - } - - public void setSubject(String subject) { - this.subject = subject; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AuthenticationRequest authenticationRequest = (AuthenticationRequest) o; - return Objects.equals(this.challenge, authenticationRequest.challenge) && - Objects.equals(this.client, authenticationRequest.client) && - Objects.equals(this.oidcContext, authenticationRequest.oidcContext) && - Objects.equals(this.requestUrl, authenticationRequest.requestUrl) && - Objects.equals(this.requestedAccessTokenAudience, authenticationRequest.requestedAccessTokenAudience) && - Objects.equals(this.requestedScope, authenticationRequest.requestedScope) && - Objects.equals(this.sessionId, authenticationRequest.sessionId) && - Objects.equals(this.skip, authenticationRequest.skip) && - Objects.equals(this.subject, authenticationRequest.subject); - } - - @Override - public int hashCode() { - return Objects.hash(challenge, client, oidcContext, requestUrl, requestedAccessTokenAudience, requestedScope, sessionId, skip, subject); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AuthenticationRequest {\n"); - - sb.append(" challenge: ").append(toIndentedString(challenge)).append("\n"); - sb.append(" client: ").append(toIndentedString(client)).append("\n"); - sb.append(" oidcContext: ").append(toIndentedString(oidcContext)).append("\n"); - sb.append(" requestUrl: ").append(toIndentedString(requestUrl)).append("\n"); - sb.append(" requestedAccessTokenAudience: ").append(toIndentedString(requestedAccessTokenAudience)).append("\n"); - sb.append(" requestedScope: ").append(toIndentedString(requestedScope)).append("\n"); - sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); - sb.append(" skip: ").append(toIndentedString(skip)).append("\n"); - sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AuthenticationSession.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AuthenticationSession.java deleted file mode 100644 index 7b967c0c0fc..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/AuthenticationSession.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import org.joda.time.DateTime; - -/** - * AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession authentication session - */ -@ApiModel(description = "AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession authentication session") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class AuthenticationSession { - @JsonProperty("AuthenticatedAt") - private DateTime authenticatedAt = null; - - @JsonProperty("ID") - private String ID = null; - - @JsonProperty("Subject") - private String subject = null; - - public AuthenticationSession authenticatedAt(DateTime authenticatedAt) { - this.authenticatedAt = authenticatedAt; - return this; - } - - /** - * authenticated at Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time - * @return authenticatedAt - **/ - @ApiModelProperty(value = "authenticated at Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time") - public DateTime getAuthenticatedAt() { - return authenticatedAt; - } - - public void setAuthenticatedAt(DateTime authenticatedAt) { - this.authenticatedAt = authenticatedAt; - } - - public AuthenticationSession ID(String ID) { - this.ID = ID; - return this; - } - - /** - * ID - * @return ID - **/ - @ApiModelProperty(value = "ID") - public String getID() { - return ID; - } - - public void setID(String ID) { - this.ID = ID; - } - - public AuthenticationSession subject(String subject) { - this.subject = subject; - return this; - } - - /** - * subject - * @return subject - **/ - @ApiModelProperty(value = "subject") - public String getSubject() { - return subject; - } - - public void setSubject(String subject) { - this.subject = subject; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AuthenticationSession authenticationSession = (AuthenticationSession) o; - return Objects.equals(this.authenticatedAt, authenticationSession.authenticatedAt) && - Objects.equals(this.ID, authenticationSession.ID) && - Objects.equals(this.subject, authenticationSession.subject); - } - - @Override - public int hashCode() { - return Objects.hash(authenticatedAt, ID, subject); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AuthenticationSession {\n"); - - sb.append(" authenticatedAt: ").append(toIndentedString(authenticatedAt)).append("\n"); - sb.append(" ID: ").append(toIndentedString(ID)).append("\n"); - sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Client.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Client.java deleted file mode 100644 index 918fee44d6e..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Client.java +++ /dev/null @@ -1,848 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import com.github.ory.hydra.model.SwaggerJSONWebKeySet; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import org.joda.time.DateTime; - -/** - * Client - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class Client { - @JsonProperty("allowed_cors_origins") - private List<String> allowedCorsOrigins = null; - - @JsonProperty("audience") - private List<String> audience = null; - - @JsonProperty("backchannel_logout_session_required") - private Boolean backchannelLogoutSessionRequired = null; - - @JsonProperty("backchannel_logout_uri") - private String backchannelLogoutUri = null; - - @JsonProperty("client_id") - private String clientId = null; - - @JsonProperty("client_name") - private String clientName = null; - - @JsonProperty("client_secret") - private String clientSecret = null; - - @JsonProperty("client_secret_expires_at") - private Long clientSecretExpiresAt = null; - - @JsonProperty("client_uri") - private String clientUri = null; - - @JsonProperty("contacts") - private List<String> contacts = null; - - @JsonProperty("created_at") - private DateTime createdAt = null; - - @JsonProperty("frontchannel_logout_session_required") - private Boolean frontchannelLogoutSessionRequired = null; - - @JsonProperty("frontchannel_logout_uri") - private String frontchannelLogoutUri = null; - - @JsonProperty("grant_types") - private List<String> grantTypes = null; - - @JsonProperty("jwks") - private SwaggerJSONWebKeySet jwks = null; - - @JsonProperty("jwks_uri") - private String jwksUri = null; - - @JsonProperty("logo_uri") - private String logoUri = null; - - @JsonProperty("owner") - private String owner = null; - - @JsonProperty("policy_uri") - private String policyUri = null; - - @JsonProperty("post_logout_redirect_uris") - private List<String> postLogoutRedirectUris = null; - - @JsonProperty("redirect_uris") - private List<String> redirectUris = null; - - @JsonProperty("request_object_signing_alg") - private String requestObjectSigningAlg = null; - - @JsonProperty("request_uris") - private List<String> requestUris = null; - - @JsonProperty("response_types") - private List<String> responseTypes = null; - - @JsonProperty("scope") - private String scope = null; - - @JsonProperty("sector_identifier_uri") - private String sectorIdentifierUri = null; - - @JsonProperty("subject_type") - private String subjectType = null; - - @JsonProperty("token_endpoint_auth_method") - private String tokenEndpointAuthMethod = null; - - @JsonProperty("tos_uri") - private String tosUri = null; - - @JsonProperty("updated_at") - private DateTime updatedAt = null; - - @JsonProperty("userinfo_signed_response_alg") - private String userinfoSignedResponseAlg = null; - - public Client allowedCorsOrigins(List<String> allowedCorsOrigins) { - this.allowedCorsOrigins = allowedCorsOrigins; - return this; - } - - public Client addAllowedCorsOriginsItem(String allowedCorsOriginsItem) { - if (this.allowedCorsOrigins == null) { - this.allowedCorsOrigins = new ArrayList<String>(); - } - this.allowedCorsOrigins.add(allowedCorsOriginsItem); - return this; - } - - /** - * AllowedCORSOrigins are one or more URLs (scheme://host[:port]) which are allowed to make CORS requests to the /oauth/token endpoint. If this array is empty, the sever's CORS origin configuration (`CORS_ALLOWED_ORIGINS`) will be used instead. If this array is set, the allowed origins are appended to the server's CORS origin configuration. Be aware that environment variable `CORS_ENABLED` MUST be set to `true` for this to work. - * @return allowedCorsOrigins - **/ - @ApiModelProperty(value = "AllowedCORSOrigins are one or more URLs (scheme://host[:port]) which are allowed to make CORS requests to the /oauth/token endpoint. If this array is empty, the sever's CORS origin configuration (`CORS_ALLOWED_ORIGINS`) will be used instead. If this array is set, the allowed origins are appended to the server's CORS origin configuration. Be aware that environment variable `CORS_ENABLED` MUST be set to `true` for this to work.") - public List<String> getAllowedCorsOrigins() { - return allowedCorsOrigins; - } - - public void setAllowedCorsOrigins(List<String> allowedCorsOrigins) { - this.allowedCorsOrigins = allowedCorsOrigins; - } - - public Client audience(List<String> audience) { - this.audience = audience; - return this; - } - - public Client addAudienceItem(String audienceItem) { - if (this.audience == null) { - this.audience = new ArrayList<String>(); - } - this.audience.add(audienceItem); - return this; - } - - /** - * Audience is a whitelist defining the audiences this client is allowed to request tokens for. An audience limits the applicability of an OAuth 2.0 Access Token to, for example, certain API endpoints. The value is a list of URLs. URLs MUST NOT contain whitespaces. - * @return audience - **/ - @ApiModelProperty(value = "Audience is a whitelist defining the audiences this client is allowed to request tokens for. An audience limits the applicability of an OAuth 2.0 Access Token to, for example, certain API endpoints. The value is a list of URLs. URLs MUST NOT contain whitespaces.") - public List<String> getAudience() { - return audience; - } - - public void setAudience(List<String> audience) { - this.audience = audience; - } - - public Client backchannelLogoutSessionRequired(Boolean backchannelLogoutSessionRequired) { - this.backchannelLogoutSessionRequired = backchannelLogoutSessionRequired; - return this; - } - - /** - * Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. - * @return backchannelLogoutSessionRequired - **/ - @ApiModelProperty(value = "Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false.") - public Boolean getBackchannelLogoutSessionRequired() { - return backchannelLogoutSessionRequired; - } - - public void setBackchannelLogoutSessionRequired(Boolean backchannelLogoutSessionRequired) { - this.backchannelLogoutSessionRequired = backchannelLogoutSessionRequired; - } - - public Client backchannelLogoutUri(String backchannelLogoutUri) { - this.backchannelLogoutUri = backchannelLogoutUri; - return this; - } - - /** - * RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. - * @return backchannelLogoutUri - **/ - @ApiModelProperty(value = "RP URL that will cause the RP to log itself out when sent a Logout Token by the OP.") - public String getBackchannelLogoutUri() { - return backchannelLogoutUri; - } - - public void setBackchannelLogoutUri(String backchannelLogoutUri) { - this.backchannelLogoutUri = backchannelLogoutUri; - } - - public Client clientId(String clientId) { - this.clientId = clientId; - return this; - } - - /** - * ClientID is the id for this client. - * @return clientId - **/ - @ApiModelProperty(value = "ClientID is the id for this client.") - public String getClientId() { - return clientId; - } - - public void setClientId(String clientId) { - this.clientId = clientId; - } - - public Client clientName(String clientName) { - this.clientName = clientName; - return this; - } - - /** - * Name is the human-readable string name of the client to be presented to the end-user during authorization. - * @return clientName - **/ - @ApiModelProperty(value = "Name is the human-readable string name of the client to be presented to the end-user during authorization.") - public String getClientName() { - return clientName; - } - - public void setClientName(String clientName) { - this.clientName = clientName; - } - - public Client clientSecret(String clientSecret) { - this.clientSecret = clientSecret; - return this; - } - - /** - * Secret is the client's secret. The secret will be included in the create request as cleartext, and then never again. The secret is stored using BCrypt so it is impossible to recover it. Tell your users that they need to write the secret down as it will not be made available again. - * @return clientSecret - **/ - @ApiModelProperty(value = "Secret is the client's secret. The secret will be included in the create request as cleartext, and then never again. The secret is stored using BCrypt so it is impossible to recover it. Tell your users that they need to write the secret down as it will not be made available again.") - public String getClientSecret() { - return clientSecret; - } - - public void setClientSecret(String clientSecret) { - this.clientSecret = clientSecret; - } - - public Client clientSecretExpiresAt(Long clientSecretExpiresAt) { - this.clientSecretExpiresAt = clientSecretExpiresAt; - return this; - } - - /** - * SecretExpiresAt is an integer holding the time at which the client secret will expire or 0 if it will not expire. The time is represented as the number of seconds from 1970-01-01T00:00:00Z as measured in UTC until the date/time of expiration. This feature is currently not supported and it's value will always be set to 0. - * @return clientSecretExpiresAt - **/ - @ApiModelProperty(value = "SecretExpiresAt is an integer holding the time at which the client secret will expire or 0 if it will not expire. The time is represented as the number of seconds from 1970-01-01T00:00:00Z as measured in UTC until the date/time of expiration. This feature is currently not supported and it's value will always be set to 0.") - public Long getClientSecretExpiresAt() { - return clientSecretExpiresAt; - } - - public void setClientSecretExpiresAt(Long clientSecretExpiresAt) { - this.clientSecretExpiresAt = clientSecretExpiresAt; - } - - public Client clientUri(String clientUri) { - this.clientUri = clientUri; - return this; - } - - /** - * ClientURI is an URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion. - * @return clientUri - **/ - @ApiModelProperty(value = "ClientURI is an URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion.") - public String getClientUri() { - return clientUri; - } - - public void setClientUri(String clientUri) { - this.clientUri = clientUri; - } - - public Client contacts(List<String> contacts) { - this.contacts = contacts; - return this; - } - - public Client addContactsItem(String contactsItem) { - if (this.contacts == null) { - this.contacts = new ArrayList<String>(); - } - this.contacts.add(contactsItem); - return this; - } - - /** - * Contacts is a array of strings representing ways to contact people responsible for this client, typically email addresses. - * @return contacts - **/ - @ApiModelProperty(value = "Contacts is a array of strings representing ways to contact people responsible for this client, typically email addresses.") - public List<String> getContacts() { - return contacts; - } - - public void setContacts(List<String> contacts) { - this.contacts = contacts; - } - - public Client createdAt(DateTime createdAt) { - this.createdAt = createdAt; - return this; - } - - /** - * CreatedAt returns the timestamp of the client's creation. Format: date-time - * @return createdAt - **/ - @ApiModelProperty(value = "CreatedAt returns the timestamp of the client's creation. Format: date-time") - public DateTime getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(DateTime createdAt) { - this.createdAt = createdAt; - } - - public Client frontchannelLogoutSessionRequired(Boolean frontchannelLogoutSessionRequired) { - this.frontchannelLogoutSessionRequired = frontchannelLogoutSessionRequired; - return this; - } - - /** - * Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used. If omitted, the default value is false. - * @return frontchannelLogoutSessionRequired - **/ - @ApiModelProperty(value = "Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used. If omitted, the default value is false.") - public Boolean getFrontchannelLogoutSessionRequired() { - return frontchannelLogoutSessionRequired; - } - - public void setFrontchannelLogoutSessionRequired(Boolean frontchannelLogoutSessionRequired) { - this.frontchannelLogoutSessionRequired = frontchannelLogoutSessionRequired; - } - - public Client frontchannelLogoutUri(String frontchannelLogoutUri) { - this.frontchannelLogoutUri = frontchannelLogoutUri; - return this; - } - - /** - * RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the request and to determine which of the potentially multiple sessions is to be logged out; if either is included, both MUST be. - * @return frontchannelLogoutUri - **/ - @ApiModelProperty(value = "RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the request and to determine which of the potentially multiple sessions is to be logged out; if either is included, both MUST be.") - public String getFrontchannelLogoutUri() { - return frontchannelLogoutUri; - } - - public void setFrontchannelLogoutUri(String frontchannelLogoutUri) { - this.frontchannelLogoutUri = frontchannelLogoutUri; - } - - public Client grantTypes(List<String> grantTypes) { - this.grantTypes = grantTypes; - return this; - } - - public Client addGrantTypesItem(String grantTypesItem) { - if (this.grantTypes == null) { - this.grantTypes = new ArrayList<String>(); - } - this.grantTypes.add(grantTypesItem); - return this; - } - - /** - * GrantTypes is an array of grant types the client is allowed to use. - * @return grantTypes - **/ - @ApiModelProperty(value = "GrantTypes is an array of grant types the client is allowed to use.") - public List<String> getGrantTypes() { - return grantTypes; - } - - public void setGrantTypes(List<String> grantTypes) { - this.grantTypes = grantTypes; - } - - public Client jwks(SwaggerJSONWebKeySet jwks) { - this.jwks = jwks; - return this; - } - - /** - * Get jwks - * @return jwks - **/ - @ApiModelProperty(value = "") - public SwaggerJSONWebKeySet getJwks() { - return jwks; - } - - public void setJwks(SwaggerJSONWebKeySet jwks) { - this.jwks = jwks; - } - - public Client jwksUri(String jwksUri) { - this.jwksUri = jwksUri; - return this; - } - - /** - * URL for the Client's JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains the signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the Client's encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate. - * @return jwksUri - **/ - @ApiModelProperty(value = "URL for the Client's JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains the signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the Client's encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate.") - public String getJwksUri() { - return jwksUri; - } - - public void setJwksUri(String jwksUri) { - this.jwksUri = jwksUri; - } - - public Client logoUri(String logoUri) { - this.logoUri = logoUri; - return this; - } - - /** - * LogoURI is an URL string that references a logo for the client. - * @return logoUri - **/ - @ApiModelProperty(value = "LogoURI is an URL string that references a logo for the client.") - public String getLogoUri() { - return logoUri; - } - - public void setLogoUri(String logoUri) { - this.logoUri = logoUri; - } - - public Client owner(String owner) { - this.owner = owner; - return this; - } - - /** - * Owner is a string identifying the owner of the OAuth 2.0 Client. - * @return owner - **/ - @ApiModelProperty(value = "Owner is a string identifying the owner of the OAuth 2.0 Client.") - public String getOwner() { - return owner; - } - - public void setOwner(String owner) { - this.owner = owner; - } - - public Client policyUri(String policyUri) { - this.policyUri = policyUri; - return this; - } - - /** - * PolicyURI is a URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data. - * @return policyUri - **/ - @ApiModelProperty(value = "PolicyURI is a URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data.") - public String getPolicyUri() { - return policyUri; - } - - public void setPolicyUri(String policyUri) { - this.policyUri = policyUri; - } - - public Client postLogoutRedirectUris(List<String> postLogoutRedirectUris) { - this.postLogoutRedirectUris = postLogoutRedirectUris; - return this; - } - - public Client addPostLogoutRedirectUrisItem(String postLogoutRedirectUrisItem) { - if (this.postLogoutRedirectUris == null) { - this.postLogoutRedirectUris = new ArrayList<String>(); - } - this.postLogoutRedirectUris.add(postLogoutRedirectUrisItem); - return this; - } - - /** - * Array of URLs supplied by the RP to which it MAY request that the End-User's User Agent be redirected using the post_logout_redirect_uri parameter after a logout has been performed. - * @return postLogoutRedirectUris - **/ - @ApiModelProperty(value = "Array of URLs supplied by the RP to which it MAY request that the End-User's User Agent be redirected using the post_logout_redirect_uri parameter after a logout has been performed.") - public List<String> getPostLogoutRedirectUris() { - return postLogoutRedirectUris; - } - - public void setPostLogoutRedirectUris(List<String> postLogoutRedirectUris) { - this.postLogoutRedirectUris = postLogoutRedirectUris; - } - - public Client redirectUris(List<String> redirectUris) { - this.redirectUris = redirectUris; - return this; - } - - public Client addRedirectUrisItem(String redirectUrisItem) { - if (this.redirectUris == null) { - this.redirectUris = new ArrayList<String>(); - } - this.redirectUris.add(redirectUrisItem); - return this; - } - - /** - * RedirectURIs is an array of allowed redirect urls for the client, for example http://mydomain/oauth/callback . - * @return redirectUris - **/ - @ApiModelProperty(value = "RedirectURIs is an array of allowed redirect urls for the client, for example http://mydomain/oauth/callback .") - public List<String> getRedirectUris() { - return redirectUris; - } - - public void setRedirectUris(List<String> redirectUris) { - this.redirectUris = redirectUris; - } - - public Client requestObjectSigningAlg(String requestObjectSigningAlg) { - this.requestObjectSigningAlg = requestObjectSigningAlg; - return this; - } - - /** - * JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. All Request Objects from this Client MUST be rejected, if not signed with this algorithm. - * @return requestObjectSigningAlg - **/ - @ApiModelProperty(value = "JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. All Request Objects from this Client MUST be rejected, if not signed with this algorithm.") - public String getRequestObjectSigningAlg() { - return requestObjectSigningAlg; - } - - public void setRequestObjectSigningAlg(String requestObjectSigningAlg) { - this.requestObjectSigningAlg = requestObjectSigningAlg; - } - - public Client requestUris(List<String> requestUris) { - this.requestUris = requestUris; - return this; - } - - public Client addRequestUrisItem(String requestUrisItem) { - if (this.requestUris == null) { - this.requestUris = new ArrayList<String>(); - } - this.requestUris.add(requestUrisItem); - return this; - } - - /** - * Array of request_uri values that are pre-registered by the RP for use at the OP. Servers MAY cache the contents of the files referenced by these URIs and not retrieve them at the time they are used in a request. OPs can require that request_uri values used be pre-registered with the require_request_uri_registration discovery parameter. - * @return requestUris - **/ - @ApiModelProperty(value = "Array of request_uri values that are pre-registered by the RP for use at the OP. Servers MAY cache the contents of the files referenced by these URIs and not retrieve them at the time they are used in a request. OPs can require that request_uri values used be pre-registered with the require_request_uri_registration discovery parameter.") - public List<String> getRequestUris() { - return requestUris; - } - - public void setRequestUris(List<String> requestUris) { - this.requestUris = requestUris; - } - - public Client responseTypes(List<String> responseTypes) { - this.responseTypes = responseTypes; - return this; - } - - public Client addResponseTypesItem(String responseTypesItem) { - if (this.responseTypes == null) { - this.responseTypes = new ArrayList<String>(); - } - this.responseTypes.add(responseTypesItem); - return this; - } - - /** - * ResponseTypes is an array of the OAuth 2.0 response type strings that the client can use at the authorization endpoint. - * @return responseTypes - **/ - @ApiModelProperty(value = "ResponseTypes is an array of the OAuth 2.0 response type strings that the client can use at the authorization endpoint.") - public List<String> getResponseTypes() { - return responseTypes; - } - - public void setResponseTypes(List<String> responseTypes) { - this.responseTypes = responseTypes; - } - - public Client scope(String scope) { - this.scope = scope; - return this; - } - - /** - * Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. - * @return scope - **/ - @ApiModelProperty(value = "Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens.") - public String getScope() { - return scope; - } - - public void setScope(String scope) { - this.scope = scope; - } - - public Client sectorIdentifierUri(String sectorIdentifierUri) { - this.sectorIdentifierUri = sectorIdentifierUri; - return this; - } - - /** - * URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. - * @return sectorIdentifierUri - **/ - @ApiModelProperty(value = "URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values.") - public String getSectorIdentifierUri() { - return sectorIdentifierUri; - } - - public void setSectorIdentifierUri(String sectorIdentifierUri) { - this.sectorIdentifierUri = sectorIdentifierUri; - } - - public Client subjectType(String subjectType) { - this.subjectType = subjectType; - return this; - } - - /** - * SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. - * @return subjectType - **/ - @ApiModelProperty(value = "SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`.") - public String getSubjectType() { - return subjectType; - } - - public void setSubjectType(String subjectType) { - this.subjectType = subjectType; - } - - public Client tokenEndpointAuthMethod(String tokenEndpointAuthMethod) { - this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; - return this; - } - - /** - * Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none. - * @return tokenEndpointAuthMethod - **/ - @ApiModelProperty(value = "Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none.") - public String getTokenEndpointAuthMethod() { - return tokenEndpointAuthMethod; - } - - public void setTokenEndpointAuthMethod(String tokenEndpointAuthMethod) { - this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; - } - - public Client tosUri(String tosUri) { - this.tosUri = tosUri; - return this; - } - - /** - * TermsOfServiceURI is a URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. - * @return tosUri - **/ - @ApiModelProperty(value = "TermsOfServiceURI is a URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client.") - public String getTosUri() { - return tosUri; - } - - public void setTosUri(String tosUri) { - this.tosUri = tosUri; - } - - public Client updatedAt(DateTime updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - /** - * UpdatedAt returns the timestamp of the last update. Format: date-time - * @return updatedAt - **/ - @ApiModelProperty(value = "UpdatedAt returns the timestamp of the last update. Format: date-time") - public DateTime getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(DateTime updatedAt) { - this.updatedAt = updatedAt; - } - - public Client userinfoSignedResponseAlg(String userinfoSignedResponseAlg) { - this.userinfoSignedResponseAlg = userinfoSignedResponseAlg; - return this; - } - - /** - * JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type. - * @return userinfoSignedResponseAlg - **/ - @ApiModelProperty(value = "JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type.") - public String getUserinfoSignedResponseAlg() { - return userinfoSignedResponseAlg; - } - - public void setUserinfoSignedResponseAlg(String userinfoSignedResponseAlg) { - this.userinfoSignedResponseAlg = userinfoSignedResponseAlg; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Client client = (Client) o; - return Objects.equals(this.allowedCorsOrigins, client.allowedCorsOrigins) && - Objects.equals(this.audience, client.audience) && - Objects.equals(this.backchannelLogoutSessionRequired, client.backchannelLogoutSessionRequired) && - Objects.equals(this.backchannelLogoutUri, client.backchannelLogoutUri) && - Objects.equals(this.clientId, client.clientId) && - Objects.equals(this.clientName, client.clientName) && - Objects.equals(this.clientSecret, client.clientSecret) && - Objects.equals(this.clientSecretExpiresAt, client.clientSecretExpiresAt) && - Objects.equals(this.clientUri, client.clientUri) && - Objects.equals(this.contacts, client.contacts) && - Objects.equals(this.createdAt, client.createdAt) && - Objects.equals(this.frontchannelLogoutSessionRequired, client.frontchannelLogoutSessionRequired) && - Objects.equals(this.frontchannelLogoutUri, client.frontchannelLogoutUri) && - Objects.equals(this.grantTypes, client.grantTypes) && - Objects.equals(this.jwks, client.jwks) && - Objects.equals(this.jwksUri, client.jwksUri) && - Objects.equals(this.logoUri, client.logoUri) && - Objects.equals(this.owner, client.owner) && - Objects.equals(this.policyUri, client.policyUri) && - Objects.equals(this.postLogoutRedirectUris, client.postLogoutRedirectUris) && - Objects.equals(this.redirectUris, client.redirectUris) && - Objects.equals(this.requestObjectSigningAlg, client.requestObjectSigningAlg) && - Objects.equals(this.requestUris, client.requestUris) && - Objects.equals(this.responseTypes, client.responseTypes) && - Objects.equals(this.scope, client.scope) && - Objects.equals(this.sectorIdentifierUri, client.sectorIdentifierUri) && - Objects.equals(this.subjectType, client.subjectType) && - Objects.equals(this.tokenEndpointAuthMethod, client.tokenEndpointAuthMethod) && - Objects.equals(this.tosUri, client.tosUri) && - Objects.equals(this.updatedAt, client.updatedAt) && - Objects.equals(this.userinfoSignedResponseAlg, client.userinfoSignedResponseAlg); - } - - @Override - public int hashCode() { - return Objects.hash(allowedCorsOrigins, audience, backchannelLogoutSessionRequired, backchannelLogoutUri, clientId, clientName, clientSecret, clientSecretExpiresAt, clientUri, contacts, createdAt, frontchannelLogoutSessionRequired, frontchannelLogoutUri, grantTypes, jwks, jwksUri, logoUri, owner, policyUri, postLogoutRedirectUris, redirectUris, requestObjectSigningAlg, requestUris, responseTypes, scope, sectorIdentifierUri, subjectType, tokenEndpointAuthMethod, tosUri, updatedAt, userinfoSignedResponseAlg); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Client {\n"); - - sb.append(" allowedCorsOrigins: ").append(toIndentedString(allowedCorsOrigins)).append("\n"); - sb.append(" audience: ").append(toIndentedString(audience)).append("\n"); - sb.append(" backchannelLogoutSessionRequired: ").append(toIndentedString(backchannelLogoutSessionRequired)).append("\n"); - sb.append(" backchannelLogoutUri: ").append(toIndentedString(backchannelLogoutUri)).append("\n"); - sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n"); - sb.append(" clientName: ").append(toIndentedString(clientName)).append("\n"); - sb.append(" clientSecret: ").append(toIndentedString(clientSecret)).append("\n"); - sb.append(" clientSecretExpiresAt: ").append(toIndentedString(clientSecretExpiresAt)).append("\n"); - sb.append(" clientUri: ").append(toIndentedString(clientUri)).append("\n"); - sb.append(" contacts: ").append(toIndentedString(contacts)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" frontchannelLogoutSessionRequired: ").append(toIndentedString(frontchannelLogoutSessionRequired)).append("\n"); - sb.append(" frontchannelLogoutUri: ").append(toIndentedString(frontchannelLogoutUri)).append("\n"); - sb.append(" grantTypes: ").append(toIndentedString(grantTypes)).append("\n"); - sb.append(" jwks: ").append(toIndentedString(jwks)).append("\n"); - sb.append(" jwksUri: ").append(toIndentedString(jwksUri)).append("\n"); - sb.append(" logoUri: ").append(toIndentedString(logoUri)).append("\n"); - sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); - sb.append(" policyUri: ").append(toIndentedString(policyUri)).append("\n"); - sb.append(" postLogoutRedirectUris: ").append(toIndentedString(postLogoutRedirectUris)).append("\n"); - sb.append(" redirectUris: ").append(toIndentedString(redirectUris)).append("\n"); - sb.append(" requestObjectSigningAlg: ").append(toIndentedString(requestObjectSigningAlg)).append("\n"); - sb.append(" requestUris: ").append(toIndentedString(requestUris)).append("\n"); - sb.append(" responseTypes: ").append(toIndentedString(responseTypes)).append("\n"); - sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); - sb.append(" sectorIdentifierUri: ").append(toIndentedString(sectorIdentifierUri)).append("\n"); - sb.append(" subjectType: ").append(toIndentedString(subjectType)).append("\n"); - sb.append(" tokenEndpointAuthMethod: ").append(toIndentedString(tokenEndpointAuthMethod)).append("\n"); - sb.append(" tosUri: ").append(toIndentedString(tosUri)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" userinfoSignedResponseAlg: ").append(toIndentedString(userinfoSignedResponseAlg)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/CompletedRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/CompletedRequest.java index 58b63071426..72c0243c269 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/CompletedRequest.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/CompletedRequest.java @@ -23,7 +23,7 @@ /** * CompletedRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class CompletedRequest { @JsonProperty("redirect_to") private String redirectTo = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/ConsentRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/ConsentRequest.java index 93e43cfc011..1fe90f7ca32 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/ConsentRequest.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/ConsentRequest.java @@ -29,7 +29,7 @@ /** * ConsentRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class ConsentRequest { @JsonProperty("acr") private String acr = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/ConsentRequestSession.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/ConsentRequestSession.java index f1bf095a5a1..114e6192f89 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/ConsentRequestSession.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/ConsentRequestSession.java @@ -26,7 +26,7 @@ /** * ConsentRequestSession */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class ConsentRequestSession { @JsonProperty("access_token") private Map<String, Object> accessToken = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/ConsentRequestSessionData.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/ConsentRequestSessionData.java deleted file mode 100644 index 263d0d2f175..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/ConsentRequestSessionData.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * ConsentRequestSessionData - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class ConsentRequestSessionData { - @JsonProperty("access_token") - private Map<String, Object> accessToken = null; - - @JsonProperty("id_token") - private Map<String, Object> idToken = null; - - public ConsentRequestSessionData accessToken(Map<String, Object> accessToken) { - this.accessToken = accessToken; - return this; - } - - public ConsentRequestSessionData putAccessTokenItem(String key, Object accessTokenItem) { - if (this.accessToken == null) { - this.accessToken = new HashMap<String, Object>(); - } - this.accessToken.put(key, accessTokenItem); - return this; - } - - /** - * AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! - * @return accessToken - **/ - @ApiModelProperty(value = "AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care!") - public Map<String, Object> getAccessToken() { - return accessToken; - } - - public void setAccessToken(Map<String, Object> accessToken) { - this.accessToken = accessToken; - } - - public ConsentRequestSessionData idToken(Map<String, Object> idToken) { - this.idToken = idToken; - return this; - } - - public ConsentRequestSessionData putIdTokenItem(String key, Object idTokenItem) { - if (this.idToken == null) { - this.idToken = new HashMap<String, Object>(); - } - this.idToken.put(key, idTokenItem); - return this; - } - - /** - * IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable by anyone that has access to the ID Challenge. Use with care! - * @return idToken - **/ - @ApiModelProperty(value = "IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable by anyone that has access to the ID Challenge. Use with care!") - public Map<String, Object> getIdToken() { - return idToken; - } - - public void setIdToken(Map<String, Object> idToken) { - this.idToken = idToken; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConsentRequestSessionData consentRequestSessionData = (ConsentRequestSessionData) o; - return Objects.equals(this.accessToken, consentRequestSessionData.accessToken) && - Objects.equals(this.idToken, consentRequestSessionData.idToken); - } - - @Override - public int hashCode() { - return Objects.hash(accessToken, idToken); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConsentRequestSessionData {\n"); - - sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n"); - sb.append(" idToken: ").append(toIndentedString(idToken)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/CreateRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/CreateRequest.java deleted file mode 100644 index 997e49bb90a..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/CreateRequest.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -/** - * CreateRequest create request - */ -@ApiModel(description = "CreateRequest create request") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class CreateRequest { - @JsonProperty("alg") - private String alg = null; - - @JsonProperty("kid") - private String kid = null; - - @JsonProperty("use") - private String use = null; - - public CreateRequest alg(String alg) { - this.alg = alg; - return this; - } - - /** - * The algorithm to be used for creating the key. Supports \"RS256\", \"ES512\", \"HS512\", and \"HS256\" - * @return alg - **/ - @ApiModelProperty(required = true, value = "The algorithm to be used for creating the key. Supports \"RS256\", \"ES512\", \"HS512\", and \"HS256\"") - public String getAlg() { - return alg; - } - - public void setAlg(String alg) { - this.alg = alg; - } - - public CreateRequest kid(String kid) { - this.kid = kid; - return this; - } - - /** - * The kid of the key to be created - * @return kid - **/ - @ApiModelProperty(required = true, value = "The kid of the key to be created") - public String getKid() { - return kid; - } - - public void setKid(String kid) { - this.kid = kid; - } - - public CreateRequest use(String use) { - this.use = use; - return this; - } - - /** - * The \"use\" (public key use) parameter identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Valid values are \"enc\" and \"sig\". - * @return use - **/ - @ApiModelProperty(required = true, value = "The \"use\" (public key use) parameter identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Valid values are \"enc\" and \"sig\".") - public String getUse() { - return use; - } - - public void setUse(String use) { - this.use = use; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateRequest createRequest = (CreateRequest) o; - return Objects.equals(this.alg, createRequest.alg) && - Objects.equals(this.kid, createRequest.kid) && - Objects.equals(this.use, createRequest.use); - } - - @Override - public int hashCode() { - return Objects.hash(alg, kid, use); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CreateRequest {\n"); - - sb.append(" alg: ").append(toIndentedString(alg)).append("\n"); - sb.append(" kid: ").append(toIndentedString(kid)).append("\n"); - sb.append(" use: ").append(toIndentedString(use)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/EmptyResponse.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/EmptyResponse.java index decdecc7eb9..11c1fa42f29 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/EmptyResponse.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/EmptyResponse.java @@ -17,10 +17,10 @@ import io.swagger.annotations.ApiModel; /** - * EmptyResponse Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. + * Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. */ -@ApiModel(description = "EmptyResponse Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@ApiModel(description = "Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201.") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class EmptyResponse { @Override diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/FlushInactiveOAuth2TokensRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/FlushInactiveOAuth2TokensRequest.java index 0845d8dea33..4c4d0afa399 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/FlushInactiveOAuth2TokensRequest.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/FlushInactiveOAuth2TokensRequest.java @@ -24,7 +24,7 @@ /** * FlushInactiveOAuth2TokensRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class FlushInactiveOAuth2TokensRequest { @JsonProperty("notAfter") private DateTime notAfter = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/GenericError.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/GenericError.java index a22b4db729d..ffdd011d155 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/GenericError.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/GenericError.java @@ -24,7 +24,7 @@ * Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred. */ @ApiModel(description = "Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class GenericError { @JsonProperty("error") private String error = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HandledAuthenticationRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HandledAuthenticationRequest.java deleted file mode 100644 index d710977c383..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HandledAuthenticationRequest.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -/** - * HandledAuthenticationRequest - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class HandledAuthenticationRequest { - @JsonProperty("acr") - private String acr = null; - - @JsonProperty("force_subject_identifier") - private String forceSubjectIdentifier = null; - - @JsonProperty("remember") - private Boolean remember = null; - - @JsonProperty("remember_for") - private Long rememberFor = null; - - @JsonProperty("subject") - private String subject = null; - - public HandledAuthenticationRequest acr(String acr) { - this.acr = acr; - return this; - } - - /** - * ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. - * @return acr - **/ - @ApiModelProperty(value = "ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication.") - public String getAcr() { - return acr; - } - - public void setAcr(String acr) { - this.acr = acr; - } - - public HandledAuthenticationRequest forceSubjectIdentifier(String forceSubjectIdentifier) { - this.forceSubjectIdentifier = forceSubjectIdentifier; - return this; - } - - /** - * ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. - * @return forceSubjectIdentifier - **/ - @ApiModelProperty(value = "ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail.") - public String getForceSubjectIdentifier() { - return forceSubjectIdentifier; - } - - public void setForceSubjectIdentifier(String forceSubjectIdentifier) { - this.forceSubjectIdentifier = forceSubjectIdentifier; - } - - public HandledAuthenticationRequest remember(Boolean remember) { - this.remember = remember; - return this; - } - - /** - * Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. - * @return remember - **/ - @ApiModelProperty(value = "Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again.") - public Boolean getRemember() { - return remember; - } - - public void setRemember(Boolean remember) { - this.remember = remember; - } - - public HandledAuthenticationRequest rememberFor(Long rememberFor) { - this.rememberFor = rememberFor; - return this; - } - - /** - * RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. - * @return rememberFor - **/ - @ApiModelProperty(value = "RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely.") - public Long getRememberFor() { - return rememberFor; - } - - public void setRememberFor(Long rememberFor) { - this.rememberFor = rememberFor; - } - - public HandledAuthenticationRequest subject(String subject) { - this.subject = subject; - return this; - } - - /** - * Subject is the user ID of the end-user that authenticated. - * @return subject - **/ - @ApiModelProperty(required = true, value = "Subject is the user ID of the end-user that authenticated.") - public String getSubject() { - return subject; - } - - public void setSubject(String subject) { - this.subject = subject; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - HandledAuthenticationRequest handledAuthenticationRequest = (HandledAuthenticationRequest) o; - return Objects.equals(this.acr, handledAuthenticationRequest.acr) && - Objects.equals(this.forceSubjectIdentifier, handledAuthenticationRequest.forceSubjectIdentifier) && - Objects.equals(this.remember, handledAuthenticationRequest.remember) && - Objects.equals(this.rememberFor, handledAuthenticationRequest.rememberFor) && - Objects.equals(this.subject, handledAuthenticationRequest.subject); - } - - @Override - public int hashCode() { - return Objects.hash(acr, forceSubjectIdentifier, remember, rememberFor, subject); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class HandledAuthenticationRequest {\n"); - - sb.append(" acr: ").append(toIndentedString(acr)).append("\n"); - sb.append(" forceSubjectIdentifier: ").append(toIndentedString(forceSubjectIdentifier)).append("\n"); - sb.append(" remember: ").append(toIndentedString(remember)).append("\n"); - sb.append(" rememberFor: ").append(toIndentedString(rememberFor)).append("\n"); - sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HandledConsentRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HandledConsentRequest.java deleted file mode 100644 index 2c483c88282..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HandledConsentRequest.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import com.github.ory.hydra.model.ConsentRequestSessionData; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; - -/** - * HandledConsentRequest - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class HandledConsentRequest { - @JsonProperty("grant_access_token_audience") - private List<String> grantAccessTokenAudience = null; - - @JsonProperty("grant_scope") - private List<String> grantScope = null; - - @JsonProperty("remember") - private Boolean remember = null; - - @JsonProperty("remember_for") - private Long rememberFor = null; - - @JsonProperty("session") - private ConsentRequestSessionData session = null; - - public HandledConsentRequest grantAccessTokenAudience(List<String> grantAccessTokenAudience) { - this.grantAccessTokenAudience = grantAccessTokenAudience; - return this; - } - - public HandledConsentRequest addGrantAccessTokenAudienceItem(String grantAccessTokenAudienceItem) { - if (this.grantAccessTokenAudience == null) { - this.grantAccessTokenAudience = new ArrayList<String>(); - } - this.grantAccessTokenAudience.add(grantAccessTokenAudienceItem); - return this; - } - - /** - * GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`. - * @return grantAccessTokenAudience - **/ - @ApiModelProperty(value = "GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`.") - public List<String> getGrantAccessTokenAudience() { - return grantAccessTokenAudience; - } - - public void setGrantAccessTokenAudience(List<String> grantAccessTokenAudience) { - this.grantAccessTokenAudience = grantAccessTokenAudience; - } - - public HandledConsentRequest grantScope(List<String> grantScope) { - this.grantScope = grantScope; - return this; - } - - public HandledConsentRequest addGrantScopeItem(String grantScopeItem) { - if (this.grantScope == null) { - this.grantScope = new ArrayList<String>(); - } - this.grantScope.add(grantScopeItem); - return this; - } - - /** - * GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`. - * @return grantScope - **/ - @ApiModelProperty(value = "GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`.") - public List<String> getGrantScope() { - return grantScope; - } - - public void setGrantScope(List<String> grantScope) { - this.grantScope = grantScope; - } - - public HandledConsentRequest remember(Boolean remember) { - this.remember = remember; - return this; - } - - /** - * Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. - * @return remember - **/ - @ApiModelProperty(value = "Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope.") - public Boolean getRemember() { - return remember; - } - - public void setRemember(Boolean remember) { - this.remember = remember; - } - - public HandledConsentRequest rememberFor(Long rememberFor) { - this.rememberFor = rememberFor; - return this; - } - - /** - * RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. - * @return rememberFor - **/ - @ApiModelProperty(value = "RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely.") - public Long getRememberFor() { - return rememberFor; - } - - public void setRememberFor(Long rememberFor) { - this.rememberFor = rememberFor; - } - - public HandledConsentRequest session(ConsentRequestSessionData session) { - this.session = session; - return this; - } - - /** - * Get session - * @return session - **/ - @ApiModelProperty(value = "") - public ConsentRequestSessionData getSession() { - return session; - } - - public void setSession(ConsentRequestSessionData session) { - this.session = session; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - HandledConsentRequest handledConsentRequest = (HandledConsentRequest) o; - return Objects.equals(this.grantAccessTokenAudience, handledConsentRequest.grantAccessTokenAudience) && - Objects.equals(this.grantScope, handledConsentRequest.grantScope) && - Objects.equals(this.remember, handledConsentRequest.remember) && - Objects.equals(this.rememberFor, handledConsentRequest.rememberFor) && - Objects.equals(this.session, handledConsentRequest.session); - } - - @Override - public int hashCode() { - return Objects.hash(grantAccessTokenAudience, grantScope, remember, rememberFor, session); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class HandledConsentRequest {\n"); - - sb.append(" grantAccessTokenAudience: ").append(toIndentedString(grantAccessTokenAudience)).append("\n"); - sb.append(" grantScope: ").append(toIndentedString(grantScope)).append("\n"); - sb.append(" remember: ").append(toIndentedString(remember)).append("\n"); - sb.append(" rememberFor: ").append(toIndentedString(rememberFor)).append("\n"); - sb.append(" session: ").append(toIndentedString(session)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HandledLoginRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HandledLoginRequest.java deleted file mode 100644 index 3f27926bce7..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HandledLoginRequest.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * HandledLoginRequest - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class HandledLoginRequest { - @JsonProperty("acr") - private String acr = null; - - @JsonProperty("context") - private Map<String, Object> context = null; - - @JsonProperty("force_subject_identifier") - private String forceSubjectIdentifier = null; - - @JsonProperty("remember") - private Boolean remember = null; - - @JsonProperty("remember_for") - private Long rememberFor = null; - - @JsonProperty("subject") - private String subject = null; - - public HandledLoginRequest acr(String acr) { - this.acr = acr; - return this; - } - - /** - * ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. - * @return acr - **/ - @ApiModelProperty(value = "ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication.") - public String getAcr() { - return acr; - } - - public void setAcr(String acr) { - this.acr = acr; - } - - public HandledLoginRequest context(Map<String, Object> context) { - this.context = context; - return this; - } - - public HandledLoginRequest putContextItem(String key, Object contextItem) { - if (this.context == null) { - this.context = new HashMap<String, Object>(); - } - this.context.put(key, contextItem); - return this; - } - - /** - * Context is an optional object which can hold arbitrary data. The data will be made available when fetching the consent request under the \"context\" field. This is useful in scenarios where login and consent endpoints share data. - * @return context - **/ - @ApiModelProperty(value = "Context is an optional object which can hold arbitrary data. The data will be made available when fetching the consent request under the \"context\" field. This is useful in scenarios where login and consent endpoints share data.") - public Map<String, Object> getContext() { - return context; - } - - public void setContext(Map<String, Object> context) { - this.context = context; - } - - public HandledLoginRequest forceSubjectIdentifier(String forceSubjectIdentifier) { - this.forceSubjectIdentifier = forceSubjectIdentifier; - return this; - } - - /** - * ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. - * @return forceSubjectIdentifier - **/ - @ApiModelProperty(value = "ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail.") - public String getForceSubjectIdentifier() { - return forceSubjectIdentifier; - } - - public void setForceSubjectIdentifier(String forceSubjectIdentifier) { - this.forceSubjectIdentifier = forceSubjectIdentifier; - } - - public HandledLoginRequest remember(Boolean remember) { - this.remember = remember; - return this; - } - - /** - * Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. - * @return remember - **/ - @ApiModelProperty(value = "Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again.") - public Boolean getRemember() { - return remember; - } - - public void setRemember(Boolean remember) { - this.remember = remember; - } - - public HandledLoginRequest rememberFor(Long rememberFor) { - this.rememberFor = rememberFor; - return this; - } - - /** - * RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. - * @return rememberFor - **/ - @ApiModelProperty(value = "RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely.") - public Long getRememberFor() { - return rememberFor; - } - - public void setRememberFor(Long rememberFor) { - this.rememberFor = rememberFor; - } - - public HandledLoginRequest subject(String subject) { - this.subject = subject; - return this; - } - - /** - * Subject is the user ID of the end-user that authenticated. - * @return subject - **/ - @ApiModelProperty(required = true, value = "Subject is the user ID of the end-user that authenticated.") - public String getSubject() { - return subject; - } - - public void setSubject(String subject) { - this.subject = subject; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - HandledLoginRequest handledLoginRequest = (HandledLoginRequest) o; - return Objects.equals(this.acr, handledLoginRequest.acr) && - Objects.equals(this.context, handledLoginRequest.context) && - Objects.equals(this.forceSubjectIdentifier, handledLoginRequest.forceSubjectIdentifier) && - Objects.equals(this.remember, handledLoginRequest.remember) && - Objects.equals(this.rememberFor, handledLoginRequest.rememberFor) && - Objects.equals(this.subject, handledLoginRequest.subject); - } - - @Override - public int hashCode() { - return Objects.hash(acr, context, forceSubjectIdentifier, remember, rememberFor, subject); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class HandledLoginRequest {\n"); - - sb.append(" acr: ").append(toIndentedString(acr)).append("\n"); - sb.append(" context: ").append(toIndentedString(context)).append("\n"); - sb.append(" forceSubjectIdentifier: ").append(toIndentedString(forceSubjectIdentifier)).append("\n"); - sb.append(" remember: ").append(toIndentedString(remember)).append("\n"); - sb.append(" rememberFor: ").append(toIndentedString(rememberFor)).append("\n"); - sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HealthNotReadyStatus.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HealthNotReadyStatus.java index 9c809fece6e..75a991e478d 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HealthNotReadyStatus.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HealthNotReadyStatus.java @@ -26,7 +26,7 @@ /** * HealthNotReadyStatus */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class HealthNotReadyStatus { @JsonProperty("errors") private Map<String, String> errors = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HealthStatus.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HealthStatus.java index 86bf120b944..9106063dd70 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HealthStatus.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/HealthStatus.java @@ -23,7 +23,7 @@ /** * HealthStatus */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class HealthStatus { @JsonProperty("status") private String status = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Introspection.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Introspection.java deleted file mode 100644 index dac70c23681..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Introspection.java +++ /dev/null @@ -1,387 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * https://tools.ietf.org/html/rfc7662 - */ -@ApiModel(description = "https://tools.ietf.org/html/rfc7662") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class Introspection { - @JsonProperty("active") - private Boolean active = null; - - @JsonProperty("aud") - private List<String> aud = null; - - @JsonProperty("client_id") - private String clientId = null; - - @JsonProperty("exp") - private Long exp = null; - - @JsonProperty("ext") - private Map<String, Object> ext = null; - - @JsonProperty("iat") - private Long iat = null; - - @JsonProperty("iss") - private String iss = null; - - @JsonProperty("nbf") - private Long nbf = null; - - @JsonProperty("obfuscated_subject") - private String obfuscatedSubject = null; - - @JsonProperty("scope") - private String scope = null; - - @JsonProperty("sub") - private String sub = null; - - @JsonProperty("token_type") - private String tokenType = null; - - @JsonProperty("username") - private String username = null; - - public Introspection active(Boolean active) { - this.active = active; - return this; - } - - /** - * Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's \"active\" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a \"true\" value return for the \"active\" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time). - * @return active - **/ - @ApiModelProperty(required = true, value = "Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's \"active\" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a \"true\" value return for the \"active\" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time).") - public Boolean getActive() { - return active; - } - - public void setActive(Boolean active) { - this.active = active; - } - - public Introspection aud(List<String> aud) { - this.aud = aud; - return this; - } - - public Introspection addAudItem(String audItem) { - if (this.aud == null) { - this.aud = new ArrayList<String>(); - } - this.aud.add(audItem); - return this; - } - - /** - * Audience contains a list of the token's intended audiences. - * @return aud - **/ - @ApiModelProperty(value = "Audience contains a list of the token's intended audiences.") - public List<String> getAud() { - return aud; - } - - public void setAud(List<String> aud) { - this.aud = aud; - } - - public Introspection clientId(String clientId) { - this.clientId = clientId; - return this; - } - - /** - * ClientID is aclient identifier for the OAuth 2.0 client that requested this token. - * @return clientId - **/ - @ApiModelProperty(value = "ClientID is aclient identifier for the OAuth 2.0 client that requested this token.") - public String getClientId() { - return clientId; - } - - public void setClientId(String clientId) { - this.clientId = clientId; - } - - public Introspection exp(Long exp) { - this.exp = exp; - return this; - } - - /** - * Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire. - * @return exp - **/ - @ApiModelProperty(value = "Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire.") - public Long getExp() { - return exp; - } - - public void setExp(Long exp) { - this.exp = exp; - } - - public Introspection ext(Map<String, Object> ext) { - this.ext = ext; - return this; - } - - public Introspection putExtItem(String key, Object extItem) { - if (this.ext == null) { - this.ext = new HashMap<String, Object>(); - } - this.ext.put(key, extItem); - return this; - } - - /** - * Extra is arbitrary data set by the session. - * @return ext - **/ - @ApiModelProperty(value = "Extra is arbitrary data set by the session.") - public Map<String, Object> getExt() { - return ext; - } - - public void setExt(Map<String, Object> ext) { - this.ext = ext; - } - - public Introspection iat(Long iat) { - this.iat = iat; - return this; - } - - /** - * Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued. - * @return iat - **/ - @ApiModelProperty(value = "Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued.") - public Long getIat() { - return iat; - } - - public void setIat(Long iat) { - this.iat = iat; - } - - public Introspection iss(String iss) { - this.iss = iss; - return this; - } - - /** - * IssuerURL is a string representing the issuer of this token - * @return iss - **/ - @ApiModelProperty(value = "IssuerURL is a string representing the issuer of this token") - public String getIss() { - return iss; - } - - public void setIss(String iss) { - this.iss = iss; - } - - public Introspection nbf(Long nbf) { - this.nbf = nbf; - return this; - } - - /** - * NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before. - * @return nbf - **/ - @ApiModelProperty(value = "NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before.") - public Long getNbf() { - return nbf; - } - - public void setNbf(Long nbf) { - this.nbf = nbf; - } - - public Introspection obfuscatedSubject(String obfuscatedSubject) { - this.obfuscatedSubject = obfuscatedSubject; - return this; - } - - /** - * ObfuscatedSubject is set when the subject identifier algorithm was set to \"pairwise\" during authorization. It is the `sub` value of the ID Token that was issued. - * @return obfuscatedSubject - **/ - @ApiModelProperty(value = "ObfuscatedSubject is set when the subject identifier algorithm was set to \"pairwise\" during authorization. It is the `sub` value of the ID Token that was issued.") - public String getObfuscatedSubject() { - return obfuscatedSubject; - } - - public void setObfuscatedSubject(String obfuscatedSubject) { - this.obfuscatedSubject = obfuscatedSubject; - } - - public Introspection scope(String scope) { - this.scope = scope; - return this; - } - - /** - * Scope is a JSON string containing a space-separated list of scopes associated with this token. - * @return scope - **/ - @ApiModelProperty(value = "Scope is a JSON string containing a space-separated list of scopes associated with this token.") - public String getScope() { - return scope; - } - - public void setScope(String scope) { - this.scope = scope; - } - - public Introspection sub(String sub) { - this.sub = sub; - return this; - } - - /** - * Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token. - * @return sub - **/ - @ApiModelProperty(value = "Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token.") - public String getSub() { - return sub; - } - - public void setSub(String sub) { - this.sub = sub; - } - - public Introspection tokenType(String tokenType) { - this.tokenType = tokenType; - return this; - } - - /** - * TokenType is the introspected token's type, for example `access_token` or `refresh_token`. - * @return tokenType - **/ - @ApiModelProperty(value = "TokenType is the introspected token's type, for example `access_token` or `refresh_token`.") - public String getTokenType() { - return tokenType; - } - - public void setTokenType(String tokenType) { - this.tokenType = tokenType; - } - - public Introspection username(String username) { - this.username = username; - return this; - } - - /** - * Username is a human-readable identifier for the resource owner who authorized this token. - * @return username - **/ - @ApiModelProperty(value = "Username is a human-readable identifier for the resource owner who authorized this token.") - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Introspection introspection = (Introspection) o; - return Objects.equals(this.active, introspection.active) && - Objects.equals(this.aud, introspection.aud) && - Objects.equals(this.clientId, introspection.clientId) && - Objects.equals(this.exp, introspection.exp) && - Objects.equals(this.ext, introspection.ext) && - Objects.equals(this.iat, introspection.iat) && - Objects.equals(this.iss, introspection.iss) && - Objects.equals(this.nbf, introspection.nbf) && - Objects.equals(this.obfuscatedSubject, introspection.obfuscatedSubject) && - Objects.equals(this.scope, introspection.scope) && - Objects.equals(this.sub, introspection.sub) && - Objects.equals(this.tokenType, introspection.tokenType) && - Objects.equals(this.username, introspection.username); - } - - @Override - public int hashCode() { - return Objects.hash(active, aud, clientId, exp, ext, iat, iss, nbf, obfuscatedSubject, scope, sub, tokenType, username); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Introspection {\n"); - - sb.append(" active: ").append(toIndentedString(active)).append("\n"); - sb.append(" aud: ").append(toIndentedString(aud)).append("\n"); - sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n"); - sb.append(" exp: ").append(toIndentedString(exp)).append("\n"); - sb.append(" ext: ").append(toIndentedString(ext)).append("\n"); - sb.append(" iat: ").append(toIndentedString(iat)).append("\n"); - sb.append(" iss: ").append(toIndentedString(iss)).append("\n"); - sb.append(" nbf: ").append(toIndentedString(nbf)).append("\n"); - sb.append(" obfuscatedSubject: ").append(toIndentedString(obfuscatedSubject)).append("\n"); - sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); - sb.append(" sub: ").append(toIndentedString(sub)).append("\n"); - sb.append(" tokenType: ").append(toIndentedString(tokenType)).append("\n"); - sb.append(" username: ").append(toIndentedString(username)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/JSONWebKey.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/JSONWebKey.java index 8d3619ae15b..3d16f0a6bcc 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/JSONWebKey.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/JSONWebKey.java @@ -25,7 +25,7 @@ /** * JSONWebKey */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class JSONWebKey { @JsonProperty("alg") private String alg = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/JSONWebKeySet.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/JSONWebKeySet.java index 26c2a7af3d7..fc2b1c15e0a 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/JSONWebKeySet.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/JSONWebKeySet.java @@ -26,7 +26,7 @@ /** * JSONWebKeySet */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class JSONWebKeySet { @JsonProperty("keys") private List<JSONWebKey> keys = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/JsonWebKeySetGeneratorRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/JsonWebKeySetGeneratorRequest.java index b87363f9b62..69bef83c607 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/JsonWebKeySetGeneratorRequest.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/JsonWebKeySetGeneratorRequest.java @@ -23,7 +23,7 @@ /** * JsonWebKeySetGeneratorRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class JsonWebKeySetGeneratorRequest { @JsonProperty("alg") private String alg = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/LoginRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/LoginRequest.java index a6d85303788..ed48a61ac4e 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/LoginRequest.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/LoginRequest.java @@ -27,7 +27,7 @@ /** * LoginRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class LoginRequest { @JsonProperty("challenge") private String challenge = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/LogoutRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/LogoutRequest.java index beae9063288..3cd08cd0d21 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/LogoutRequest.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/LogoutRequest.java @@ -23,7 +23,7 @@ /** * LogoutRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class LogoutRequest { @JsonProperty("request_url") private String requestUrl = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OAuth2Client.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OAuth2Client.java index 71914387d92..392171c9e61 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OAuth2Client.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OAuth2Client.java @@ -27,7 +27,7 @@ /** * OAuth2Client */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class OAuth2Client { @JsonProperty("allowed_cors_origins") private List<String> allowedCorsOrigins = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OAuth2TokenIntrospection.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OAuth2TokenIntrospection.java index 2f179be663a..8b9fbe4f20e 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OAuth2TokenIntrospection.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OAuth2TokenIntrospection.java @@ -28,7 +28,7 @@ * https://tools.ietf.org/html/rfc7662 */ @ApiModel(description = "https://tools.ietf.org/html/rfc7662") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class OAuth2TokenIntrospection { @JsonProperty("active") private Boolean active = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Oauth2TokenResponse.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Oauth2TokenResponse.java index 149852f9eed..554572f4128 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Oauth2TokenResponse.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Oauth2TokenResponse.java @@ -24,7 +24,7 @@ * The Access Token Response */ @ApiModel(description = "The Access Token Response") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class Oauth2TokenResponse { @JsonProperty("access_token") private String accessToken = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OauthTokenResponse.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OauthTokenResponse.java index bf4f75a282d..bd0f7c68865 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OauthTokenResponse.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OauthTokenResponse.java @@ -24,7 +24,7 @@ * The token response */ @ApiModel(description = "The token response") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class OauthTokenResponse { @JsonProperty("access_token") private String accessToken = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OpenIDConnectContext.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OpenIDConnectContext.java index 06b66004729..56c19f7f81a 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OpenIDConnectContext.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/OpenIDConnectContext.java @@ -27,7 +27,7 @@ /** * OpenIDConnectContext */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class OpenIDConnectContext { @JsonProperty("acr_values") private List<String> acrValues = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/PreviousConsentSession.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/PreviousConsentSession.java index 0e67a397f87..896d384d6ee 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/PreviousConsentSession.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/PreviousConsentSession.java @@ -28,7 +28,7 @@ * The response used to return used consent requests same as HandledLoginRequest, just with consent_request exposed as json */ @ApiModel(description = "The response used to return used consent requests same as HandledLoginRequest, just with consent_request exposed as json") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class PreviousConsentSession { @JsonProperty("consent_request") private ConsentRequest consentRequest = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/RejectRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/RejectRequest.java index 69493a059f2..f8b6035e0d9 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/RejectRequest.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/RejectRequest.java @@ -23,7 +23,7 @@ /** * RejectRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class RejectRequest { @JsonProperty("error") private String error = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/RequestDeniedError.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/RequestDeniedError.java deleted file mode 100644 index d7f75abb16d..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/RequestDeniedError.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -/** - * RequestDeniedError - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class RequestDeniedError { - @JsonProperty("error") - private String error = null; - - @JsonProperty("error_debug") - private String errorDebug = null; - - @JsonProperty("error_description") - private String errorDescription = null; - - @JsonProperty("error_hint") - private String errorHint = null; - - @JsonProperty("status_code") - private Long statusCode = null; - - public RequestDeniedError error(String error) { - this.error = error; - return this; - } - - /** - * name - * @return error - **/ - @ApiModelProperty(value = "name") - public String getError() { - return error; - } - - public void setError(String error) { - this.error = error; - } - - public RequestDeniedError errorDebug(String errorDebug) { - this.errorDebug = errorDebug; - return this; - } - - /** - * debug - * @return errorDebug - **/ - @ApiModelProperty(value = "debug") - public String getErrorDebug() { - return errorDebug; - } - - public void setErrorDebug(String errorDebug) { - this.errorDebug = errorDebug; - } - - public RequestDeniedError errorDescription(String errorDescription) { - this.errorDescription = errorDescription; - return this; - } - - /** - * description - * @return errorDescription - **/ - @ApiModelProperty(value = "description") - public String getErrorDescription() { - return errorDescription; - } - - public void setErrorDescription(String errorDescription) { - this.errorDescription = errorDescription; - } - - public RequestDeniedError errorHint(String errorHint) { - this.errorHint = errorHint; - return this; - } - - /** - * hint - * @return errorHint - **/ - @ApiModelProperty(value = "hint") - public String getErrorHint() { - return errorHint; - } - - public void setErrorHint(String errorHint) { - this.errorHint = errorHint; - } - - public RequestDeniedError statusCode(Long statusCode) { - this.statusCode = statusCode; - return this; - } - - /** - * code - * @return statusCode - **/ - @ApiModelProperty(value = "code") - public Long getStatusCode() { - return statusCode; - } - - public void setStatusCode(Long statusCode) { - this.statusCode = statusCode; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RequestDeniedError requestDeniedError = (RequestDeniedError) o; - return Objects.equals(this.error, requestDeniedError.error) && - Objects.equals(this.errorDebug, requestDeniedError.errorDebug) && - Objects.equals(this.errorDescription, requestDeniedError.errorDescription) && - Objects.equals(this.errorHint, requestDeniedError.errorHint) && - Objects.equals(this.statusCode, requestDeniedError.statusCode); - } - - @Override - public int hashCode() { - return Objects.hash(error, errorDebug, errorDescription, errorHint, statusCode); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RequestDeniedError {\n"); - - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append(" errorDebug: ").append(toIndentedString(errorDebug)).append("\n"); - sb.append(" errorDescription: ").append(toIndentedString(errorDescription)).append("\n"); - sb.append(" errorHint: ").append(toIndentedString(errorHint)).append("\n"); - sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/RequestHandlerResponse.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/RequestHandlerResponse.java deleted file mode 100644 index 3263a680fc7..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/RequestHandlerResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -/** - * RequestHandlerResponse - */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class RequestHandlerResponse { - @JsonProperty("redirect_to") - private String redirectTo = null; - - public RequestHandlerResponse redirectTo(String redirectTo) { - this.redirectTo = redirectTo; - return this; - } - - /** - * RedirectURL is the URL which you should redirect the user to once the authentication process is completed. - * @return redirectTo - **/ - @ApiModelProperty(value = "RedirectURL is the URL which you should redirect the user to once the authentication process is completed.") - public String getRedirectTo() { - return redirectTo; - } - - public void setRedirectTo(String redirectTo) { - this.redirectTo = redirectTo; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RequestHandlerResponse requestHandlerResponse = (RequestHandlerResponse) o; - return Objects.equals(this.redirectTo, requestHandlerResponse.redirectTo); - } - - @Override - public int hashCode() { - return Objects.hash(redirectTo); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RequestHandlerResponse {\n"); - - sb.append(" redirectTo: ").append(toIndentedString(redirectTo)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerFlushInactiveAccessTokens.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerFlushInactiveAccessTokens.java index 0a795794f08..982d09646ee 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerFlushInactiveAccessTokens.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerFlushInactiveAccessTokens.java @@ -22,10 +22,9 @@ import io.swagger.annotations.ApiModelProperty; /** - * SwaggerFlushInactiveAccessTokens swagger flush inactive access tokens + * SwaggerFlushInactiveAccessTokens */ -@ApiModel(description = "SwaggerFlushInactiveAccessTokens swagger flush inactive access tokens") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class SwaggerFlushInactiveAccessTokens { @JsonProperty("Body") private FlushInactiveOAuth2TokensRequest body = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerHealthStatus.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerHealthStatus.java deleted file mode 100644 index dfec257d928..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerHealthStatus.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -/** - * SwaggerHealthStatus swagger health status - */ -@ApiModel(description = "SwaggerHealthStatus swagger health status") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class SwaggerHealthStatus { - @JsonProperty("status") - private String status = null; - - public SwaggerHealthStatus status(String status) { - this.status = status; - return this; - } - - /** - * Status always contains \"ok\". - * @return status - **/ - @ApiModelProperty(value = "Status always contains \"ok\".") - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SwaggerHealthStatus swaggerHealthStatus = (SwaggerHealthStatus) o; - return Objects.equals(this.status, swaggerHealthStatus.status); - } - - @Override - public int hashCode() { - return Objects.hash(status); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SwaggerHealthStatus {\n"); - - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJSONWebKey.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJSONWebKey.java deleted file mode 100644 index 40358775b70..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJSONWebKey.java +++ /dev/null @@ -1,469 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; - -/** - * SwaggerJSONWebKey swagger JSON web key - */ -@ApiModel(description = "SwaggerJSONWebKey swagger JSON web key") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class SwaggerJSONWebKey { - @JsonProperty("alg") - private String alg = null; - - @JsonProperty("crv") - private String crv = null; - - @JsonProperty("d") - private String d = null; - - @JsonProperty("dp") - private String dp = null; - - @JsonProperty("dq") - private String dq = null; - - @JsonProperty("e") - private String e = null; - - @JsonProperty("k") - private String k = null; - - @JsonProperty("kid") - private String kid = null; - - @JsonProperty("kty") - private String kty = null; - - @JsonProperty("n") - private String n = null; - - @JsonProperty("p") - private String p = null; - - @JsonProperty("q") - private String q = null; - - @JsonProperty("qi") - private String qi = null; - - @JsonProperty("use") - private String use = null; - - @JsonProperty("x") - private String x = null; - - @JsonProperty("x5c") - private List<String> x5c = null; - - @JsonProperty("y") - private String y = null; - - public SwaggerJSONWebKey alg(String alg) { - this.alg = alg; - return this; - } - - /** - * The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. - * @return alg - **/ - @ApiModelProperty(required = true, value = "The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name.") - public String getAlg() { - return alg; - } - - public void setAlg(String alg) { - this.alg = alg; - } - - public SwaggerJSONWebKey crv(String crv) { - this.crv = crv; - return this; - } - - /** - * crv - * @return crv - **/ - @ApiModelProperty(value = "crv") - public String getCrv() { - return crv; - } - - public void setCrv(String crv) { - this.crv = crv; - } - - public SwaggerJSONWebKey d(String d) { - this.d = d; - return this; - } - - /** - * d - * @return d - **/ - @ApiModelProperty(value = "d") - public String getD() { - return d; - } - - public void setD(String d) { - this.d = d; - } - - public SwaggerJSONWebKey dp(String dp) { - this.dp = dp; - return this; - } - - /** - * dp - * @return dp - **/ - @ApiModelProperty(value = "dp") - public String getDp() { - return dp; - } - - public void setDp(String dp) { - this.dp = dp; - } - - public SwaggerJSONWebKey dq(String dq) { - this.dq = dq; - return this; - } - - /** - * dq - * @return dq - **/ - @ApiModelProperty(value = "dq") - public String getDq() { - return dq; - } - - public void setDq(String dq) { - this.dq = dq; - } - - public SwaggerJSONWebKey e(String e) { - this.e = e; - return this; - } - - /** - * e - * @return e - **/ - @ApiModelProperty(value = "e") - public String getE() { - return e; - } - - public void setE(String e) { - this.e = e; - } - - public SwaggerJSONWebKey k(String k) { - this.k = k; - return this; - } - - /** - * k - * @return k - **/ - @ApiModelProperty(value = "k") - public String getK() { - return k; - } - - public void setK(String k) { - this.k = k; - } - - public SwaggerJSONWebKey kid(String kid) { - this.kid = kid; - return this; - } - - /** - * The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string. - * @return kid - **/ - @ApiModelProperty(required = true, value = "The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string.") - public String getKid() { - return kid; - } - - public void setKid(String kid) { - this.kid = kid; - } - - public SwaggerJSONWebKey kty(String kty) { - this.kty = kty; - return this; - } - - /** - * The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string. - * @return kty - **/ - @ApiModelProperty(required = true, value = "The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string.") - public String getKty() { - return kty; - } - - public void setKty(String kty) { - this.kty = kty; - } - - public SwaggerJSONWebKey n(String n) { - this.n = n; - return this; - } - - /** - * n - * @return n - **/ - @ApiModelProperty(value = "n") - public String getN() { - return n; - } - - public void setN(String n) { - this.n = n; - } - - public SwaggerJSONWebKey p(String p) { - this.p = p; - return this; - } - - /** - * p - * @return p - **/ - @ApiModelProperty(value = "p") - public String getP() { - return p; - } - - public void setP(String p) { - this.p = p; - } - - public SwaggerJSONWebKey q(String q) { - this.q = q; - return this; - } - - /** - * q - * @return q - **/ - @ApiModelProperty(value = "q") - public String getQ() { - return q; - } - - public void setQ(String q) { - this.q = q; - } - - public SwaggerJSONWebKey qi(String qi) { - this.qi = qi; - return this; - } - - /** - * qi - * @return qi - **/ - @ApiModelProperty(value = "qi") - public String getQi() { - return qi; - } - - public void setQi(String qi) { - this.qi = qi; - } - - public SwaggerJSONWebKey use(String use) { - this.use = use; - return this; - } - - /** - * Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption). - * @return use - **/ - @ApiModelProperty(required = true, value = "Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption).") - public String getUse() { - return use; - } - - public void setUse(String use) { - this.use = use; - } - - public SwaggerJSONWebKey x(String x) { - this.x = x; - return this; - } - - /** - * x - * @return x - **/ - @ApiModelProperty(value = "x") - public String getX() { - return x; - } - - public void setX(String x) { - this.x = x; - } - - public SwaggerJSONWebKey x5c(List<String> x5c) { - this.x5c = x5c; - return this; - } - - public SwaggerJSONWebKey addX5cItem(String x5cItem) { - if (this.x5c == null) { - this.x5c = new ArrayList<String>(); - } - this.x5c.add(x5cItem); - return this; - } - - /** - * The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate. - * @return x5c - **/ - @ApiModelProperty(value = "The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate.") - public List<String> getX5c() { - return x5c; - } - - public void setX5c(List<String> x5c) { - this.x5c = x5c; - } - - public SwaggerJSONWebKey y(String y) { - this.y = y; - return this; - } - - /** - * y - * @return y - **/ - @ApiModelProperty(value = "y") - public String getY() { - return y; - } - - public void setY(String y) { - this.y = y; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SwaggerJSONWebKey swaggerJSONWebKey = (SwaggerJSONWebKey) o; - return Objects.equals(this.alg, swaggerJSONWebKey.alg) && - Objects.equals(this.crv, swaggerJSONWebKey.crv) && - Objects.equals(this.d, swaggerJSONWebKey.d) && - Objects.equals(this.dp, swaggerJSONWebKey.dp) && - Objects.equals(this.dq, swaggerJSONWebKey.dq) && - Objects.equals(this.e, swaggerJSONWebKey.e) && - Objects.equals(this.k, swaggerJSONWebKey.k) && - Objects.equals(this.kid, swaggerJSONWebKey.kid) && - Objects.equals(this.kty, swaggerJSONWebKey.kty) && - Objects.equals(this.n, swaggerJSONWebKey.n) && - Objects.equals(this.p, swaggerJSONWebKey.p) && - Objects.equals(this.q, swaggerJSONWebKey.q) && - Objects.equals(this.qi, swaggerJSONWebKey.qi) && - Objects.equals(this.use, swaggerJSONWebKey.use) && - Objects.equals(this.x, swaggerJSONWebKey.x) && - Objects.equals(this.x5c, swaggerJSONWebKey.x5c) && - Objects.equals(this.y, swaggerJSONWebKey.y); - } - - @Override - public int hashCode() { - return Objects.hash(alg, crv, d, dp, dq, e, k, kid, kty, n, p, q, qi, use, x, x5c, y); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SwaggerJSONWebKey {\n"); - - sb.append(" alg: ").append(toIndentedString(alg)).append("\n"); - sb.append(" crv: ").append(toIndentedString(crv)).append("\n"); - sb.append(" d: ").append(toIndentedString(d)).append("\n"); - sb.append(" dp: ").append(toIndentedString(dp)).append("\n"); - sb.append(" dq: ").append(toIndentedString(dq)).append("\n"); - sb.append(" e: ").append(toIndentedString(e)).append("\n"); - sb.append(" k: ").append(toIndentedString(k)).append("\n"); - sb.append(" kid: ").append(toIndentedString(kid)).append("\n"); - sb.append(" kty: ").append(toIndentedString(kty)).append("\n"); - sb.append(" n: ").append(toIndentedString(n)).append("\n"); - sb.append(" p: ").append(toIndentedString(p)).append("\n"); - sb.append(" q: ").append(toIndentedString(q)).append("\n"); - sb.append(" qi: ").append(toIndentedString(qi)).append("\n"); - sb.append(" use: ").append(toIndentedString(use)).append("\n"); - sb.append(" x: ").append(toIndentedString(x)).append("\n"); - sb.append(" x5c: ").append(toIndentedString(x5c)).append("\n"); - sb.append(" y: ").append(toIndentedString(y)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJSONWebKeySet.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJSONWebKeySet.java deleted file mode 100644 index 8a3acc99fbf..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJSONWebKeySet.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import com.github.ory.hydra.model.SwaggerJSONWebKey; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; - -/** - * SwaggerJSONWebKeySet swagger JSON web key set - */ -@ApiModel(description = "SwaggerJSONWebKeySet swagger JSON web key set") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class SwaggerJSONWebKeySet { - @JsonProperty("keys") - private List<SwaggerJSONWebKey> keys = null; - - public SwaggerJSONWebKeySet keys(List<SwaggerJSONWebKey> keys) { - this.keys = keys; - return this; - } - - public SwaggerJSONWebKeySet addKeysItem(SwaggerJSONWebKey keysItem) { - if (this.keys == null) { - this.keys = new ArrayList<SwaggerJSONWebKey>(); - } - this.keys.add(keysItem); - return this; - } - - /** - * The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. - * @return keys - **/ - @ApiModelProperty(value = "The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired.") - public List<SwaggerJSONWebKey> getKeys() { - return keys; - } - - public void setKeys(List<SwaggerJSONWebKey> keys) { - this.keys = keys; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SwaggerJSONWebKeySet swaggerJSONWebKeySet = (SwaggerJSONWebKeySet) o; - return Objects.equals(this.keys, swaggerJSONWebKeySet.keys); - } - - @Override - public int hashCode() { - return Objects.hash(keys); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SwaggerJSONWebKeySet {\n"); - - sb.append(" keys: ").append(toIndentedString(keys)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJsonWebKeyQuery.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJsonWebKeyQuery.java index 4a0af54057a..6d1439d5521 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJsonWebKeyQuery.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJsonWebKeyQuery.java @@ -23,7 +23,7 @@ /** * SwaggerJsonWebKeyQuery */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class SwaggerJsonWebKeyQuery { @JsonProperty("kid") private String kid = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkCreateSet.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkCreateSet.java index 0933e9288df..644c1282fcb 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkCreateSet.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkCreateSet.java @@ -24,7 +24,7 @@ /** * SwaggerJwkCreateSet */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class SwaggerJwkCreateSet { @JsonProperty("Body") private JsonWebKeySetGeneratorRequest body = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkSetQuery.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkSetQuery.java index dbe3a7ee057..0523a157f66 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkSetQuery.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkSetQuery.java @@ -23,7 +23,7 @@ /** * SwaggerJwkSetQuery */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class SwaggerJwkSetQuery { @JsonProperty("set") private String set = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkUpdateSet.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkUpdateSet.java index 939f0f4e90c..70c1af86013 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkUpdateSet.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkUpdateSet.java @@ -24,7 +24,7 @@ /** * SwaggerJwkUpdateSet */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class SwaggerJwkUpdateSet { @JsonProperty("Body") private JSONWebKeySet body = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkUpdateSetKey.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkUpdateSetKey.java index 73d1515633c..4413b774b04 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkUpdateSetKey.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerJwkUpdateSetKey.java @@ -24,7 +24,7 @@ /** * SwaggerJwkUpdateSetKey */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class SwaggerJwkUpdateSetKey { @JsonProperty("Body") private JSONWebKey body = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerNotReadyStatus.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerNotReadyStatus.java deleted file mode 100644 index d97d2f361fc..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerNotReadyStatus.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * SwaggerNotReadyStatus swagger not ready status - */ -@ApiModel(description = "SwaggerNotReadyStatus swagger not ready status") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class SwaggerNotReadyStatus { - @JsonProperty("errors") - private Map<String, String> errors = null; - - public SwaggerNotReadyStatus errors(Map<String, String> errors) { - this.errors = errors; - return this; - } - - public SwaggerNotReadyStatus putErrorsItem(String key, String errorsItem) { - if (this.errors == null) { - this.errors = new HashMap<String, String>(); - } - this.errors.put(key, errorsItem); - return this; - } - - /** - * Errors contains a list of errors that caused the not ready status. - * @return errors - **/ - @ApiModelProperty(value = "Errors contains a list of errors that caused the not ready status.") - public Map<String, String> getErrors() { - return errors; - } - - public void setErrors(Map<String, String> errors) { - this.errors = errors; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SwaggerNotReadyStatus swaggerNotReadyStatus = (SwaggerNotReadyStatus) o; - return Objects.equals(this.errors, swaggerNotReadyStatus.errors); - } - - @Override - public int hashCode() { - return Objects.hash(errors); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SwaggerNotReadyStatus {\n"); - - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerOAuthIntrospectionRequest.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerOAuthIntrospectionRequest.java index a70e7a4feed..0e3b477a982 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerOAuthIntrospectionRequest.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerOAuthIntrospectionRequest.java @@ -21,10 +21,9 @@ import io.swagger.annotations.ApiModelProperty; /** - * SwaggerOAuthIntrospectionRequest swagger o auth introspection request + * SwaggerOAuthIntrospectionRequest */ -@ApiModel(description = "SwaggerOAuthIntrospectionRequest swagger o auth introspection request") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class SwaggerOAuthIntrospectionRequest { @JsonProperty("scope") private String scope = null; @@ -56,10 +55,10 @@ public SwaggerOAuthIntrospectionRequest token(String token) { } /** - * The string value of the token. For access tokens, this is the \"access_token\" value returned from the token endpoint defined in OAuth 2.0 [RFC6749], Section 5.1. This endpoint DOES NOT accept refresh tokens for validation. + * 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. * @return token **/ - @ApiModelProperty(required = true, value = "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 [RFC6749], Section 5.1. This endpoint DOES NOT accept refresh tokens for validation.") + @ApiModelProperty(required = true, value = "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.") public String getToken() { return token; } diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerOAuthTokenResponse.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerOAuthTokenResponse.java deleted file mode 100644 index dd370cd7107..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerOAuthTokenResponse.java +++ /dev/null @@ -1,206 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -/** - * SwaggerOAuthTokenResponse The token response - */ -@ApiModel(description = "SwaggerOAuthTokenResponse The token response") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class SwaggerOAuthTokenResponse { - @JsonProperty("access_token") - private String accessToken = null; - - @JsonProperty("expires_in") - private Long expiresIn = null; - - @JsonProperty("id_token") - private Long idToken = null; - - @JsonProperty("refresh_token") - private String refreshToken = null; - - @JsonProperty("scope") - private Long scope = null; - - @JsonProperty("token_type") - private String tokenType = null; - - public SwaggerOAuthTokenResponse accessToken(String accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * The access token issued by the authorization server. - * @return accessToken - **/ - @ApiModelProperty(value = "The access token issued by the authorization server.") - public String getAccessToken() { - return accessToken; - } - - public void setAccessToken(String accessToken) { - this.accessToken = accessToken; - } - - public SwaggerOAuthTokenResponse expiresIn(Long expiresIn) { - this.expiresIn = expiresIn; - return this; - } - - /** - * The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. - * @return expiresIn - **/ - @ApiModelProperty(value = "The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated.") - public Long getExpiresIn() { - return expiresIn; - } - - public void setExpiresIn(Long expiresIn) { - this.expiresIn = expiresIn; - } - - public SwaggerOAuthTokenResponse idToken(Long idToken) { - this.idToken = idToken; - return this; - } - - /** - * To retrieve a refresh token request the id_token scope. - * @return idToken - **/ - @ApiModelProperty(value = "To retrieve a refresh token request the id_token scope.") - public Long getIdToken() { - return idToken; - } - - public void setIdToken(Long idToken) { - this.idToken = idToken; - } - - public SwaggerOAuthTokenResponse refreshToken(String refreshToken) { - this.refreshToken = refreshToken; - return this; - } - - /** - * The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. - * @return refreshToken - **/ - @ApiModelProperty(value = "The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request.") - public String getRefreshToken() { - return refreshToken; - } - - public void setRefreshToken(String refreshToken) { - this.refreshToken = refreshToken; - } - - public SwaggerOAuthTokenResponse scope(Long scope) { - this.scope = scope; - return this; - } - - /** - * The scope of the access token - * @return scope - **/ - @ApiModelProperty(value = "The scope of the access token") - public Long getScope() { - return scope; - } - - public void setScope(Long scope) { - this.scope = scope; - } - - public SwaggerOAuthTokenResponse tokenType(String tokenType) { - this.tokenType = tokenType; - return this; - } - - /** - * The type of the token issued - * @return tokenType - **/ - @ApiModelProperty(value = "The type of the token issued") - public String getTokenType() { - return tokenType; - } - - public void setTokenType(String tokenType) { - this.tokenType = tokenType; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SwaggerOAuthTokenResponse swaggerOAuthTokenResponse = (SwaggerOAuthTokenResponse) o; - return Objects.equals(this.accessToken, swaggerOAuthTokenResponse.accessToken) && - Objects.equals(this.expiresIn, swaggerOAuthTokenResponse.expiresIn) && - Objects.equals(this.idToken, swaggerOAuthTokenResponse.idToken) && - Objects.equals(this.refreshToken, swaggerOAuthTokenResponse.refreshToken) && - Objects.equals(this.scope, swaggerOAuthTokenResponse.scope) && - Objects.equals(this.tokenType, swaggerOAuthTokenResponse.tokenType); - } - - @Override - public int hashCode() { - return Objects.hash(accessToken, expiresIn, idToken, refreshToken, scope, tokenType); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SwaggerOAuthTokenResponse {\n"); - - sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n"); - sb.append(" expiresIn: ").append(toIndentedString(expiresIn)).append("\n"); - sb.append(" idToken: ").append(toIndentedString(idToken)).append("\n"); - sb.append(" refreshToken: ").append(toIndentedString(refreshToken)).append("\n"); - sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); - sb.append(" tokenType: ").append(toIndentedString(tokenType)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerRevokeOAuth2TokenParameters.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerRevokeOAuth2TokenParameters.java index fa658c5725e..47dc0945f3d 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerRevokeOAuth2TokenParameters.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerRevokeOAuth2TokenParameters.java @@ -21,10 +21,9 @@ import io.swagger.annotations.ApiModelProperty; /** - * SwaggerRevokeOAuth2TokenParameters swagger revoke o auth2 token parameters + * SwaggerRevokeOAuth2TokenParameters */ -@ApiModel(description = "SwaggerRevokeOAuth2TokenParameters swagger revoke o auth2 token parameters") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class SwaggerRevokeOAuth2TokenParameters { @JsonProperty("token") private String token = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerVersion.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerVersion.java deleted file mode 100644 index f1cd282187d..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggerVersion.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -/** - * SwaggerVersion swagger version - */ -@ApiModel(description = "SwaggerVersion swagger version") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class SwaggerVersion { - @JsonProperty("version") - private String version = null; - - public SwaggerVersion version(String version) { - this.version = version; - return this; - } - - /** - * Version is the service's version. - * @return version - **/ - @ApiModelProperty(value = "Version is the service's version.") - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SwaggerVersion swaggerVersion = (SwaggerVersion) o; - return Objects.equals(this.version, swaggerVersion.version); - } - - @Override - public int hashCode() { - return Objects.hash(version); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SwaggerVersion {\n"); - - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Swaggeroauth2TokenParameters.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Swaggeroauth2TokenParameters.java index a301d917141..ff8d02fed71 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Swaggeroauth2TokenParameters.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Swaggeroauth2TokenParameters.java @@ -21,10 +21,9 @@ import io.swagger.annotations.ApiModelProperty; /** - * Swaggeroauth2TokenParameters swaggeroauth2 token parameters + * Swaggeroauth2TokenParameters */ -@ApiModel(description = "Swaggeroauth2TokenParameters swaggeroauth2 token parameters") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class Swaggeroauth2TokenParameters { @JsonProperty("client_id") private String clientId = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Swaggeroauth2TokenResponse.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Swaggeroauth2TokenResponse.java deleted file mode 100644 index 766b23d9529..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Swaggeroauth2TokenResponse.java +++ /dev/null @@ -1,160 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -/** - * Swaggeroauth2TokenResponse The Access Token Response - */ -@ApiModel(description = "Swaggeroauth2TokenResponse The Access Token Response") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class Swaggeroauth2TokenResponse { - @JsonProperty("access_token") - private String accessToken = null; - - @JsonProperty("client_id") - private String clientId = null; - - @JsonProperty("code") - private String code = null; - - @JsonProperty("redirect_uri") - private String redirectUri = null; - - public Swaggeroauth2TokenResponse accessToken(String accessToken) { - this.accessToken = accessToken; - return this; - } - - /** - * access token - * @return accessToken - **/ - @ApiModelProperty(value = "access token") - public String getAccessToken() { - return accessToken; - } - - public void setAccessToken(String accessToken) { - this.accessToken = accessToken; - } - - public Swaggeroauth2TokenResponse clientId(String clientId) { - this.clientId = clientId; - return this; - } - - /** - * refresh token - * @return clientId - **/ - @ApiModelProperty(value = "refresh token") - public String getClientId() { - return clientId; - } - - public void setClientId(String clientId) { - this.clientId = clientId; - } - - public Swaggeroauth2TokenResponse code(String code) { - this.code = code; - return this; - } - - /** - * token type - * @return code - **/ - @ApiModelProperty(value = "token type") - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public Swaggeroauth2TokenResponse redirectUri(String redirectUri) { - this.redirectUri = redirectUri; - return this; - } - - /** - * expires in - * @return redirectUri - **/ - @ApiModelProperty(value = "expires in") - public String getRedirectUri() { - return redirectUri; - } - - public void setRedirectUri(String redirectUri) { - this.redirectUri = redirectUri; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Swaggeroauth2TokenResponse swaggeroauth2TokenResponse = (Swaggeroauth2TokenResponse) o; - return Objects.equals(this.accessToken, swaggeroauth2TokenResponse.accessToken) && - Objects.equals(this.clientId, swaggeroauth2TokenResponse.clientId) && - Objects.equals(this.code, swaggeroauth2TokenResponse.code) && - Objects.equals(this.redirectUri, swaggeroauth2TokenResponse.redirectUri); - } - - @Override - public int hashCode() { - return Objects.hash(accessToken, clientId, code, redirectUri); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Swaggeroauth2TokenResponse {\n"); - - sb.append(" accessToken: ").append(toIndentedString(accessToken)).append("\n"); - sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" redirectUri: ").append(toIndentedString(redirectUri)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggeruserinfoResponsePayload.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggeruserinfoResponsePayload.java deleted file mode 100644 index 4126536fd9a..00000000000 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/SwaggeruserinfoResponsePayload.java +++ /dev/null @@ -1,505 +0,0 @@ -/* - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.github.ory.hydra.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -/** - * SwaggeruserinfoResponsePayload The userinfo response - */ -@ApiModel(description = "SwaggeruserinfoResponsePayload The userinfo response") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") -public class SwaggeruserinfoResponsePayload { - @JsonProperty("birthdate") - private String birthdate = null; - - @JsonProperty("email") - private String email = null; - - @JsonProperty("email_verified") - private Boolean emailVerified = null; - - @JsonProperty("family_name") - private String familyName = null; - - @JsonProperty("gender") - private String gender = null; - - @JsonProperty("given_name") - private String givenName = null; - - @JsonProperty("locale") - private String locale = null; - - @JsonProperty("middle_name") - private String middleName = null; - - @JsonProperty("name") - private String name = null; - - @JsonProperty("nickname") - private String nickname = null; - - @JsonProperty("phone_number") - private String phoneNumber = null; - - @JsonProperty("phone_number_verified") - private Boolean phoneNumberVerified = null; - - @JsonProperty("picture") - private String picture = null; - - @JsonProperty("preferred_username") - private String preferredUsername = null; - - @JsonProperty("profile") - private String profile = null; - - @JsonProperty("sub") - private String sub = null; - - @JsonProperty("updated_at") - private Long updatedAt = null; - - @JsonProperty("website") - private String website = null; - - @JsonProperty("zoneinfo") - private String zoneinfo = null; - - public SwaggeruserinfoResponsePayload birthdate(String birthdate) { - this.birthdate = birthdate; - return this; - } - - /** - * End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates. - * @return birthdate - **/ - @ApiModelProperty(value = "End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates.") - public String getBirthdate() { - return birthdate; - } - - public void setBirthdate(String birthdate) { - this.birthdate = birthdate; - } - - public SwaggeruserinfoResponsePayload email(String email) { - this.email = email; - return this; - } - - /** - * End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7. - * @return email - **/ - @ApiModelProperty(value = "End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.") - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - public SwaggeruserinfoResponsePayload emailVerified(Boolean emailVerified) { - this.emailVerified = emailVerified; - return this; - } - - /** - * True if the End-User's e-mail address has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this e-mail address was controlled by the End-User at the time the verification was performed. The means by which an e-mail address is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. - * @return emailVerified - **/ - @ApiModelProperty(value = "True if the End-User's e-mail address has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this e-mail address was controlled by the End-User at the time the verification was performed. The means by which an e-mail address is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating.") - public Boolean getEmailVerified() { - return emailVerified; - } - - public void setEmailVerified(Boolean emailVerified) { - this.emailVerified = emailVerified; - } - - public SwaggeruserinfoResponsePayload familyName(String familyName) { - this.familyName = familyName; - return this; - } - - /** - * Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters. - * @return familyName - **/ - @ApiModelProperty(value = "Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.") - public String getFamilyName() { - return familyName; - } - - public void setFamilyName(String familyName) { - this.familyName = familyName; - } - - public SwaggeruserinfoResponsePayload gender(String gender) { - this.gender = gender; - return this; - } - - /** - * End-User's gender. Values defined by this specification are female and male. Other values MAY be used when neither of the defined values are applicable. - * @return gender - **/ - @ApiModelProperty(value = "End-User's gender. Values defined by this specification are female and male. Other values MAY be used when neither of the defined values are applicable.") - public String getGender() { - return gender; - } - - public void setGender(String gender) { - this.gender = gender; - } - - public SwaggeruserinfoResponsePayload givenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** - * Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters. - * @return givenName - **/ - @ApiModelProperty(value = "Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.") - public String getGivenName() { - return givenName; - } - - public void setGivenName(String givenName) { - this.givenName = givenName; - } - - public SwaggeruserinfoResponsePayload locale(String locale) { - this.locale = locale; - return this; - } - - /** - * End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well. - * @return locale - **/ - @ApiModelProperty(value = "End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.") - public String getLocale() { - return locale; - } - - public void setLocale(String locale) { - this.locale = locale; - } - - public SwaggeruserinfoResponsePayload middleName(String middleName) { - this.middleName = middleName; - return this; - } - - /** - * Middle name(s) of the End-User. Note that in some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used. - * @return middleName - **/ - @ApiModelProperty(value = "Middle name(s) of the End-User. Note that in some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used.") - public String getMiddleName() { - return middleName; - } - - public void setMiddleName(String middleName) { - this.middleName = middleName; - } - - public SwaggeruserinfoResponsePayload name(String name) { - this.name = name; - return this; - } - - /** - * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences. - * @return name - **/ - @ApiModelProperty(value = "End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SwaggeruserinfoResponsePayload nickname(String nickname) { - this.nickname = nickname; - return this; - } - - /** - * Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael. - * @return nickname - **/ - @ApiModelProperty(value = "Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael.") - public String getNickname() { - return nickname; - } - - public void setNickname(String nickname) { - this.nickname = nickname; - } - - public SwaggeruserinfoResponsePayload phoneNumber(String phoneNumber) { - this.phoneNumber = phoneNumber; - return this; - } - - /** - * End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678. - * @return phoneNumber - **/ - @ApiModelProperty(value = "End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.") - public String getPhoneNumber() { - return phoneNumber; - } - - public void setPhoneNumber(String phoneNumber) { - this.phoneNumber = phoneNumber; - } - - public SwaggeruserinfoResponsePayload phoneNumberVerified(Boolean phoneNumberVerified) { - this.phoneNumberVerified = phoneNumberVerified; - return this; - } - - /** - * True if the End-User's phone number has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this phone number was controlled by the End-User at the time the verification was performed. The means by which a phone number is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. When true, the phone_number Claim MUST be in E.164 format and any extensions MUST be represented in RFC 3966 format. - * @return phoneNumberVerified - **/ - @ApiModelProperty(value = "True if the End-User's phone number has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this phone number was controlled by the End-User at the time the verification was performed. The means by which a phone number is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. When true, the phone_number Claim MUST be in E.164 format and any extensions MUST be represented in RFC 3966 format.") - public Boolean getPhoneNumberVerified() { - return phoneNumberVerified; - } - - public void setPhoneNumberVerified(Boolean phoneNumberVerified) { - this.phoneNumberVerified = phoneNumberVerified; - } - - public SwaggeruserinfoResponsePayload picture(String picture) { - this.picture = picture; - return this; - } - - /** - * URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User. - * @return picture - **/ - @ApiModelProperty(value = "URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.") - public String getPicture() { - return picture; - } - - public void setPicture(String picture) { - this.picture = picture; - } - - public SwaggeruserinfoResponsePayload preferredUsername(String preferredUsername) { - this.preferredUsername = preferredUsername; - return this; - } - - /** - * Non-unique shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as @, /, or whitespace. - * @return preferredUsername - **/ - @ApiModelProperty(value = "Non-unique shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as @, /, or whitespace.") - public String getPreferredUsername() { - return preferredUsername; - } - - public void setPreferredUsername(String preferredUsername) { - this.preferredUsername = preferredUsername; - } - - public SwaggeruserinfoResponsePayload profile(String profile) { - this.profile = profile; - return this; - } - - /** - * URL of the End-User's profile page. The contents of this Web page SHOULD be about the End-User. - * @return profile - **/ - @ApiModelProperty(value = "URL of the End-User's profile page. The contents of this Web page SHOULD be about the End-User.") - public String getProfile() { - return profile; - } - - public void setProfile(String profile) { - this.profile = profile; - } - - public SwaggeruserinfoResponsePayload sub(String sub) { - this.sub = sub; - return this; - } - - /** - * Subject - Identifier for the End-User at the IssuerURL. - * @return sub - **/ - @ApiModelProperty(value = "Subject - Identifier for the End-User at the IssuerURL.") - public String getSub() { - return sub; - } - - public void setSub(String sub) { - this.sub = sub; - } - - public SwaggeruserinfoResponsePayload updatedAt(Long updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - /** - * Time the End-User's information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. - * @return updatedAt - **/ - @ApiModelProperty(value = "Time the End-User's information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time.") - public Long getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(Long updatedAt) { - this.updatedAt = updatedAt; - } - - public SwaggeruserinfoResponsePayload website(String website) { - this.website = website; - return this; - } - - /** - * URL of the End-User's Web page or blog. This Web page SHOULD contain information published by the End-User or an organization that the End-User is affiliated with. - * @return website - **/ - @ApiModelProperty(value = "URL of the End-User's Web page or blog. This Web page SHOULD contain information published by the End-User or an organization that the End-User is affiliated with.") - public String getWebsite() { - return website; - } - - public void setWebsite(String website) { - this.website = website; - } - - public SwaggeruserinfoResponsePayload zoneinfo(String zoneinfo) { - this.zoneinfo = zoneinfo; - return this; - } - - /** - * String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles. - * @return zoneinfo - **/ - @ApiModelProperty(value = "String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.") - public String getZoneinfo() { - return zoneinfo; - } - - public void setZoneinfo(String zoneinfo) { - this.zoneinfo = zoneinfo; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SwaggeruserinfoResponsePayload swaggeruserinfoResponsePayload = (SwaggeruserinfoResponsePayload) o; - return Objects.equals(this.birthdate, swaggeruserinfoResponsePayload.birthdate) && - Objects.equals(this.email, swaggeruserinfoResponsePayload.email) && - Objects.equals(this.emailVerified, swaggeruserinfoResponsePayload.emailVerified) && - Objects.equals(this.familyName, swaggeruserinfoResponsePayload.familyName) && - Objects.equals(this.gender, swaggeruserinfoResponsePayload.gender) && - Objects.equals(this.givenName, swaggeruserinfoResponsePayload.givenName) && - Objects.equals(this.locale, swaggeruserinfoResponsePayload.locale) && - Objects.equals(this.middleName, swaggeruserinfoResponsePayload.middleName) && - Objects.equals(this.name, swaggeruserinfoResponsePayload.name) && - Objects.equals(this.nickname, swaggeruserinfoResponsePayload.nickname) && - Objects.equals(this.phoneNumber, swaggeruserinfoResponsePayload.phoneNumber) && - Objects.equals(this.phoneNumberVerified, swaggeruserinfoResponsePayload.phoneNumberVerified) && - Objects.equals(this.picture, swaggeruserinfoResponsePayload.picture) && - Objects.equals(this.preferredUsername, swaggeruserinfoResponsePayload.preferredUsername) && - Objects.equals(this.profile, swaggeruserinfoResponsePayload.profile) && - Objects.equals(this.sub, swaggeruserinfoResponsePayload.sub) && - Objects.equals(this.updatedAt, swaggeruserinfoResponsePayload.updatedAt) && - Objects.equals(this.website, swaggeruserinfoResponsePayload.website) && - Objects.equals(this.zoneinfo, swaggeruserinfoResponsePayload.zoneinfo); - } - - @Override - public int hashCode() { - return Objects.hash(birthdate, email, emailVerified, familyName, gender, givenName, locale, middleName, name, nickname, phoneNumber, phoneNumberVerified, picture, preferredUsername, profile, sub, updatedAt, website, zoneinfo); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SwaggeruserinfoResponsePayload {\n"); - - sb.append(" birthdate: ").append(toIndentedString(birthdate)).append("\n"); - sb.append(" email: ").append(toIndentedString(email)).append("\n"); - sb.append(" emailVerified: ").append(toIndentedString(emailVerified)).append("\n"); - sb.append(" familyName: ").append(toIndentedString(familyName)).append("\n"); - sb.append(" gender: ").append(toIndentedString(gender)).append("\n"); - sb.append(" givenName: ").append(toIndentedString(givenName)).append("\n"); - sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); - sb.append(" middleName: ").append(toIndentedString(middleName)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" nickname: ").append(toIndentedString(nickname)).append("\n"); - sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); - sb.append(" phoneNumberVerified: ").append(toIndentedString(phoneNumberVerified)).append("\n"); - sb.append(" picture: ").append(toIndentedString(picture)).append("\n"); - sb.append(" preferredUsername: ").append(toIndentedString(preferredUsername)).append("\n"); - sb.append(" profile: ").append(toIndentedString(profile)).append("\n"); - sb.append(" sub: ").append(toIndentedString(sub)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" website: ").append(toIndentedString(website)).append("\n"); - sb.append(" zoneinfo: ").append(toIndentedString(zoneinfo)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/UserinfoResponse.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/UserinfoResponse.java index e2c19f27d67..e4d4dd69e38 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/UserinfoResponse.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/UserinfoResponse.java @@ -24,7 +24,7 @@ * The userinfo response */ @ApiModel(description = "The userinfo response") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class UserinfoResponse { @JsonProperty("birthdate") private String birthdate = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Version.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Version.java index 3c72914e139..324ce608737 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Version.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/Version.java @@ -23,7 +23,7 @@ /** * Version */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class Version { @JsonProperty("version") private String version = null; diff --git a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/WellKnown.java b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/WellKnown.java index 239eb6a0311..81e6f8407e9 100644 --- a/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/WellKnown.java +++ b/sdk/java/hydra-client-resttemplate/src/main/java/com/github/ory/hydra/model/WellKnown.java @@ -26,7 +26,7 @@ * It includes links to several endpoints (e.g. /oauth2/token) and exposes information on supported signature algorithms among others. */ @ApiModel(description = "It includes links to several endpoints (e.g. /oauth2/token) and exposes information on supported signature algorithms among others.") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-26T09:49:08.655+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-04-27T01:47:23.524+02:00") public class WellKnown { @JsonProperty("authorization_endpoint") private String authorizationEndpoint = null; diff --git a/sdk/js/swagger/README.md b/sdk/js/swagger/README.md index 12de52d9792..7df42a16edf 100644 --- a/sdk/js/swagger/README.md +++ b/sdk/js/swagger/README.md @@ -162,23 +162,14 @@ Class | Method | HTTP request | Description - [OryHydra.AcceptConsentRequest](docs/AcceptConsentRequest.md) - [OryHydra.AcceptLoginRequest](docs/AcceptLoginRequest.md) - - [OryHydra.AuthenticationRequest](docs/AuthenticationRequest.md) - - [OryHydra.AuthenticationSession](docs/AuthenticationSession.md) - - [OryHydra.Client](docs/Client.md) - [OryHydra.CompletedRequest](docs/CompletedRequest.md) - [OryHydra.ConsentRequest](docs/ConsentRequest.md) - [OryHydra.ConsentRequestSession](docs/ConsentRequestSession.md) - - [OryHydra.ConsentRequestSessionData](docs/ConsentRequestSessionData.md) - - [OryHydra.CreateRequest](docs/CreateRequest.md) - [OryHydra.EmptyResponse](docs/EmptyResponse.md) - [OryHydra.FlushInactiveOAuth2TokensRequest](docs/FlushInactiveOAuth2TokensRequest.md) - [OryHydra.GenericError](docs/GenericError.md) - - [OryHydra.HandledAuthenticationRequest](docs/HandledAuthenticationRequest.md) - - [OryHydra.HandledConsentRequest](docs/HandledConsentRequest.md) - - [OryHydra.HandledLoginRequest](docs/HandledLoginRequest.md) - [OryHydra.HealthNotReadyStatus](docs/HealthNotReadyStatus.md) - [OryHydra.HealthStatus](docs/HealthStatus.md) - - [OryHydra.Introspection](docs/Introspection.md) - [OryHydra.JSONWebKey](docs/JSONWebKey.md) - [OryHydra.JSONWebKeySet](docs/JSONWebKeySet.md) - [OryHydra.JsonWebKeySetGeneratorRequest](docs/JsonWebKeySetGeneratorRequest.md) @@ -191,25 +182,15 @@ Class | Method | HTTP request | Description - [OryHydra.OpenIDConnectContext](docs/OpenIDConnectContext.md) - [OryHydra.PreviousConsentSession](docs/PreviousConsentSession.md) - [OryHydra.RejectRequest](docs/RejectRequest.md) - - [OryHydra.RequestDeniedError](docs/RequestDeniedError.md) - - [OryHydra.RequestHandlerResponse](docs/RequestHandlerResponse.md) - [OryHydra.SwaggerFlushInactiveAccessTokens](docs/SwaggerFlushInactiveAccessTokens.md) - - [OryHydra.SwaggerHealthStatus](docs/SwaggerHealthStatus.md) - - [OryHydra.SwaggerJSONWebKey](docs/SwaggerJSONWebKey.md) - - [OryHydra.SwaggerJSONWebKeySet](docs/SwaggerJSONWebKeySet.md) - [OryHydra.SwaggerJsonWebKeyQuery](docs/SwaggerJsonWebKeyQuery.md) - [OryHydra.SwaggerJwkCreateSet](docs/SwaggerJwkCreateSet.md) - [OryHydra.SwaggerJwkSetQuery](docs/SwaggerJwkSetQuery.md) - [OryHydra.SwaggerJwkUpdateSet](docs/SwaggerJwkUpdateSet.md) - [OryHydra.SwaggerJwkUpdateSetKey](docs/SwaggerJwkUpdateSetKey.md) - - [OryHydra.SwaggerNotReadyStatus](docs/SwaggerNotReadyStatus.md) - [OryHydra.SwaggerOAuthIntrospectionRequest](docs/SwaggerOAuthIntrospectionRequest.md) - - [OryHydra.SwaggerOAuthTokenResponse](docs/SwaggerOAuthTokenResponse.md) - [OryHydra.SwaggerRevokeOAuth2TokenParameters](docs/SwaggerRevokeOAuth2TokenParameters.md) - - [OryHydra.SwaggerVersion](docs/SwaggerVersion.md) - [OryHydra.Swaggeroauth2TokenParameters](docs/Swaggeroauth2TokenParameters.md) - - [OryHydra.Swaggeroauth2TokenResponse](docs/Swaggeroauth2TokenResponse.md) - - [OryHydra.SwaggeruserinfoResponsePayload](docs/SwaggeruserinfoResponsePayload.md) - [OryHydra.UserinfoResponse](docs/UserinfoResponse.md) - [OryHydra.Version](docs/Version.md) - [OryHydra.WellKnown](docs/WellKnown.md) diff --git a/sdk/js/swagger/docs/AuthenticationRequest.md b/sdk/js/swagger/docs/AuthenticationRequest.md deleted file mode 100644 index 0b444f90b51..00000000000 --- a/sdk/js/swagger/docs/AuthenticationRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# OryHydra.AuthenticationRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**challenge** | **String** | Challenge is the identifier (\"authentication challenge\") of the consent authentication request. It is used to identify the session. | [optional] -**client** | [**Client**](Client.md) | | [optional] -**oidcContext** | [**OpenIDConnectContext**](OpenIDConnectContext.md) | | [optional] -**requestUrl** | **String** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | [optional] -**requestedAccessTokenAudience** | **[String]** | RequestedScope contains the access token audience as requested by the OAuth 2.0 Client. | [optional] -**requestedScope** | **[String]** | RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. | [optional] -**sessionId** | **String** | SessionID is the authentication session ID. It is set if the browser had a valid authentication session at ORY Hydra during the login flow. It can be used to associate consecutive login requests by a certain user. | [optional] -**skip** | **Boolean** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. | [optional] -**subject** | **String** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. | [optional] - - diff --git a/sdk/js/swagger/docs/AuthenticationSession.md b/sdk/js/swagger/docs/AuthenticationSession.md deleted file mode 100644 index 9dfbb1a8c50..00000000000 --- a/sdk/js/swagger/docs/AuthenticationSession.md +++ /dev/null @@ -1,10 +0,0 @@ -# OryHydra.AuthenticationSession - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authenticatedAt** | **Date** | authenticated at Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time | [optional] -**ID** | **String** | ID | [optional] -**subject** | **String** | subject | [optional] - - diff --git a/sdk/js/swagger/docs/Client.md b/sdk/js/swagger/docs/Client.md deleted file mode 100644 index da35a469461..00000000000 --- a/sdk/js/swagger/docs/Client.md +++ /dev/null @@ -1,38 +0,0 @@ -# OryHydra.Client - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowedCorsOrigins** | **[String]** | AllowedCORSOrigins are one or more URLs (scheme://host[:port]) which are allowed to make CORS requests to the /oauth/token endpoint. If this array is empty, the sever's CORS origin configuration (`CORS_ALLOWED_ORIGINS`) will be used instead. If this array is set, the allowed origins are appended to the server's CORS origin configuration. Be aware that environment variable `CORS_ENABLED` MUST be set to `true` for this to work. | [optional] -**audience** | **[String]** | Audience is a whitelist defining the audiences this client is allowed to request tokens for. An audience limits the applicability of an OAuth 2.0 Access Token to, for example, certain API endpoints. The value is a list of URLs. URLs MUST NOT contain whitespaces. | [optional] -**backchannelLogoutSessionRequired** | **Boolean** | Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. | [optional] -**backchannelLogoutUri** | **String** | RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. | [optional] -**clientId** | **String** | ClientID is the id for this client. | [optional] -**clientName** | **String** | Name is the human-readable string name of the client to be presented to the end-user during authorization. | [optional] -**clientSecret** | **String** | Secret is the client's secret. The secret will be included in the create request as cleartext, and then never again. The secret is stored using BCrypt so it is impossible to recover it. Tell your users that they need to write the secret down as it will not be made available again. | [optional] -**clientSecretExpiresAt** | **Number** | SecretExpiresAt is an integer holding the time at which the client secret will expire or 0 if it will not expire. The time is represented as the number of seconds from 1970-01-01T00:00:00Z as measured in UTC until the date/time of expiration. This feature is currently not supported and it's value will always be set to 0. | [optional] -**clientUri** | **String** | ClientURI is an URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion. | [optional] -**contacts** | **[String]** | Contacts is a array of strings representing ways to contact people responsible for this client, typically email addresses. | [optional] -**createdAt** | **Date** | CreatedAt returns the timestamp of the client's creation. Format: date-time | [optional] -**frontchannelLogoutSessionRequired** | **Boolean** | Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used. If omitted, the default value is false. | [optional] -**frontchannelLogoutUri** | **String** | RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the request and to determine which of the potentially multiple sessions is to be logged out; if either is included, both MUST be. | [optional] -**grantTypes** | **[String]** | GrantTypes is an array of grant types the client is allowed to use. | [optional] -**jwks** | [**SwaggerJSONWebKeySet**](SwaggerJSONWebKeySet.md) | | [optional] -**jwksUri** | **String** | URL for the Client's JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains the signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the Client's encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate. | [optional] -**logoUri** | **String** | LogoURI is an URL string that references a logo for the client. | [optional] -**owner** | **String** | Owner is a string identifying the owner of the OAuth 2.0 Client. | [optional] -**policyUri** | **String** | PolicyURI is a URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data. | [optional] -**postLogoutRedirectUris** | **[String]** | Array of URLs supplied by the RP to which it MAY request that the End-User's User Agent be redirected using the post_logout_redirect_uri parameter after a logout has been performed. | [optional] -**redirectUris** | **[String]** | RedirectURIs is an array of allowed redirect urls for the client, for example http://mydomain/oauth/callback . | [optional] -**requestObjectSigningAlg** | **String** | JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. All Request Objects from this Client MUST be rejected, if not signed with this algorithm. | [optional] -**requestUris** | **[String]** | Array of request_uri values that are pre-registered by the RP for use at the OP. Servers MAY cache the contents of the files referenced by these URIs and not retrieve them at the time they are used in a request. OPs can require that request_uri values used be pre-registered with the require_request_uri_registration discovery parameter. | [optional] -**responseTypes** | **[String]** | ResponseTypes is an array of the OAuth 2.0 response type strings that the client can use at the authorization endpoint. | [optional] -**scope** | **String** | Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] -**sectorIdentifierUri** | **String** | URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] -**subjectType** | **String** | SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] -**tokenEndpointAuthMethod** | **String** | Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none. | [optional] -**tosUri** | **String** | TermsOfServiceURI is a URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. | [optional] -**updatedAt** | **Date** | UpdatedAt returns the timestamp of the last update. Format: date-time | [optional] -**userinfoSignedResponseAlg** | **String** | JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type. | [optional] - - diff --git a/sdk/js/swagger/docs/ConsentRequestSessionData.md b/sdk/js/swagger/docs/ConsentRequestSessionData.md deleted file mode 100644 index 4b408d1dbdc..00000000000 --- a/sdk/js/swagger/docs/ConsentRequestSessionData.md +++ /dev/null @@ -1,9 +0,0 @@ -# OryHydra.ConsentRequestSessionData - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessToken** | **{String: Object}** | AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! | [optional] -**idToken** | **{String: Object}** | IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable by anyone that has access to the ID Challenge. Use with care! | [optional] - - diff --git a/sdk/js/swagger/docs/CreateRequest.md b/sdk/js/swagger/docs/CreateRequest.md deleted file mode 100644 index 7ce97740824..00000000000 --- a/sdk/js/swagger/docs/CreateRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# OryHydra.CreateRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**alg** | **String** | The algorithm to be used for creating the key. Supports \"RS256\", \"ES512\", \"HS512\", and \"HS256\" | -**kid** | **String** | The kid of the key to be created | -**use** | **String** | The \"use\" (public key use) parameter identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Valid values are \"enc\" and \"sig\". | - - diff --git a/sdk/js/swagger/docs/HandledAuthenticationRequest.md b/sdk/js/swagger/docs/HandledAuthenticationRequest.md deleted file mode 100644 index 4d740873989..00000000000 --- a/sdk/js/swagger/docs/HandledAuthenticationRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# OryHydra.HandledAuthenticationRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acr** | **String** | ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. | [optional] -**forceSubjectIdentifier** | **String** | ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. | [optional] -**remember** | **Boolean** | Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. | [optional] -**rememberFor** | **Number** | RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] -**subject** | **String** | Subject is the user ID of the end-user that authenticated. | - - diff --git a/sdk/js/swagger/docs/HandledConsentRequest.md b/sdk/js/swagger/docs/HandledConsentRequest.md deleted file mode 100644 index c218b2d8fb7..00000000000 --- a/sdk/js/swagger/docs/HandledConsentRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# OryHydra.HandledConsentRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**grantAccessTokenAudience** | **[String]** | GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`. | [optional] -**grantScope** | **[String]** | GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`. | [optional] -**remember** | **Boolean** | Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. | [optional] -**rememberFor** | **Number** | RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] -**session** | [**ConsentRequestSessionData**](ConsentRequestSessionData.md) | | [optional] - - diff --git a/sdk/js/swagger/docs/HandledLoginRequest.md b/sdk/js/swagger/docs/HandledLoginRequest.md deleted file mode 100644 index 78634bb5a31..00000000000 --- a/sdk/js/swagger/docs/HandledLoginRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# OryHydra.HandledLoginRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acr** | **String** | ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. | [optional] -**context** | **{String: Object}** | Context is an optional object which can hold arbitrary data. The data will be made available when fetching the consent request under the \"context\" field. This is useful in scenarios where login and consent endpoints share data. | [optional] -**forceSubjectIdentifier** | **String** | ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. | [optional] -**remember** | **Boolean** | Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. | [optional] -**rememberFor** | **Number** | RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] -**subject** | **String** | Subject is the user ID of the end-user that authenticated. | - - diff --git a/sdk/js/swagger/docs/Introspection.md b/sdk/js/swagger/docs/Introspection.md deleted file mode 100644 index f61374089a2..00000000000 --- a/sdk/js/swagger/docs/Introspection.md +++ /dev/null @@ -1,20 +0,0 @@ -# OryHydra.Introspection - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **Boolean** | Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's \"active\" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a \"true\" value return for the \"active\" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time). | -**aud** | **[String]** | Audience contains a list of the token's intended audiences. | [optional] -**clientId** | **String** | ClientID is aclient identifier for the OAuth 2.0 client that requested this token. | [optional] -**exp** | **Number** | Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire. | [optional] -**ext** | **{String: Object}** | Extra is arbitrary data set by the session. | [optional] -**iat** | **Number** | Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued. | [optional] -**iss** | **String** | IssuerURL is a string representing the issuer of this token | [optional] -**nbf** | **Number** | NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before. | [optional] -**obfuscatedSubject** | **String** | ObfuscatedSubject is set when the subject identifier algorithm was set to \"pairwise\" during authorization. It is the `sub` value of the ID Token that was issued. | [optional] -**scope** | **String** | Scope is a JSON string containing a space-separated list of scopes associated with this token. | [optional] -**sub** | **String** | Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token. | [optional] -**tokenType** | **String** | TokenType is the introspected token's type, for example `access_token` or `refresh_token`. | [optional] -**username** | **String** | Username is a human-readable identifier for the resource owner who authorized this token. | [optional] - - diff --git a/sdk/js/swagger/docs/RequestDeniedError.md b/sdk/js/swagger/docs/RequestDeniedError.md deleted file mode 100644 index f2ff5d679b5..00000000000 --- a/sdk/js/swagger/docs/RequestDeniedError.md +++ /dev/null @@ -1,12 +0,0 @@ -# OryHydra.RequestDeniedError - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | **String** | name | [optional] -**errorDebug** | **String** | debug | [optional] -**errorDescription** | **String** | description | [optional] -**errorHint** | **String** | hint | [optional] -**statusCode** | **Number** | code | [optional] - - diff --git a/sdk/js/swagger/docs/RequestHandlerResponse.md b/sdk/js/swagger/docs/RequestHandlerResponse.md deleted file mode 100644 index 11d68354a94..00000000000 --- a/sdk/js/swagger/docs/RequestHandlerResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# OryHydra.RequestHandlerResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**redirectTo** | **String** | RedirectURL is the URL which you should redirect the user to once the authentication process is completed. | [optional] - - diff --git a/sdk/js/swagger/docs/SwaggerHealthStatus.md b/sdk/js/swagger/docs/SwaggerHealthStatus.md deleted file mode 100644 index a740a565963..00000000000 --- a/sdk/js/swagger/docs/SwaggerHealthStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -# OryHydra.SwaggerHealthStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **String** | Status always contains \"ok\". | [optional] - - diff --git a/sdk/js/swagger/docs/SwaggerJSONWebKey.md b/sdk/js/swagger/docs/SwaggerJSONWebKey.md deleted file mode 100644 index cf6dac4e4fa..00000000000 --- a/sdk/js/swagger/docs/SwaggerJSONWebKey.md +++ /dev/null @@ -1,24 +0,0 @@ -# OryHydra.SwaggerJSONWebKey - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**alg** | **String** | The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. | -**crv** | **String** | crv | [optional] -**d** | **String** | d | [optional] -**dp** | **String** | dp | [optional] -**dq** | **String** | dq | [optional] -**e** | **String** | e | [optional] -**k** | **String** | k | [optional] -**kid** | **String** | The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string. | -**kty** | **String** | The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string. | -**n** | **String** | n | [optional] -**p** | **String** | p | [optional] -**q** | **String** | q | [optional] -**qi** | **String** | qi | [optional] -**use** | **String** | Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption). | -**x** | **String** | x | [optional] -**x5c** | **[String]** | The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate. | [optional] -**y** | **String** | y | [optional] - - diff --git a/sdk/js/swagger/docs/SwaggerJSONWebKeySet.md b/sdk/js/swagger/docs/SwaggerJSONWebKeySet.md deleted file mode 100644 index 4e02213a523..00000000000 --- a/sdk/js/swagger/docs/SwaggerJSONWebKeySet.md +++ /dev/null @@ -1,8 +0,0 @@ -# OryHydra.SwaggerJSONWebKeySet - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**keys** | [**[SwaggerJSONWebKey]**](SwaggerJSONWebKey.md) | The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. | [optional] - - diff --git a/sdk/js/swagger/docs/SwaggerNotReadyStatus.md b/sdk/js/swagger/docs/SwaggerNotReadyStatus.md deleted file mode 100644 index f759483170e..00000000000 --- a/sdk/js/swagger/docs/SwaggerNotReadyStatus.md +++ /dev/null @@ -1,8 +0,0 @@ -# OryHydra.SwaggerNotReadyStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | **{String: String}** | Errors contains a list of errors that caused the not ready status. | [optional] - - diff --git a/sdk/js/swagger/docs/SwaggerOAuthIntrospectionRequest.md b/sdk/js/swagger/docs/SwaggerOAuthIntrospectionRequest.md index bb1d0300ac0..eb9c6bcc059 100644 --- a/sdk/js/swagger/docs/SwaggerOAuthIntrospectionRequest.md +++ b/sdk/js/swagger/docs/SwaggerOAuthIntrospectionRequest.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **scope** | **String** | 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. in: formData | [optional] -**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 [RFC6749], Section 5.1. This endpoint DOES NOT accept refresh tokens for validation. | +**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. | diff --git a/sdk/js/swagger/docs/SwaggerOAuthTokenResponse.md b/sdk/js/swagger/docs/SwaggerOAuthTokenResponse.md deleted file mode 100644 index 370a7449154..00000000000 --- a/sdk/js/swagger/docs/SwaggerOAuthTokenResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# OryHydra.SwaggerOAuthTokenResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessToken** | **String** | The access token issued by the authorization server. | [optional] -**expiresIn** | **Number** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional] -**idToken** | **Number** | To retrieve a refresh token request the id_token scope. | [optional] -**refreshToken** | **String** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional] -**scope** | **Number** | The scope of the access token | [optional] -**tokenType** | **String** | The type of the token issued | [optional] - - diff --git a/sdk/js/swagger/docs/SwaggerVersion.md b/sdk/js/swagger/docs/SwaggerVersion.md deleted file mode 100644 index afdc7ccd387..00000000000 --- a/sdk/js/swagger/docs/SwaggerVersion.md +++ /dev/null @@ -1,8 +0,0 @@ -# OryHydra.SwaggerVersion - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**version** | **String** | Version is the service's version. | [optional] - - diff --git a/sdk/js/swagger/docs/Swaggeroauth2TokenResponse.md b/sdk/js/swagger/docs/Swaggeroauth2TokenResponse.md deleted file mode 100644 index 0058b64bfc6..00000000000 --- a/sdk/js/swagger/docs/Swaggeroauth2TokenResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# OryHydra.Swaggeroauth2TokenResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessToken** | **String** | access token | [optional] -**clientId** | **String** | refresh token | [optional] -**code** | **String** | token type | [optional] -**redirectUri** | **String** | expires in | [optional] - - diff --git a/sdk/js/swagger/docs/SwaggeruserinfoResponsePayload.md b/sdk/js/swagger/docs/SwaggeruserinfoResponsePayload.md deleted file mode 100644 index 5d8fbc6955b..00000000000 --- a/sdk/js/swagger/docs/SwaggeruserinfoResponsePayload.md +++ /dev/null @@ -1,26 +0,0 @@ -# OryHydra.SwaggeruserinfoResponsePayload - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**birthdate** | **String** | End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates. | [optional] -**email** | **String** | End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7. | [optional] -**emailVerified** | **Boolean** | True if the End-User's e-mail address has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this e-mail address was controlled by the End-User at the time the verification was performed. The means by which an e-mail address is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. | [optional] -**familyName** | **String** | Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters. | [optional] -**gender** | **String** | End-User's gender. Values defined by this specification are female and male. Other values MAY be used when neither of the defined values are applicable. | [optional] -**givenName** | **String** | Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters. | [optional] -**locale** | **String** | End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well. | [optional] -**middleName** | **String** | Middle name(s) of the End-User. Note that in some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used. | [optional] -**name** | **String** | End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences. | [optional] -**nickname** | **String** | Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael. | [optional] -**phoneNumber** | **String** | End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678. | [optional] -**phoneNumberVerified** | **Boolean** | True if the End-User's phone number has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this phone number was controlled by the End-User at the time the verification was performed. The means by which a phone number is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. When true, the phone_number Claim MUST be in E.164 format and any extensions MUST be represented in RFC 3966 format. | [optional] -**picture** | **String** | URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User. | [optional] -**preferredUsername** | **String** | Non-unique shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as @, /, or whitespace. | [optional] -**profile** | **String** | URL of the End-User's profile page. The contents of this Web page SHOULD be about the End-User. | [optional] -**sub** | **String** | Subject - Identifier for the End-User at the IssuerURL. | [optional] -**updatedAt** | **Number** | Time the End-User's information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. | [optional] -**website** | **String** | URL of the End-User's Web page or blog. This Web page SHOULD contain information published by the End-User or an organization that the End-User is affiliated with. | [optional] -**zoneinfo** | **String** | String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles. | [optional] - - diff --git a/sdk/js/swagger/src/index.js b/sdk/js/swagger/src/index.js index 359d297cf80..b244c7558bf 100644 --- a/sdk/js/swagger/src/index.js +++ b/sdk/js/swagger/src/index.js @@ -16,12 +16,12 @@ (function(factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/AcceptConsentRequest', 'model/AcceptLoginRequest', 'model/AuthenticationRequest', 'model/AuthenticationSession', 'model/Client', 'model/CompletedRequest', 'model/ConsentRequest', 'model/ConsentRequestSession', 'model/ConsentRequestSessionData', 'model/CreateRequest', 'model/EmptyResponse', 'model/FlushInactiveOAuth2TokensRequest', 'model/GenericError', 'model/HandledAuthenticationRequest', 'model/HandledConsentRequest', 'model/HandledLoginRequest', 'model/HealthNotReadyStatus', 'model/HealthStatus', 'model/Introspection', 'model/JSONWebKey', 'model/JSONWebKeySet', 'model/JsonWebKeySetGeneratorRequest', 'model/LoginRequest', 'model/LogoutRequest', 'model/OAuth2Client', 'model/OAuth2TokenIntrospection', 'model/Oauth2TokenResponse', 'model/OauthTokenResponse', 'model/OpenIDConnectContext', 'model/PreviousConsentSession', 'model/RejectRequest', 'model/RequestDeniedError', 'model/RequestHandlerResponse', 'model/SwaggerFlushInactiveAccessTokens', 'model/SwaggerHealthStatus', 'model/SwaggerJSONWebKey', 'model/SwaggerJSONWebKeySet', 'model/SwaggerJsonWebKeyQuery', 'model/SwaggerJwkCreateSet', 'model/SwaggerJwkSetQuery', 'model/SwaggerJwkUpdateSet', 'model/SwaggerJwkUpdateSetKey', 'model/SwaggerNotReadyStatus', 'model/SwaggerOAuthIntrospectionRequest', 'model/SwaggerOAuthTokenResponse', 'model/SwaggerRevokeOAuth2TokenParameters', 'model/SwaggerVersion', 'model/Swaggeroauth2TokenParameters', 'model/Swaggeroauth2TokenResponse', 'model/SwaggeruserinfoResponsePayload', 'model/UserinfoResponse', 'model/Version', 'model/WellKnown', 'api/AdminApi', 'api/HealthApi', 'api/PublicApi', 'api/VersionApi'], factory); + define(['ApiClient', 'model/AcceptConsentRequest', 'model/AcceptLoginRequest', 'model/CompletedRequest', 'model/ConsentRequest', 'model/ConsentRequestSession', 'model/EmptyResponse', 'model/FlushInactiveOAuth2TokensRequest', 'model/GenericError', 'model/HealthNotReadyStatus', 'model/HealthStatus', 'model/JSONWebKey', 'model/JSONWebKeySet', 'model/JsonWebKeySetGeneratorRequest', 'model/LoginRequest', 'model/LogoutRequest', 'model/OAuth2Client', 'model/OAuth2TokenIntrospection', 'model/Oauth2TokenResponse', 'model/OauthTokenResponse', 'model/OpenIDConnectContext', 'model/PreviousConsentSession', 'model/RejectRequest', 'model/SwaggerFlushInactiveAccessTokens', 'model/SwaggerJsonWebKeyQuery', 'model/SwaggerJwkCreateSet', 'model/SwaggerJwkSetQuery', 'model/SwaggerJwkUpdateSet', 'model/SwaggerJwkUpdateSetKey', 'model/SwaggerOAuthIntrospectionRequest', 'model/SwaggerRevokeOAuth2TokenParameters', 'model/Swaggeroauth2TokenParameters', 'model/UserinfoResponse', 'model/Version', 'model/WellKnown', 'api/AdminApi', 'api/HealthApi', 'api/PublicApi', 'api/VersionApi'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('./ApiClient'), require('./model/AcceptConsentRequest'), require('./model/AcceptLoginRequest'), require('./model/AuthenticationRequest'), require('./model/AuthenticationSession'), require('./model/Client'), require('./model/CompletedRequest'), require('./model/ConsentRequest'), require('./model/ConsentRequestSession'), require('./model/ConsentRequestSessionData'), require('./model/CreateRequest'), require('./model/EmptyResponse'), require('./model/FlushInactiveOAuth2TokensRequest'), require('./model/GenericError'), require('./model/HandledAuthenticationRequest'), require('./model/HandledConsentRequest'), require('./model/HandledLoginRequest'), require('./model/HealthNotReadyStatus'), require('./model/HealthStatus'), require('./model/Introspection'), require('./model/JSONWebKey'), require('./model/JSONWebKeySet'), require('./model/JsonWebKeySetGeneratorRequest'), require('./model/LoginRequest'), require('./model/LogoutRequest'), require('./model/OAuth2Client'), require('./model/OAuth2TokenIntrospection'), require('./model/Oauth2TokenResponse'), require('./model/OauthTokenResponse'), require('./model/OpenIDConnectContext'), require('./model/PreviousConsentSession'), require('./model/RejectRequest'), require('./model/RequestDeniedError'), require('./model/RequestHandlerResponse'), require('./model/SwaggerFlushInactiveAccessTokens'), require('./model/SwaggerHealthStatus'), require('./model/SwaggerJSONWebKey'), require('./model/SwaggerJSONWebKeySet'), require('./model/SwaggerJsonWebKeyQuery'), require('./model/SwaggerJwkCreateSet'), require('./model/SwaggerJwkSetQuery'), require('./model/SwaggerJwkUpdateSet'), require('./model/SwaggerJwkUpdateSetKey'), require('./model/SwaggerNotReadyStatus'), require('./model/SwaggerOAuthIntrospectionRequest'), require('./model/SwaggerOAuthTokenResponse'), require('./model/SwaggerRevokeOAuth2TokenParameters'), require('./model/SwaggerVersion'), require('./model/Swaggeroauth2TokenParameters'), require('./model/Swaggeroauth2TokenResponse'), require('./model/SwaggeruserinfoResponsePayload'), require('./model/UserinfoResponse'), require('./model/Version'), require('./model/WellKnown'), require('./api/AdminApi'), require('./api/HealthApi'), require('./api/PublicApi'), require('./api/VersionApi')); + module.exports = factory(require('./ApiClient'), require('./model/AcceptConsentRequest'), require('./model/AcceptLoginRequest'), require('./model/CompletedRequest'), require('./model/ConsentRequest'), require('./model/ConsentRequestSession'), require('./model/EmptyResponse'), require('./model/FlushInactiveOAuth2TokensRequest'), require('./model/GenericError'), require('./model/HealthNotReadyStatus'), require('./model/HealthStatus'), require('./model/JSONWebKey'), require('./model/JSONWebKeySet'), require('./model/JsonWebKeySetGeneratorRequest'), require('./model/LoginRequest'), require('./model/LogoutRequest'), require('./model/OAuth2Client'), require('./model/OAuth2TokenIntrospection'), require('./model/Oauth2TokenResponse'), require('./model/OauthTokenResponse'), require('./model/OpenIDConnectContext'), require('./model/PreviousConsentSession'), require('./model/RejectRequest'), require('./model/SwaggerFlushInactiveAccessTokens'), require('./model/SwaggerJsonWebKeyQuery'), require('./model/SwaggerJwkCreateSet'), require('./model/SwaggerJwkSetQuery'), require('./model/SwaggerJwkUpdateSet'), require('./model/SwaggerJwkUpdateSetKey'), require('./model/SwaggerOAuthIntrospectionRequest'), require('./model/SwaggerRevokeOAuth2TokenParameters'), require('./model/Swaggeroauth2TokenParameters'), require('./model/UserinfoResponse'), require('./model/Version'), require('./model/WellKnown'), require('./api/AdminApi'), require('./api/HealthApi'), require('./api/PublicApi'), require('./api/VersionApi')); } -}(function(ApiClient, AcceptConsentRequest, AcceptLoginRequest, AuthenticationRequest, AuthenticationSession, Client, CompletedRequest, ConsentRequest, ConsentRequestSession, ConsentRequestSessionData, CreateRequest, EmptyResponse, FlushInactiveOAuth2TokensRequest, GenericError, HandledAuthenticationRequest, HandledConsentRequest, HandledLoginRequest, HealthNotReadyStatus, HealthStatus, Introspection, JSONWebKey, JSONWebKeySet, JsonWebKeySetGeneratorRequest, LoginRequest, LogoutRequest, OAuth2Client, OAuth2TokenIntrospection, Oauth2TokenResponse, OauthTokenResponse, OpenIDConnectContext, PreviousConsentSession, RejectRequest, RequestDeniedError, RequestHandlerResponse, SwaggerFlushInactiveAccessTokens, SwaggerHealthStatus, SwaggerJSONWebKey, SwaggerJSONWebKeySet, SwaggerJsonWebKeyQuery, SwaggerJwkCreateSet, SwaggerJwkSetQuery, SwaggerJwkUpdateSet, SwaggerJwkUpdateSetKey, SwaggerNotReadyStatus, SwaggerOAuthIntrospectionRequest, SwaggerOAuthTokenResponse, SwaggerRevokeOAuth2TokenParameters, SwaggerVersion, Swaggeroauth2TokenParameters, Swaggeroauth2TokenResponse, SwaggeruserinfoResponsePayload, UserinfoResponse, Version, WellKnown, AdminApi, HealthApi, PublicApi, VersionApi) { +}(function(ApiClient, AcceptConsentRequest, AcceptLoginRequest, CompletedRequest, ConsentRequest, ConsentRequestSession, EmptyResponse, FlushInactiveOAuth2TokensRequest, GenericError, HealthNotReadyStatus, HealthStatus, JSONWebKey, JSONWebKeySet, JsonWebKeySetGeneratorRequest, LoginRequest, LogoutRequest, OAuth2Client, OAuth2TokenIntrospection, Oauth2TokenResponse, OauthTokenResponse, OpenIDConnectContext, PreviousConsentSession, RejectRequest, SwaggerFlushInactiveAccessTokens, SwaggerJsonWebKeyQuery, SwaggerJwkCreateSet, SwaggerJwkSetQuery, SwaggerJwkUpdateSet, SwaggerJwkUpdateSetKey, SwaggerOAuthIntrospectionRequest, SwaggerRevokeOAuth2TokenParameters, Swaggeroauth2TokenParameters, UserinfoResponse, Version, WellKnown, AdminApi, HealthApi, PublicApi, VersionApi) { 'use strict'; /** @@ -71,21 +71,6 @@ * @property {module:model/AcceptLoginRequest} */ AcceptLoginRequest: AcceptLoginRequest, - /** - * The AuthenticationRequest model constructor. - * @property {module:model/AuthenticationRequest} - */ - AuthenticationRequest: AuthenticationRequest, - /** - * The AuthenticationSession model constructor. - * @property {module:model/AuthenticationSession} - */ - AuthenticationSession: AuthenticationSession, - /** - * The Client model constructor. - * @property {module:model/Client} - */ - Client: Client, /** * The CompletedRequest model constructor. * @property {module:model/CompletedRequest} @@ -101,16 +86,6 @@ * @property {module:model/ConsentRequestSession} */ ConsentRequestSession: ConsentRequestSession, - /** - * The ConsentRequestSessionData model constructor. - * @property {module:model/ConsentRequestSessionData} - */ - ConsentRequestSessionData: ConsentRequestSessionData, - /** - * The CreateRequest model constructor. - * @property {module:model/CreateRequest} - */ - CreateRequest: CreateRequest, /** * The EmptyResponse model constructor. * @property {module:model/EmptyResponse} @@ -126,21 +101,6 @@ * @property {module:model/GenericError} */ GenericError: GenericError, - /** - * The HandledAuthenticationRequest model constructor. - * @property {module:model/HandledAuthenticationRequest} - */ - HandledAuthenticationRequest: HandledAuthenticationRequest, - /** - * The HandledConsentRequest model constructor. - * @property {module:model/HandledConsentRequest} - */ - HandledConsentRequest: HandledConsentRequest, - /** - * The HandledLoginRequest model constructor. - * @property {module:model/HandledLoginRequest} - */ - HandledLoginRequest: HandledLoginRequest, /** * The HealthNotReadyStatus model constructor. * @property {module:model/HealthNotReadyStatus} @@ -151,11 +111,6 @@ * @property {module:model/HealthStatus} */ HealthStatus: HealthStatus, - /** - * The Introspection model constructor. - * @property {module:model/Introspection} - */ - Introspection: Introspection, /** * The JSONWebKey model constructor. * @property {module:model/JSONWebKey} @@ -216,36 +171,11 @@ * @property {module:model/RejectRequest} */ RejectRequest: RejectRequest, - /** - * The RequestDeniedError model constructor. - * @property {module:model/RequestDeniedError} - */ - RequestDeniedError: RequestDeniedError, - /** - * The RequestHandlerResponse model constructor. - * @property {module:model/RequestHandlerResponse} - */ - RequestHandlerResponse: RequestHandlerResponse, /** * The SwaggerFlushInactiveAccessTokens model constructor. * @property {module:model/SwaggerFlushInactiveAccessTokens} */ SwaggerFlushInactiveAccessTokens: SwaggerFlushInactiveAccessTokens, - /** - * The SwaggerHealthStatus model constructor. - * @property {module:model/SwaggerHealthStatus} - */ - SwaggerHealthStatus: SwaggerHealthStatus, - /** - * The SwaggerJSONWebKey model constructor. - * @property {module:model/SwaggerJSONWebKey} - */ - SwaggerJSONWebKey: SwaggerJSONWebKey, - /** - * The SwaggerJSONWebKeySet model constructor. - * @property {module:model/SwaggerJSONWebKeySet} - */ - SwaggerJSONWebKeySet: SwaggerJSONWebKeySet, /** * The SwaggerJsonWebKeyQuery model constructor. * @property {module:model/SwaggerJsonWebKeyQuery} @@ -271,46 +201,21 @@ * @property {module:model/SwaggerJwkUpdateSetKey} */ SwaggerJwkUpdateSetKey: SwaggerJwkUpdateSetKey, - /** - * The SwaggerNotReadyStatus model constructor. - * @property {module:model/SwaggerNotReadyStatus} - */ - SwaggerNotReadyStatus: SwaggerNotReadyStatus, /** * The SwaggerOAuthIntrospectionRequest model constructor. * @property {module:model/SwaggerOAuthIntrospectionRequest} */ SwaggerOAuthIntrospectionRequest: SwaggerOAuthIntrospectionRequest, - /** - * The SwaggerOAuthTokenResponse model constructor. - * @property {module:model/SwaggerOAuthTokenResponse} - */ - SwaggerOAuthTokenResponse: SwaggerOAuthTokenResponse, /** * The SwaggerRevokeOAuth2TokenParameters model constructor. * @property {module:model/SwaggerRevokeOAuth2TokenParameters} */ SwaggerRevokeOAuth2TokenParameters: SwaggerRevokeOAuth2TokenParameters, - /** - * The SwaggerVersion model constructor. - * @property {module:model/SwaggerVersion} - */ - SwaggerVersion: SwaggerVersion, /** * The Swaggeroauth2TokenParameters model constructor. * @property {module:model/Swaggeroauth2TokenParameters} */ Swaggeroauth2TokenParameters: Swaggeroauth2TokenParameters, - /** - * The Swaggeroauth2TokenResponse model constructor. - * @property {module:model/Swaggeroauth2TokenResponse} - */ - Swaggeroauth2TokenResponse: Swaggeroauth2TokenResponse, - /** - * The SwaggeruserinfoResponsePayload model constructor. - * @property {module:model/SwaggeruserinfoResponsePayload} - */ - SwaggeruserinfoResponsePayload: SwaggeruserinfoResponsePayload, /** * The UserinfoResponse model constructor. * @property {module:model/UserinfoResponse} diff --git a/sdk/js/swagger/src/model/AuthenticationRequest.js b/sdk/js/swagger/src/model/AuthenticationRequest.js deleted file mode 100644 index 4b4f6153d6c..00000000000 --- a/sdk/js/swagger/src/model/AuthenticationRequest.js +++ /dev/null @@ -1,152 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Client', 'model/OpenIDConnectContext'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Client'), require('./OpenIDConnectContext')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.AuthenticationRequest = factory(root.OryHydra.ApiClient, root.OryHydra.Client, root.OryHydra.OpenIDConnectContext); - } -}(this, function(ApiClient, Client, OpenIDConnectContext) { - 'use strict'; - - - - - /** - * The AuthenticationRequest model module. - * @module model/AuthenticationRequest - * @version latest - */ - - /** - * Constructs a new <code>AuthenticationRequest</code>. - * @alias module:model/AuthenticationRequest - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - - - }; - - /** - * Constructs a <code>AuthenticationRequest</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthenticationRequest} obj Optional instance to populate. - * @return {module:model/AuthenticationRequest} The populated <code>AuthenticationRequest</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('challenge')) { - obj['challenge'] = ApiClient.convertToType(data['challenge'], 'String'); - } - if (data.hasOwnProperty('client')) { - obj['client'] = Client.constructFromObject(data['client']); - } - if (data.hasOwnProperty('oidc_context')) { - obj['oidc_context'] = OpenIDConnectContext.constructFromObject(data['oidc_context']); - } - if (data.hasOwnProperty('request_url')) { - obj['request_url'] = ApiClient.convertToType(data['request_url'], 'String'); - } - if (data.hasOwnProperty('requested_access_token_audience')) { - obj['requested_access_token_audience'] = ApiClient.convertToType(data['requested_access_token_audience'], ['String']); - } - if (data.hasOwnProperty('requested_scope')) { - obj['requested_scope'] = ApiClient.convertToType(data['requested_scope'], ['String']); - } - if (data.hasOwnProperty('session_id')) { - obj['session_id'] = ApiClient.convertToType(data['session_id'], 'String'); - } - if (data.hasOwnProperty('skip')) { - obj['skip'] = ApiClient.convertToType(data['skip'], 'Boolean'); - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - } - } - return obj; - } - - /** - * Challenge is the identifier (\"authentication challenge\") of the consent authentication request. It is used to identify the session. - * @member {String} challenge - */ - exports.prototype['challenge'] = undefined; - /** - * @member {module:model/Client} client - */ - exports.prototype['client'] = undefined; - /** - * @member {module:model/OpenIDConnectContext} oidc_context - */ - exports.prototype['oidc_context'] = undefined; - /** - * RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. - * @member {String} request_url - */ - exports.prototype['request_url'] = undefined; - /** - * RequestedScope contains the access token audience as requested by the OAuth 2.0 Client. - * @member {Array.<String>} requested_access_token_audience - */ - exports.prototype['requested_access_token_audience'] = undefined; - /** - * RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. - * @member {Array.<String>} requested_scope - */ - exports.prototype['requested_scope'] = undefined; - /** - * SessionID is the authentication session ID. It is set if the browser had a valid authentication session at ORY Hydra during the login flow. It can be used to associate consecutive login requests by a certain user. - * @member {String} session_id - */ - exports.prototype['session_id'] = undefined; - /** - * Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. - * @member {Boolean} skip - */ - exports.prototype['skip'] = undefined; - /** - * Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. - * @member {String} subject - */ - exports.prototype['subject'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/AuthenticationSession.js b/sdk/js/swagger/src/model/AuthenticationSession.js deleted file mode 100644 index 620bbd52250..00000000000 --- a/sdk/js/swagger/src/model/AuthenticationSession.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.AuthenticationSession = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The AuthenticationSession model module. - * @module model/AuthenticationSession - * @version latest - */ - - /** - * Constructs a new <code>AuthenticationSession</code>. - * AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession authentication session - * @alias module:model/AuthenticationSession - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a <code>AuthenticationSession</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthenticationSession} obj Optional instance to populate. - * @return {module:model/AuthenticationSession} The populated <code>AuthenticationSession</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('AuthenticatedAt')) { - obj['AuthenticatedAt'] = ApiClient.convertToType(data['AuthenticatedAt'], 'Date'); - } - if (data.hasOwnProperty('ID')) { - obj['ID'] = ApiClient.convertToType(data['ID'], 'String'); - } - if (data.hasOwnProperty('Subject')) { - obj['Subject'] = ApiClient.convertToType(data['Subject'], 'String'); - } - } - return obj; - } - - /** - * authenticated at Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time - * @member {Date} AuthenticatedAt - */ - exports.prototype['AuthenticatedAt'] = undefined; - /** - * ID - * @member {String} ID - */ - exports.prototype['ID'] = undefined; - /** - * subject - * @member {String} Subject - */ - exports.prototype['Subject'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/Client.js b/sdk/js/swagger/src/model/Client.js deleted file mode 100644 index 75b000ec0c6..00000000000 --- a/sdk/js/swagger/src/model/Client.js +++ /dev/null @@ -1,351 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient', 'model/SwaggerJSONWebKeySet'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./SwaggerJSONWebKeySet')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.Client = factory(root.OryHydra.ApiClient, root.OryHydra.SwaggerJSONWebKeySet); - } -}(this, function(ApiClient, SwaggerJSONWebKeySet) { - 'use strict'; - - - - - /** - * The Client model module. - * @module model/Client - * @version latest - */ - - /** - * Constructs a new <code>Client</code>. - * @alias module:model/Client - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }; - - /** - * Constructs a <code>Client</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Client} obj Optional instance to populate. - * @return {module:model/Client} The populated <code>Client</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('allowed_cors_origins')) { - obj['allowed_cors_origins'] = ApiClient.convertToType(data['allowed_cors_origins'], ['String']); - } - if (data.hasOwnProperty('audience')) { - obj['audience'] = ApiClient.convertToType(data['audience'], ['String']); - } - if (data.hasOwnProperty('backchannel_logout_session_required')) { - obj['backchannel_logout_session_required'] = ApiClient.convertToType(data['backchannel_logout_session_required'], 'Boolean'); - } - if (data.hasOwnProperty('backchannel_logout_uri')) { - obj['backchannel_logout_uri'] = ApiClient.convertToType(data['backchannel_logout_uri'], 'String'); - } - if (data.hasOwnProperty('client_id')) { - obj['client_id'] = ApiClient.convertToType(data['client_id'], 'String'); - } - if (data.hasOwnProperty('client_name')) { - obj['client_name'] = ApiClient.convertToType(data['client_name'], 'String'); - } - if (data.hasOwnProperty('client_secret')) { - obj['client_secret'] = ApiClient.convertToType(data['client_secret'], 'String'); - } - if (data.hasOwnProperty('client_secret_expires_at')) { - obj['client_secret_expires_at'] = ApiClient.convertToType(data['client_secret_expires_at'], 'Number'); - } - if (data.hasOwnProperty('client_uri')) { - obj['client_uri'] = ApiClient.convertToType(data['client_uri'], 'String'); - } - if (data.hasOwnProperty('contacts')) { - obj['contacts'] = ApiClient.convertToType(data['contacts'], ['String']); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('frontchannel_logout_session_required')) { - obj['frontchannel_logout_session_required'] = ApiClient.convertToType(data['frontchannel_logout_session_required'], 'Boolean'); - } - if (data.hasOwnProperty('frontchannel_logout_uri')) { - obj['frontchannel_logout_uri'] = ApiClient.convertToType(data['frontchannel_logout_uri'], 'String'); - } - if (data.hasOwnProperty('grant_types')) { - obj['grant_types'] = ApiClient.convertToType(data['grant_types'], ['String']); - } - if (data.hasOwnProperty('jwks')) { - obj['jwks'] = SwaggerJSONWebKeySet.constructFromObject(data['jwks']); - } - if (data.hasOwnProperty('jwks_uri')) { - obj['jwks_uri'] = ApiClient.convertToType(data['jwks_uri'], 'String'); - } - if (data.hasOwnProperty('logo_uri')) { - obj['logo_uri'] = ApiClient.convertToType(data['logo_uri'], 'String'); - } - if (data.hasOwnProperty('owner')) { - obj['owner'] = ApiClient.convertToType(data['owner'], 'String'); - } - if (data.hasOwnProperty('policy_uri')) { - obj['policy_uri'] = ApiClient.convertToType(data['policy_uri'], 'String'); - } - if (data.hasOwnProperty('post_logout_redirect_uris')) { - obj['post_logout_redirect_uris'] = ApiClient.convertToType(data['post_logout_redirect_uris'], ['String']); - } - if (data.hasOwnProperty('redirect_uris')) { - obj['redirect_uris'] = ApiClient.convertToType(data['redirect_uris'], ['String']); - } - if (data.hasOwnProperty('request_object_signing_alg')) { - obj['request_object_signing_alg'] = ApiClient.convertToType(data['request_object_signing_alg'], 'String'); - } - if (data.hasOwnProperty('request_uris')) { - obj['request_uris'] = ApiClient.convertToType(data['request_uris'], ['String']); - } - if (data.hasOwnProperty('response_types')) { - obj['response_types'] = ApiClient.convertToType(data['response_types'], ['String']); - } - if (data.hasOwnProperty('scope')) { - obj['scope'] = ApiClient.convertToType(data['scope'], 'String'); - } - if (data.hasOwnProperty('sector_identifier_uri')) { - obj['sector_identifier_uri'] = ApiClient.convertToType(data['sector_identifier_uri'], 'String'); - } - if (data.hasOwnProperty('subject_type')) { - obj['subject_type'] = ApiClient.convertToType(data['subject_type'], 'String'); - } - if (data.hasOwnProperty('token_endpoint_auth_method')) { - obj['token_endpoint_auth_method'] = ApiClient.convertToType(data['token_endpoint_auth_method'], 'String'); - } - if (data.hasOwnProperty('tos_uri')) { - obj['tos_uri'] = ApiClient.convertToType(data['tos_uri'], 'String'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); - } - if (data.hasOwnProperty('userinfo_signed_response_alg')) { - obj['userinfo_signed_response_alg'] = ApiClient.convertToType(data['userinfo_signed_response_alg'], 'String'); - } - } - return obj; - } - - /** - * AllowedCORSOrigins are one or more URLs (scheme://host[:port]) which are allowed to make CORS requests to the /oauth/token endpoint. If this array is empty, the sever's CORS origin configuration (`CORS_ALLOWED_ORIGINS`) will be used instead. If this array is set, the allowed origins are appended to the server's CORS origin configuration. Be aware that environment variable `CORS_ENABLED` MUST be set to `true` for this to work. - * @member {Array.<String>} allowed_cors_origins - */ - exports.prototype['allowed_cors_origins'] = undefined; - /** - * Audience is a whitelist defining the audiences this client is allowed to request tokens for. An audience limits the applicability of an OAuth 2.0 Access Token to, for example, certain API endpoints. The value is a list of URLs. URLs MUST NOT contain whitespaces. - * @member {Array.<String>} audience - */ - exports.prototype['audience'] = undefined; - /** - * Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. - * @member {Boolean} backchannel_logout_session_required - */ - exports.prototype['backchannel_logout_session_required'] = undefined; - /** - * RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. - * @member {String} backchannel_logout_uri - */ - exports.prototype['backchannel_logout_uri'] = undefined; - /** - * ClientID is the id for this client. - * @member {String} client_id - */ - exports.prototype['client_id'] = undefined; - /** - * Name is the human-readable string name of the client to be presented to the end-user during authorization. - * @member {String} client_name - */ - exports.prototype['client_name'] = undefined; - /** - * Secret is the client's secret. The secret will be included in the create request as cleartext, and then never again. The secret is stored using BCrypt so it is impossible to recover it. Tell your users that they need to write the secret down as it will not be made available again. - * @member {String} client_secret - */ - exports.prototype['client_secret'] = undefined; - /** - * SecretExpiresAt is an integer holding the time at which the client secret will expire or 0 if it will not expire. The time is represented as the number of seconds from 1970-01-01T00:00:00Z as measured in UTC until the date/time of expiration. This feature is currently not supported and it's value will always be set to 0. - * @member {Number} client_secret_expires_at - */ - exports.prototype['client_secret_expires_at'] = undefined; - /** - * ClientURI is an URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion. - * @member {String} client_uri - */ - exports.prototype['client_uri'] = undefined; - /** - * Contacts is a array of strings representing ways to contact people responsible for this client, typically email addresses. - * @member {Array.<String>} contacts - */ - exports.prototype['contacts'] = undefined; - /** - * CreatedAt returns the timestamp of the client's creation. Format: date-time - * @member {Date} created_at - */ - exports.prototype['created_at'] = undefined; - /** - * Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used. If omitted, the default value is false. - * @member {Boolean} frontchannel_logout_session_required - */ - exports.prototype['frontchannel_logout_session_required'] = undefined; - /** - * RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the request and to determine which of the potentially multiple sessions is to be logged out; if either is included, both MUST be. - * @member {String} frontchannel_logout_uri - */ - exports.prototype['frontchannel_logout_uri'] = undefined; - /** - * GrantTypes is an array of grant types the client is allowed to use. - * @member {Array.<String>} grant_types - */ - exports.prototype['grant_types'] = undefined; - /** - * @member {module:model/SwaggerJSONWebKeySet} jwks - */ - exports.prototype['jwks'] = undefined; - /** - * URL for the Client's JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains the signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the Client's encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate. - * @member {String} jwks_uri - */ - exports.prototype['jwks_uri'] = undefined; - /** - * LogoURI is an URL string that references a logo for the client. - * @member {String} logo_uri - */ - exports.prototype['logo_uri'] = undefined; - /** - * Owner is a string identifying the owner of the OAuth 2.0 Client. - * @member {String} owner - */ - exports.prototype['owner'] = undefined; - /** - * PolicyURI is a URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data. - * @member {String} policy_uri - */ - exports.prototype['policy_uri'] = undefined; - /** - * Array of URLs supplied by the RP to which it MAY request that the End-User's User Agent be redirected using the post_logout_redirect_uri parameter after a logout has been performed. - * @member {Array.<String>} post_logout_redirect_uris - */ - exports.prototype['post_logout_redirect_uris'] = undefined; - /** - * RedirectURIs is an array of allowed redirect urls for the client, for example http://mydomain/oauth/callback . - * @member {Array.<String>} redirect_uris - */ - exports.prototype['redirect_uris'] = undefined; - /** - * JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. All Request Objects from this Client MUST be rejected, if not signed with this algorithm. - * @member {String} request_object_signing_alg - */ - exports.prototype['request_object_signing_alg'] = undefined; - /** - * Array of request_uri values that are pre-registered by the RP for use at the OP. Servers MAY cache the contents of the files referenced by these URIs and not retrieve them at the time they are used in a request. OPs can require that request_uri values used be pre-registered with the require_request_uri_registration discovery parameter. - * @member {Array.<String>} request_uris - */ - exports.prototype['request_uris'] = undefined; - /** - * ResponseTypes is an array of the OAuth 2.0 response type strings that the client can use at the authorization endpoint. - * @member {Array.<String>} response_types - */ - exports.prototype['response_types'] = undefined; - /** - * Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. - * @member {String} scope - */ - exports.prototype['scope'] = undefined; - /** - * URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. - * @member {String} sector_identifier_uri - */ - exports.prototype['sector_identifier_uri'] = undefined; - /** - * SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. - * @member {String} subject_type - */ - exports.prototype['subject_type'] = undefined; - /** - * Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none. - * @member {String} token_endpoint_auth_method - */ - exports.prototype['token_endpoint_auth_method'] = undefined; - /** - * TermsOfServiceURI is a URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. - * @member {String} tos_uri - */ - exports.prototype['tos_uri'] = undefined; - /** - * UpdatedAt returns the timestamp of the last update. Format: date-time - * @member {Date} updated_at - */ - exports.prototype['updated_at'] = undefined; - /** - * JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type. - * @member {String} userinfo_signed_response_alg - */ - exports.prototype['userinfo_signed_response_alg'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/ConsentRequestSessionData.js b/sdk/js/swagger/src/model/ConsentRequestSessionData.js deleted file mode 100644 index 71fc7300424..00000000000 --- a/sdk/js/swagger/src/model/ConsentRequestSessionData.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.ConsentRequestSessionData = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The ConsentRequestSessionData model module. - * @module model/ConsentRequestSessionData - * @version latest - */ - - /** - * Constructs a new <code>ConsentRequestSessionData</code>. - * @alias module:model/ConsentRequestSessionData - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a <code>ConsentRequestSessionData</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ConsentRequestSessionData} obj Optional instance to populate. - * @return {module:model/ConsentRequestSessionData} The populated <code>ConsentRequestSessionData</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('access_token')) { - obj['access_token'] = ApiClient.convertToType(data['access_token'], {'String': Object}); - } - if (data.hasOwnProperty('id_token')) { - obj['id_token'] = ApiClient.convertToType(data['id_token'], {'String': Object}); - } - } - return obj; - } - - /** - * AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! - * @member {Object.<String, Object>} access_token - */ - exports.prototype['access_token'] = undefined; - /** - * IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable by anyone that has access to the ID Challenge. Use with care! - * @member {Object.<String, Object>} id_token - */ - exports.prototype['id_token'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/CreateRequest.js b/sdk/js/swagger/src/model/CreateRequest.js deleted file mode 100644 index f1e45e81c05..00000000000 --- a/sdk/js/swagger/src/model/CreateRequest.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.CreateRequest = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The CreateRequest model module. - * @module model/CreateRequest - * @version latest - */ - - /** - * Constructs a new <code>CreateRequest</code>. - * CreateRequest create request - * @alias module:model/CreateRequest - * @class - * @param alg {String} The algorithm to be used for creating the key. Supports \"RS256\", \"ES512\", \"HS512\", and \"HS256\" - * @param kid {String} The kid of the key to be created - * @param use {String} The \"use\" (public key use) parameter identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Valid values are \"enc\" and \"sig\". - */ - var exports = function(alg, kid, use) { - var _this = this; - - _this['alg'] = alg; - _this['kid'] = kid; - _this['use'] = use; - }; - - /** - * Constructs a <code>CreateRequest</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRequest} obj Optional instance to populate. - * @return {module:model/CreateRequest} The populated <code>CreateRequest</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = ApiClient.convertToType(data['alg'], 'String'); - } - if (data.hasOwnProperty('kid')) { - obj['kid'] = ApiClient.convertToType(data['kid'], 'String'); - } - if (data.hasOwnProperty('use')) { - obj['use'] = ApiClient.convertToType(data['use'], 'String'); - } - } - return obj; - } - - /** - * The algorithm to be used for creating the key. Supports \"RS256\", \"ES512\", \"HS512\", and \"HS256\" - * @member {String} alg - */ - exports.prototype['alg'] = undefined; - /** - * The kid of the key to be created - * @member {String} kid - */ - exports.prototype['kid'] = undefined; - /** - * The \"use\" (public key use) parameter identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Valid values are \"enc\" and \"sig\". - * @member {String} use - */ - exports.prototype['use'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/EmptyResponse.js b/sdk/js/swagger/src/model/EmptyResponse.js index 7f7cbd0fd0d..c8577088d16 100644 --- a/sdk/js/swagger/src/model/EmptyResponse.js +++ b/sdk/js/swagger/src/model/EmptyResponse.js @@ -41,7 +41,7 @@ /** * Constructs a new <code>EmptyResponse</code>. - * EmptyResponse Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. + * Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. * @alias module:model/EmptyResponse * @class */ diff --git a/sdk/js/swagger/src/model/HandledAuthenticationRequest.js b/sdk/js/swagger/src/model/HandledAuthenticationRequest.js deleted file mode 100644 index 9fbd9dd3f63..00000000000 --- a/sdk/js/swagger/src/model/HandledAuthenticationRequest.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.HandledAuthenticationRequest = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The HandledAuthenticationRequest model module. - * @module model/HandledAuthenticationRequest - * @version latest - */ - - /** - * Constructs a new <code>HandledAuthenticationRequest</code>. - * @alias module:model/HandledAuthenticationRequest - * @class - * @param subject {String} Subject is the user ID of the end-user that authenticated. - */ - var exports = function(subject) { - var _this = this; - - - - - - _this['subject'] = subject; - }; - - /** - * Constructs a <code>HandledAuthenticationRequest</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HandledAuthenticationRequest} obj Optional instance to populate. - * @return {module:model/HandledAuthenticationRequest} The populated <code>HandledAuthenticationRequest</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('acr')) { - obj['acr'] = ApiClient.convertToType(data['acr'], 'String'); - } - if (data.hasOwnProperty('force_subject_identifier')) { - obj['force_subject_identifier'] = ApiClient.convertToType(data['force_subject_identifier'], 'String'); - } - if (data.hasOwnProperty('remember')) { - obj['remember'] = ApiClient.convertToType(data['remember'], 'Boolean'); - } - if (data.hasOwnProperty('remember_for')) { - obj['remember_for'] = ApiClient.convertToType(data['remember_for'], 'Number'); - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - } - } - return obj; - } - - /** - * ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. - * @member {String} acr - */ - exports.prototype['acr'] = undefined; - /** - * ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. - * @member {String} force_subject_identifier - */ - exports.prototype['force_subject_identifier'] = undefined; - /** - * Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. - * @member {Boolean} remember - */ - exports.prototype['remember'] = undefined; - /** - * RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. - * @member {Number} remember_for - */ - exports.prototype['remember_for'] = undefined; - /** - * Subject is the user ID of the end-user that authenticated. - * @member {String} subject - */ - exports.prototype['subject'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/HandledConsentRequest.js b/sdk/js/swagger/src/model/HandledConsentRequest.js deleted file mode 100644 index 63e9b476e81..00000000000 --- a/sdk/js/swagger/src/model/HandledConsentRequest.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient', 'model/ConsentRequestSessionData'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ConsentRequestSessionData')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.HandledConsentRequest = factory(root.OryHydra.ApiClient, root.OryHydra.ConsentRequestSessionData); - } -}(this, function(ApiClient, ConsentRequestSessionData) { - 'use strict'; - - - - - /** - * The HandledConsentRequest model module. - * @module model/HandledConsentRequest - * @version latest - */ - - /** - * Constructs a new <code>HandledConsentRequest</code>. - * @alias module:model/HandledConsentRequest - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a <code>HandledConsentRequest</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HandledConsentRequest} obj Optional instance to populate. - * @return {module:model/HandledConsentRequest} The populated <code>HandledConsentRequest</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('grant_access_token_audience')) { - obj['grant_access_token_audience'] = ApiClient.convertToType(data['grant_access_token_audience'], ['String']); - } - if (data.hasOwnProperty('grant_scope')) { - obj['grant_scope'] = ApiClient.convertToType(data['grant_scope'], ['String']); - } - if (data.hasOwnProperty('remember')) { - obj['remember'] = ApiClient.convertToType(data['remember'], 'Boolean'); - } - if (data.hasOwnProperty('remember_for')) { - obj['remember_for'] = ApiClient.convertToType(data['remember_for'], 'Number'); - } - if (data.hasOwnProperty('session')) { - obj['session'] = ConsentRequestSessionData.constructFromObject(data['session']); - } - } - return obj; - } - - /** - * GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`. - * @member {Array.<String>} grant_access_token_audience - */ - exports.prototype['grant_access_token_audience'] = undefined; - /** - * GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`. - * @member {Array.<String>} grant_scope - */ - exports.prototype['grant_scope'] = undefined; - /** - * Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. - * @member {Boolean} remember - */ - exports.prototype['remember'] = undefined; - /** - * RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. - * @member {Number} remember_for - */ - exports.prototype['remember_for'] = undefined; - /** - * @member {module:model/ConsentRequestSessionData} session - */ - exports.prototype['session'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/HandledLoginRequest.js b/sdk/js/swagger/src/model/HandledLoginRequest.js deleted file mode 100644 index f9fb1827369..00000000000 --- a/sdk/js/swagger/src/model/HandledLoginRequest.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.HandledLoginRequest = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The HandledLoginRequest model module. - * @module model/HandledLoginRequest - * @version latest - */ - - /** - * Constructs a new <code>HandledLoginRequest</code>. - * @alias module:model/HandledLoginRequest - * @class - * @param subject {String} Subject is the user ID of the end-user that authenticated. - */ - var exports = function(subject) { - var _this = this; - - - - - - - _this['subject'] = subject; - }; - - /** - * Constructs a <code>HandledLoginRequest</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HandledLoginRequest} obj Optional instance to populate. - * @return {module:model/HandledLoginRequest} The populated <code>HandledLoginRequest</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('acr')) { - obj['acr'] = ApiClient.convertToType(data['acr'], 'String'); - } - if (data.hasOwnProperty('context')) { - obj['context'] = ApiClient.convertToType(data['context'], {'String': Object}); - } - if (data.hasOwnProperty('force_subject_identifier')) { - obj['force_subject_identifier'] = ApiClient.convertToType(data['force_subject_identifier'], 'String'); - } - if (data.hasOwnProperty('remember')) { - obj['remember'] = ApiClient.convertToType(data['remember'], 'Boolean'); - } - if (data.hasOwnProperty('remember_for')) { - obj['remember_for'] = ApiClient.convertToType(data['remember_for'], 'Number'); - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - } - } - return obj; - } - - /** - * ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. - * @member {String} acr - */ - exports.prototype['acr'] = undefined; - /** - * Context is an optional object which can hold arbitrary data. The data will be made available when fetching the consent request under the \"context\" field. This is useful in scenarios where login and consent endpoints share data. - * @member {Object.<String, Object>} context - */ - exports.prototype['context'] = undefined; - /** - * ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. - * @member {String} force_subject_identifier - */ - exports.prototype['force_subject_identifier'] = undefined; - /** - * Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. - * @member {Boolean} remember - */ - exports.prototype['remember'] = undefined; - /** - * RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. - * @member {Number} remember_for - */ - exports.prototype['remember_for'] = undefined; - /** - * Subject is the user ID of the end-user that authenticated. - * @member {String} subject - */ - exports.prototype['subject'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/Introspection.js b/sdk/js/swagger/src/model/Introspection.js deleted file mode 100644 index f93568a2947..00000000000 --- a/sdk/js/swagger/src/model/Introspection.js +++ /dev/null @@ -1,192 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.Introspection = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The Introspection model module. - * @module model/Introspection - * @version latest - */ - - /** - * Constructs a new <code>Introspection</code>. - * https://tools.ietf.org/html/rfc7662 - * @alias module:model/Introspection - * @class - * @param active {Boolean} Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's \"active\" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a \"true\" value return for the \"active\" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time). - */ - var exports = function(active) { - var _this = this; - - _this['active'] = active; - - - - - - - - - - - - - }; - - /** - * Constructs a <code>Introspection</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Introspection} obj Optional instance to populate. - * @return {module:model/Introspection} The populated <code>Introspection</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); - } - if (data.hasOwnProperty('aud')) { - obj['aud'] = ApiClient.convertToType(data['aud'], ['String']); - } - if (data.hasOwnProperty('client_id')) { - obj['client_id'] = ApiClient.convertToType(data['client_id'], 'String'); - } - if (data.hasOwnProperty('exp')) { - obj['exp'] = ApiClient.convertToType(data['exp'], 'Number'); - } - if (data.hasOwnProperty('ext')) { - obj['ext'] = ApiClient.convertToType(data['ext'], {'String': Object}); - } - if (data.hasOwnProperty('iat')) { - obj['iat'] = ApiClient.convertToType(data['iat'], 'Number'); - } - if (data.hasOwnProperty('iss')) { - obj['iss'] = ApiClient.convertToType(data['iss'], 'String'); - } - if (data.hasOwnProperty('nbf')) { - obj['nbf'] = ApiClient.convertToType(data['nbf'], 'Number'); - } - if (data.hasOwnProperty('obfuscated_subject')) { - obj['obfuscated_subject'] = ApiClient.convertToType(data['obfuscated_subject'], 'String'); - } - if (data.hasOwnProperty('scope')) { - obj['scope'] = ApiClient.convertToType(data['scope'], 'String'); - } - if (data.hasOwnProperty('sub')) { - obj['sub'] = ApiClient.convertToType(data['sub'], 'String'); - } - if (data.hasOwnProperty('token_type')) { - obj['token_type'] = ApiClient.convertToType(data['token_type'], 'String'); - } - if (data.hasOwnProperty('username')) { - obj['username'] = ApiClient.convertToType(data['username'], 'String'); - } - } - return obj; - } - - /** - * Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's \"active\" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a \"true\" value return for the \"active\" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time). - * @member {Boolean} active - */ - exports.prototype['active'] = undefined; - /** - * Audience contains a list of the token's intended audiences. - * @member {Array.<String>} aud - */ - exports.prototype['aud'] = undefined; - /** - * ClientID is aclient identifier for the OAuth 2.0 client that requested this token. - * @member {String} client_id - */ - exports.prototype['client_id'] = undefined; - /** - * Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire. - * @member {Number} exp - */ - exports.prototype['exp'] = undefined; - /** - * Extra is arbitrary data set by the session. - * @member {Object.<String, Object>} ext - */ - exports.prototype['ext'] = undefined; - /** - * Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued. - * @member {Number} iat - */ - exports.prototype['iat'] = undefined; - /** - * IssuerURL is a string representing the issuer of this token - * @member {String} iss - */ - exports.prototype['iss'] = undefined; - /** - * NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before. - * @member {Number} nbf - */ - exports.prototype['nbf'] = undefined; - /** - * ObfuscatedSubject is set when the subject identifier algorithm was set to \"pairwise\" during authorization. It is the `sub` value of the ID Token that was issued. - * @member {String} obfuscated_subject - */ - exports.prototype['obfuscated_subject'] = undefined; - /** - * Scope is a JSON string containing a space-separated list of scopes associated with this token. - * @member {String} scope - */ - exports.prototype['scope'] = undefined; - /** - * Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token. - * @member {String} sub - */ - exports.prototype['sub'] = undefined; - /** - * TokenType is the introspected token's type, for example `access_token` or `refresh_token`. - * @member {String} token_type - */ - exports.prototype['token_type'] = undefined; - /** - * Username is a human-readable identifier for the resource owner who authorized this token. - * @member {String} username - */ - exports.prototype['username'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/RequestDeniedError.js b/sdk/js/swagger/src/model/RequestDeniedError.js deleted file mode 100644 index 4ded94bbcac..00000000000 --- a/sdk/js/swagger/src/model/RequestDeniedError.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.RequestDeniedError = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The RequestDeniedError model module. - * @module model/RequestDeniedError - * @version latest - */ - - /** - * Constructs a new <code>RequestDeniedError</code>. - * @alias module:model/RequestDeniedError - * @class - */ - var exports = function() { - var _this = this; - - - - - - - }; - - /** - * Constructs a <code>RequestDeniedError</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RequestDeniedError} obj Optional instance to populate. - * @return {module:model/RequestDeniedError} The populated <code>RequestDeniedError</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - } - if (data.hasOwnProperty('error_debug')) { - obj['error_debug'] = ApiClient.convertToType(data['error_debug'], 'String'); - } - if (data.hasOwnProperty('error_description')) { - obj['error_description'] = ApiClient.convertToType(data['error_description'], 'String'); - } - if (data.hasOwnProperty('error_hint')) { - obj['error_hint'] = ApiClient.convertToType(data['error_hint'], 'String'); - } - if (data.hasOwnProperty('status_code')) { - obj['status_code'] = ApiClient.convertToType(data['status_code'], 'Number'); - } - } - return obj; - } - - /** - * name - * @member {String} error - */ - exports.prototype['error'] = undefined; - /** - * debug - * @member {String} error_debug - */ - exports.prototype['error_debug'] = undefined; - /** - * description - * @member {String} error_description - */ - exports.prototype['error_description'] = undefined; - /** - * hint - * @member {String} error_hint - */ - exports.prototype['error_hint'] = undefined; - /** - * code - * @member {Number} status_code - */ - exports.prototype['status_code'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/RequestHandlerResponse.js b/sdk/js/swagger/src/model/RequestHandlerResponse.js deleted file mode 100644 index b38d3997421..00000000000 --- a/sdk/js/swagger/src/model/RequestHandlerResponse.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.RequestHandlerResponse = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The RequestHandlerResponse model module. - * @module model/RequestHandlerResponse - * @version latest - */ - - /** - * Constructs a new <code>RequestHandlerResponse</code>. - * @alias module:model/RequestHandlerResponse - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a <code>RequestHandlerResponse</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RequestHandlerResponse} obj Optional instance to populate. - * @return {module:model/RequestHandlerResponse} The populated <code>RequestHandlerResponse</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('redirect_to')) { - obj['redirect_to'] = ApiClient.convertToType(data['redirect_to'], 'String'); - } - } - return obj; - } - - /** - * RedirectURL is the URL which you should redirect the user to once the authentication process is completed. - * @member {String} redirect_to - */ - exports.prototype['redirect_to'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/SwaggerFlushInactiveAccessTokens.js b/sdk/js/swagger/src/model/SwaggerFlushInactiveAccessTokens.js index abd656b2c56..3dc29012515 100644 --- a/sdk/js/swagger/src/model/SwaggerFlushInactiveAccessTokens.js +++ b/sdk/js/swagger/src/model/SwaggerFlushInactiveAccessTokens.js @@ -41,7 +41,6 @@ /** * Constructs a new <code>SwaggerFlushInactiveAccessTokens</code>. - * SwaggerFlushInactiveAccessTokens swagger flush inactive access tokens * @alias module:model/SwaggerFlushInactiveAccessTokens * @class */ diff --git a/sdk/js/swagger/src/model/SwaggerHealthStatus.js b/sdk/js/swagger/src/model/SwaggerHealthStatus.js deleted file mode 100644 index 706f39d58a7..00000000000 --- a/sdk/js/swagger/src/model/SwaggerHealthStatus.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.SwaggerHealthStatus = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The SwaggerHealthStatus model module. - * @module model/SwaggerHealthStatus - * @version latest - */ - - /** - * Constructs a new <code>SwaggerHealthStatus</code>. - * SwaggerHealthStatus swagger health status - * @alias module:model/SwaggerHealthStatus - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a <code>SwaggerHealthStatus</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SwaggerHealthStatus} obj Optional instance to populate. - * @return {module:model/SwaggerHealthStatus} The populated <code>SwaggerHealthStatus</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - } - return obj; - } - - /** - * Status always contains \"ok\". - * @member {String} status - */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/SwaggerJSONWebKey.js b/sdk/js/swagger/src/model/SwaggerJSONWebKey.js deleted file mode 100644 index 7910c0ddf95..00000000000 --- a/sdk/js/swagger/src/model/SwaggerJSONWebKey.js +++ /dev/null @@ -1,231 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.SwaggerJSONWebKey = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The SwaggerJSONWebKey model module. - * @module model/SwaggerJSONWebKey - * @version latest - */ - - /** - * Constructs a new <code>SwaggerJSONWebKey</code>. - * SwaggerJSONWebKey swagger JSON web key - * @alias module:model/SwaggerJSONWebKey - * @class - * @param alg {String} The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. - * @param kid {String} The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string. - * @param kty {String} The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string. - * @param use {String} Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption). - */ - var exports = function(alg, kid, kty, use) { - var _this = this; - - _this['alg'] = alg; - - - - - - - _this['kid'] = kid; - _this['kty'] = kty; - - - - - _this['use'] = use; - - - - }; - - /** - * Constructs a <code>SwaggerJSONWebKey</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SwaggerJSONWebKey} obj Optional instance to populate. - * @return {module:model/SwaggerJSONWebKey} The populated <code>SwaggerJSONWebKey</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = ApiClient.convertToType(data['alg'], 'String'); - } - if (data.hasOwnProperty('crv')) { - obj['crv'] = ApiClient.convertToType(data['crv'], 'String'); - } - if (data.hasOwnProperty('d')) { - obj['d'] = ApiClient.convertToType(data['d'], 'String'); - } - if (data.hasOwnProperty('dp')) { - obj['dp'] = ApiClient.convertToType(data['dp'], 'String'); - } - if (data.hasOwnProperty('dq')) { - obj['dq'] = ApiClient.convertToType(data['dq'], 'String'); - } - if (data.hasOwnProperty('e')) { - obj['e'] = ApiClient.convertToType(data['e'], 'String'); - } - if (data.hasOwnProperty('k')) { - obj['k'] = ApiClient.convertToType(data['k'], 'String'); - } - if (data.hasOwnProperty('kid')) { - obj['kid'] = ApiClient.convertToType(data['kid'], 'String'); - } - if (data.hasOwnProperty('kty')) { - obj['kty'] = ApiClient.convertToType(data['kty'], 'String'); - } - if (data.hasOwnProperty('n')) { - obj['n'] = ApiClient.convertToType(data['n'], 'String'); - } - if (data.hasOwnProperty('p')) { - obj['p'] = ApiClient.convertToType(data['p'], 'String'); - } - if (data.hasOwnProperty('q')) { - obj['q'] = ApiClient.convertToType(data['q'], 'String'); - } - if (data.hasOwnProperty('qi')) { - obj['qi'] = ApiClient.convertToType(data['qi'], 'String'); - } - if (data.hasOwnProperty('use')) { - obj['use'] = ApiClient.convertToType(data['use'], 'String'); - } - if (data.hasOwnProperty('x')) { - obj['x'] = ApiClient.convertToType(data['x'], 'String'); - } - if (data.hasOwnProperty('x5c')) { - obj['x5c'] = ApiClient.convertToType(data['x5c'], ['String']); - } - if (data.hasOwnProperty('y')) { - obj['y'] = ApiClient.convertToType(data['y'], 'String'); - } - } - return obj; - } - - /** - * The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. - * @member {String} alg - */ - exports.prototype['alg'] = undefined; - /** - * crv - * @member {String} crv - */ - exports.prototype['crv'] = undefined; - /** - * d - * @member {String} d - */ - exports.prototype['d'] = undefined; - /** - * dp - * @member {String} dp - */ - exports.prototype['dp'] = undefined; - /** - * dq - * @member {String} dq - */ - exports.prototype['dq'] = undefined; - /** - * e - * @member {String} e - */ - exports.prototype['e'] = undefined; - /** - * k - * @member {String} k - */ - exports.prototype['k'] = undefined; - /** - * The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string. - * @member {String} kid - */ - exports.prototype['kid'] = undefined; - /** - * The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string. - * @member {String} kty - */ - exports.prototype['kty'] = undefined; - /** - * n - * @member {String} n - */ - exports.prototype['n'] = undefined; - /** - * p - * @member {String} p - */ - exports.prototype['p'] = undefined; - /** - * q - * @member {String} q - */ - exports.prototype['q'] = undefined; - /** - * qi - * @member {String} qi - */ - exports.prototype['qi'] = undefined; - /** - * Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption). - * @member {String} use - */ - exports.prototype['use'] = undefined; - /** - * x - * @member {String} x - */ - exports.prototype['x'] = undefined; - /** - * The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate. - * @member {Array.<String>} x5c - */ - exports.prototype['x5c'] = undefined; - /** - * y - * @member {String} y - */ - exports.prototype['y'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/SwaggerJSONWebKeySet.js b/sdk/js/swagger/src/model/SwaggerJSONWebKeySet.js deleted file mode 100644 index a45141b1063..00000000000 --- a/sdk/js/swagger/src/model/SwaggerJSONWebKeySet.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient', 'model/SwaggerJSONWebKey'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./SwaggerJSONWebKey')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.SwaggerJSONWebKeySet = factory(root.OryHydra.ApiClient, root.OryHydra.SwaggerJSONWebKey); - } -}(this, function(ApiClient, SwaggerJSONWebKey) { - 'use strict'; - - - - - /** - * The SwaggerJSONWebKeySet model module. - * @module model/SwaggerJSONWebKeySet - * @version latest - */ - - /** - * Constructs a new <code>SwaggerJSONWebKeySet</code>. - * SwaggerJSONWebKeySet swagger JSON web key set - * @alias module:model/SwaggerJSONWebKeySet - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a <code>SwaggerJSONWebKeySet</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SwaggerJSONWebKeySet} obj Optional instance to populate. - * @return {module:model/SwaggerJSONWebKeySet} The populated <code>SwaggerJSONWebKeySet</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('keys')) { - obj['keys'] = ApiClient.convertToType(data['keys'], [SwaggerJSONWebKey]); - } - } - return obj; - } - - /** - * The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. - * @member {Array.<module:model/SwaggerJSONWebKey>} keys - */ - exports.prototype['keys'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/SwaggerNotReadyStatus.js b/sdk/js/swagger/src/model/SwaggerNotReadyStatus.js deleted file mode 100644 index d5e8422e1e9..00000000000 --- a/sdk/js/swagger/src/model/SwaggerNotReadyStatus.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.SwaggerNotReadyStatus = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The SwaggerNotReadyStatus model module. - * @module model/SwaggerNotReadyStatus - * @version latest - */ - - /** - * Constructs a new <code>SwaggerNotReadyStatus</code>. - * SwaggerNotReadyStatus swagger not ready status - * @alias module:model/SwaggerNotReadyStatus - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a <code>SwaggerNotReadyStatus</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SwaggerNotReadyStatus} obj Optional instance to populate. - * @return {module:model/SwaggerNotReadyStatus} The populated <code>SwaggerNotReadyStatus</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('errors')) { - obj['errors'] = ApiClient.convertToType(data['errors'], {'String': 'String'}); - } - } - return obj; - } - - /** - * Errors contains a list of errors that caused the not ready status. - * @member {Object.<String, String>} errors - */ - exports.prototype['errors'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/SwaggerOAuthIntrospectionRequest.js b/sdk/js/swagger/src/model/SwaggerOAuthIntrospectionRequest.js index 85955c80c96..78401cfee3c 100644 --- a/sdk/js/swagger/src/model/SwaggerOAuthIntrospectionRequest.js +++ b/sdk/js/swagger/src/model/SwaggerOAuthIntrospectionRequest.js @@ -41,10 +41,9 @@ /** * Constructs a new <code>SwaggerOAuthIntrospectionRequest</code>. - * SwaggerOAuthIntrospectionRequest swagger o auth introspection request * @alias module:model/SwaggerOAuthIntrospectionRequest * @class - * @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 [RFC6749], Section 5.1. This endpoint DOES NOT accept refresh tokens for validation. + * @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. */ var exports = function(token) { var _this = this; @@ -80,7 +79,7 @@ */ exports.prototype['scope'] = undefined; /** - * 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 [RFC6749], Section 5.1. This endpoint DOES NOT accept refresh tokens for validation. + * 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. * @member {String} token */ exports.prototype['token'] = undefined; diff --git a/sdk/js/swagger/src/model/SwaggerOAuthTokenResponse.js b/sdk/js/swagger/src/model/SwaggerOAuthTokenResponse.js deleted file mode 100644 index 845d6bbfca1..00000000000 --- a/sdk/js/swagger/src/model/SwaggerOAuthTokenResponse.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.SwaggerOAuthTokenResponse = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The SwaggerOAuthTokenResponse model module. - * @module model/SwaggerOAuthTokenResponse - * @version latest - */ - - /** - * Constructs a new <code>SwaggerOAuthTokenResponse</code>. - * SwaggerOAuthTokenResponse The token response - * @alias module:model/SwaggerOAuthTokenResponse - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - }; - - /** - * Constructs a <code>SwaggerOAuthTokenResponse</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SwaggerOAuthTokenResponse} obj Optional instance to populate. - * @return {module:model/SwaggerOAuthTokenResponse} The populated <code>SwaggerOAuthTokenResponse</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('access_token')) { - obj['access_token'] = ApiClient.convertToType(data['access_token'], 'String'); - } - if (data.hasOwnProperty('expires_in')) { - obj['expires_in'] = ApiClient.convertToType(data['expires_in'], 'Number'); - } - if (data.hasOwnProperty('id_token')) { - obj['id_token'] = ApiClient.convertToType(data['id_token'], 'Number'); - } - if (data.hasOwnProperty('refresh_token')) { - obj['refresh_token'] = ApiClient.convertToType(data['refresh_token'], 'String'); - } - if (data.hasOwnProperty('scope')) { - obj['scope'] = ApiClient.convertToType(data['scope'], 'Number'); - } - if (data.hasOwnProperty('token_type')) { - obj['token_type'] = ApiClient.convertToType(data['token_type'], 'String'); - } - } - return obj; - } - - /** - * The access token issued by the authorization server. - * @member {String} access_token - */ - exports.prototype['access_token'] = undefined; - /** - * The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. - * @member {Number} expires_in - */ - exports.prototype['expires_in'] = undefined; - /** - * To retrieve a refresh token request the id_token scope. - * @member {Number} id_token - */ - exports.prototype['id_token'] = undefined; - /** - * The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. - * @member {String} refresh_token - */ - exports.prototype['refresh_token'] = undefined; - /** - * The scope of the access token - * @member {Number} scope - */ - exports.prototype['scope'] = undefined; - /** - * The type of the token issued - * @member {String} token_type - */ - exports.prototype['token_type'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/SwaggerRevokeOAuth2TokenParameters.js b/sdk/js/swagger/src/model/SwaggerRevokeOAuth2TokenParameters.js index af07e7585af..ecf82010851 100644 --- a/sdk/js/swagger/src/model/SwaggerRevokeOAuth2TokenParameters.js +++ b/sdk/js/swagger/src/model/SwaggerRevokeOAuth2TokenParameters.js @@ -41,7 +41,6 @@ /** * Constructs a new <code>SwaggerRevokeOAuth2TokenParameters</code>. - * SwaggerRevokeOAuth2TokenParameters swagger revoke o auth2 token parameters * @alias module:model/SwaggerRevokeOAuth2TokenParameters * @class * @param token {String} in: formData diff --git a/sdk/js/swagger/src/model/SwaggerVersion.js b/sdk/js/swagger/src/model/SwaggerVersion.js deleted file mode 100644 index c11b32c5861..00000000000 --- a/sdk/js/swagger/src/model/SwaggerVersion.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.SwaggerVersion = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The SwaggerVersion model module. - * @module model/SwaggerVersion - * @version latest - */ - - /** - * Constructs a new <code>SwaggerVersion</code>. - * SwaggerVersion swagger version - * @alias module:model/SwaggerVersion - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a <code>SwaggerVersion</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SwaggerVersion} obj Optional instance to populate. - * @return {module:model/SwaggerVersion} The populated <code>SwaggerVersion</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('version')) { - obj['version'] = ApiClient.convertToType(data['version'], 'String'); - } - } - return obj; - } - - /** - * Version is the service's version. - * @member {String} version - */ - exports.prototype['version'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/Swaggeroauth2TokenParameters.js b/sdk/js/swagger/src/model/Swaggeroauth2TokenParameters.js index d1741a3a261..3ed606f054c 100644 --- a/sdk/js/swagger/src/model/Swaggeroauth2TokenParameters.js +++ b/sdk/js/swagger/src/model/Swaggeroauth2TokenParameters.js @@ -41,7 +41,6 @@ /** * Constructs a new <code>Swaggeroauth2TokenParameters</code>. - * Swaggeroauth2TokenParameters swaggeroauth2 token parameters * @alias module:model/Swaggeroauth2TokenParameters * @class * @param grantType {String} in: formData diff --git a/sdk/js/swagger/src/model/Swaggeroauth2TokenResponse.js b/sdk/js/swagger/src/model/Swaggeroauth2TokenResponse.js deleted file mode 100644 index dadc173d196..00000000000 --- a/sdk/js/swagger/src/model/Swaggeroauth2TokenResponse.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.Swaggeroauth2TokenResponse = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The Swaggeroauth2TokenResponse model module. - * @module model/Swaggeroauth2TokenResponse - * @version latest - */ - - /** - * Constructs a new <code>Swaggeroauth2TokenResponse</code>. - * Swaggeroauth2TokenResponse The Access Token Response - * @alias module:model/Swaggeroauth2TokenResponse - * @class - */ - var exports = function() { - var _this = this; - - - - - - }; - - /** - * Constructs a <code>Swaggeroauth2TokenResponse</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Swaggeroauth2TokenResponse} obj Optional instance to populate. - * @return {module:model/Swaggeroauth2TokenResponse} The populated <code>Swaggeroauth2TokenResponse</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('access_token')) { - obj['access_token'] = ApiClient.convertToType(data['access_token'], 'String'); - } - if (data.hasOwnProperty('client_id')) { - obj['client_id'] = ApiClient.convertToType(data['client_id'], 'String'); - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - } - if (data.hasOwnProperty('redirect_uri')) { - obj['redirect_uri'] = ApiClient.convertToType(data['redirect_uri'], 'String'); - } - } - return obj; - } - - /** - * access token - * @member {String} access_token - */ - exports.prototype['access_token'] = undefined; - /** - * refresh token - * @member {String} client_id - */ - exports.prototype['client_id'] = undefined; - /** - * token type - * @member {String} code - */ - exports.prototype['code'] = undefined; - /** - * expires in - * @member {String} redirect_uri - */ - exports.prototype['redirect_uri'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/SwaggeruserinfoResponsePayload.js b/sdk/js/swagger/src/model/SwaggeruserinfoResponsePayload.js deleted file mode 100644 index e42b132fe5b..00000000000 --- a/sdk/js/swagger/src/model/SwaggeruserinfoResponsePayload.js +++ /dev/null @@ -1,245 +0,0 @@ -/** - * ORY Hydra - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * - * Swagger Codegen version: 2.2.3 - * - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['ApiClient'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); - } else { - // Browser globals (root is window) - if (!root.OryHydra) { - root.OryHydra = {}; - } - root.OryHydra.SwaggeruserinfoResponsePayload = factory(root.OryHydra.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The SwaggeruserinfoResponsePayload model module. - * @module model/SwaggeruserinfoResponsePayload - * @version latest - */ - - /** - * Constructs a new <code>SwaggeruserinfoResponsePayload</code>. - * SwaggeruserinfoResponsePayload The userinfo response - * @alias module:model/SwaggeruserinfoResponsePayload - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - - - - - - - - - - - - - }; - - /** - * Constructs a <code>SwaggeruserinfoResponsePayload</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SwaggeruserinfoResponsePayload} obj Optional instance to populate. - * @return {module:model/SwaggeruserinfoResponsePayload} The populated <code>SwaggeruserinfoResponsePayload</code> instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('birthdate')) { - obj['birthdate'] = ApiClient.convertToType(data['birthdate'], 'String'); - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - } - if (data.hasOwnProperty('email_verified')) { - obj['email_verified'] = ApiClient.convertToType(data['email_verified'], 'Boolean'); - } - if (data.hasOwnProperty('family_name')) { - obj['family_name'] = ApiClient.convertToType(data['family_name'], 'String'); - } - if (data.hasOwnProperty('gender')) { - obj['gender'] = ApiClient.convertToType(data['gender'], 'String'); - } - if (data.hasOwnProperty('given_name')) { - obj['given_name'] = ApiClient.convertToType(data['given_name'], 'String'); - } - if (data.hasOwnProperty('locale')) { - obj['locale'] = ApiClient.convertToType(data['locale'], 'String'); - } - if (data.hasOwnProperty('middle_name')) { - obj['middle_name'] = ApiClient.convertToType(data['middle_name'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('phone_number')) { - obj['phone_number'] = ApiClient.convertToType(data['phone_number'], 'String'); - } - if (data.hasOwnProperty('phone_number_verified')) { - obj['phone_number_verified'] = ApiClient.convertToType(data['phone_number_verified'], 'Boolean'); - } - if (data.hasOwnProperty('picture')) { - obj['picture'] = ApiClient.convertToType(data['picture'], 'String'); - } - if (data.hasOwnProperty('preferred_username')) { - obj['preferred_username'] = ApiClient.convertToType(data['preferred_username'], 'String'); - } - if (data.hasOwnProperty('profile')) { - obj['profile'] = ApiClient.convertToType(data['profile'], 'String'); - } - if (data.hasOwnProperty('sub')) { - obj['sub'] = ApiClient.convertToType(data['sub'], 'String'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('website')) { - obj['website'] = ApiClient.convertToType(data['website'], 'String'); - } - if (data.hasOwnProperty('zoneinfo')) { - obj['zoneinfo'] = ApiClient.convertToType(data['zoneinfo'], 'String'); - } - } - return obj; - } - - /** - * End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates. - * @member {String} birthdate - */ - exports.prototype['birthdate'] = undefined; - /** - * End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7. - * @member {String} email - */ - exports.prototype['email'] = undefined; - /** - * True if the End-User's e-mail address has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this e-mail address was controlled by the End-User at the time the verification was performed. The means by which an e-mail address is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. - * @member {Boolean} email_verified - */ - exports.prototype['email_verified'] = undefined; - /** - * Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters. - * @member {String} family_name - */ - exports.prototype['family_name'] = undefined; - /** - * End-User's gender. Values defined by this specification are female and male. Other values MAY be used when neither of the defined values are applicable. - * @member {String} gender - */ - exports.prototype['gender'] = undefined; - /** - * Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters. - * @member {String} given_name - */ - exports.prototype['given_name'] = undefined; - /** - * End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well. - * @member {String} locale - */ - exports.prototype['locale'] = undefined; - /** - * Middle name(s) of the End-User. Note that in some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used. - * @member {String} middle_name - */ - exports.prototype['middle_name'] = undefined; - /** - * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences. - * @member {String} name - */ - exports.prototype['name'] = undefined; - /** - * Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael. - * @member {String} nickname - */ - exports.prototype['nickname'] = undefined; - /** - * End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678. - * @member {String} phone_number - */ - exports.prototype['phone_number'] = undefined; - /** - * True if the End-User's phone number has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this phone number was controlled by the End-User at the time the verification was performed. The means by which a phone number is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. When true, the phone_number Claim MUST be in E.164 format and any extensions MUST be represented in RFC 3966 format. - * @member {Boolean} phone_number_verified - */ - exports.prototype['phone_number_verified'] = undefined; - /** - * URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User. - * @member {String} picture - */ - exports.prototype['picture'] = undefined; - /** - * Non-unique shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as @, /, or whitespace. - * @member {String} preferred_username - */ - exports.prototype['preferred_username'] = undefined; - /** - * URL of the End-User's profile page. The contents of this Web page SHOULD be about the End-User. - * @member {String} profile - */ - exports.prototype['profile'] = undefined; - /** - * Subject - Identifier for the End-User at the IssuerURL. - * @member {String} sub - */ - exports.prototype['sub'] = undefined; - /** - * Time the End-User's information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. - * @member {Number} updated_at - */ - exports.prototype['updated_at'] = undefined; - /** - * URL of the End-User's Web page or blog. This Web page SHOULD contain information published by the End-User or an organization that the End-User is affiliated with. - * @member {String} website - */ - exports.prototype['website'] = undefined; - /** - * String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles. - * @member {String} zoneinfo - */ - exports.prototype['zoneinfo'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/php/swagger/README.md b/sdk/php/swagger/README.md index 66d4cf721aa..880110bf7cb 100644 --- a/sdk/php/swagger/README.md +++ b/sdk/php/swagger/README.md @@ -56,9 +56,9 @@ Please follow the [installation procedure](#installation--usage) and then run th <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $consent_challenge = "consent_challenge_example"; // string | -$body = new \HydraSDK\Model\AcceptConsentRequest(); // \HydraSDK\Model\AcceptConsentRequest | +$body = new \Hydra\SDK\Model\AcceptConsentRequest(); // \Hydra\SDK\Model\AcceptConsentRequest | try { $result = $api_instance->acceptConsentRequest($consent_challenge, $body); @@ -118,23 +118,14 @@ Class | Method | HTTP request | Description - [AcceptConsentRequest](docs/Model/AcceptConsentRequest.md) - [AcceptLoginRequest](docs/Model/AcceptLoginRequest.md) - - [AuthenticationRequest](docs/Model/AuthenticationRequest.md) - - [AuthenticationSession](docs/Model/AuthenticationSession.md) - - [Client](docs/Model/Client.md) - [CompletedRequest](docs/Model/CompletedRequest.md) - [ConsentRequest](docs/Model/ConsentRequest.md) - [ConsentRequestSession](docs/Model/ConsentRequestSession.md) - - [ConsentRequestSessionData](docs/Model/ConsentRequestSessionData.md) - - [CreateRequest](docs/Model/CreateRequest.md) - [EmptyResponse](docs/Model/EmptyResponse.md) - [FlushInactiveOAuth2TokensRequest](docs/Model/FlushInactiveOAuth2TokensRequest.md) - [GenericError](docs/Model/GenericError.md) - - [HandledAuthenticationRequest](docs/Model/HandledAuthenticationRequest.md) - - [HandledConsentRequest](docs/Model/HandledConsentRequest.md) - - [HandledLoginRequest](docs/Model/HandledLoginRequest.md) - [HealthNotReadyStatus](docs/Model/HealthNotReadyStatus.md) - [HealthStatus](docs/Model/HealthStatus.md) - - [Introspection](docs/Model/Introspection.md) - [JSONWebKey](docs/Model/JSONWebKey.md) - [JSONWebKeySet](docs/Model/JSONWebKeySet.md) - [JsonWebKeySetGeneratorRequest](docs/Model/JsonWebKeySetGeneratorRequest.md) @@ -147,25 +138,15 @@ Class | Method | HTTP request | Description - [OpenIDConnectContext](docs/Model/OpenIDConnectContext.md) - [PreviousConsentSession](docs/Model/PreviousConsentSession.md) - [RejectRequest](docs/Model/RejectRequest.md) - - [RequestDeniedError](docs/Model/RequestDeniedError.md) - - [RequestHandlerResponse](docs/Model/RequestHandlerResponse.md) - [SwaggerFlushInactiveAccessTokens](docs/Model/SwaggerFlushInactiveAccessTokens.md) - - [SwaggerHealthStatus](docs/Model/SwaggerHealthStatus.md) - - [SwaggerJSONWebKey](docs/Model/SwaggerJSONWebKey.md) - - [SwaggerJSONWebKeySet](docs/Model/SwaggerJSONWebKeySet.md) - [SwaggerJsonWebKeyQuery](docs/Model/SwaggerJsonWebKeyQuery.md) - [SwaggerJwkCreateSet](docs/Model/SwaggerJwkCreateSet.md) - [SwaggerJwkSetQuery](docs/Model/SwaggerJwkSetQuery.md) - [SwaggerJwkUpdateSet](docs/Model/SwaggerJwkUpdateSet.md) - [SwaggerJwkUpdateSetKey](docs/Model/SwaggerJwkUpdateSetKey.md) - - [SwaggerNotReadyStatus](docs/Model/SwaggerNotReadyStatus.md) - [SwaggerOAuthIntrospectionRequest](docs/Model/SwaggerOAuthIntrospectionRequest.md) - - [SwaggerOAuthTokenResponse](docs/Model/SwaggerOAuthTokenResponse.md) - [SwaggerRevokeOAuth2TokenParameters](docs/Model/SwaggerRevokeOAuth2TokenParameters.md) - - [SwaggerVersion](docs/Model/SwaggerVersion.md) - [Swaggeroauth2TokenParameters](docs/Model/Swaggeroauth2TokenParameters.md) - - [Swaggeroauth2TokenResponse](docs/Model/Swaggeroauth2TokenResponse.md) - - [SwaggeruserinfoResponsePayload](docs/Model/SwaggeruserinfoResponsePayload.md) - [UserinfoResponse](docs/Model/UserinfoResponse.md) - [Version](docs/Model/Version.md) - [WellKnown](docs/Model/WellKnown.md) diff --git a/sdk/php/swagger/autoload.php b/sdk/php/swagger/autoload.php index 1dab38a6a65..018247686e8 100644 --- a/sdk/php/swagger/autoload.php +++ b/sdk/php/swagger/autoload.php @@ -15,10 +15,10 @@ * An example of a project-specific implementation. * * After registering this autoload function with SPL, the following line - * would cause the function to attempt to load the \HydraSDK\Baz\Qux class + * would cause the function to attempt to load the \Hydra\SDK\Baz\Qux class * from /path/to/project/lib/Baz/Qux.php: * - * new \HydraSDK\Baz\Qux; + * new \Hydra\SDK\Baz\Qux; * * @param string $class The fully-qualified class name. * @@ -27,7 +27,7 @@ spl_autoload_register(function ($class) { // project-specific namespace prefix - $prefix = 'HydraSDK\\'; + $prefix = 'Hydra\\SDK\\'; // base directory for the namespace prefix $base_dir = __DIR__ . '/lib/'; diff --git a/sdk/php/swagger/docs/Api/AdminApi.md b/sdk/php/swagger/docs/Api/AdminApi.md index 78e8ebbcec9..2292cf39898 100644 --- a/sdk/php/swagger/docs/Api/AdminApi.md +++ b/sdk/php/swagger/docs/Api/AdminApi.md @@ -1,4 +1,4 @@ -# HydraSDK\AdminApi +# Hydra\SDK\AdminApi Client for Hydra All URIs are relative to *http://localhost* @@ -34,7 +34,7 @@ Method | HTTP request | Description # **acceptConsentRequest** -> \HydraSDK\Model\CompletedRequest acceptConsentRequest($consent_challenge, $body) +> \Hydra\SDK\Model\CompletedRequest acceptConsentRequest($consent_challenge, $body) Accept an consent request @@ -45,9 +45,9 @@ When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $consent_challenge = "consent_challenge_example"; // string | -$body = new \HydraSDK\Model\AcceptConsentRequest(); // \HydraSDK\Model\AcceptConsentRequest | +$body = new \Hydra\SDK\Model\AcceptConsentRequest(); // \Hydra\SDK\Model\AcceptConsentRequest | try { $result = $api_instance->acceptConsentRequest($consent_challenge, $body); @@ -63,11 +63,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **consent_challenge** | **string**| | - **body** | [**\HydraSDK\Model\AcceptConsentRequest**](../Model/AcceptConsentRequest.md)| | [optional] + **body** | [**\Hydra\SDK\Model\AcceptConsentRequest**](../Model/AcceptConsentRequest.md)| | [optional] ### Return type -[**\HydraSDK\Model\CompletedRequest**](../Model/CompletedRequest.md) +[**\Hydra\SDK\Model\CompletedRequest**](../Model/CompletedRequest.md) ### Authorization @@ -81,7 +81,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **acceptLoginRequest** -> \HydraSDK\Model\CompletedRequest acceptLoginRequest($login_challenge, $body) +> \Hydra\SDK\Model\CompletedRequest acceptLoginRequest($login_challenge, $body) Accept an login request @@ -92,9 +92,9 @@ When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $login_challenge = "login_challenge_example"; // string | -$body = new \HydraSDK\Model\AcceptLoginRequest(); // \HydraSDK\Model\AcceptLoginRequest | +$body = new \Hydra\SDK\Model\AcceptLoginRequest(); // \Hydra\SDK\Model\AcceptLoginRequest | try { $result = $api_instance->acceptLoginRequest($login_challenge, $body); @@ -110,11 +110,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **login_challenge** | **string**| | - **body** | [**\HydraSDK\Model\AcceptLoginRequest**](../Model/AcceptLoginRequest.md)| | [optional] + **body** | [**\Hydra\SDK\Model\AcceptLoginRequest**](../Model/AcceptLoginRequest.md)| | [optional] ### Return type -[**\HydraSDK\Model\CompletedRequest**](../Model/CompletedRequest.md) +[**\Hydra\SDK\Model\CompletedRequest**](../Model/CompletedRequest.md) ### Authorization @@ -128,7 +128,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **acceptLogoutRequest** -> \HydraSDK\Model\CompletedRequest acceptLogoutRequest($logout_challenge) +> \Hydra\SDK\Model\CompletedRequest acceptLogoutRequest($logout_challenge) Accept a logout request @@ -139,7 +139,7 @@ When a user or an application requests ORY Hydra to log out a user, this endpoin <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $logout_challenge = "logout_challenge_example"; // string | try { @@ -159,7 +159,7 @@ Name | Type | Description | Notes ### Return type -[**\HydraSDK\Model\CompletedRequest**](../Model/CompletedRequest.md) +[**\Hydra\SDK\Model\CompletedRequest**](../Model/CompletedRequest.md) ### Authorization @@ -173,7 +173,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **createJsonWebKeySet** -> \HydraSDK\Model\JSONWebKeySet createJsonWebKeySet($set, $body) +> \Hydra\SDK\Model\JSONWebKeySet createJsonWebKeySet($set, $body) Generate a new JSON Web Key @@ -184,9 +184,9 @@ This endpoint is capable of generating JSON Web Key Sets for you. There a differ <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $set = "set_example"; // string | The set -$body = new \HydraSDK\Model\JsonWebKeySetGeneratorRequest(); // \HydraSDK\Model\JsonWebKeySetGeneratorRequest | +$body = new \Hydra\SDK\Model\JsonWebKeySetGeneratorRequest(); // \Hydra\SDK\Model\JsonWebKeySetGeneratorRequest | try { $result = $api_instance->createJsonWebKeySet($set, $body); @@ -202,11 +202,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **set** | **string**| The set | - **body** | [**\HydraSDK\Model\JsonWebKeySetGeneratorRequest**](../Model/JsonWebKeySetGeneratorRequest.md)| | [optional] + **body** | [**\Hydra\SDK\Model\JsonWebKeySetGeneratorRequest**](../Model/JsonWebKeySetGeneratorRequest.md)| | [optional] ### Return type -[**\HydraSDK\Model\JSONWebKeySet**](../Model/JSONWebKeySet.md) +[**\Hydra\SDK\Model\JSONWebKeySet**](../Model/JSONWebKeySet.md) ### Authorization @@ -220,7 +220,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **createOAuth2Client** -> \HydraSDK\Model\OAuth2Client createOAuth2Client($body) +> \Hydra\SDK\Model\OAuth2Client createOAuth2Client($body) Create an OAuth 2.0 client @@ -231,8 +231,8 @@ Create a new OAuth 2.0 client If you pass `client_secret` the secret will be use <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); -$body = new \HydraSDK\Model\OAuth2Client(); // \HydraSDK\Model\OAuth2Client | +$api_instance = new Hydra\SDK\Api\AdminApi(); +$body = new \Hydra\SDK\Model\OAuth2Client(); // \Hydra\SDK\Model\OAuth2Client | try { $result = $api_instance->createOAuth2Client($body); @@ -247,11 +247,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\HydraSDK\Model\OAuth2Client**](../Model/OAuth2Client.md)| | + **body** | [**\Hydra\SDK\Model\OAuth2Client**](../Model/OAuth2Client.md)| | ### Return type -[**\HydraSDK\Model\OAuth2Client**](../Model/OAuth2Client.md) +[**\Hydra\SDK\Model\OAuth2Client**](../Model/OAuth2Client.md) ### Authorization @@ -276,7 +276,7 @@ Use this endpoint to delete a single JSON Web Key. A JSON Web Key (JWK) is a Ja <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $kid = "kid_example"; // string | The kid of the desired key $set = "set_example"; // string | The set @@ -322,7 +322,7 @@ Use this endpoint to delete a complete JSON Web Key Set and all the keys in that <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $set = "set_example"; // string | The set try { @@ -366,7 +366,7 @@ Delete an existing OAuth 2.0 Client by its ID. OAuth 2.0 clients are used to pe <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $id = "id_example"; // string | The id of the OAuth 2.0 Client. try { @@ -410,8 +410,8 @@ This endpoint flushes expired OAuth2 access tokens from the database. You can se <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); -$body = new \HydraSDK\Model\FlushInactiveOAuth2TokensRequest(); // \HydraSDK\Model\FlushInactiveOAuth2TokensRequest | +$api_instance = new Hydra\SDK\Api\AdminApi(); +$body = new \Hydra\SDK\Model\FlushInactiveOAuth2TokensRequest(); // \Hydra\SDK\Model\FlushInactiveOAuth2TokensRequest | try { $api_instance->flushInactiveOAuth2Tokens($body); @@ -425,7 +425,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\HydraSDK\Model\FlushInactiveOAuth2TokensRequest**](../Model/FlushInactiveOAuth2TokensRequest.md)| | [optional] + **body** | [**\Hydra\SDK\Model\FlushInactiveOAuth2TokensRequest**](../Model/FlushInactiveOAuth2TokensRequest.md)| | [optional] ### Return type @@ -443,7 +443,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getConsentRequest** -> \HydraSDK\Model\ConsentRequest getConsentRequest($consent_challenge) +> \Hydra\SDK\Model\ConsentRequest getConsentRequest($consent_challenge) Get consent request information @@ -454,7 +454,7 @@ When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $consent_challenge = "consent_challenge_example"; // string | try { @@ -474,7 +474,7 @@ Name | Type | Description | Notes ### Return type -[**\HydraSDK\Model\ConsentRequest**](../Model/ConsentRequest.md) +[**\Hydra\SDK\Model\ConsentRequest**](../Model/ConsentRequest.md) ### Authorization @@ -488,7 +488,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getJsonWebKey** -> \HydraSDK\Model\JSONWebKeySet getJsonWebKey($kid, $set) +> \Hydra\SDK\Model\JSONWebKeySet getJsonWebKey($kid, $set) Fetch a JSON Web Key @@ -499,7 +499,7 @@ This endpoint returns a singular JSON Web Key, identified by the set and the spe <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $kid = "kid_example"; // string | The kid of the desired key $set = "set_example"; // string | The set @@ -521,7 +521,7 @@ Name | Type | Description | Notes ### Return type -[**\HydraSDK\Model\JSONWebKeySet**](../Model/JSONWebKeySet.md) +[**\Hydra\SDK\Model\JSONWebKeySet**](../Model/JSONWebKeySet.md) ### Authorization @@ -535,7 +535,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getJsonWebKeySet** -> \HydraSDK\Model\JSONWebKeySet getJsonWebKeySet($set) +> \Hydra\SDK\Model\JSONWebKeySet getJsonWebKeySet($set) Retrieve a JSON Web Key Set @@ -546,7 +546,7 @@ This endpoint can be used to retrieve JWK Sets stored in ORY Hydra. A JSON Web <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $set = "set_example"; // string | The set try { @@ -566,7 +566,7 @@ Name | Type | Description | Notes ### Return type -[**\HydraSDK\Model\JSONWebKeySet**](../Model/JSONWebKeySet.md) +[**\Hydra\SDK\Model\JSONWebKeySet**](../Model/JSONWebKeySet.md) ### Authorization @@ -580,7 +580,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getLoginRequest** -> \HydraSDK\Model\LoginRequest getLoginRequest($login_challenge) +> \Hydra\SDK\Model\LoginRequest getLoginRequest($login_challenge) Get an login request @@ -591,7 +591,7 @@ When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $login_challenge = "login_challenge_example"; // string | try { @@ -611,7 +611,7 @@ Name | Type | Description | Notes ### Return type -[**\HydraSDK\Model\LoginRequest**](../Model/LoginRequest.md) +[**\Hydra\SDK\Model\LoginRequest**](../Model/LoginRequest.md) ### Authorization @@ -625,7 +625,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getLogoutRequest** -> \HydraSDK\Model\LogoutRequest getLogoutRequest($logout_challenge) +> \Hydra\SDK\Model\LogoutRequest getLogoutRequest($logout_challenge) Get a logout request @@ -636,7 +636,7 @@ Use this endpoint to fetch a logout request. <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $logout_challenge = "logout_challenge_example"; // string | try { @@ -656,7 +656,7 @@ Name | Type | Description | Notes ### Return type -[**\HydraSDK\Model\LogoutRequest**](../Model/LogoutRequest.md) +[**\Hydra\SDK\Model\LogoutRequest**](../Model/LogoutRequest.md) ### Authorization @@ -670,7 +670,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **getOAuth2Client** -> \HydraSDK\Model\OAuth2Client getOAuth2Client($id) +> \Hydra\SDK\Model\OAuth2Client getOAuth2Client($id) Get an OAuth 2.0 Client. @@ -681,7 +681,7 @@ Get an OAUth 2.0 client by its ID. This endpoint never returns passwords. OAuth <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $id = "id_example"; // string | The id of the OAuth 2.0 Client. try { @@ -701,7 +701,7 @@ Name | Type | Description | Notes ### Return type -[**\HydraSDK\Model\OAuth2Client**](../Model/OAuth2Client.md) +[**\Hydra\SDK\Model\OAuth2Client**](../Model/OAuth2Client.md) ### Authorization @@ -715,7 +715,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **introspectOAuth2Token** -> \HydraSDK\Model\OAuth2TokenIntrospection introspectOAuth2Token($token, $scope) +> \Hydra\SDK\Model\OAuth2TokenIntrospection introspectOAuth2Token($token, $scope) Introspect OAuth2 tokens @@ -727,12 +727,12 @@ The introspection endpoint allows to check if a token (both refresh and access) require_once(__DIR__ . '/vendor/autoload.php'); // Configure HTTP basic authorization: basic -HydraSDK\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME'); -HydraSDK\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD'); +Hydra\SDK\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME'); +Hydra\SDK\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD'); // Configure OAuth2 access token for authorization: oauth2 -HydraSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); +Hydra\SDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $token = "token_example"; // 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. $scope = "scope_example"; // string | 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. @@ -754,7 +754,7 @@ Name | Type | Description | Notes ### Return type -[**\HydraSDK\Model\OAuth2TokenIntrospection**](../Model/OAuth2TokenIntrospection.md) +[**\Hydra\SDK\Model\OAuth2TokenIntrospection**](../Model/OAuth2TokenIntrospection.md) ### Authorization @@ -768,7 +768,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **listOAuth2Clients** -> \HydraSDK\Model\OAuth2Client[] listOAuth2Clients($limit, $offset) +> \Hydra\SDK\Model\OAuth2Client[] listOAuth2Clients($limit, $offset) List OAuth 2.0 Clients @@ -779,7 +779,7 @@ This endpoint lists all clients in the database, and never returns client secret <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $limit = 789; // int | The maximum amount of policies returned. $offset = 789; // int | The offset from where to start looking. @@ -801,7 +801,7 @@ Name | Type | Description | Notes ### Return type -[**\HydraSDK\Model\OAuth2Client[]**](../Model/OAuth2Client.md) +[**\Hydra\SDK\Model\OAuth2Client[]**](../Model/OAuth2Client.md) ### Authorization @@ -815,7 +815,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **listSubjectConsentSessions** -> \HydraSDK\Model\PreviousConsentSession[] listSubjectConsentSessions($subject) +> \Hydra\SDK\Model\PreviousConsentSession[] listSubjectConsentSessions($subject) Lists all consent sessions of a subject @@ -826,7 +826,7 @@ This endpoint lists all subject's granted consent sessions, including client and <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $subject = "subject_example"; // string | try { @@ -846,7 +846,7 @@ Name | Type | Description | Notes ### Return type -[**\HydraSDK\Model\PreviousConsentSession[]**](../Model/PreviousConsentSession.md) +[**\Hydra\SDK\Model\PreviousConsentSession[]**](../Model/PreviousConsentSession.md) ### Authorization @@ -860,7 +860,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **rejectConsentRequest** -> \HydraSDK\Model\CompletedRequest rejectConsentRequest($consent_challenge, $body) +> \Hydra\SDK\Model\CompletedRequest rejectConsentRequest($consent_challenge, $body) Reject an consent request @@ -871,9 +871,9 @@ When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $consent_challenge = "consent_challenge_example"; // string | -$body = new \HydraSDK\Model\RejectRequest(); // \HydraSDK\Model\RejectRequest | +$body = new \Hydra\SDK\Model\RejectRequest(); // \Hydra\SDK\Model\RejectRequest | try { $result = $api_instance->rejectConsentRequest($consent_challenge, $body); @@ -889,11 +889,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **consent_challenge** | **string**| | - **body** | [**\HydraSDK\Model\RejectRequest**](../Model/RejectRequest.md)| | [optional] + **body** | [**\Hydra\SDK\Model\RejectRequest**](../Model/RejectRequest.md)| | [optional] ### Return type -[**\HydraSDK\Model\CompletedRequest**](../Model/CompletedRequest.md) +[**\Hydra\SDK\Model\CompletedRequest**](../Model/CompletedRequest.md) ### Authorization @@ -907,7 +907,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **rejectLoginRequest** -> \HydraSDK\Model\CompletedRequest rejectLoginRequest($login_challenge, $body) +> \Hydra\SDK\Model\CompletedRequest rejectLoginRequest($login_challenge, $body) Reject a login request @@ -918,9 +918,9 @@ When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, ORY <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $login_challenge = "login_challenge_example"; // string | -$body = new \HydraSDK\Model\RejectRequest(); // \HydraSDK\Model\RejectRequest | +$body = new \Hydra\SDK\Model\RejectRequest(); // \Hydra\SDK\Model\RejectRequest | try { $result = $api_instance->rejectLoginRequest($login_challenge, $body); @@ -936,11 +936,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **login_challenge** | **string**| | - **body** | [**\HydraSDK\Model\RejectRequest**](../Model/RejectRequest.md)| | [optional] + **body** | [**\Hydra\SDK\Model\RejectRequest**](../Model/RejectRequest.md)| | [optional] ### Return type -[**\HydraSDK\Model\CompletedRequest**](../Model/CompletedRequest.md) +[**\Hydra\SDK\Model\CompletedRequest**](../Model/CompletedRequest.md) ### Authorization @@ -965,9 +965,9 @@ When a user or an application requests ORY Hydra to log out a user, this endpoin <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $logout_challenge = "logout_challenge_example"; // string | -$body = new \HydraSDK\Model\RejectRequest(); // \HydraSDK\Model\RejectRequest | +$body = new \Hydra\SDK\Model\RejectRequest(); // \Hydra\SDK\Model\RejectRequest | try { $api_instance->rejectLogoutRequest($logout_challenge, $body); @@ -982,7 +982,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **logout_challenge** | **string**| | - **body** | [**\HydraSDK\Model\RejectRequest**](../Model/RejectRequest.md)| | [optional] + **body** | [**\Hydra\SDK\Model\RejectRequest**](../Model/RejectRequest.md)| | [optional] ### Return type @@ -1011,7 +1011,7 @@ This endpoint invalidates a subject's authentication session. After revoking the <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $subject = "subject_example"; // string | try { @@ -1055,7 +1055,7 @@ This endpoint revokes a subject's granted consent sessions for a specific OAuth <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $subject = "subject_example"; // string | The subject (Subject) who's consent sessions should be deleted. $client = "client_example"; // string | If set, deletes only those consent sessions by the Subject that have been granted to the specified OAuth 2.0 Client ID @@ -1090,7 +1090,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateJsonWebKey** -> \HydraSDK\Model\JSONWebKey updateJsonWebKey($kid, $set, $body) +> \Hydra\SDK\Model\JSONWebKey updateJsonWebKey($kid, $set, $body) Update a JSON Web Key @@ -1101,10 +1101,10 @@ Use this method if you do not want to let Hydra generate the JWKs for you, but i <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $kid = "kid_example"; // string | The kid of the desired key $set = "set_example"; // string | The set -$body = new \HydraSDK\Model\JSONWebKey(); // \HydraSDK\Model\JSONWebKey | +$body = new \Hydra\SDK\Model\JSONWebKey(); // \Hydra\SDK\Model\JSONWebKey | try { $result = $api_instance->updateJsonWebKey($kid, $set, $body); @@ -1121,11 +1121,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **kid** | **string**| The kid of the desired key | **set** | **string**| The set | - **body** | [**\HydraSDK\Model\JSONWebKey**](../Model/JSONWebKey.md)| | [optional] + **body** | [**\Hydra\SDK\Model\JSONWebKey**](../Model/JSONWebKey.md)| | [optional] ### Return type -[**\HydraSDK\Model\JSONWebKey**](../Model/JSONWebKey.md) +[**\Hydra\SDK\Model\JSONWebKey**](../Model/JSONWebKey.md) ### Authorization @@ -1139,7 +1139,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateJsonWebKeySet** -> \HydraSDK\Model\JSONWebKeySet updateJsonWebKeySet($set, $body) +> \Hydra\SDK\Model\JSONWebKeySet updateJsonWebKeySet($set, $body) Update a JSON Web Key Set @@ -1150,9 +1150,9 @@ Use this method if you do not want to let Hydra generate the JWKs for you, but i <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $set = "set_example"; // string | The set -$body = new \HydraSDK\Model\JSONWebKeySet(); // \HydraSDK\Model\JSONWebKeySet | +$body = new \Hydra\SDK\Model\JSONWebKeySet(); // \Hydra\SDK\Model\JSONWebKeySet | try { $result = $api_instance->updateJsonWebKeySet($set, $body); @@ -1168,11 +1168,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **set** | **string**| The set | - **body** | [**\HydraSDK\Model\JSONWebKeySet**](../Model/JSONWebKeySet.md)| | [optional] + **body** | [**\Hydra\SDK\Model\JSONWebKeySet**](../Model/JSONWebKeySet.md)| | [optional] ### Return type -[**\HydraSDK\Model\JSONWebKeySet**](../Model/JSONWebKeySet.md) +[**\Hydra\SDK\Model\JSONWebKeySet**](../Model/JSONWebKeySet.md) ### Authorization @@ -1186,7 +1186,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **updateOAuth2Client** -> \HydraSDK\Model\OAuth2Client updateOAuth2Client($id, $body) +> \Hydra\SDK\Model\OAuth2Client updateOAuth2Client($id, $body) Update an OAuth 2.0 Client @@ -1197,9 +1197,9 @@ Update an existing OAuth 2.0 Client. If you pass `client_secret` the secret will <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\AdminApi(); +$api_instance = new Hydra\SDK\Api\AdminApi(); $id = "id_example"; // string | -$body = new \HydraSDK\Model\OAuth2Client(); // \HydraSDK\Model\OAuth2Client | +$body = new \Hydra\SDK\Model\OAuth2Client(); // \Hydra\SDK\Model\OAuth2Client | try { $result = $api_instance->updateOAuth2Client($id, $body); @@ -1215,11 +1215,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string**| | - **body** | [**\HydraSDK\Model\OAuth2Client**](../Model/OAuth2Client.md)| | + **body** | [**\Hydra\SDK\Model\OAuth2Client**](../Model/OAuth2Client.md)| | ### Return type -[**\HydraSDK\Model\OAuth2Client**](../Model/OAuth2Client.md) +[**\Hydra\SDK\Model\OAuth2Client**](../Model/OAuth2Client.md) ### Authorization diff --git a/sdk/php/swagger/docs/Api/HealthApi.md b/sdk/php/swagger/docs/Api/HealthApi.md index e2a27fcb95c..f19484859f2 100644 --- a/sdk/php/swagger/docs/Api/HealthApi.md +++ b/sdk/php/swagger/docs/Api/HealthApi.md @@ -1,4 +1,4 @@ -# HydraSDK\HealthApi +# Hydra\SDK\HealthApi Client for Hydra All URIs are relative to *http://localhost* @@ -10,7 +10,7 @@ Method | HTTP request | Description # **isInstanceAlive** -> \HydraSDK\Model\HealthStatus isInstanceAlive() +> \Hydra\SDK\Model\HealthStatus isInstanceAlive() Check alive status @@ -21,7 +21,7 @@ This endpoint returns a 200 status code when the HTTP server is up running. This <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\HealthApi(); +$api_instance = new Hydra\SDK\Api\HealthApi(); try { $result = $api_instance->isInstanceAlive(); @@ -37,7 +37,7 @@ This endpoint does not need any parameter. ### Return type -[**\HydraSDK\Model\HealthStatus**](../Model/HealthStatus.md) +[**\Hydra\SDK\Model\HealthStatus**](../Model/HealthStatus.md) ### Authorization @@ -51,7 +51,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **isInstanceReady** -> \HydraSDK\Model\HealthStatus isInstanceReady() +> \Hydra\SDK\Model\HealthStatus isInstanceReady() Check readiness status @@ -62,7 +62,7 @@ This endpoint returns a 200 status code when the HTTP server is up running and t <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\HealthApi(); +$api_instance = new Hydra\SDK\Api\HealthApi(); try { $result = $api_instance->isInstanceReady(); @@ -78,7 +78,7 @@ This endpoint does not need any parameter. ### Return type -[**\HydraSDK\Model\HealthStatus**](../Model/HealthStatus.md) +[**\Hydra\SDK\Model\HealthStatus**](../Model/HealthStatus.md) ### Authorization diff --git a/sdk/php/swagger/docs/Api/PublicApi.md b/sdk/php/swagger/docs/Api/PublicApi.md index c18ba10de09..0f3dfb103f4 100644 --- a/sdk/php/swagger/docs/Api/PublicApi.md +++ b/sdk/php/swagger/docs/Api/PublicApi.md @@ -1,4 +1,4 @@ -# HydraSDK\PublicApi +# Hydra\SDK\PublicApi Client for Hydra All URIs are relative to *http://localhost* @@ -26,7 +26,7 @@ This endpoint initiates and completes user logout at ORY Hydra and initiates Ope <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\PublicApi(); +$api_instance = new Hydra\SDK\Api\PublicApi(); try { $api_instance->disconnectUser(); @@ -55,7 +55,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **discoverOpenIDConfiguration** -> \HydraSDK\Model\WellKnown discoverOpenIDConfiguration() +> \Hydra\SDK\Model\WellKnown discoverOpenIDConfiguration() OpenID Connect Discovery @@ -66,7 +66,7 @@ The well known endpoint an be used to retrieve information for OpenID Connect cl <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\PublicApi(); +$api_instance = new Hydra\SDK\Api\PublicApi(); try { $result = $api_instance->discoverOpenIDConfiguration(); @@ -82,7 +82,7 @@ This endpoint does not need any parameter. ### Return type -[**\HydraSDK\Model\WellKnown**](../Model/WellKnown.md) +[**\Hydra\SDK\Model\WellKnown**](../Model/WellKnown.md) ### Authorization @@ -96,7 +96,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **oauth2Token** -> \HydraSDK\Model\Oauth2TokenResponse oauth2Token($grant_type, $code, $redirect_uri, $client_id) +> \Hydra\SDK\Model\Oauth2TokenResponse oauth2Token($grant_type, $code, $redirect_uri, $client_id) The OAuth 2.0 token endpoint @@ -108,12 +108,12 @@ The client makes a request to the token endpoint by sending the following parame require_once(__DIR__ . '/vendor/autoload.php'); // Configure HTTP basic authorization: basic -HydraSDK\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME'); -HydraSDK\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD'); +Hydra\SDK\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME'); +Hydra\SDK\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD'); // Configure OAuth2 access token for authorization: oauth2 -HydraSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); +Hydra\SDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); -$api_instance = new HydraSDK\Api\PublicApi(); +$api_instance = new Hydra\SDK\Api\PublicApi(); $grant_type = "grant_type_example"; // string | $code = "code_example"; // string | $redirect_uri = "redirect_uri_example"; // string | @@ -139,7 +139,7 @@ Name | Type | Description | Notes ### Return type -[**\HydraSDK\Model\Oauth2TokenResponse**](../Model/Oauth2TokenResponse.md) +[**\Hydra\SDK\Model\Oauth2TokenResponse**](../Model/Oauth2TokenResponse.md) ### Authorization @@ -164,7 +164,7 @@ This endpoint is not documented here because you should never use your own imple <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\PublicApi(); +$api_instance = new Hydra\SDK\Api\PublicApi(); try { $api_instance->oauthAuth(); @@ -205,12 +205,12 @@ Revoking a token (both access and refresh) means that the tokens will be invalid require_once(__DIR__ . '/vendor/autoload.php'); // Configure HTTP basic authorization: basic -HydraSDK\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME'); -HydraSDK\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD'); +Hydra\SDK\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME'); +Hydra\SDK\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD'); // Configure OAuth2 access token for authorization: oauth2 -HydraSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); +Hydra\SDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); -$api_instance = new HydraSDK\Api\PublicApi(); +$api_instance = new Hydra\SDK\Api\PublicApi(); $token = "token_example"; // string | try { @@ -243,7 +243,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **userinfo** -> \HydraSDK\Model\UserinfoResponse userinfo() +> \Hydra\SDK\Model\UserinfoResponse userinfo() OpenID Connect Userinfo @@ -255,9 +255,9 @@ This endpoint returns the payload of the ID Token, including the idTokenExtra va require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: oauth2 -HydraSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); +Hydra\SDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); -$api_instance = new HydraSDK\Api\PublicApi(); +$api_instance = new Hydra\SDK\Api\PublicApi(); try { $result = $api_instance->userinfo(); @@ -273,7 +273,7 @@ This endpoint does not need any parameter. ### Return type -[**\HydraSDK\Model\UserinfoResponse**](../Model/UserinfoResponse.md) +[**\Hydra\SDK\Model\UserinfoResponse**](../Model/UserinfoResponse.md) ### Authorization @@ -287,7 +287,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) # **wellKnown** -> \HydraSDK\Model\JSONWebKeySet wellKnown() +> \Hydra\SDK\Model\JSONWebKeySet wellKnown() JSON Web Keys Discovery @@ -298,7 +298,7 @@ This endpoint returns JSON Web Keys to be used as public keys for verifying Open <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\PublicApi(); +$api_instance = new Hydra\SDK\Api\PublicApi(); try { $result = $api_instance->wellKnown(); @@ -314,7 +314,7 @@ This endpoint does not need any parameter. ### Return type -[**\HydraSDK\Model\JSONWebKeySet**](../Model/JSONWebKeySet.md) +[**\Hydra\SDK\Model\JSONWebKeySet**](../Model/JSONWebKeySet.md) ### Authorization diff --git a/sdk/php/swagger/docs/Api/VersionApi.md b/sdk/php/swagger/docs/Api/VersionApi.md index 6380e1e8722..8f9d8710f6e 100644 --- a/sdk/php/swagger/docs/Api/VersionApi.md +++ b/sdk/php/swagger/docs/Api/VersionApi.md @@ -1,4 +1,4 @@ -# HydraSDK\VersionApi +# Hydra\SDK\VersionApi Client for Hydra All URIs are relative to *http://localhost* @@ -9,7 +9,7 @@ Method | HTTP request | Description # **getVersion** -> \HydraSDK\Model\Version getVersion() +> \Hydra\SDK\Model\Version getVersion() Get service version @@ -20,7 +20,7 @@ This endpoint returns the service version typically notated using semantic versi <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new HydraSDK\Api\VersionApi(); +$api_instance = new Hydra\SDK\Api\VersionApi(); try { $result = $api_instance->getVersion(); @@ -36,7 +36,7 @@ This endpoint does not need any parameter. ### Return type -[**\HydraSDK\Model\Version**](../Model/Version.md) +[**\Hydra\SDK\Model\Version**](../Model/Version.md) ### Authorization diff --git a/sdk/php/swagger/docs/Model/AcceptConsentRequest.md b/sdk/php/swagger/docs/Model/AcceptConsentRequest.md index 729b5d0f77a..8327ab65d80 100644 --- a/sdk/php/swagger/docs/Model/AcceptConsentRequest.md +++ b/sdk/php/swagger/docs/Model/AcceptConsentRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **grant_scope** | **string[]** | GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`. | [optional] **remember** | **bool** | Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. | [optional] **remember_for** | **int** | RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] -**session** | [**\HydraSDK\Model\ConsentRequestSession**](ConsentRequestSession.md) | | [optional] +**session** | [**\Hydra\SDK\Model\ConsentRequestSession**](ConsentRequestSession.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/php/swagger/docs/Model/AuthenticationRequest.md b/sdk/php/swagger/docs/Model/AuthenticationRequest.md deleted file mode 100644 index c3be14006c0..00000000000 --- a/sdk/php/swagger/docs/Model/AuthenticationRequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# AuthenticationRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**challenge** | **string** | Challenge is the identifier (\"authentication challenge\") of the consent authentication request. It is used to identify the session. | [optional] -**client** | [**\HydraSDK\Model\Client**](Client.md) | | [optional] -**oidc_context** | [**\HydraSDK\Model\OpenIDConnectContext**](OpenIDConnectContext.md) | | [optional] -**request_url** | **string** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | [optional] -**requested_access_token_audience** | **string[]** | RequestedScope contains the access token audience as requested by the OAuth 2.0 Client. | [optional] -**requested_scope** | **string[]** | RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. | [optional] -**session_id** | **string** | SessionID is the authentication session ID. It is set if the browser had a valid authentication session at ORY Hydra during the login flow. It can be used to associate consecutive login requests by a certain user. | [optional] -**skip** | **bool** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. | [optional] -**subject** | **string** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/AuthenticationSession.md b/sdk/php/swagger/docs/Model/AuthenticationSession.md deleted file mode 100644 index fbff4cf49eb..00000000000 --- a/sdk/php/swagger/docs/Model/AuthenticationSession.md +++ /dev/null @@ -1,12 +0,0 @@ -# AuthenticationSession - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authenticated_at** | [**\DateTime**](\DateTime.md) | authenticated at Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time | [optional] -**id** | **string** | ID | [optional] -**subject** | **string** | subject | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/Client.md b/sdk/php/swagger/docs/Model/Client.md deleted file mode 100644 index c6cc8469b23..00000000000 --- a/sdk/php/swagger/docs/Model/Client.md +++ /dev/null @@ -1,40 +0,0 @@ -# Client - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed_cors_origins** | **string[]** | AllowedCORSOrigins are one or more URLs (scheme://host[:port]) which are allowed to make CORS requests to the /oauth/token endpoint. If this array is empty, the sever's CORS origin configuration (`CORS_ALLOWED_ORIGINS`) will be used instead. If this array is set, the allowed origins are appended to the server's CORS origin configuration. Be aware that environment variable `CORS_ENABLED` MUST be set to `true` for this to work. | [optional] -**audience** | **string[]** | Audience is a whitelist defining the audiences this client is allowed to request tokens for. An audience limits the applicability of an OAuth 2.0 Access Token to, for example, certain API endpoints. The value is a list of URLs. URLs MUST NOT contain whitespaces. | [optional] -**backchannel_logout_session_required** | **bool** | Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. | [optional] -**backchannel_logout_uri** | **string** | RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. | [optional] -**client_id** | **string** | ClientID is the id for this client. | [optional] -**client_name** | **string** | Name is the human-readable string name of the client to be presented to the end-user during authorization. | [optional] -**client_secret** | **string** | Secret is the client's secret. The secret will be included in the create request as cleartext, and then never again. The secret is stored using BCrypt so it is impossible to recover it. Tell your users that they need to write the secret down as it will not be made available again. | [optional] -**client_secret_expires_at** | **int** | SecretExpiresAt is an integer holding the time at which the client secret will expire or 0 if it will not expire. The time is represented as the number of seconds from 1970-01-01T00:00:00Z as measured in UTC until the date/time of expiration. This feature is currently not supported and it's value will always be set to 0. | [optional] -**client_uri** | **string** | ClientURI is an URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion. | [optional] -**contacts** | **string[]** | Contacts is a array of strings representing ways to contact people responsible for this client, typically email addresses. | [optional] -**created_at** | [**\DateTime**](\DateTime.md) | CreatedAt returns the timestamp of the client's creation. Format: date-time | [optional] -**frontchannel_logout_session_required** | **bool** | Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used. If omitted, the default value is false. | [optional] -**frontchannel_logout_uri** | **string** | RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the request and to determine which of the potentially multiple sessions is to be logged out; if either is included, both MUST be. | [optional] -**grant_types** | **string[]** | GrantTypes is an array of grant types the client is allowed to use. | [optional] -**jwks** | [**\HydraSDK\Model\SwaggerJSONWebKeySet**](SwaggerJSONWebKeySet.md) | | [optional] -**jwks_uri** | **string** | URL for the Client's JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains the signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the Client's encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate. | [optional] -**logo_uri** | **string** | LogoURI is an URL string that references a logo for the client. | [optional] -**owner** | **string** | Owner is a string identifying the owner of the OAuth 2.0 Client. | [optional] -**policy_uri** | **string** | PolicyURI is a URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data. | [optional] -**post_logout_redirect_uris** | **string[]** | Array of URLs supplied by the RP to which it MAY request that the End-User's User Agent be redirected using the post_logout_redirect_uri parameter after a logout has been performed. | [optional] -**redirect_uris** | **string[]** | RedirectURIs is an array of allowed redirect urls for the client, for example http://mydomain/oauth/callback . | [optional] -**request_object_signing_alg** | **string** | JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. All Request Objects from this Client MUST be rejected, if not signed with this algorithm. | [optional] -**request_uris** | **string[]** | Array of request_uri values that are pre-registered by the RP for use at the OP. Servers MAY cache the contents of the files referenced by these URIs and not retrieve them at the time they are used in a request. OPs can require that request_uri values used be pre-registered with the require_request_uri_registration discovery parameter. | [optional] -**response_types** | **string[]** | ResponseTypes is an array of the OAuth 2.0 response type strings that the client can use at the authorization endpoint. | [optional] -**scope** | **string** | Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] -**sector_identifier_uri** | **string** | URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] -**subject_type** | **string** | SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] -**token_endpoint_auth_method** | **string** | Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none. | [optional] -**tos_uri** | **string** | TermsOfServiceURI is a URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. | [optional] -**updated_at** | [**\DateTime**](\DateTime.md) | UpdatedAt returns the timestamp of the last update. Format: date-time | [optional] -**userinfo_signed_response_alg** | **string** | JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/ConsentRequest.md b/sdk/php/swagger/docs/Model/ConsentRequest.md index 4460d0c226c..6827df5acad 100644 --- a/sdk/php/swagger/docs/Model/ConsentRequest.md +++ b/sdk/php/swagger/docs/Model/ConsentRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **acr** | **string** | ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. | [optional] **challenge** | **string** | Challenge is the identifier (\"authorization challenge\") of the consent authorization request. It is used to identify the session. | [optional] -**client** | [**\HydraSDK\Model\OAuth2Client**](OAuth2Client.md) | | [optional] +**client** | [**\Hydra\SDK\Model\OAuth2Client**](OAuth2Client.md) | | [optional] **context** | **map[string,object]** | Context contains arbitrary information set by the login endpoint or is empty if not set. | [optional] **login_challenge** | **string** | LoginChallenge is the login challenge this consent challenge belongs to. It can be used to associate a login and consent request in the login & consent app. | [optional] **login_session_id** | **string** | LoginSessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. | [optional] -**oidc_context** | [**\HydraSDK\Model\OpenIDConnectContext**](OpenIDConnectContext.md) | | [optional] +**oidc_context** | [**\Hydra\SDK\Model\OpenIDConnectContext**](OpenIDConnectContext.md) | | [optional] **request_url** | **string** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | [optional] **requested_access_token_audience** | **string[]** | RequestedScope contains the access token audience as requested by the OAuth 2.0 Client. | [optional] **requested_scope** | **string[]** | RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. | [optional] diff --git a/sdk/php/swagger/docs/Model/ConsentRequestSessionData.md b/sdk/php/swagger/docs/Model/ConsentRequestSessionData.md deleted file mode 100644 index 0f2b5244e2a..00000000000 --- a/sdk/php/swagger/docs/Model/ConsentRequestSessionData.md +++ /dev/null @@ -1,11 +0,0 @@ -# ConsentRequestSessionData - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**access_token** | **map[string,object]** | AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! | [optional] -**id_token** | **map[string,object]** | IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable by anyone that has access to the ID Challenge. Use with care! | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/CreateRequest.md b/sdk/php/swagger/docs/Model/CreateRequest.md deleted file mode 100644 index ecad6cab1a7..00000000000 --- a/sdk/php/swagger/docs/Model/CreateRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# CreateRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**alg** | **string** | The algorithm to be used for creating the key. Supports \"RS256\", \"ES512\", \"HS512\", and \"HS256\" | -**kid** | **string** | The kid of the key to be created | -**use** | **string** | The \"use\" (public key use) parameter identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Valid values are \"enc\" and \"sig\". | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/HandledAuthenticationRequest.md b/sdk/php/swagger/docs/Model/HandledAuthenticationRequest.md deleted file mode 100644 index cf3e7696507..00000000000 --- a/sdk/php/swagger/docs/Model/HandledAuthenticationRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# HandledAuthenticationRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acr** | **string** | ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. | [optional] -**force_subject_identifier** | **string** | ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. | [optional] -**remember** | **bool** | Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. | [optional] -**remember_for** | **int** | RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] -**subject** | **string** | Subject is the user ID of the end-user that authenticated. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/HandledConsentRequest.md b/sdk/php/swagger/docs/Model/HandledConsentRequest.md deleted file mode 100644 index ee0c6db5602..00000000000 --- a/sdk/php/swagger/docs/Model/HandledConsentRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# HandledConsentRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**grant_access_token_audience** | **string[]** | GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`. | [optional] -**grant_scope** | **string[]** | GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`. | [optional] -**remember** | **bool** | Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. | [optional] -**remember_for** | **int** | RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] -**session** | [**\HydraSDK\Model\ConsentRequestSessionData**](ConsentRequestSessionData.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/HandledLoginRequest.md b/sdk/php/swagger/docs/Model/HandledLoginRequest.md deleted file mode 100644 index 604d9a0300e..00000000000 --- a/sdk/php/swagger/docs/Model/HandledLoginRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# HandledLoginRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acr** | **string** | ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. | [optional] -**context** | **map[string,object]** | Context is an optional object which can hold arbitrary data. The data will be made available when fetching the consent request under the \"context\" field. This is useful in scenarios where login and consent endpoints share data. | [optional] -**force_subject_identifier** | **string** | ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. | [optional] -**remember** | **bool** | Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. | [optional] -**remember_for** | **int** | RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] -**subject** | **string** | Subject is the user ID of the end-user that authenticated. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/Introspection.md b/sdk/php/swagger/docs/Model/Introspection.md deleted file mode 100644 index 469ccc36cef..00000000000 --- a/sdk/php/swagger/docs/Model/Introspection.md +++ /dev/null @@ -1,22 +0,0 @@ -# Introspection - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **bool** | Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's \"active\" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a \"true\" value return for the \"active\" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time). | -**aud** | **string[]** | Audience contains a list of the token's intended audiences. | [optional] -**client_id** | **string** | ClientID is aclient identifier for the OAuth 2.0 client that requested this token. | [optional] -**exp** | **int** | Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire. | [optional] -**ext** | **map[string,object]** | Extra is arbitrary data set by the session. | [optional] -**iat** | **int** | Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued. | [optional] -**iss** | **string** | IssuerURL is a string representing the issuer of this token | [optional] -**nbf** | **int** | NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before. | [optional] -**obfuscated_subject** | **string** | ObfuscatedSubject is set when the subject identifier algorithm was set to \"pairwise\" during authorization. It is the `sub` value of the ID Token that was issued. | [optional] -**scope** | **string** | Scope is a JSON string containing a space-separated list of scopes associated with this token. | [optional] -**sub** | **string** | Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token. | [optional] -**token_type** | **string** | TokenType is the introspected token's type, for example `access_token` or `refresh_token`. | [optional] -**username** | **string** | Username is a human-readable identifier for the resource owner who authorized this token. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/JSONWebKeySet.md b/sdk/php/swagger/docs/Model/JSONWebKeySet.md index 0f93f587dd9..6a33be226cb 100644 --- a/sdk/php/swagger/docs/Model/JSONWebKeySet.md +++ b/sdk/php/swagger/docs/Model/JSONWebKeySet.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**keys** | [**\HydraSDK\Model\JSONWebKey[]**](JSONWebKey.md) | The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. | [optional] +**keys** | [**\Hydra\SDK\Model\JSONWebKey[]**](JSONWebKey.md) | The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/php/swagger/docs/Model/LoginRequest.md b/sdk/php/swagger/docs/Model/LoginRequest.md index 08f4a23c5ba..f6c4d483020 100644 --- a/sdk/php/swagger/docs/Model/LoginRequest.md +++ b/sdk/php/swagger/docs/Model/LoginRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **challenge** | **string** | Challenge is the identifier (\"login challenge\") of the login request. It is used to identify the session. | [optional] -**client** | [**\HydraSDK\Model\OAuth2Client**](OAuth2Client.md) | | [optional] -**oidc_context** | [**\HydraSDK\Model\OpenIDConnectContext**](OpenIDConnectContext.md) | | [optional] +**client** | [**\Hydra\SDK\Model\OAuth2Client**](OAuth2Client.md) | | [optional] +**oidc_context** | [**\Hydra\SDK\Model\OpenIDConnectContext**](OpenIDConnectContext.md) | | [optional] **request_url** | **string** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | [optional] **requested_access_token_audience** | **string[]** | RequestedScope contains the access token audience as requested by the OAuth 2.0 Client. | [optional] **requested_scope** | **string[]** | RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. | [optional] diff --git a/sdk/php/swagger/docs/Model/OAuth2Client.md b/sdk/php/swagger/docs/Model/OAuth2Client.md index e14a3ddd23e..deaf6a3474b 100644 --- a/sdk/php/swagger/docs/Model/OAuth2Client.md +++ b/sdk/php/swagger/docs/Model/OAuth2Client.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **frontchannel_logout_session_required** | **bool** | Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used. If omitted, the default value is false. | [optional] **frontchannel_logout_uri** | **string** | RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the request and to determine which of the potentially multiple sessions is to be logged out; if either is included, both MUST be. | [optional] **grant_types** | **string[]** | GrantTypes is an array of grant types the client is allowed to use. | [optional] -**jwks** | [**\HydraSDK\Model\JSONWebKeySet**](JSONWebKeySet.md) | | [optional] +**jwks** | [**\Hydra\SDK\Model\JSONWebKeySet**](JSONWebKeySet.md) | | [optional] **jwks_uri** | **string** | URL for the Client's JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains the signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the Client's encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate. | [optional] **logo_uri** | **string** | LogoURI is an URL string that references a logo for the client. | [optional] **owner** | **string** | Owner is a string identifying the owner of the OAuth 2.0 Client. | [optional] diff --git a/sdk/php/swagger/docs/Model/PreviousConsentSession.md b/sdk/php/swagger/docs/Model/PreviousConsentSession.md index 6248c8eb237..0ec811bef76 100644 --- a/sdk/php/swagger/docs/Model/PreviousConsentSession.md +++ b/sdk/php/swagger/docs/Model/PreviousConsentSession.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**consent_request** | [**\HydraSDK\Model\ConsentRequest**](ConsentRequest.md) | | [optional] +**consent_request** | [**\Hydra\SDK\Model\ConsentRequest**](ConsentRequest.md) | | [optional] **grant_access_token_audience** | **string[]** | GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`. | [optional] **grant_scope** | **string[]** | GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope` | [optional] **remember** | **bool** | Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. | [optional] **remember_for** | **int** | RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional] -**session** | [**\HydraSDK\Model\ConsentRequestSession**](ConsentRequestSession.md) | | [optional] +**session** | [**\Hydra\SDK\Model\ConsentRequestSession**](ConsentRequestSession.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/php/swagger/docs/Model/RequestDeniedError.md b/sdk/php/swagger/docs/Model/RequestDeniedError.md deleted file mode 100644 index 5c150b07269..00000000000 --- a/sdk/php/swagger/docs/Model/RequestDeniedError.md +++ /dev/null @@ -1,14 +0,0 @@ -# RequestDeniedError - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | **string** | name | [optional] -**error_debug** | **string** | debug | [optional] -**error_description** | **string** | description | [optional] -**error_hint** | **string** | hint | [optional] -**status_code** | **int** | code | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/RequestHandlerResponse.md b/sdk/php/swagger/docs/Model/RequestHandlerResponse.md deleted file mode 100644 index 0d00438a993..00000000000 --- a/sdk/php/swagger/docs/Model/RequestHandlerResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# RequestHandlerResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**redirect_to** | **string** | RedirectURL is the URL which you should redirect the user to once the authentication process is completed. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/SwaggerFlushInactiveAccessTokens.md b/sdk/php/swagger/docs/Model/SwaggerFlushInactiveAccessTokens.md index a1c83f53473..8e6fe3db45f 100644 --- a/sdk/php/swagger/docs/Model/SwaggerFlushInactiveAccessTokens.md +++ b/sdk/php/swagger/docs/Model/SwaggerFlushInactiveAccessTokens.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**body** | [**\HydraSDK\Model\FlushInactiveOAuth2TokensRequest**](FlushInactiveOAuth2TokensRequest.md) | | [optional] +**body** | [**\Hydra\SDK\Model\FlushInactiveOAuth2TokensRequest**](FlushInactiveOAuth2TokensRequest.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/php/swagger/docs/Model/SwaggerHealthStatus.md b/sdk/php/swagger/docs/Model/SwaggerHealthStatus.md deleted file mode 100644 index 055f6d8d8b2..00000000000 --- a/sdk/php/swagger/docs/Model/SwaggerHealthStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# SwaggerHealthStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **string** | Status always contains \"ok\". | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/SwaggerJSONWebKey.md b/sdk/php/swagger/docs/Model/SwaggerJSONWebKey.md deleted file mode 100644 index efe5d9727b9..00000000000 --- a/sdk/php/swagger/docs/Model/SwaggerJSONWebKey.md +++ /dev/null @@ -1,26 +0,0 @@ -# SwaggerJSONWebKey - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**alg** | **string** | The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. | -**crv** | **string** | crv | [optional] -**d** | **string** | d | [optional] -**dp** | **string** | dp | [optional] -**dq** | **string** | dq | [optional] -**e** | **string** | e | [optional] -**k** | **string** | k | [optional] -**kid** | **string** | The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string. | -**kty** | **string** | The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string. | -**n** | **string** | n | [optional] -**p** | **string** | p | [optional] -**q** | **string** | q | [optional] -**qi** | **string** | qi | [optional] -**use** | **string** | Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption). | -**x** | **string** | x | [optional] -**x5c** | **string[]** | The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate. | [optional] -**y** | **string** | y | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/SwaggerJSONWebKeySet.md b/sdk/php/swagger/docs/Model/SwaggerJSONWebKeySet.md deleted file mode 100644 index 52908d98081..00000000000 --- a/sdk/php/swagger/docs/Model/SwaggerJSONWebKeySet.md +++ /dev/null @@ -1,10 +0,0 @@ -# SwaggerJSONWebKeySet - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**keys** | [**\HydraSDK\Model\SwaggerJSONWebKey[]**](SwaggerJSONWebKey.md) | The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/SwaggerJwkCreateSet.md b/sdk/php/swagger/docs/Model/SwaggerJwkCreateSet.md index 2335e275513..75e10ac5243 100644 --- a/sdk/php/swagger/docs/Model/SwaggerJwkCreateSet.md +++ b/sdk/php/swagger/docs/Model/SwaggerJwkCreateSet.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**body** | [**\HydraSDK\Model\JsonWebKeySetGeneratorRequest**](JsonWebKeySetGeneratorRequest.md) | | [optional] +**body** | [**\Hydra\SDK\Model\JsonWebKeySetGeneratorRequest**](JsonWebKeySetGeneratorRequest.md) | | [optional] **set** | **string** | The set in: path | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/php/swagger/docs/Model/SwaggerJwkUpdateSet.md b/sdk/php/swagger/docs/Model/SwaggerJwkUpdateSet.md index a612d125acc..4f34e2537a8 100644 --- a/sdk/php/swagger/docs/Model/SwaggerJwkUpdateSet.md +++ b/sdk/php/swagger/docs/Model/SwaggerJwkUpdateSet.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**body** | [**\HydraSDK\Model\JSONWebKeySet**](JSONWebKeySet.md) | | [optional] +**body** | [**\Hydra\SDK\Model\JSONWebKeySet**](JSONWebKeySet.md) | | [optional] **set** | **string** | The set in: path | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/php/swagger/docs/Model/SwaggerJwkUpdateSetKey.md b/sdk/php/swagger/docs/Model/SwaggerJwkUpdateSetKey.md index 61724b5a325..65b1bb6c156 100644 --- a/sdk/php/swagger/docs/Model/SwaggerJwkUpdateSetKey.md +++ b/sdk/php/swagger/docs/Model/SwaggerJwkUpdateSetKey.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**body** | [**\HydraSDK\Model\JSONWebKey**](JSONWebKey.md) | | [optional] +**body** | [**\Hydra\SDK\Model\JSONWebKey**](JSONWebKey.md) | | [optional] **kid** | **string** | The kid of the desired key in: path | **set** | **string** | The set in: path | diff --git a/sdk/php/swagger/docs/Model/SwaggerNotReadyStatus.md b/sdk/php/swagger/docs/Model/SwaggerNotReadyStatus.md deleted file mode 100644 index b0200afb544..00000000000 --- a/sdk/php/swagger/docs/Model/SwaggerNotReadyStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# SwaggerNotReadyStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | **map[string,string]** | Errors contains a list of errors that caused the not ready status. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/SwaggerOAuthIntrospectionRequest.md b/sdk/php/swagger/docs/Model/SwaggerOAuthIntrospectionRequest.md index 2f2c73126e6..ef0fb132061 100644 --- a/sdk/php/swagger/docs/Model/SwaggerOAuthIntrospectionRequest.md +++ b/sdk/php/swagger/docs/Model/SwaggerOAuthIntrospectionRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **scope** | **string** | 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. in: formData | [optional] -**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 [RFC6749], Section 5.1. This endpoint DOES NOT accept refresh tokens for validation. | +**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. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdk/php/swagger/docs/Model/SwaggerOAuthTokenResponse.md b/sdk/php/swagger/docs/Model/SwaggerOAuthTokenResponse.md deleted file mode 100644 index fee13cd7eb1..00000000000 --- a/sdk/php/swagger/docs/Model/SwaggerOAuthTokenResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# SwaggerOAuthTokenResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**access_token** | **string** | The access token issued by the authorization server. | [optional] -**expires_in** | **int** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional] -**id_token** | **int** | To retrieve a refresh token request the id_token scope. | [optional] -**refresh_token** | **string** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional] -**scope** | **int** | The scope of the access token | [optional] -**token_type** | **string** | The type of the token issued | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/SwaggerVersion.md b/sdk/php/swagger/docs/Model/SwaggerVersion.md deleted file mode 100644 index a5592141869..00000000000 --- a/sdk/php/swagger/docs/Model/SwaggerVersion.md +++ /dev/null @@ -1,10 +0,0 @@ -# SwaggerVersion - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**version** | **string** | Version is the service's version. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/Swaggeroauth2TokenResponse.md b/sdk/php/swagger/docs/Model/Swaggeroauth2TokenResponse.md deleted file mode 100644 index c8a39c7b214..00000000000 --- a/sdk/php/swagger/docs/Model/Swaggeroauth2TokenResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# Swaggeroauth2TokenResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**access_token** | **string** | access token | [optional] -**client_id** | **string** | refresh token | [optional] -**code** | **string** | token type | [optional] -**redirect_uri** | **string** | expires in | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/docs/Model/SwaggeruserinfoResponsePayload.md b/sdk/php/swagger/docs/Model/SwaggeruserinfoResponsePayload.md deleted file mode 100644 index 02f679e4c1f..00000000000 --- a/sdk/php/swagger/docs/Model/SwaggeruserinfoResponsePayload.md +++ /dev/null @@ -1,28 +0,0 @@ -# SwaggeruserinfoResponsePayload - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**birthdate** | **string** | End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates. | [optional] -**email** | **string** | End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7. | [optional] -**email_verified** | **bool** | True if the End-User's e-mail address has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this e-mail address was controlled by the End-User at the time the verification was performed. The means by which an e-mail address is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. | [optional] -**family_name** | **string** | Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters. | [optional] -**gender** | **string** | End-User's gender. Values defined by this specification are female and male. Other values MAY be used when neither of the defined values are applicable. | [optional] -**given_name** | **string** | Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters. | [optional] -**locale** | **string** | End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well. | [optional] -**middle_name** | **string** | Middle name(s) of the End-User. Note that in some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used. | [optional] -**name** | **string** | End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences. | [optional] -**nickname** | **string** | Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael. | [optional] -**phone_number** | **string** | End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678. | [optional] -**phone_number_verified** | **bool** | True if the End-User's phone number has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this phone number was controlled by the End-User at the time the verification was performed. The means by which a phone number is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. When true, the phone_number Claim MUST be in E.164 format and any extensions MUST be represented in RFC 3966 format. | [optional] -**picture** | **string** | URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User. | [optional] -**preferred_username** | **string** | Non-unique shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as @, /, or whitespace. | [optional] -**profile** | **string** | URL of the End-User's profile page. The contents of this Web page SHOULD be about the End-User. | [optional] -**sub** | **string** | Subject - Identifier for the End-User at the IssuerURL. | [optional] -**updated_at** | **int** | Time the End-User's information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. | [optional] -**website** | **string** | URL of the End-User's Web page or blog. This Web page SHOULD contain information published by the End-User or an organization that the End-User is affiliated with. | [optional] -**zoneinfo** | **string** | String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/sdk/php/swagger/lib/Api/AdminApi.php b/sdk/php/swagger/lib/Api/AdminApi.php index ec9d92e12bc..41db131e0f0 100644 --- a/sdk/php/swagger/lib/Api/AdminApi.php +++ b/sdk/php/swagger/lib/Api/AdminApi.php @@ -4,7 +4,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -26,18 +26,18 @@ * Do not edit the class manually. */ -namespace HydraSDK\Api; +namespace Hydra\SDK\Api; -use \HydraSDK\ApiClient; -use \HydraSDK\ApiException; -use \HydraSDK\Configuration; -use \HydraSDK\ObjectSerializer; +use \Hydra\SDK\ApiClient; +use \Hydra\SDK\ApiException; +use \Hydra\SDK\Configuration; +use \Hydra\SDK\ObjectSerializer; /** * AdminApi Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -46,16 +46,16 @@ class AdminApi /** * API Client * - * @var \HydraSDK\ApiClient instance of the ApiClient + * @var \Hydra\SDK\ApiClient instance of the ApiClient */ protected $apiClient; /** * Constructor * - * @param \HydraSDK\ApiClient|null $apiClient The api client to use + * @param \Hydra\SDK\ApiClient|null $apiClient The api client to use */ - public function __construct(\HydraSDK\ApiClient $apiClient = null) + public function __construct(\Hydra\SDK\ApiClient $apiClient = null) { if ($apiClient === null) { $apiClient = new ApiClient(); @@ -67,7 +67,7 @@ public function __construct(\HydraSDK\ApiClient $apiClient = null) /** * Get API client * - * @return \HydraSDK\ApiClient get the API client + * @return \Hydra\SDK\ApiClient get the API client */ public function getApiClient() { @@ -77,11 +77,11 @@ public function getApiClient() /** * Set the API client * - * @param \HydraSDK\ApiClient $apiClient set the API client + * @param \Hydra\SDK\ApiClient $apiClient set the API client * * @return AdminApi */ - public function setApiClient(\HydraSDK\ApiClient $apiClient) + public function setApiClient(\Hydra\SDK\ApiClient $apiClient) { $this->apiClient = $apiClient; return $this; @@ -95,9 +95,9 @@ public function setApiClient(\HydraSDK\ApiClient $apiClient) * Client for Hydra * * @param string $consent_challenge (required) - * @param \HydraSDK\Model\AcceptConsentRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\CompletedRequest + * @param \Hydra\SDK\Model\AcceptConsentRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\CompletedRequest */ public function acceptConsentRequest($consent_challenge, $body = null) { @@ -113,9 +113,9 @@ public function acceptConsentRequest($consent_challenge, $body = null) * Client for Hydra * * @param string $consent_challenge (required) - * @param \HydraSDK\Model\AcceptConsentRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\CompletedRequest, HTTP status code, HTTP response headers (array of strings) + * @param \Hydra\SDK\Model\AcceptConsentRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\CompletedRequest, HTTP status code, HTTP response headers (array of strings) */ public function acceptConsentRequestWithHttpInfo($consent_challenge, $body = null) { @@ -159,23 +159,23 @@ public function acceptConsentRequestWithHttpInfo($consent_challenge, $body = nul $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\CompletedRequest', + '\Hydra\SDK\Model\CompletedRequest', '/oauth2/auth/requests/consent/accept' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\CompletedRequest', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\CompletedRequest', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\CompletedRequest', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\CompletedRequest', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -192,9 +192,9 @@ public function acceptConsentRequestWithHttpInfo($consent_challenge, $body = nul * Client for Hydra * * @param string $login_challenge (required) - * @param \HydraSDK\Model\AcceptLoginRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\CompletedRequest + * @param \Hydra\SDK\Model\AcceptLoginRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\CompletedRequest */ public function acceptLoginRequest($login_challenge, $body = null) { @@ -210,9 +210,9 @@ public function acceptLoginRequest($login_challenge, $body = null) * Client for Hydra * * @param string $login_challenge (required) - * @param \HydraSDK\Model\AcceptLoginRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\CompletedRequest, HTTP status code, HTTP response headers (array of strings) + * @param \Hydra\SDK\Model\AcceptLoginRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\CompletedRequest, HTTP status code, HTTP response headers (array of strings) */ public function acceptLoginRequestWithHttpInfo($login_challenge, $body = null) { @@ -256,27 +256,27 @@ public function acceptLoginRequestWithHttpInfo($login_challenge, $body = null) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\CompletedRequest', + '\Hydra\SDK\Model\CompletedRequest', '/oauth2/auth/requests/login/accept' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\CompletedRequest', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\CompletedRequest', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\CompletedRequest', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\CompletedRequest', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -293,8 +293,8 @@ public function acceptLoginRequestWithHttpInfo($login_challenge, $body = null) * Client for Hydra * * @param string $logout_challenge (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\CompletedRequest + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\CompletedRequest */ public function acceptLogoutRequest($logout_challenge) { @@ -310,8 +310,8 @@ public function acceptLogoutRequest($logout_challenge) * Client for Hydra * * @param string $logout_challenge (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\CompletedRequest, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\CompletedRequest, HTTP status code, HTTP response headers (array of strings) */ public function acceptLogoutRequestWithHttpInfo($logout_challenge) { @@ -350,23 +350,23 @@ public function acceptLogoutRequestWithHttpInfo($logout_challenge) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\CompletedRequest', + '\Hydra\SDK\Model\CompletedRequest', '/oauth2/auth/requests/logout/accept' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\CompletedRequest', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\CompletedRequest', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\CompletedRequest', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\CompletedRequest', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -383,9 +383,9 @@ public function acceptLogoutRequestWithHttpInfo($logout_challenge) * Client for Hydra * * @param string $set The set (required) - * @param \HydraSDK\Model\JsonWebKeySetGeneratorRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\JSONWebKeySet + * @param \Hydra\SDK\Model\JsonWebKeySetGeneratorRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\JSONWebKeySet */ public function createJsonWebKeySet($set, $body = null) { @@ -401,9 +401,9 @@ public function createJsonWebKeySet($set, $body = null) * Client for Hydra * * @param string $set The set (required) - * @param \HydraSDK\Model\JsonWebKeySetGeneratorRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\JSONWebKeySet, HTTP status code, HTTP response headers (array of strings) + * @param \Hydra\SDK\Model\JsonWebKeySetGeneratorRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\JSONWebKeySet, HTTP status code, HTTP response headers (array of strings) */ public function createJsonWebKeySetWithHttpInfo($set, $body = null) { @@ -451,27 +451,27 @@ public function createJsonWebKeySetWithHttpInfo($set, $body = null) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\JSONWebKeySet', + '\Hydra\SDK\Model\JSONWebKeySet', '/keys/{set}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\JSONWebKeySet', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\JSONWebKeySet', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\JSONWebKeySet', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\JSONWebKeySet', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -487,9 +487,9 @@ public function createJsonWebKeySetWithHttpInfo($set, $body = null) * * Client for Hydra * - * @param \HydraSDK\Model\OAuth2Client $body (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\OAuth2Client + * @param \Hydra\SDK\Model\OAuth2Client $body (required) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\OAuth2Client */ public function createOAuth2Client($body) { @@ -504,9 +504,9 @@ public function createOAuth2Client($body) * * Client for Hydra * - * @param \HydraSDK\Model\OAuth2Client $body (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\OAuth2Client, HTTP status code, HTTP response headers (array of strings) + * @param \Hydra\SDK\Model\OAuth2Client $body (required) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\OAuth2Client, HTTP status code, HTTP response headers (array of strings) */ public function createOAuth2ClientWithHttpInfo($body) { @@ -546,23 +546,23 @@ public function createOAuth2ClientWithHttpInfo($body) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\OAuth2Client', + '\Hydra\SDK\Model\OAuth2Client', '/clients' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\OAuth2Client', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\OAuth2Client', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 201: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\OAuth2Client', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\OAuth2Client', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 409: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -580,7 +580,7 @@ public function createOAuth2ClientWithHttpInfo($body) * * @param string $kid The kid of the desired key (required) * @param string $set The set (required) - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return void */ public function deleteJsonWebKey($kid, $set) @@ -598,7 +598,7 @@ public function deleteJsonWebKey($kid, $set) * * @param string $kid The kid of the desired key (required) * @param string $set The set (required) - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function deleteJsonWebKeyWithHttpInfo($kid, $set) @@ -662,15 +662,15 @@ public function deleteJsonWebKeyWithHttpInfo($kid, $set) } catch (ApiException $e) { switch ($e->getCode()) { case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -687,7 +687,7 @@ public function deleteJsonWebKeyWithHttpInfo($kid, $set) * Client for Hydra * * @param string $set The set (required) - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return void */ public function deleteJsonWebKeySet($set) @@ -704,7 +704,7 @@ public function deleteJsonWebKeySet($set) * Client for Hydra * * @param string $set The set (required) - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function deleteJsonWebKeySetWithHttpInfo($set) @@ -756,15 +756,15 @@ public function deleteJsonWebKeySetWithHttpInfo($set) } catch (ApiException $e) { switch ($e->getCode()) { case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -781,7 +781,7 @@ public function deleteJsonWebKeySetWithHttpInfo($set) * Client for Hydra * * @param string $id The id of the OAuth 2.0 Client. (required) - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return void */ public function deleteOAuth2Client($id) @@ -798,7 +798,7 @@ public function deleteOAuth2Client($id) * Client for Hydra * * @param string $id The id of the OAuth 2.0 Client. (required) - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function deleteOAuth2ClientWithHttpInfo($id) @@ -850,11 +850,11 @@ public function deleteOAuth2ClientWithHttpInfo($id) } catch (ApiException $e) { switch ($e->getCode()) { case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -870,8 +870,8 @@ public function deleteOAuth2ClientWithHttpInfo($id) * * Client for Hydra * - * @param \HydraSDK\Model\FlushInactiveOAuth2TokensRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response + * @param \Hydra\SDK\Model\FlushInactiveOAuth2TokensRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response * @return void */ public function flushInactiveOAuth2Tokens($body = null) @@ -887,8 +887,8 @@ public function flushInactiveOAuth2Tokens($body = null) * * Client for Hydra * - * @param \HydraSDK\Model\FlushInactiveOAuth2TokensRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response + * @param \Hydra\SDK\Model\FlushInactiveOAuth2TokensRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function flushInactiveOAuth2TokensWithHttpInfo($body = null) @@ -933,11 +933,11 @@ public function flushInactiveOAuth2TokensWithHttpInfo($body = null) } catch (ApiException $e) { switch ($e->getCode()) { case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -954,8 +954,8 @@ public function flushInactiveOAuth2TokensWithHttpInfo($body = null) * Client for Hydra * * @param string $consent_challenge (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\ConsentRequest + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\ConsentRequest */ public function getConsentRequest($consent_challenge) { @@ -971,8 +971,8 @@ public function getConsentRequest($consent_challenge) * Client for Hydra * * @param string $consent_challenge (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\ConsentRequest, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\ConsentRequest, HTTP status code, HTTP response headers (array of strings) */ public function getConsentRequestWithHttpInfo($consent_challenge) { @@ -1011,27 +1011,27 @@ public function getConsentRequestWithHttpInfo($consent_challenge) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\ConsentRequest', + '\Hydra\SDK\Model\ConsentRequest', '/oauth2/auth/requests/consent' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\ConsentRequest', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\ConsentRequest', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\ConsentRequest', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\ConsentRequest', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 409: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1049,8 +1049,8 @@ public function getConsentRequestWithHttpInfo($consent_challenge) * * @param string $kid The kid of the desired key (required) * @param string $set The set (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\JSONWebKeySet + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\JSONWebKeySet */ public function getJsonWebKey($kid, $set) { @@ -1067,8 +1067,8 @@ public function getJsonWebKey($kid, $set) * * @param string $kid The kid of the desired key (required) * @param string $set The set (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\JSONWebKeySet, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\JSONWebKeySet, HTTP status code, HTTP response headers (array of strings) */ public function getJsonWebKeyWithHttpInfo($kid, $set) { @@ -1123,23 +1123,23 @@ public function getJsonWebKeyWithHttpInfo($kid, $set) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\JSONWebKeySet', + '\Hydra\SDK\Model\JSONWebKeySet', '/keys/{set}/{kid}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\JSONWebKeySet', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\JSONWebKeySet', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\JSONWebKeySet', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\JSONWebKeySet', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1156,8 +1156,8 @@ public function getJsonWebKeyWithHttpInfo($kid, $set) * Client for Hydra * * @param string $set The set (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\JSONWebKeySet + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\JSONWebKeySet */ public function getJsonWebKeySet($set) { @@ -1173,8 +1173,8 @@ public function getJsonWebKeySet($set) * Client for Hydra * * @param string $set The set (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\JSONWebKeySet, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\JSONWebKeySet, HTTP status code, HTTP response headers (array of strings) */ public function getJsonWebKeySetWithHttpInfo($set) { @@ -1217,27 +1217,27 @@ public function getJsonWebKeySetWithHttpInfo($set) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\JSONWebKeySet', + '\Hydra\SDK\Model\JSONWebKeySet', '/keys/{set}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\JSONWebKeySet', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\JSONWebKeySet', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\JSONWebKeySet', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\JSONWebKeySet', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1254,8 +1254,8 @@ public function getJsonWebKeySetWithHttpInfo($set) * Client for Hydra * * @param string $login_challenge (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\LoginRequest + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\LoginRequest */ public function getLoginRequest($login_challenge) { @@ -1271,8 +1271,8 @@ public function getLoginRequest($login_challenge) * Client for Hydra * * @param string $login_challenge (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\LoginRequest, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\LoginRequest, HTTP status code, HTTP response headers (array of strings) */ public function getLoginRequestWithHttpInfo($login_challenge) { @@ -1311,31 +1311,31 @@ public function getLoginRequestWithHttpInfo($login_challenge) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\LoginRequest', + '\Hydra\SDK\Model\LoginRequest', '/oauth2/auth/requests/login' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\LoginRequest', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\LoginRequest', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\LoginRequest', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\LoginRequest', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 409: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1352,8 +1352,8 @@ public function getLoginRequestWithHttpInfo($login_challenge) * Client for Hydra * * @param string $logout_challenge (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\LogoutRequest + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\LogoutRequest */ public function getLogoutRequest($logout_challenge) { @@ -1369,8 +1369,8 @@ public function getLogoutRequest($logout_challenge) * Client for Hydra * * @param string $logout_challenge (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\LogoutRequest, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\LogoutRequest, HTTP status code, HTTP response headers (array of strings) */ public function getLogoutRequestWithHttpInfo($logout_challenge) { @@ -1409,23 +1409,23 @@ public function getLogoutRequestWithHttpInfo($logout_challenge) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\LogoutRequest', + '\Hydra\SDK\Model\LogoutRequest', '/oauth2/auth/requests/logout' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\LogoutRequest', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\LogoutRequest', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\LogoutRequest', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\LogoutRequest', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1442,8 +1442,8 @@ public function getLogoutRequestWithHttpInfo($logout_challenge) * Client for Hydra * * @param string $id The id of the OAuth 2.0 Client. (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\OAuth2Client + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\OAuth2Client */ public function getOAuth2Client($id) { @@ -1459,8 +1459,8 @@ public function getOAuth2Client($id) * Client for Hydra * * @param string $id The id of the OAuth 2.0 Client. (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\OAuth2Client, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\OAuth2Client, HTTP status code, HTTP response headers (array of strings) */ public function getOAuth2ClientWithHttpInfo($id) { @@ -1503,23 +1503,23 @@ public function getOAuth2ClientWithHttpInfo($id) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\OAuth2Client', + '\Hydra\SDK\Model\OAuth2Client', '/clients/{id}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\OAuth2Client', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\OAuth2Client', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\OAuth2Client', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\OAuth2Client', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1537,8 +1537,8 @@ public function getOAuth2ClientWithHttpInfo($id) * * @param string $token The string value of the token. For access tokens, this is the \"access_token\" value returned from the token endpoint defined in OAuth 2.0. For refresh tokens, this is the \"refresh_token\" value returned. (required) * @param 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. (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\OAuth2TokenIntrospection + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\OAuth2TokenIntrospection */ public function introspectOAuth2Token($token, $scope = null) { @@ -1555,8 +1555,8 @@ public function introspectOAuth2Token($token, $scope = null) * * @param string $token The string value of the token. For access tokens, this is the \"access_token\" value returned from the token endpoint defined in OAuth 2.0. For refresh tokens, this is the \"refresh_token\" value returned. (required) * @param 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. (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\OAuth2TokenIntrospection, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\OAuth2TokenIntrospection, HTTP status code, HTTP response headers (array of strings) */ public function introspectOAuth2TokenWithHttpInfo($token, $scope = null) { @@ -1607,23 +1607,23 @@ public function introspectOAuth2TokenWithHttpInfo($token, $scope = null) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\OAuth2TokenIntrospection', + '\Hydra\SDK\Model\OAuth2TokenIntrospection', '/oauth2/introspect' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\OAuth2TokenIntrospection', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\OAuth2TokenIntrospection', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\OAuth2TokenIntrospection', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\OAuth2TokenIntrospection', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1641,8 +1641,8 @@ public function introspectOAuth2TokenWithHttpInfo($token, $scope = null) * * @param int $limit The maximum amount of policies returned. (optional) * @param int $offset The offset from where to start looking. (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\OAuth2Client[] + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\OAuth2Client[] */ public function listOAuth2Clients($limit = null, $offset = null) { @@ -1659,8 +1659,8 @@ public function listOAuth2Clients($limit = null, $offset = null) * * @param int $limit The maximum amount of policies returned. (optional) * @param int $offset The offset from where to start looking. (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\OAuth2Client[], HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\OAuth2Client[], HTTP status code, HTTP response headers (array of strings) */ public function listOAuth2ClientsWithHttpInfo($limit = null, $offset = null) { @@ -1699,19 +1699,19 @@ public function listOAuth2ClientsWithHttpInfo($limit = null, $offset = null) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\OAuth2Client[]', + '\Hydra\SDK\Model\OAuth2Client[]', '/clients' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\OAuth2Client[]', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\OAuth2Client[]', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\OAuth2Client[]', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\OAuth2Client[]', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1728,8 +1728,8 @@ public function listOAuth2ClientsWithHttpInfo($limit = null, $offset = null) * Client for Hydra * * @param string $subject (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\PreviousConsentSession[] + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\PreviousConsentSession[] */ public function listSubjectConsentSessions($subject) { @@ -1745,8 +1745,8 @@ public function listSubjectConsentSessions($subject) * Client for Hydra * * @param string $subject (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\PreviousConsentSession[], HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\PreviousConsentSession[], HTTP status code, HTTP response headers (array of strings) */ public function listSubjectConsentSessionsWithHttpInfo($subject) { @@ -1785,27 +1785,27 @@ public function listSubjectConsentSessionsWithHttpInfo($subject) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\PreviousConsentSession[]', + '\Hydra\SDK\Model\PreviousConsentSession[]', '/oauth2/auth/sessions/consent' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\PreviousConsentSession[]', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\PreviousConsentSession[]', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\PreviousConsentSession[]', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\PreviousConsentSession[]', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1822,9 +1822,9 @@ public function listSubjectConsentSessionsWithHttpInfo($subject) * Client for Hydra * * @param string $consent_challenge (required) - * @param \HydraSDK\Model\RejectRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\CompletedRequest + * @param \Hydra\SDK\Model\RejectRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\CompletedRequest */ public function rejectConsentRequest($consent_challenge, $body = null) { @@ -1840,9 +1840,9 @@ public function rejectConsentRequest($consent_challenge, $body = null) * Client for Hydra * * @param string $consent_challenge (required) - * @param \HydraSDK\Model\RejectRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\CompletedRequest, HTTP status code, HTTP response headers (array of strings) + * @param \Hydra\SDK\Model\RejectRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\CompletedRequest, HTTP status code, HTTP response headers (array of strings) */ public function rejectConsentRequestWithHttpInfo($consent_challenge, $body = null) { @@ -1886,23 +1886,23 @@ public function rejectConsentRequestWithHttpInfo($consent_challenge, $body = nul $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\CompletedRequest', + '\Hydra\SDK\Model\CompletedRequest', '/oauth2/auth/requests/consent/reject' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\CompletedRequest', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\CompletedRequest', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\CompletedRequest', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\CompletedRequest', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -1919,9 +1919,9 @@ public function rejectConsentRequestWithHttpInfo($consent_challenge, $body = nul * Client for Hydra * * @param string $login_challenge (required) - * @param \HydraSDK\Model\RejectRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\CompletedRequest + * @param \Hydra\SDK\Model\RejectRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\CompletedRequest */ public function rejectLoginRequest($login_challenge, $body = null) { @@ -1937,9 +1937,9 @@ public function rejectLoginRequest($login_challenge, $body = null) * Client for Hydra * * @param string $login_challenge (required) - * @param \HydraSDK\Model\RejectRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\CompletedRequest, HTTP status code, HTTP response headers (array of strings) + * @param \Hydra\SDK\Model\RejectRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\CompletedRequest, HTTP status code, HTTP response headers (array of strings) */ public function rejectLoginRequestWithHttpInfo($login_challenge, $body = null) { @@ -1983,27 +1983,27 @@ public function rejectLoginRequestWithHttpInfo($login_challenge, $body = null) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\CompletedRequest', + '\Hydra\SDK\Model\CompletedRequest', '/oauth2/auth/requests/login/reject' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\CompletedRequest', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\CompletedRequest', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\CompletedRequest', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\CompletedRequest', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -2020,8 +2020,8 @@ public function rejectLoginRequestWithHttpInfo($login_challenge, $body = null) * Client for Hydra * * @param string $logout_challenge (required) - * @param \HydraSDK\Model\RejectRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response + * @param \Hydra\SDK\Model\RejectRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response * @return void */ public function rejectLogoutRequest($logout_challenge, $body = null) @@ -2038,8 +2038,8 @@ public function rejectLogoutRequest($logout_challenge, $body = null) * Client for Hydra * * @param string $logout_challenge (required) - * @param \HydraSDK\Model\RejectRequest $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response + * @param \Hydra\SDK\Model\RejectRequest $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function rejectLogoutRequestWithHttpInfo($logout_challenge, $body = null) @@ -2092,11 +2092,11 @@ public function rejectLogoutRequestWithHttpInfo($logout_challenge, $body = null) } catch (ApiException $e) { switch ($e->getCode()) { case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -2113,7 +2113,7 @@ public function rejectLogoutRequestWithHttpInfo($logout_challenge, $body = null) * Client for Hydra * * @param string $subject (required) - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return void */ public function revokeAuthenticationSession($subject) @@ -2130,7 +2130,7 @@ public function revokeAuthenticationSession($subject) * Client for Hydra * * @param string $subject (required) - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function revokeAuthenticationSessionWithHttpInfo($subject) @@ -2178,15 +2178,15 @@ public function revokeAuthenticationSessionWithHttpInfo($subject) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -2204,7 +2204,7 @@ public function revokeAuthenticationSessionWithHttpInfo($subject) * * @param string $subject The subject (Subject) who's consent sessions should be deleted. (required) * @param string $client If set, deletes only those consent sessions by the Subject that have been granted to the specified OAuth 2.0 Client ID (optional) - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return void */ public function revokeConsentSessions($subject, $client = null) @@ -2222,7 +2222,7 @@ public function revokeConsentSessions($subject, $client = null) * * @param string $subject The subject (Subject) who's consent sessions should be deleted. (required) * @param string $client If set, deletes only those consent sessions by the Subject that have been granted to the specified OAuth 2.0 Client ID (optional) - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function revokeConsentSessionsWithHttpInfo($subject, $client = null) @@ -2274,15 +2274,15 @@ public function revokeConsentSessionsWithHttpInfo($subject, $client = null) } catch (ApiException $e) { switch ($e->getCode()) { case 400: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -2300,9 +2300,9 @@ public function revokeConsentSessionsWithHttpInfo($subject, $client = null) * * @param string $kid The kid of the desired key (required) * @param string $set The set (required) - * @param \HydraSDK\Model\JSONWebKey $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\JSONWebKey + * @param \Hydra\SDK\Model\JSONWebKey $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\JSONWebKey */ public function updateJsonWebKey($kid, $set, $body = null) { @@ -2319,9 +2319,9 @@ public function updateJsonWebKey($kid, $set, $body = null) * * @param string $kid The kid of the desired key (required) * @param string $set The set (required) - * @param \HydraSDK\Model\JSONWebKey $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\JSONWebKey, HTTP status code, HTTP response headers (array of strings) + * @param \Hydra\SDK\Model\JSONWebKey $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\JSONWebKey, HTTP status code, HTTP response headers (array of strings) */ public function updateJsonWebKeyWithHttpInfo($kid, $set, $body = null) { @@ -2381,27 +2381,27 @@ public function updateJsonWebKeyWithHttpInfo($kid, $set, $body = null) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\JSONWebKey', + '\Hydra\SDK\Model\JSONWebKey', '/keys/{set}/{kid}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\JSONWebKey', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\JSONWebKey', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\JSONWebKey', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\JSONWebKey', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -2418,9 +2418,9 @@ public function updateJsonWebKeyWithHttpInfo($kid, $set, $body = null) * Client for Hydra * * @param string $set The set (required) - * @param \HydraSDK\Model\JSONWebKeySet $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\JSONWebKeySet + * @param \Hydra\SDK\Model\JSONWebKeySet $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\JSONWebKeySet */ public function updateJsonWebKeySet($set, $body = null) { @@ -2436,9 +2436,9 @@ public function updateJsonWebKeySet($set, $body = null) * Client for Hydra * * @param string $set The set (required) - * @param \HydraSDK\Model\JSONWebKeySet $body (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\JSONWebKeySet, HTTP status code, HTTP response headers (array of strings) + * @param \Hydra\SDK\Model\JSONWebKeySet $body (optional) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\JSONWebKeySet, HTTP status code, HTTP response headers (array of strings) */ public function updateJsonWebKeySetWithHttpInfo($set, $body = null) { @@ -2486,27 +2486,27 @@ public function updateJsonWebKeySetWithHttpInfo($set, $body = null) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\JSONWebKeySet', + '\Hydra\SDK\Model\JSONWebKeySet', '/keys/{set}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\JSONWebKeySet', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\JSONWebKeySet', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\JSONWebKeySet', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\JSONWebKeySet', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 403: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -2523,9 +2523,9 @@ public function updateJsonWebKeySetWithHttpInfo($set, $body = null) * Client for Hydra * * @param string $id (required) - * @param \HydraSDK\Model\OAuth2Client $body (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\OAuth2Client + * @param \Hydra\SDK\Model\OAuth2Client $body (required) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\OAuth2Client */ public function updateOAuth2Client($id, $body) { @@ -2541,9 +2541,9 @@ public function updateOAuth2Client($id, $body) * Client for Hydra * * @param string $id (required) - * @param \HydraSDK\Model\OAuth2Client $body (required) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\OAuth2Client, HTTP status code, HTTP response headers (array of strings) + * @param \Hydra\SDK\Model\OAuth2Client $body (required) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\OAuth2Client, HTTP status code, HTTP response headers (array of strings) */ public function updateOAuth2ClientWithHttpInfo($id, $body) { @@ -2595,19 +2595,19 @@ public function updateOAuth2ClientWithHttpInfo($id, $body) $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\OAuth2Client', + '\Hydra\SDK\Model\OAuth2Client', '/clients/{id}' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\OAuth2Client', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\OAuth2Client', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\OAuth2Client', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\OAuth2Client', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/sdk/php/swagger/lib/Api/HealthApi.php b/sdk/php/swagger/lib/Api/HealthApi.php index 4f7969056f7..d086115d527 100644 --- a/sdk/php/swagger/lib/Api/HealthApi.php +++ b/sdk/php/swagger/lib/Api/HealthApi.php @@ -4,7 +4,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -26,18 +26,18 @@ * Do not edit the class manually. */ -namespace HydraSDK\Api; +namespace Hydra\SDK\Api; -use \HydraSDK\ApiClient; -use \HydraSDK\ApiException; -use \HydraSDK\Configuration; -use \HydraSDK\ObjectSerializer; +use \Hydra\SDK\ApiClient; +use \Hydra\SDK\ApiException; +use \Hydra\SDK\Configuration; +use \Hydra\SDK\ObjectSerializer; /** * HealthApi Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -46,16 +46,16 @@ class HealthApi /** * API Client * - * @var \HydraSDK\ApiClient instance of the ApiClient + * @var \Hydra\SDK\ApiClient instance of the ApiClient */ protected $apiClient; /** * Constructor * - * @param \HydraSDK\ApiClient|null $apiClient The api client to use + * @param \Hydra\SDK\ApiClient|null $apiClient The api client to use */ - public function __construct(\HydraSDK\ApiClient $apiClient = null) + public function __construct(\Hydra\SDK\ApiClient $apiClient = null) { if ($apiClient === null) { $apiClient = new ApiClient(); @@ -67,7 +67,7 @@ public function __construct(\HydraSDK\ApiClient $apiClient = null) /** * Get API client * - * @return \HydraSDK\ApiClient get the API client + * @return \Hydra\SDK\ApiClient get the API client */ public function getApiClient() { @@ -77,11 +77,11 @@ public function getApiClient() /** * Set the API client * - * @param \HydraSDK\ApiClient $apiClient set the API client + * @param \Hydra\SDK\ApiClient $apiClient set the API client * * @return HealthApi */ - public function setApiClient(\HydraSDK\ApiClient $apiClient) + public function setApiClient(\Hydra\SDK\ApiClient $apiClient) { $this->apiClient = $apiClient; return $this; @@ -94,8 +94,8 @@ public function setApiClient(\HydraSDK\ApiClient $apiClient) * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\HealthStatus + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\HealthStatus */ public function isInstanceAlive() { @@ -110,8 +110,8 @@ public function isInstanceAlive() * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\HealthStatus, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\HealthStatus, HTTP status code, HTTP response headers (array of strings) */ public function isInstanceAliveWithHttpInfo() { @@ -142,19 +142,19 @@ public function isInstanceAliveWithHttpInfo() $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\HealthStatus', + '\Hydra\SDK\Model\HealthStatus', '/health/alive' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\HealthStatus', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\HealthStatus', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\HealthStatus', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\HealthStatus', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -170,8 +170,8 @@ public function isInstanceAliveWithHttpInfo() * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\HealthStatus + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\HealthStatus */ public function isInstanceReady() { @@ -186,8 +186,8 @@ public function isInstanceReady() * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\HealthStatus, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\HealthStatus, HTTP status code, HTTP response headers (array of strings) */ public function isInstanceReadyWithHttpInfo() { @@ -218,19 +218,19 @@ public function isInstanceReadyWithHttpInfo() $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\HealthStatus', + '\Hydra\SDK\Model\HealthStatus', '/health/ready' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\HealthStatus', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\HealthStatus', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\HealthStatus', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\HealthStatus', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 503: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\HealthNotReadyStatus', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\HealthNotReadyStatus', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/sdk/php/swagger/lib/Api/PublicApi.php b/sdk/php/swagger/lib/Api/PublicApi.php index 3c714d363d2..da560bfd967 100644 --- a/sdk/php/swagger/lib/Api/PublicApi.php +++ b/sdk/php/swagger/lib/Api/PublicApi.php @@ -4,7 +4,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -26,18 +26,18 @@ * Do not edit the class manually. */ -namespace HydraSDK\Api; +namespace Hydra\SDK\Api; -use \HydraSDK\ApiClient; -use \HydraSDK\ApiException; -use \HydraSDK\Configuration; -use \HydraSDK\ObjectSerializer; +use \Hydra\SDK\ApiClient; +use \Hydra\SDK\ApiException; +use \Hydra\SDK\Configuration; +use \Hydra\SDK\ObjectSerializer; /** * PublicApi Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -46,16 +46,16 @@ class PublicApi /** * API Client * - * @var \HydraSDK\ApiClient instance of the ApiClient + * @var \Hydra\SDK\ApiClient instance of the ApiClient */ protected $apiClient; /** * Constructor * - * @param \HydraSDK\ApiClient|null $apiClient The api client to use + * @param \Hydra\SDK\ApiClient|null $apiClient The api client to use */ - public function __construct(\HydraSDK\ApiClient $apiClient = null) + public function __construct(\Hydra\SDK\ApiClient $apiClient = null) { if ($apiClient === null) { $apiClient = new ApiClient(); @@ -67,7 +67,7 @@ public function __construct(\HydraSDK\ApiClient $apiClient = null) /** * Get API client * - * @return \HydraSDK\ApiClient get the API client + * @return \Hydra\SDK\ApiClient get the API client */ public function getApiClient() { @@ -77,11 +77,11 @@ public function getApiClient() /** * Set the API client * - * @param \HydraSDK\ApiClient $apiClient set the API client + * @param \Hydra\SDK\ApiClient $apiClient set the API client * * @return PublicApi */ - public function setApiClient(\HydraSDK\ApiClient $apiClient) + public function setApiClient(\Hydra\SDK\ApiClient $apiClient) { $this->apiClient = $apiClient; return $this; @@ -94,7 +94,7 @@ public function setApiClient(\HydraSDK\ApiClient $apiClient) * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return void */ public function disconnectUser() @@ -110,7 +110,7 @@ public function disconnectUser() * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function disconnectUserWithHttpInfo() @@ -162,8 +162,8 @@ public function disconnectUserWithHttpInfo() * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\WellKnown + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\WellKnown */ public function discoverOpenIDConfiguration() { @@ -178,8 +178,8 @@ public function discoverOpenIDConfiguration() * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\WellKnown, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\WellKnown, HTTP status code, HTTP response headers (array of strings) */ public function discoverOpenIDConfigurationWithHttpInfo() { @@ -210,23 +210,23 @@ public function discoverOpenIDConfigurationWithHttpInfo() $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\WellKnown', + '\Hydra\SDK\Model\WellKnown', '/.well-known/openid-configuration' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\WellKnown', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\WellKnown', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\WellKnown', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\WellKnown', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -246,8 +246,8 @@ public function discoverOpenIDConfigurationWithHttpInfo() * @param string $code (optional) * @param string $redirect_uri (optional) * @param string $client_id (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\Oauth2TokenResponse + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\Oauth2TokenResponse */ public function oauth2Token($grant_type, $code = null, $redirect_uri = null, $client_id = null) { @@ -266,8 +266,8 @@ public function oauth2Token($grant_type, $code = null, $redirect_uri = null, $cl * @param string $code (optional) * @param string $redirect_uri (optional) * @param string $client_id (optional) - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\Oauth2TokenResponse, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\Oauth2TokenResponse, HTTP status code, HTTP response headers (array of strings) */ public function oauth2TokenWithHttpInfo($grant_type, $code = null, $redirect_uri = null, $client_id = null) { @@ -326,23 +326,23 @@ public function oauth2TokenWithHttpInfo($grant_type, $code = null, $redirect_uri $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\Oauth2TokenResponse', + '\Hydra\SDK\Model\Oauth2TokenResponse', '/oauth2/token' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\Oauth2TokenResponse', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\Oauth2TokenResponse', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\Oauth2TokenResponse', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\Oauth2TokenResponse', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -358,7 +358,7 @@ public function oauth2TokenWithHttpInfo($grant_type, $code = null, $redirect_uri * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return void */ public function oauthAuth() @@ -374,7 +374,7 @@ public function oauthAuth() * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function oauthAuthWithHttpInfo() @@ -414,11 +414,11 @@ public function oauthAuthWithHttpInfo() } catch (ApiException $e) { switch ($e->getCode()) { case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -435,7 +435,7 @@ public function oauthAuthWithHttpInfo() * Client for Hydra * * @param string $token (required) - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return void */ public function revokeOAuth2Token($token) @@ -452,7 +452,7 @@ public function revokeOAuth2Token($token) * Client for Hydra * * @param string $token (required) - * @throws \HydraSDK\ApiException on non-2xx response + * @throws \Hydra\SDK\ApiException on non-2xx response * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function revokeOAuth2TokenWithHttpInfo($token) @@ -508,11 +508,11 @@ public function revokeOAuth2TokenWithHttpInfo($token) } catch (ApiException $e) { switch ($e->getCode()) { case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -528,8 +528,8 @@ public function revokeOAuth2TokenWithHttpInfo($token) * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\UserinfoResponse + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\UserinfoResponse */ public function userinfo() { @@ -544,8 +544,8 @@ public function userinfo() * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\UserinfoResponse, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\UserinfoResponse, HTTP status code, HTTP response headers (array of strings) */ public function userinfoWithHttpInfo() { @@ -580,23 +580,23 @@ public function userinfoWithHttpInfo() $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\UserinfoResponse', + '\Hydra\SDK\Model\UserinfoResponse', '/userinfo' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\UserinfoResponse', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\UserinfoResponse', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\UserinfoResponse', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\UserinfoResponse', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 401: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } @@ -612,8 +612,8 @@ public function userinfoWithHttpInfo() * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\JSONWebKeySet + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\JSONWebKeySet */ public function wellKnown() { @@ -628,8 +628,8 @@ public function wellKnown() * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\JSONWebKeySet, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\JSONWebKeySet, HTTP status code, HTTP response headers (array of strings) */ public function wellKnownWithHttpInfo() { @@ -660,19 +660,19 @@ public function wellKnownWithHttpInfo() $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\JSONWebKeySet', + '\Hydra\SDK\Model\JSONWebKeySet', '/.well-known/jwks.json' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\JSONWebKeySet', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\JSONWebKeySet', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\JSONWebKeySet', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\JSONWebKeySet', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 500: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\GenericError', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\GenericError', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/sdk/php/swagger/lib/Api/VersionApi.php b/sdk/php/swagger/lib/Api/VersionApi.php index 6e28933b03d..129ff066209 100644 --- a/sdk/php/swagger/lib/Api/VersionApi.php +++ b/sdk/php/swagger/lib/Api/VersionApi.php @@ -4,7 +4,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -26,18 +26,18 @@ * Do not edit the class manually. */ -namespace HydraSDK\Api; +namespace Hydra\SDK\Api; -use \HydraSDK\ApiClient; -use \HydraSDK\ApiException; -use \HydraSDK\Configuration; -use \HydraSDK\ObjectSerializer; +use \Hydra\SDK\ApiClient; +use \Hydra\SDK\ApiException; +use \Hydra\SDK\Configuration; +use \Hydra\SDK\ObjectSerializer; /** * VersionApi Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -46,16 +46,16 @@ class VersionApi /** * API Client * - * @var \HydraSDK\ApiClient instance of the ApiClient + * @var \Hydra\SDK\ApiClient instance of the ApiClient */ protected $apiClient; /** * Constructor * - * @param \HydraSDK\ApiClient|null $apiClient The api client to use + * @param \Hydra\SDK\ApiClient|null $apiClient The api client to use */ - public function __construct(\HydraSDK\ApiClient $apiClient = null) + public function __construct(\Hydra\SDK\ApiClient $apiClient = null) { if ($apiClient === null) { $apiClient = new ApiClient(); @@ -67,7 +67,7 @@ public function __construct(\HydraSDK\ApiClient $apiClient = null) /** * Get API client * - * @return \HydraSDK\ApiClient get the API client + * @return \Hydra\SDK\ApiClient get the API client */ public function getApiClient() { @@ -77,11 +77,11 @@ public function getApiClient() /** * Set the API client * - * @param \HydraSDK\ApiClient $apiClient set the API client + * @param \Hydra\SDK\ApiClient $apiClient set the API client * * @return VersionApi */ - public function setApiClient(\HydraSDK\ApiClient $apiClient) + public function setApiClient(\Hydra\SDK\ApiClient $apiClient) { $this->apiClient = $apiClient; return $this; @@ -94,8 +94,8 @@ public function setApiClient(\HydraSDK\ApiClient $apiClient) * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response - * @return \HydraSDK\Model\Version + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return \Hydra\SDK\Model\Version */ public function getVersion() { @@ -110,8 +110,8 @@ public function getVersion() * * Client for Hydra * - * @throws \HydraSDK\ApiException on non-2xx response - * @return array of \HydraSDK\Model\Version, HTTP status code, HTTP response headers (array of strings) + * @throws \Hydra\SDK\ApiException on non-2xx response + * @return array of \Hydra\SDK\Model\Version, HTTP status code, HTTP response headers (array of strings) */ public function getVersionWithHttpInfo() { @@ -142,15 +142,15 @@ public function getVersionWithHttpInfo() $queryParams, $httpBody, $headerParams, - '\HydraSDK\Model\Version', + '\Hydra\SDK\Model\Version', '/version' ); - return [$this->apiClient->getSerializer()->deserialize($response, '\HydraSDK\Model\Version', $httpHeader), $statusCode, $httpHeader]; + return [$this->apiClient->getSerializer()->deserialize($response, '\Hydra\SDK\Model\Version', $httpHeader), $statusCode, $httpHeader]; } catch (ApiException $e) { switch ($e->getCode()) { case 200: - $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\HydraSDK\Model\Version', $e->getResponseHeaders()); + $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\Hydra\SDK\Model\Version', $e->getResponseHeaders()); $e->setResponseObject($data); break; } diff --git a/sdk/php/swagger/lib/ApiClient.php b/sdk/php/swagger/lib/ApiClient.php index 99eda49d0f7..a8f30299147 100644 --- a/sdk/php/swagger/lib/ApiClient.php +++ b/sdk/php/swagger/lib/ApiClient.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,13 +27,13 @@ * Do not edit the class manually. */ -namespace HydraSDK; +namespace Hydra\SDK; /** * ApiClient Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -66,7 +66,7 @@ class ApiClient * * @param Configuration $config config for this ApiClient */ - public function __construct(\HydraSDK\Configuration $config = null) + public function __construct(\Hydra\SDK\Configuration $config = null) { if ($config === null) { $config = Configuration::getDefaultConfiguration(); @@ -132,7 +132,7 @@ public function getApiKeyWithPrefix($apiKeyIdentifier) * @param string $responseType expected response type of the endpoint * @param string $endpointPath path to method endpoint before expanding parameters * - * @throws \HydraSDK\ApiException on a non 2xx response + * @throws \Hydra\SDK\ApiException on a non 2xx response * @return mixed */ public function callApi($resourcePath, $method, $queryParams, $postData, $headerParams, $responseType = null, $endpointPath = null) @@ -153,7 +153,7 @@ public function callApi($resourcePath, $method, $queryParams, $postData, $header if ($postData and in_array('Content-Type: application/x-www-form-urlencoded', $headers, true)) { $postData = http_build_query($postData); } elseif ((is_object($postData) or is_array($postData)) and !in_array('Content-Type: multipart/form-data', $headers, true)) { // json model - $postData = json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($postData)); + $postData = json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($postData)); } $url = $this->config->getHost() . $resourcePath; diff --git a/sdk/php/swagger/lib/ApiException.php b/sdk/php/swagger/lib/ApiException.php index a4dadcab2bf..d901f76822c 100644 --- a/sdk/php/swagger/lib/ApiException.php +++ b/sdk/php/swagger/lib/ApiException.php @@ -4,7 +4,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -26,7 +26,7 @@ * Do not edit the class manually. */ -namespace HydraSDK; +namespace Hydra\SDK; use \Exception; @@ -34,7 +34,7 @@ * ApiException Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ diff --git a/sdk/php/swagger/lib/Configuration.php b/sdk/php/swagger/lib/Configuration.php index 4b1732a73a2..bda40142cf0 100644 --- a/sdk/php/swagger/lib/Configuration.php +++ b/sdk/php/swagger/lib/Configuration.php @@ -4,7 +4,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -26,14 +26,14 @@ * Do not edit the class manually. */ -namespace HydraSDK; +namespace Hydra\SDK; /** * Configuration Class Doc Comment * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -724,7 +724,7 @@ public static function setDefaultConfiguration(Configuration $config) */ public static function toDebugReport() { - $report = 'PHP SDK (HydraSDK) Debug Report:' . PHP_EOL; + $report = 'PHP SDK (Hydra\SDK) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' OpenAPI Spec Version: latest' . PHP_EOL; diff --git a/sdk/php/swagger/lib/Model/AcceptConsentRequest.php b/sdk/php/swagger/lib/Model/AcceptConsentRequest.php index 43544464461..9ab4e36a67d 100644 --- a/sdk/php/swagger/lib/Model/AcceptConsentRequest.php +++ b/sdk/php/swagger/lib/Model/AcceptConsentRequest.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * AcceptConsentRequest Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -58,7 +58,7 @@ class AcceptConsentRequest implements ArrayAccess 'grant_scope' => 'string[]', 'remember' => 'bool', 'remember_for' => 'int', - 'session' => '\HydraSDK\Model\ConsentRequestSession' + 'session' => '\Hydra\SDK\Model\ConsentRequestSession' ]; /** @@ -270,7 +270,7 @@ public function setRememberFor($remember_for) /** * Gets session - * @return \HydraSDK\Model\ConsentRequestSession + * @return \Hydra\SDK\Model\ConsentRequestSession */ public function getSession() { @@ -279,7 +279,7 @@ public function getSession() /** * Sets session - * @param \HydraSDK\Model\ConsentRequestSession $session + * @param \Hydra\SDK\Model\ConsentRequestSession $session * @return $this */ public function setSession($session) @@ -340,10 +340,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/AcceptLoginRequest.php b/sdk/php/swagger/lib/Model/AcceptLoginRequest.php index f3ddaaa51d5..d713b3b0602 100644 --- a/sdk/php/swagger/lib/Model/AcceptLoginRequest.php +++ b/sdk/php/swagger/lib/Model/AcceptLoginRequest.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * AcceptLoginRequest Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -373,10 +373,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/AuthenticationRequest.php b/sdk/php/swagger/lib/Model/AuthenticationRequest.php deleted file mode 100644 index 685f62828a1..00000000000 --- a/sdk/php/swagger/lib/Model/AuthenticationRequest.php +++ /dev/null @@ -1,458 +0,0 @@ -<?php -/** - * AuthenticationRequest - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * AuthenticationRequest Class Doc Comment - * - * @category Class - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class AuthenticationRequest implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'AuthenticationRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'challenge' => 'string', - 'client' => '\HydraSDK\Model\Client', - 'oidc_context' => '\HydraSDK\Model\OpenIDConnectContext', - 'request_url' => 'string', - 'requested_access_token_audience' => 'string[]', - 'requested_scope' => 'string[]', - 'session_id' => 'string', - 'skip' => 'bool', - 'subject' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'challenge' => null, - 'client' => null, - 'oidc_context' => null, - 'request_url' => null, - 'requested_access_token_audience' => null, - 'requested_scope' => null, - 'session_id' => null, - 'skip' => null, - 'subject' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'challenge' => 'challenge', - 'client' => 'client', - 'oidc_context' => 'oidc_context', - 'request_url' => 'request_url', - 'requested_access_token_audience' => 'requested_access_token_audience', - 'requested_scope' => 'requested_scope', - 'session_id' => 'session_id', - 'skip' => 'skip', - 'subject' => 'subject' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'challenge' => 'setChallenge', - 'client' => 'setClient', - 'oidc_context' => 'setOidcContext', - 'request_url' => 'setRequestUrl', - 'requested_access_token_audience' => 'setRequestedAccessTokenAudience', - 'requested_scope' => 'setRequestedScope', - 'session_id' => 'setSessionId', - 'skip' => 'setSkip', - 'subject' => 'setSubject' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'challenge' => 'getChallenge', - 'client' => 'getClient', - 'oidc_context' => 'getOidcContext', - 'request_url' => 'getRequestUrl', - 'requested_access_token_audience' => 'getRequestedAccessTokenAudience', - 'requested_scope' => 'getRequestedScope', - 'session_id' => 'getSessionId', - 'skip' => 'getSkip', - 'subject' => 'getSubject' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['challenge'] = isset($data['challenge']) ? $data['challenge'] : null; - $this->container['client'] = isset($data['client']) ? $data['client'] : null; - $this->container['oidc_context'] = isset($data['oidc_context']) ? $data['oidc_context'] : null; - $this->container['request_url'] = isset($data['request_url']) ? $data['request_url'] : null; - $this->container['requested_access_token_audience'] = isset($data['requested_access_token_audience']) ? $data['requested_access_token_audience'] : null; - $this->container['requested_scope'] = isset($data['requested_scope']) ? $data['requested_scope'] : null; - $this->container['session_id'] = isset($data['session_id']) ? $data['session_id'] : null; - $this->container['skip'] = isset($data['skip']) ? $data['skip'] : null; - $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets challenge - * @return string - */ - public function getChallenge() - { - return $this->container['challenge']; - } - - /** - * Sets challenge - * @param string $challenge Challenge is the identifier (\"authentication challenge\") of the consent authentication request. It is used to identify the session. - * @return $this - */ - public function setChallenge($challenge) - { - $this->container['challenge'] = $challenge; - - return $this; - } - - /** - * Gets client - * @return \HydraSDK\Model\Client - */ - public function getClient() - { - return $this->container['client']; - } - - /** - * Sets client - * @param \HydraSDK\Model\Client $client - * @return $this - */ - public function setClient($client) - { - $this->container['client'] = $client; - - return $this; - } - - /** - * Gets oidc_context - * @return \HydraSDK\Model\OpenIDConnectContext - */ - public function getOidcContext() - { - return $this->container['oidc_context']; - } - - /** - * Sets oidc_context - * @param \HydraSDK\Model\OpenIDConnectContext $oidc_context - * @return $this - */ - public function setOidcContext($oidc_context) - { - $this->container['oidc_context'] = $oidc_context; - - return $this; - } - - /** - * Gets request_url - * @return string - */ - public function getRequestUrl() - { - return $this->container['request_url']; - } - - /** - * Sets request_url - * @param string $request_url RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. - * @return $this - */ - public function setRequestUrl($request_url) - { - $this->container['request_url'] = $request_url; - - return $this; - } - - /** - * Gets requested_access_token_audience - * @return string[] - */ - public function getRequestedAccessTokenAudience() - { - return $this->container['requested_access_token_audience']; - } - - /** - * Sets requested_access_token_audience - * @param string[] $requested_access_token_audience RequestedScope contains the access token audience as requested by the OAuth 2.0 Client. - * @return $this - */ - public function setRequestedAccessTokenAudience($requested_access_token_audience) - { - $this->container['requested_access_token_audience'] = $requested_access_token_audience; - - return $this; - } - - /** - * Gets requested_scope - * @return string[] - */ - public function getRequestedScope() - { - return $this->container['requested_scope']; - } - - /** - * Sets requested_scope - * @param string[] $requested_scope RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. - * @return $this - */ - public function setRequestedScope($requested_scope) - { - $this->container['requested_scope'] = $requested_scope; - - return $this; - } - - /** - * Gets session_id - * @return string - */ - public function getSessionId() - { - return $this->container['session_id']; - } - - /** - * Sets session_id - * @param string $session_id SessionID is the authentication session ID. It is set if the browser had a valid authentication session at ORY Hydra during the login flow. It can be used to associate consecutive login requests by a certain user. - * @return $this - */ - public function setSessionId($session_id) - { - $this->container['session_id'] = $session_id; - - return $this; - } - - /** - * Gets skip - * @return bool - */ - public function getSkip() - { - return $this->container['skip']; - } - - /** - * Sets skip - * @param bool $skip Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. - * @return $this - */ - public function setSkip($skip) - { - $this->container['skip'] = $skip; - - return $this; - } - - /** - * Gets subject - * @return string - */ - public function getSubject() - { - return $this->container['subject']; - } - - /** - * Sets subject - * @param string $subject Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. - * @return $this - */ - public function setSubject($subject) - { - $this->container['subject'] = $subject; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/AuthenticationSession.php b/sdk/php/swagger/lib/Model/AuthenticationSession.php deleted file mode 100644 index 208608a85f2..00000000000 --- a/sdk/php/swagger/lib/Model/AuthenticationSession.php +++ /dev/null @@ -1,297 +0,0 @@ -<?php -/** - * AuthenticationSession - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * AuthenticationSession Class Doc Comment - * - * @category Class - * @description AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession AuthenticationSession authentication session - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class AuthenticationSession implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'AuthenticationSession'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'authenticated_at' => '\DateTime', - 'id' => 'string', - 'subject' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'authenticated_at' => 'date-time', - 'id' => null, - 'subject' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'authenticated_at' => 'AuthenticatedAt', - 'id' => 'ID', - 'subject' => 'Subject' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'authenticated_at' => 'setAuthenticatedAt', - 'id' => 'setId', - 'subject' => 'setSubject' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'authenticated_at' => 'getAuthenticatedAt', - 'id' => 'getId', - 'subject' => 'getSubject' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['authenticated_at'] = isset($data['authenticated_at']) ? $data['authenticated_at'] : null; - $this->container['id'] = isset($data['id']) ? $data['id'] : null; - $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets authenticated_at - * @return \DateTime - */ - public function getAuthenticatedAt() - { - return $this->container['authenticated_at']; - } - - /** - * Sets authenticated_at - * @param \DateTime $authenticated_at authenticated at Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time - * @return $this - */ - public function setAuthenticatedAt($authenticated_at) - { - $this->container['authenticated_at'] = $authenticated_at; - - return $this; - } - - /** - * Gets id - * @return string - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * @param string $id ID - * @return $this - */ - public function setId($id) - { - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets subject - * @return string - */ - public function getSubject() - { - return $this->container['subject']; - } - - /** - * Sets subject - * @param string $subject subject - * @return $this - */ - public function setSubject($subject) - { - $this->container['subject'] = $subject; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/Client.php b/sdk/php/swagger/lib/Model/Client.php deleted file mode 100644 index eb067192bab..00000000000 --- a/sdk/php/swagger/lib/Model/Client.php +++ /dev/null @@ -1,1064 +0,0 @@ -<?php -/** - * Client - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * Client Class Doc Comment - * - * @category Class - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class Client implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'Client'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'allowed_cors_origins' => 'string[]', - 'audience' => 'string[]', - 'backchannel_logout_session_required' => 'bool', - 'backchannel_logout_uri' => 'string', - 'client_id' => 'string', - 'client_name' => 'string', - 'client_secret' => 'string', - 'client_secret_expires_at' => 'int', - 'client_uri' => 'string', - 'contacts' => 'string[]', - 'created_at' => '\DateTime', - 'frontchannel_logout_session_required' => 'bool', - 'frontchannel_logout_uri' => 'string', - 'grant_types' => 'string[]', - 'jwks' => '\HydraSDK\Model\SwaggerJSONWebKeySet', - 'jwks_uri' => 'string', - 'logo_uri' => 'string', - 'owner' => 'string', - 'policy_uri' => 'string', - 'post_logout_redirect_uris' => 'string[]', - 'redirect_uris' => 'string[]', - 'request_object_signing_alg' => 'string', - 'request_uris' => 'string[]', - 'response_types' => 'string[]', - 'scope' => 'string', - 'sector_identifier_uri' => 'string', - 'subject_type' => 'string', - 'token_endpoint_auth_method' => 'string', - 'tos_uri' => 'string', - 'updated_at' => '\DateTime', - 'userinfo_signed_response_alg' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'allowed_cors_origins' => null, - 'audience' => null, - 'backchannel_logout_session_required' => null, - 'backchannel_logout_uri' => null, - 'client_id' => null, - 'client_name' => null, - 'client_secret' => null, - 'client_secret_expires_at' => 'int64', - 'client_uri' => null, - 'contacts' => null, - 'created_at' => 'date-time', - 'frontchannel_logout_session_required' => null, - 'frontchannel_logout_uri' => null, - 'grant_types' => null, - 'jwks' => null, - 'jwks_uri' => null, - 'logo_uri' => null, - 'owner' => null, - 'policy_uri' => null, - 'post_logout_redirect_uris' => null, - 'redirect_uris' => null, - 'request_object_signing_alg' => null, - 'request_uris' => null, - 'response_types' => null, - 'scope' => null, - 'sector_identifier_uri' => null, - 'subject_type' => null, - 'token_endpoint_auth_method' => null, - 'tos_uri' => null, - 'updated_at' => 'date-time', - 'userinfo_signed_response_alg' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'allowed_cors_origins' => 'allowed_cors_origins', - 'audience' => 'audience', - 'backchannel_logout_session_required' => 'backchannel_logout_session_required', - 'backchannel_logout_uri' => 'backchannel_logout_uri', - 'client_id' => 'client_id', - 'client_name' => 'client_name', - 'client_secret' => 'client_secret', - 'client_secret_expires_at' => 'client_secret_expires_at', - 'client_uri' => 'client_uri', - 'contacts' => 'contacts', - 'created_at' => 'created_at', - 'frontchannel_logout_session_required' => 'frontchannel_logout_session_required', - 'frontchannel_logout_uri' => 'frontchannel_logout_uri', - 'grant_types' => 'grant_types', - 'jwks' => 'jwks', - 'jwks_uri' => 'jwks_uri', - 'logo_uri' => 'logo_uri', - 'owner' => 'owner', - 'policy_uri' => 'policy_uri', - 'post_logout_redirect_uris' => 'post_logout_redirect_uris', - 'redirect_uris' => 'redirect_uris', - 'request_object_signing_alg' => 'request_object_signing_alg', - 'request_uris' => 'request_uris', - 'response_types' => 'response_types', - 'scope' => 'scope', - 'sector_identifier_uri' => 'sector_identifier_uri', - 'subject_type' => 'subject_type', - 'token_endpoint_auth_method' => 'token_endpoint_auth_method', - 'tos_uri' => 'tos_uri', - 'updated_at' => 'updated_at', - 'userinfo_signed_response_alg' => 'userinfo_signed_response_alg' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'allowed_cors_origins' => 'setAllowedCorsOrigins', - 'audience' => 'setAudience', - 'backchannel_logout_session_required' => 'setBackchannelLogoutSessionRequired', - 'backchannel_logout_uri' => 'setBackchannelLogoutUri', - 'client_id' => 'setClientId', - 'client_name' => 'setClientName', - 'client_secret' => 'setClientSecret', - 'client_secret_expires_at' => 'setClientSecretExpiresAt', - 'client_uri' => 'setClientUri', - 'contacts' => 'setContacts', - 'created_at' => 'setCreatedAt', - 'frontchannel_logout_session_required' => 'setFrontchannelLogoutSessionRequired', - 'frontchannel_logout_uri' => 'setFrontchannelLogoutUri', - 'grant_types' => 'setGrantTypes', - 'jwks' => 'setJwks', - 'jwks_uri' => 'setJwksUri', - 'logo_uri' => 'setLogoUri', - 'owner' => 'setOwner', - 'policy_uri' => 'setPolicyUri', - 'post_logout_redirect_uris' => 'setPostLogoutRedirectUris', - 'redirect_uris' => 'setRedirectUris', - 'request_object_signing_alg' => 'setRequestObjectSigningAlg', - 'request_uris' => 'setRequestUris', - 'response_types' => 'setResponseTypes', - 'scope' => 'setScope', - 'sector_identifier_uri' => 'setSectorIdentifierUri', - 'subject_type' => 'setSubjectType', - 'token_endpoint_auth_method' => 'setTokenEndpointAuthMethod', - 'tos_uri' => 'setTosUri', - 'updated_at' => 'setUpdatedAt', - 'userinfo_signed_response_alg' => 'setUserinfoSignedResponseAlg' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'allowed_cors_origins' => 'getAllowedCorsOrigins', - 'audience' => 'getAudience', - 'backchannel_logout_session_required' => 'getBackchannelLogoutSessionRequired', - 'backchannel_logout_uri' => 'getBackchannelLogoutUri', - 'client_id' => 'getClientId', - 'client_name' => 'getClientName', - 'client_secret' => 'getClientSecret', - 'client_secret_expires_at' => 'getClientSecretExpiresAt', - 'client_uri' => 'getClientUri', - 'contacts' => 'getContacts', - 'created_at' => 'getCreatedAt', - 'frontchannel_logout_session_required' => 'getFrontchannelLogoutSessionRequired', - 'frontchannel_logout_uri' => 'getFrontchannelLogoutUri', - 'grant_types' => 'getGrantTypes', - 'jwks' => 'getJwks', - 'jwks_uri' => 'getJwksUri', - 'logo_uri' => 'getLogoUri', - 'owner' => 'getOwner', - 'policy_uri' => 'getPolicyUri', - 'post_logout_redirect_uris' => 'getPostLogoutRedirectUris', - 'redirect_uris' => 'getRedirectUris', - 'request_object_signing_alg' => 'getRequestObjectSigningAlg', - 'request_uris' => 'getRequestUris', - 'response_types' => 'getResponseTypes', - 'scope' => 'getScope', - 'sector_identifier_uri' => 'getSectorIdentifierUri', - 'subject_type' => 'getSubjectType', - 'token_endpoint_auth_method' => 'getTokenEndpointAuthMethod', - 'tos_uri' => 'getTosUri', - 'updated_at' => 'getUpdatedAt', - 'userinfo_signed_response_alg' => 'getUserinfoSignedResponseAlg' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['allowed_cors_origins'] = isset($data['allowed_cors_origins']) ? $data['allowed_cors_origins'] : null; - $this->container['audience'] = isset($data['audience']) ? $data['audience'] : null; - $this->container['backchannel_logout_session_required'] = isset($data['backchannel_logout_session_required']) ? $data['backchannel_logout_session_required'] : null; - $this->container['backchannel_logout_uri'] = isset($data['backchannel_logout_uri']) ? $data['backchannel_logout_uri'] : null; - $this->container['client_id'] = isset($data['client_id']) ? $data['client_id'] : null; - $this->container['client_name'] = isset($data['client_name']) ? $data['client_name'] : null; - $this->container['client_secret'] = isset($data['client_secret']) ? $data['client_secret'] : null; - $this->container['client_secret_expires_at'] = isset($data['client_secret_expires_at']) ? $data['client_secret_expires_at'] : null; - $this->container['client_uri'] = isset($data['client_uri']) ? $data['client_uri'] : null; - $this->container['contacts'] = isset($data['contacts']) ? $data['contacts'] : null; - $this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null; - $this->container['frontchannel_logout_session_required'] = isset($data['frontchannel_logout_session_required']) ? $data['frontchannel_logout_session_required'] : null; - $this->container['frontchannel_logout_uri'] = isset($data['frontchannel_logout_uri']) ? $data['frontchannel_logout_uri'] : null; - $this->container['grant_types'] = isset($data['grant_types']) ? $data['grant_types'] : null; - $this->container['jwks'] = isset($data['jwks']) ? $data['jwks'] : null; - $this->container['jwks_uri'] = isset($data['jwks_uri']) ? $data['jwks_uri'] : null; - $this->container['logo_uri'] = isset($data['logo_uri']) ? $data['logo_uri'] : null; - $this->container['owner'] = isset($data['owner']) ? $data['owner'] : null; - $this->container['policy_uri'] = isset($data['policy_uri']) ? $data['policy_uri'] : null; - $this->container['post_logout_redirect_uris'] = isset($data['post_logout_redirect_uris']) ? $data['post_logout_redirect_uris'] : null; - $this->container['redirect_uris'] = isset($data['redirect_uris']) ? $data['redirect_uris'] : null; - $this->container['request_object_signing_alg'] = isset($data['request_object_signing_alg']) ? $data['request_object_signing_alg'] : null; - $this->container['request_uris'] = isset($data['request_uris']) ? $data['request_uris'] : null; - $this->container['response_types'] = isset($data['response_types']) ? $data['response_types'] : null; - $this->container['scope'] = isset($data['scope']) ? $data['scope'] : null; - $this->container['sector_identifier_uri'] = isset($data['sector_identifier_uri']) ? $data['sector_identifier_uri'] : null; - $this->container['subject_type'] = isset($data['subject_type']) ? $data['subject_type'] : null; - $this->container['token_endpoint_auth_method'] = isset($data['token_endpoint_auth_method']) ? $data['token_endpoint_auth_method'] : null; - $this->container['tos_uri'] = isset($data['tos_uri']) ? $data['tos_uri'] : null; - $this->container['updated_at'] = isset($data['updated_at']) ? $data['updated_at'] : null; - $this->container['userinfo_signed_response_alg'] = isset($data['userinfo_signed_response_alg']) ? $data['userinfo_signed_response_alg'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if (!is_null($this->container['scope']) && !preg_match("/([a-zA-Z0-9\\.\\*]+\\s?)+/", $this->container['scope'])) { - $invalid_properties[] = "invalid value for 'scope', must be conform to the pattern /([a-zA-Z0-9\\.\\*]+\\s?)+/."; - } - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if (!preg_match("/([a-zA-Z0-9\\.\\*]+\\s?)+/", $this->container['scope'])) { - return false; - } - return true; - } - - - /** - * Gets allowed_cors_origins - * @return string[] - */ - public function getAllowedCorsOrigins() - { - return $this->container['allowed_cors_origins']; - } - - /** - * Sets allowed_cors_origins - * @param string[] $allowed_cors_origins AllowedCORSOrigins are one or more URLs (scheme://host[:port]) which are allowed to make CORS requests to the /oauth/token endpoint. If this array is empty, the sever's CORS origin configuration (`CORS_ALLOWED_ORIGINS`) will be used instead. If this array is set, the allowed origins are appended to the server's CORS origin configuration. Be aware that environment variable `CORS_ENABLED` MUST be set to `true` for this to work. - * @return $this - */ - public function setAllowedCorsOrigins($allowed_cors_origins) - { - $this->container['allowed_cors_origins'] = $allowed_cors_origins; - - return $this; - } - - /** - * Gets audience - * @return string[] - */ - public function getAudience() - { - return $this->container['audience']; - } - - /** - * Sets audience - * @param string[] $audience Audience is a whitelist defining the audiences this client is allowed to request tokens for. An audience limits the applicability of an OAuth 2.0 Access Token to, for example, certain API endpoints. The value is a list of URLs. URLs MUST NOT contain whitespaces. - * @return $this - */ - public function setAudience($audience) - { - $this->container['audience'] = $audience; - - return $this; - } - - /** - * Gets backchannel_logout_session_required - * @return bool - */ - public function getBackchannelLogoutSessionRequired() - { - return $this->container['backchannel_logout_session_required']; - } - - /** - * Sets backchannel_logout_session_required - * @param bool $backchannel_logout_session_required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. - * @return $this - */ - public function setBackchannelLogoutSessionRequired($backchannel_logout_session_required) - { - $this->container['backchannel_logout_session_required'] = $backchannel_logout_session_required; - - return $this; - } - - /** - * Gets backchannel_logout_uri - * @return string - */ - public function getBackchannelLogoutUri() - { - return $this->container['backchannel_logout_uri']; - } - - /** - * Sets backchannel_logout_uri - * @param string $backchannel_logout_uri RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. - * @return $this - */ - public function setBackchannelLogoutUri($backchannel_logout_uri) - { - $this->container['backchannel_logout_uri'] = $backchannel_logout_uri; - - return $this; - } - - /** - * Gets client_id - * @return string - */ - public function getClientId() - { - return $this->container['client_id']; - } - - /** - * Sets client_id - * @param string $client_id ClientID is the id for this client. - * @return $this - */ - public function setClientId($client_id) - { - $this->container['client_id'] = $client_id; - - return $this; - } - - /** - * Gets client_name - * @return string - */ - public function getClientName() - { - return $this->container['client_name']; - } - - /** - * Sets client_name - * @param string $client_name Name is the human-readable string name of the client to be presented to the end-user during authorization. - * @return $this - */ - public function setClientName($client_name) - { - $this->container['client_name'] = $client_name; - - return $this; - } - - /** - * Gets client_secret - * @return string - */ - public function getClientSecret() - { - return $this->container['client_secret']; - } - - /** - * Sets client_secret - * @param string $client_secret Secret is the client's secret. The secret will be included in the create request as cleartext, and then never again. The secret is stored using BCrypt so it is impossible to recover it. Tell your users that they need to write the secret down as it will not be made available again. - * @return $this - */ - public function setClientSecret($client_secret) - { - $this->container['client_secret'] = $client_secret; - - return $this; - } - - /** - * Gets client_secret_expires_at - * @return int - */ - public function getClientSecretExpiresAt() - { - return $this->container['client_secret_expires_at']; - } - - /** - * Sets client_secret_expires_at - * @param int $client_secret_expires_at SecretExpiresAt is an integer holding the time at which the client secret will expire or 0 if it will not expire. The time is represented as the number of seconds from 1970-01-01T00:00:00Z as measured in UTC until the date/time of expiration. This feature is currently not supported and it's value will always be set to 0. - * @return $this - */ - public function setClientSecretExpiresAt($client_secret_expires_at) - { - $this->container['client_secret_expires_at'] = $client_secret_expires_at; - - return $this; - } - - /** - * Gets client_uri - * @return string - */ - public function getClientUri() - { - return $this->container['client_uri']; - } - - /** - * Sets client_uri - * @param string $client_uri ClientURI is an URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion. - * @return $this - */ - public function setClientUri($client_uri) - { - $this->container['client_uri'] = $client_uri; - - return $this; - } - - /** - * Gets contacts - * @return string[] - */ - public function getContacts() - { - return $this->container['contacts']; - } - - /** - * Sets contacts - * @param string[] $contacts Contacts is a array of strings representing ways to contact people responsible for this client, typically email addresses. - * @return $this - */ - public function setContacts($contacts) - { - $this->container['contacts'] = $contacts; - - return $this; - } - - /** - * Gets created_at - * @return \DateTime - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * @param \DateTime $created_at CreatedAt returns the timestamp of the client's creation. Format: date-time - * @return $this - */ - public function setCreatedAt($created_at) - { - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets frontchannel_logout_session_required - * @return bool - */ - public function getFrontchannelLogoutSessionRequired() - { - return $this->container['frontchannel_logout_session_required']; - } - - /** - * Sets frontchannel_logout_session_required - * @param bool $frontchannel_logout_session_required Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used. If omitted, the default value is false. - * @return $this - */ - public function setFrontchannelLogoutSessionRequired($frontchannel_logout_session_required) - { - $this->container['frontchannel_logout_session_required'] = $frontchannel_logout_session_required; - - return $this; - } - - /** - * Gets frontchannel_logout_uri - * @return string - */ - public function getFrontchannelLogoutUri() - { - return $this->container['frontchannel_logout_uri']; - } - - /** - * Sets frontchannel_logout_uri - * @param string $frontchannel_logout_uri RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the request and to determine which of the potentially multiple sessions is to be logged out; if either is included, both MUST be. - * @return $this - */ - public function setFrontchannelLogoutUri($frontchannel_logout_uri) - { - $this->container['frontchannel_logout_uri'] = $frontchannel_logout_uri; - - return $this; - } - - /** - * Gets grant_types - * @return string[] - */ - public function getGrantTypes() - { - return $this->container['grant_types']; - } - - /** - * Sets grant_types - * @param string[] $grant_types GrantTypes is an array of grant types the client is allowed to use. - * @return $this - */ - public function setGrantTypes($grant_types) - { - $this->container['grant_types'] = $grant_types; - - return $this; - } - - /** - * Gets jwks - * @return \HydraSDK\Model\SwaggerJSONWebKeySet - */ - public function getJwks() - { - return $this->container['jwks']; - } - - /** - * Sets jwks - * @param \HydraSDK\Model\SwaggerJSONWebKeySet $jwks - * @return $this - */ - public function setJwks($jwks) - { - $this->container['jwks'] = $jwks; - - return $this; - } - - /** - * Gets jwks_uri - * @return string - */ - public function getJwksUri() - { - return $this->container['jwks_uri']; - } - - /** - * Sets jwks_uri - * @param string $jwks_uri URL for the Client's JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains the signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the Client's encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate. - * @return $this - */ - public function setJwksUri($jwks_uri) - { - $this->container['jwks_uri'] = $jwks_uri; - - return $this; - } - - /** - * Gets logo_uri - * @return string - */ - public function getLogoUri() - { - return $this->container['logo_uri']; - } - - /** - * Sets logo_uri - * @param string $logo_uri LogoURI is an URL string that references a logo for the client. - * @return $this - */ - public function setLogoUri($logo_uri) - { - $this->container['logo_uri'] = $logo_uri; - - return $this; - } - - /** - * Gets owner - * @return string - */ - public function getOwner() - { - return $this->container['owner']; - } - - /** - * Sets owner - * @param string $owner Owner is a string identifying the owner of the OAuth 2.0 Client. - * @return $this - */ - public function setOwner($owner) - { - $this->container['owner'] = $owner; - - return $this; - } - - /** - * Gets policy_uri - * @return string - */ - public function getPolicyUri() - { - return $this->container['policy_uri']; - } - - /** - * Sets policy_uri - * @param string $policy_uri PolicyURI is a URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data. - * @return $this - */ - public function setPolicyUri($policy_uri) - { - $this->container['policy_uri'] = $policy_uri; - - return $this; - } - - /** - * Gets post_logout_redirect_uris - * @return string[] - */ - public function getPostLogoutRedirectUris() - { - return $this->container['post_logout_redirect_uris']; - } - - /** - * Sets post_logout_redirect_uris - * @param string[] $post_logout_redirect_uris Array of URLs supplied by the RP to which it MAY request that the End-User's User Agent be redirected using the post_logout_redirect_uri parameter after a logout has been performed. - * @return $this - */ - public function setPostLogoutRedirectUris($post_logout_redirect_uris) - { - $this->container['post_logout_redirect_uris'] = $post_logout_redirect_uris; - - return $this; - } - - /** - * Gets redirect_uris - * @return string[] - */ - public function getRedirectUris() - { - return $this->container['redirect_uris']; - } - - /** - * Sets redirect_uris - * @param string[] $redirect_uris RedirectURIs is an array of allowed redirect urls for the client, for example http://mydomain/oauth/callback . - * @return $this - */ - public function setRedirectUris($redirect_uris) - { - $this->container['redirect_uris'] = $redirect_uris; - - return $this; - } - - /** - * Gets request_object_signing_alg - * @return string - */ - public function getRequestObjectSigningAlg() - { - return $this->container['request_object_signing_alg']; - } - - /** - * Sets request_object_signing_alg - * @param string $request_object_signing_alg JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. All Request Objects from this Client MUST be rejected, if not signed with this algorithm. - * @return $this - */ - public function setRequestObjectSigningAlg($request_object_signing_alg) - { - $this->container['request_object_signing_alg'] = $request_object_signing_alg; - - return $this; - } - - /** - * Gets request_uris - * @return string[] - */ - public function getRequestUris() - { - return $this->container['request_uris']; - } - - /** - * Sets request_uris - * @param string[] $request_uris Array of request_uri values that are pre-registered by the RP for use at the OP. Servers MAY cache the contents of the files referenced by these URIs and not retrieve them at the time they are used in a request. OPs can require that request_uri values used be pre-registered with the require_request_uri_registration discovery parameter. - * @return $this - */ - public function setRequestUris($request_uris) - { - $this->container['request_uris'] = $request_uris; - - return $this; - } - - /** - * Gets response_types - * @return string[] - */ - public function getResponseTypes() - { - return $this->container['response_types']; - } - - /** - * Sets response_types - * @param string[] $response_types ResponseTypes is an array of the OAuth 2.0 response type strings that the client can use at the authorization endpoint. - * @return $this - */ - public function setResponseTypes($response_types) - { - $this->container['response_types'] = $response_types; - - return $this; - } - - /** - * Gets scope - * @return string - */ - public function getScope() - { - return $this->container['scope']; - } - - /** - * Sets scope - * @param string $scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. - * @return $this - */ - public function setScope($scope) - { - - if (!is_null($scope) && (!preg_match("/([a-zA-Z0-9\\.\\*]+\\s?)+/", $scope))) { - throw new \InvalidArgumentException("invalid value for $scope when calling Client., must conform to the pattern /([a-zA-Z0-9\\.\\*]+\\s?)+/."); - } - - $this->container['scope'] = $scope; - - return $this; - } - - /** - * Gets sector_identifier_uri - * @return string - */ - public function getSectorIdentifierUri() - { - return $this->container['sector_identifier_uri']; - } - - /** - * Sets sector_identifier_uri - * @param string $sector_identifier_uri URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. - * @return $this - */ - public function setSectorIdentifierUri($sector_identifier_uri) - { - $this->container['sector_identifier_uri'] = $sector_identifier_uri; - - return $this; - } - - /** - * Gets subject_type - * @return string - */ - public function getSubjectType() - { - return $this->container['subject_type']; - } - - /** - * Sets subject_type - * @param string $subject_type SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. - * @return $this - */ - public function setSubjectType($subject_type) - { - $this->container['subject_type'] = $subject_type; - - return $this; - } - - /** - * Gets token_endpoint_auth_method - * @return string - */ - public function getTokenEndpointAuthMethod() - { - return $this->container['token_endpoint_auth_method']; - } - - /** - * Sets token_endpoint_auth_method - * @param string $token_endpoint_auth_method Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none. - * @return $this - */ - public function setTokenEndpointAuthMethod($token_endpoint_auth_method) - { - $this->container['token_endpoint_auth_method'] = $token_endpoint_auth_method; - - return $this; - } - - /** - * Gets tos_uri - * @return string - */ - public function getTosUri() - { - return $this->container['tos_uri']; - } - - /** - * Sets tos_uri - * @param string $tos_uri TermsOfServiceURI is a URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. - * @return $this - */ - public function setTosUri($tos_uri) - { - $this->container['tos_uri'] = $tos_uri; - - return $this; - } - - /** - * Gets updated_at - * @return \DateTime - */ - public function getUpdatedAt() - { - return $this->container['updated_at']; - } - - /** - * Sets updated_at - * @param \DateTime $updated_at UpdatedAt returns the timestamp of the last update. Format: date-time - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->container['updated_at'] = $updated_at; - - return $this; - } - - /** - * Gets userinfo_signed_response_alg - * @return string - */ - public function getUserinfoSignedResponseAlg() - { - return $this->container['userinfo_signed_response_alg']; - } - - /** - * Sets userinfo_signed_response_alg - * @param string $userinfo_signed_response_alg JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type. - * @return $this - */ - public function setUserinfoSignedResponseAlg($userinfo_signed_response_alg) - { - $this->container['userinfo_signed_response_alg'] = $userinfo_signed_response_alg; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/CompletedRequest.php b/sdk/php/swagger/lib/Model/CompletedRequest.php index a886a94b211..90382cd1e68 100644 --- a/sdk/php/swagger/lib/Model/CompletedRequest.php +++ b/sdk/php/swagger/lib/Model/CompletedRequest.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * CompletedRequest Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -232,10 +232,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/ConsentRequest.php b/sdk/php/swagger/lib/Model/ConsentRequest.php index 25c2ad59e6a..d61ddcf1a23 100644 --- a/sdk/php/swagger/lib/Model/ConsentRequest.php +++ b/sdk/php/swagger/lib/Model/ConsentRequest.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * ConsentRequest Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -56,11 +56,11 @@ class ConsentRequest implements ArrayAccess protected static $swaggerTypes = [ 'acr' => 'string', 'challenge' => 'string', - 'client' => '\HydraSDK\Model\OAuth2Client', + 'client' => '\Hydra\SDK\Model\OAuth2Client', 'context' => 'map[string,object]', 'login_challenge' => 'string', 'login_session_id' => 'string', - 'oidc_context' => '\HydraSDK\Model\OpenIDConnectContext', + 'oidc_context' => '\Hydra\SDK\Model\OpenIDConnectContext', 'request_url' => 'string', 'requested_access_token_audience' => 'string[]', 'requested_scope' => 'string[]', @@ -270,7 +270,7 @@ public function setChallenge($challenge) /** * Gets client - * @return \HydraSDK\Model\OAuth2Client + * @return \Hydra\SDK\Model\OAuth2Client */ public function getClient() { @@ -279,7 +279,7 @@ public function getClient() /** * Sets client - * @param \HydraSDK\Model\OAuth2Client $client + * @param \Hydra\SDK\Model\OAuth2Client $client * @return $this */ public function setClient($client) @@ -354,7 +354,7 @@ public function setLoginSessionId($login_session_id) /** * Gets oidc_context - * @return \HydraSDK\Model\OpenIDConnectContext + * @return \Hydra\SDK\Model\OpenIDConnectContext */ public function getOidcContext() { @@ -363,7 +363,7 @@ public function getOidcContext() /** * Sets oidc_context - * @param \HydraSDK\Model\OpenIDConnectContext $oidc_context + * @param \Hydra\SDK\Model\OpenIDConnectContext $oidc_context * @return $this */ public function setOidcContext($oidc_context) @@ -529,10 +529,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/ConsentRequestSession.php b/sdk/php/swagger/lib/Model/ConsentRequestSession.php index 71dc351e520..793b3f17d1f 100644 --- a/sdk/php/swagger/lib/Model/ConsentRequestSession.php +++ b/sdk/php/swagger/lib/Model/ConsentRequestSession.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * ConsentRequestSession Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -259,10 +259,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/ConsentRequestSessionData.php b/sdk/php/swagger/lib/Model/ConsentRequestSessionData.php deleted file mode 100644 index 35e4872be59..00000000000 --- a/sdk/php/swagger/lib/Model/ConsentRequestSessionData.php +++ /dev/null @@ -1,269 +0,0 @@ -<?php -/** - * ConsentRequestSessionData - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * ConsentRequestSessionData Class Doc Comment - * - * @category Class - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class ConsentRequestSessionData implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'ConsentRequestSessionData'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'access_token' => 'map[string,object]', - 'id_token' => 'map[string,object]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'access_token' => null, - 'id_token' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'access_token' => 'access_token', - 'id_token' => 'id_token' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'access_token' => 'setAccessToken', - 'id_token' => 'setIdToken' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'access_token' => 'getAccessToken', - 'id_token' => 'getIdToken' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['access_token'] = isset($data['access_token']) ? $data['access_token'] : null; - $this->container['id_token'] = isset($data['id_token']) ? $data['id_token'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets access_token - * @return map[string,object] - */ - public function getAccessToken() - { - return $this->container['access_token']; - } - - /** - * Sets access_token - * @param map[string,object] $access_token AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! - * @return $this - */ - public function setAccessToken($access_token) - { - $this->container['access_token'] = $access_token; - - return $this; - } - - /** - * Gets id_token - * @return map[string,object] - */ - public function getIdToken() - { - return $this->container['id_token']; - } - - /** - * Sets id_token - * @param map[string,object] $id_token IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable by anyone that has access to the ID Challenge. Use with care! - * @return $this - */ - public function setIdToken($id_token) - { - $this->container['id_token'] = $id_token; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/CreateRequest.php b/sdk/php/swagger/lib/Model/CreateRequest.php deleted file mode 100644 index 10cd7b5c4d7..00000000000 --- a/sdk/php/swagger/lib/Model/CreateRequest.php +++ /dev/null @@ -1,315 +0,0 @@ -<?php -/** - * CreateRequest - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * CreateRequest Class Doc Comment - * - * @category Class - * @description CreateRequest create request - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class CreateRequest implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'createRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'alg' => 'string', - 'kid' => 'string', - 'use' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'alg' => null, - 'kid' => null, - 'use' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'alg' => 'alg', - 'kid' => 'kid', - 'use' => 'use' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'alg' => 'setAlg', - 'kid' => 'setKid', - 'use' => 'setUse' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'alg' => 'getAlg', - 'kid' => 'getKid', - 'use' => 'getUse' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['alg'] = isset($data['alg']) ? $data['alg'] : null; - $this->container['kid'] = isset($data['kid']) ? $data['kid'] : null; - $this->container['use'] = isset($data['use']) ? $data['use'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['alg'] === null) { - $invalid_properties[] = "'alg' can't be null"; - } - if ($this->container['kid'] === null) { - $invalid_properties[] = "'kid' can't be null"; - } - if ($this->container['use'] === null) { - $invalid_properties[] = "'use' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['alg'] === null) { - return false; - } - if ($this->container['kid'] === null) { - return false; - } - if ($this->container['use'] === null) { - return false; - } - return true; - } - - - /** - * Gets alg - * @return string - */ - public function getAlg() - { - return $this->container['alg']; - } - - /** - * Sets alg - * @param string $alg The algorithm to be used for creating the key. Supports \"RS256\", \"ES512\", \"HS512\", and \"HS256\" - * @return $this - */ - public function setAlg($alg) - { - $this->container['alg'] = $alg; - - return $this; - } - - /** - * Gets kid - * @return string - */ - public function getKid() - { - return $this->container['kid']; - } - - /** - * Sets kid - * @param string $kid The kid of the key to be created - * @return $this - */ - public function setKid($kid) - { - $this->container['kid'] = $kid; - - return $this; - } - - /** - * Gets use - * @return string - */ - public function getUse() - { - return $this->container['use']; - } - - /** - * Sets use - * @param string $use The \"use\" (public key use) parameter identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Valid values are \"enc\" and \"sig\". - * @return $this - */ - public function setUse($use) - { - $this->container['use'] = $use; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/EmptyResponse.php b/sdk/php/swagger/lib/Model/EmptyResponse.php index 81e3b52bd76..b722b695c91 100644 --- a/sdk/php/swagger/lib/Model/EmptyResponse.php +++ b/sdk/php/swagger/lib/Model/EmptyResponse.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,8 +35,8 @@ * EmptyResponse Class Doc Comment * * @category Class - * @description EmptyResponse Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. - * @package HydraSDK + * @description Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201. + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -211,10 +211,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/FlushInactiveOAuth2TokensRequest.php b/sdk/php/swagger/lib/Model/FlushInactiveOAuth2TokensRequest.php index 585bdda4992..ac21f9af90f 100644 --- a/sdk/php/swagger/lib/Model/FlushInactiveOAuth2TokensRequest.php +++ b/sdk/php/swagger/lib/Model/FlushInactiveOAuth2TokensRequest.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * FlushInactiveOAuth2TokensRequest Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -232,10 +232,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/GenericError.php b/sdk/php/swagger/lib/Model/GenericError.php index 4a7e66d3a7e..5e79c635b5b 100644 --- a/sdk/php/swagger/lib/Model/GenericError.php +++ b/sdk/php/swagger/lib/Model/GenericError.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -36,7 +36,7 @@ * * @category Class * @description Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred. - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -320,10 +320,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/HandledAuthenticationRequest.php b/sdk/php/swagger/lib/Model/HandledAuthenticationRequest.php deleted file mode 100644 index fef5f227b69..00000000000 --- a/sdk/php/swagger/lib/Model/HandledAuthenticationRequest.php +++ /dev/null @@ -1,356 +0,0 @@ -<?php -/** - * HandledAuthenticationRequest - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * HandledAuthenticationRequest Class Doc Comment - * - * @category Class - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class HandledAuthenticationRequest implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'HandledAuthenticationRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'acr' => 'string', - 'force_subject_identifier' => 'string', - 'remember' => 'bool', - 'remember_for' => 'int', - 'subject' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'acr' => null, - 'force_subject_identifier' => null, - 'remember' => null, - 'remember_for' => 'int64', - 'subject' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'acr' => 'acr', - 'force_subject_identifier' => 'force_subject_identifier', - 'remember' => 'remember', - 'remember_for' => 'remember_for', - 'subject' => 'subject' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'acr' => 'setAcr', - 'force_subject_identifier' => 'setForceSubjectIdentifier', - 'remember' => 'setRemember', - 'remember_for' => 'setRememberFor', - 'subject' => 'setSubject' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'acr' => 'getAcr', - 'force_subject_identifier' => 'getForceSubjectIdentifier', - 'remember' => 'getRemember', - 'remember_for' => 'getRememberFor', - 'subject' => 'getSubject' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['acr'] = isset($data['acr']) ? $data['acr'] : null; - $this->container['force_subject_identifier'] = isset($data['force_subject_identifier']) ? $data['force_subject_identifier'] : null; - $this->container['remember'] = isset($data['remember']) ? $data['remember'] : null; - $this->container['remember_for'] = isset($data['remember_for']) ? $data['remember_for'] : null; - $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['subject'] === null) { - $invalid_properties[] = "'subject' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['subject'] === null) { - return false; - } - return true; - } - - - /** - * Gets acr - * @return string - */ - public function getAcr() - { - return $this->container['acr']; - } - - /** - * Sets acr - * @param string $acr ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. - * @return $this - */ - public function setAcr($acr) - { - $this->container['acr'] = $acr; - - return $this; - } - - /** - * Gets force_subject_identifier - * @return string - */ - public function getForceSubjectIdentifier() - { - return $this->container['force_subject_identifier']; - } - - /** - * Sets force_subject_identifier - * @param string $force_subject_identifier ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. - * @return $this - */ - public function setForceSubjectIdentifier($force_subject_identifier) - { - $this->container['force_subject_identifier'] = $force_subject_identifier; - - return $this; - } - - /** - * Gets remember - * @return bool - */ - public function getRemember() - { - return $this->container['remember']; - } - - /** - * Sets remember - * @param bool $remember Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. - * @return $this - */ - public function setRemember($remember) - { - $this->container['remember'] = $remember; - - return $this; - } - - /** - * Gets remember_for - * @return int - */ - public function getRememberFor() - { - return $this->container['remember_for']; - } - - /** - * Sets remember_for - * @param int $remember_for RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. - * @return $this - */ - public function setRememberFor($remember_for) - { - $this->container['remember_for'] = $remember_for; - - return $this; - } - - /** - * Gets subject - * @return string - */ - public function getSubject() - { - return $this->container['subject']; - } - - /** - * Sets subject - * @param string $subject Subject is the user ID of the end-user that authenticated. - * @return $this - */ - public function setSubject($subject) - { - $this->container['subject'] = $subject; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/HandledConsentRequest.php b/sdk/php/swagger/lib/Model/HandledConsentRequest.php deleted file mode 100644 index 2c395dbee02..00000000000 --- a/sdk/php/swagger/lib/Model/HandledConsentRequest.php +++ /dev/null @@ -1,350 +0,0 @@ -<?php -/** - * HandledConsentRequest - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * HandledConsentRequest Class Doc Comment - * - * @category Class - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class HandledConsentRequest implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'HandledConsentRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'grant_access_token_audience' => 'string[]', - 'grant_scope' => 'string[]', - 'remember' => 'bool', - 'remember_for' => 'int', - 'session' => '\HydraSDK\Model\ConsentRequestSessionData' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'grant_access_token_audience' => null, - 'grant_scope' => null, - 'remember' => null, - 'remember_for' => 'int64', - 'session' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'grant_access_token_audience' => 'grant_access_token_audience', - 'grant_scope' => 'grant_scope', - 'remember' => 'remember', - 'remember_for' => 'remember_for', - 'session' => 'session' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'grant_access_token_audience' => 'setGrantAccessTokenAudience', - 'grant_scope' => 'setGrantScope', - 'remember' => 'setRemember', - 'remember_for' => 'setRememberFor', - 'session' => 'setSession' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'grant_access_token_audience' => 'getGrantAccessTokenAudience', - 'grant_scope' => 'getGrantScope', - 'remember' => 'getRemember', - 'remember_for' => 'getRememberFor', - 'session' => 'getSession' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['grant_access_token_audience'] = isset($data['grant_access_token_audience']) ? $data['grant_access_token_audience'] : null; - $this->container['grant_scope'] = isset($data['grant_scope']) ? $data['grant_scope'] : null; - $this->container['remember'] = isset($data['remember']) ? $data['remember'] : null; - $this->container['remember_for'] = isset($data['remember_for']) ? $data['remember_for'] : null; - $this->container['session'] = isset($data['session']) ? $data['session'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets grant_access_token_audience - * @return string[] - */ - public function getGrantAccessTokenAudience() - { - return $this->container['grant_access_token_audience']; - } - - /** - * Sets grant_access_token_audience - * @param string[] $grant_access_token_audience GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`. - * @return $this - */ - public function setGrantAccessTokenAudience($grant_access_token_audience) - { - $this->container['grant_access_token_audience'] = $grant_access_token_audience; - - return $this; - } - - /** - * Gets grant_scope - * @return string[] - */ - public function getGrantScope() - { - return $this->container['grant_scope']; - } - - /** - * Sets grant_scope - * @param string[] $grant_scope GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`. - * @return $this - */ - public function setGrantScope($grant_scope) - { - $this->container['grant_scope'] = $grant_scope; - - return $this; - } - - /** - * Gets remember - * @return bool - */ - public function getRemember() - { - return $this->container['remember']; - } - - /** - * Sets remember - * @param bool $remember Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. - * @return $this - */ - public function setRemember($remember) - { - $this->container['remember'] = $remember; - - return $this; - } - - /** - * Gets remember_for - * @return int - */ - public function getRememberFor() - { - return $this->container['remember_for']; - } - - /** - * Sets remember_for - * @param int $remember_for RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. - * @return $this - */ - public function setRememberFor($remember_for) - { - $this->container['remember_for'] = $remember_for; - - return $this; - } - - /** - * Gets session - * @return \HydraSDK\Model\ConsentRequestSessionData - */ - public function getSession() - { - return $this->container['session']; - } - - /** - * Sets session - * @param \HydraSDK\Model\ConsentRequestSessionData $session - * @return $this - */ - public function setSession($session) - { - $this->container['session'] = $session; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/HandledLoginRequest.php b/sdk/php/swagger/lib/Model/HandledLoginRequest.php deleted file mode 100644 index ecc86b12ea8..00000000000 --- a/sdk/php/swagger/lib/Model/HandledLoginRequest.php +++ /dev/null @@ -1,383 +0,0 @@ -<?php -/** - * HandledLoginRequest - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * HandledLoginRequest Class Doc Comment - * - * @category Class - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class HandledLoginRequest implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'HandledLoginRequest'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'acr' => 'string', - 'context' => 'map[string,object]', - 'force_subject_identifier' => 'string', - 'remember' => 'bool', - 'remember_for' => 'int', - 'subject' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'acr' => null, - 'context' => null, - 'force_subject_identifier' => null, - 'remember' => null, - 'remember_for' => 'int64', - 'subject' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'acr' => 'acr', - 'context' => 'context', - 'force_subject_identifier' => 'force_subject_identifier', - 'remember' => 'remember', - 'remember_for' => 'remember_for', - 'subject' => 'subject' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'acr' => 'setAcr', - 'context' => 'setContext', - 'force_subject_identifier' => 'setForceSubjectIdentifier', - 'remember' => 'setRemember', - 'remember_for' => 'setRememberFor', - 'subject' => 'setSubject' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'acr' => 'getAcr', - 'context' => 'getContext', - 'force_subject_identifier' => 'getForceSubjectIdentifier', - 'remember' => 'getRemember', - 'remember_for' => 'getRememberFor', - 'subject' => 'getSubject' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['acr'] = isset($data['acr']) ? $data['acr'] : null; - $this->container['context'] = isset($data['context']) ? $data['context'] : null; - $this->container['force_subject_identifier'] = isset($data['force_subject_identifier']) ? $data['force_subject_identifier'] : null; - $this->container['remember'] = isset($data['remember']) ? $data['remember'] : null; - $this->container['remember_for'] = isset($data['remember_for']) ? $data['remember_for'] : null; - $this->container['subject'] = isset($data['subject']) ? $data['subject'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['subject'] === null) { - $invalid_properties[] = "'subject' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['subject'] === null) { - return false; - } - return true; - } - - - /** - * Gets acr - * @return string - */ - public function getAcr() - { - return $this->container['acr']; - } - - /** - * Sets acr - * @param string $acr ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. - * @return $this - */ - public function setAcr($acr) - { - $this->container['acr'] = $acr; - - return $this; - } - - /** - * Gets context - * @return map[string,object] - */ - public function getContext() - { - return $this->container['context']; - } - - /** - * Sets context - * @param map[string,object] $context Context is an optional object which can hold arbitrary data. The data will be made available when fetching the consent request under the \"context\" field. This is useful in scenarios where login and consent endpoints share data. - * @return $this - */ - public function setContext($context) - { - $this->container['context'] = $context; - - return $this; - } - - /** - * Gets force_subject_identifier - * @return string - */ - public function getForceSubjectIdentifier() - { - return $this->container['force_subject_identifier']; - } - - /** - * Sets force_subject_identifier - * @param string $force_subject_identifier ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. - * @return $this - */ - public function setForceSubjectIdentifier($force_subject_identifier) - { - $this->container['force_subject_identifier'] = $force_subject_identifier; - - return $this; - } - - /** - * Gets remember - * @return bool - */ - public function getRemember() - { - return $this->container['remember']; - } - - /** - * Sets remember - * @param bool $remember Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again. - * @return $this - */ - public function setRemember($remember) - { - $this->container['remember'] = $remember; - - return $this; - } - - /** - * Gets remember_for - * @return int - */ - public function getRememberFor() - { - return $this->container['remember_for']; - } - - /** - * Sets remember_for - * @param int $remember_for RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. - * @return $this - */ - public function setRememberFor($remember_for) - { - $this->container['remember_for'] = $remember_for; - - return $this; - } - - /** - * Gets subject - * @return string - */ - public function getSubject() - { - return $this->container['subject']; - } - - /** - * Sets subject - * @param string $subject Subject is the user ID of the end-user that authenticated. - * @return $this - */ - public function setSubject($subject) - { - $this->container['subject'] = $subject; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/HealthNotReadyStatus.php b/sdk/php/swagger/lib/Model/HealthNotReadyStatus.php index a27a375331f..8148caf3687 100644 --- a/sdk/php/swagger/lib/Model/HealthNotReadyStatus.php +++ b/sdk/php/swagger/lib/Model/HealthNotReadyStatus.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * HealthNotReadyStatus Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -232,10 +232,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/HealthStatus.php b/sdk/php/swagger/lib/Model/HealthStatus.php index 48d3ce7439c..236ee218b24 100644 --- a/sdk/php/swagger/lib/Model/HealthStatus.php +++ b/sdk/php/swagger/lib/Model/HealthStatus.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * HealthStatus Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -232,10 +232,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/Introspection.php b/sdk/php/swagger/lib/Model/Introspection.php deleted file mode 100644 index cdc168c2965..00000000000 --- a/sdk/php/swagger/lib/Model/Introspection.php +++ /dev/null @@ -1,573 +0,0 @@ -<?php -/** - * Introspection - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * Introspection Class Doc Comment - * - * @category Class - * @description https://tools.ietf.org/html/rfc7662 - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class Introspection implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'Introspection'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'active' => 'bool', - 'aud' => 'string[]', - 'client_id' => 'string', - 'exp' => 'int', - 'ext' => 'map[string,object]', - 'iat' => 'int', - 'iss' => 'string', - 'nbf' => 'int', - 'obfuscated_subject' => 'string', - 'scope' => 'string', - 'sub' => 'string', - 'token_type' => 'string', - 'username' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'active' => null, - 'aud' => null, - 'client_id' => null, - 'exp' => 'int64', - 'ext' => null, - 'iat' => 'int64', - 'iss' => null, - 'nbf' => 'int64', - 'obfuscated_subject' => null, - 'scope' => null, - 'sub' => null, - 'token_type' => null, - 'username' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'active' => 'active', - 'aud' => 'aud', - 'client_id' => 'client_id', - 'exp' => 'exp', - 'ext' => 'ext', - 'iat' => 'iat', - 'iss' => 'iss', - 'nbf' => 'nbf', - 'obfuscated_subject' => 'obfuscated_subject', - 'scope' => 'scope', - 'sub' => 'sub', - 'token_type' => 'token_type', - 'username' => 'username' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'active' => 'setActive', - 'aud' => 'setAud', - 'client_id' => 'setClientId', - 'exp' => 'setExp', - 'ext' => 'setExt', - 'iat' => 'setIat', - 'iss' => 'setIss', - 'nbf' => 'setNbf', - 'obfuscated_subject' => 'setObfuscatedSubject', - 'scope' => 'setScope', - 'sub' => 'setSub', - 'token_type' => 'setTokenType', - 'username' => 'setUsername' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'active' => 'getActive', - 'aud' => 'getAud', - 'client_id' => 'getClientId', - 'exp' => 'getExp', - 'ext' => 'getExt', - 'iat' => 'getIat', - 'iss' => 'getIss', - 'nbf' => 'getNbf', - 'obfuscated_subject' => 'getObfuscatedSubject', - 'scope' => 'getScope', - 'sub' => 'getSub', - 'token_type' => 'getTokenType', - 'username' => 'getUsername' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['active'] = isset($data['active']) ? $data['active'] : null; - $this->container['aud'] = isset($data['aud']) ? $data['aud'] : null; - $this->container['client_id'] = isset($data['client_id']) ? $data['client_id'] : null; - $this->container['exp'] = isset($data['exp']) ? $data['exp'] : null; - $this->container['ext'] = isset($data['ext']) ? $data['ext'] : null; - $this->container['iat'] = isset($data['iat']) ? $data['iat'] : null; - $this->container['iss'] = isset($data['iss']) ? $data['iss'] : null; - $this->container['nbf'] = isset($data['nbf']) ? $data['nbf'] : null; - $this->container['obfuscated_subject'] = isset($data['obfuscated_subject']) ? $data['obfuscated_subject'] : null; - $this->container['scope'] = isset($data['scope']) ? $data['scope'] : null; - $this->container['sub'] = isset($data['sub']) ? $data['sub'] : null; - $this->container['token_type'] = isset($data['token_type']) ? $data['token_type'] : null; - $this->container['username'] = isset($data['username']) ? $data['username'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['active'] === null) { - $invalid_properties[] = "'active' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['active'] === null) { - return false; - } - return true; - } - - - /** - * Gets active - * @return bool - */ - public function getActive() - { - return $this->container['active']; - } - - /** - * Sets active - * @param bool $active Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's \"active\" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a \"true\" value return for the \"active\" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time). - * @return $this - */ - public function setActive($active) - { - $this->container['active'] = $active; - - return $this; - } - - /** - * Gets aud - * @return string[] - */ - public function getAud() - { - return $this->container['aud']; - } - - /** - * Sets aud - * @param string[] $aud Audience contains a list of the token's intended audiences. - * @return $this - */ - public function setAud($aud) - { - $this->container['aud'] = $aud; - - return $this; - } - - /** - * Gets client_id - * @return string - */ - public function getClientId() - { - return $this->container['client_id']; - } - - /** - * Sets client_id - * @param string $client_id ClientID is aclient identifier for the OAuth 2.0 client that requested this token. - * @return $this - */ - public function setClientId($client_id) - { - $this->container['client_id'] = $client_id; - - return $this; - } - - /** - * Gets exp - * @return int - */ - public function getExp() - { - return $this->container['exp']; - } - - /** - * Sets exp - * @param int $exp Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire. - * @return $this - */ - public function setExp($exp) - { - $this->container['exp'] = $exp; - - return $this; - } - - /** - * Gets ext - * @return map[string,object] - */ - public function getExt() - { - return $this->container['ext']; - } - - /** - * Sets ext - * @param map[string,object] $ext Extra is arbitrary data set by the session. - * @return $this - */ - public function setExt($ext) - { - $this->container['ext'] = $ext; - - return $this; - } - - /** - * Gets iat - * @return int - */ - public function getIat() - { - return $this->container['iat']; - } - - /** - * Sets iat - * @param int $iat Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued. - * @return $this - */ - public function setIat($iat) - { - $this->container['iat'] = $iat; - - return $this; - } - - /** - * Gets iss - * @return string - */ - public function getIss() - { - return $this->container['iss']; - } - - /** - * Sets iss - * @param string $iss IssuerURL is a string representing the issuer of this token - * @return $this - */ - public function setIss($iss) - { - $this->container['iss'] = $iss; - - return $this; - } - - /** - * Gets nbf - * @return int - */ - public function getNbf() - { - return $this->container['nbf']; - } - - /** - * Sets nbf - * @param int $nbf NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before. - * @return $this - */ - public function setNbf($nbf) - { - $this->container['nbf'] = $nbf; - - return $this; - } - - /** - * Gets obfuscated_subject - * @return string - */ - public function getObfuscatedSubject() - { - return $this->container['obfuscated_subject']; - } - - /** - * Sets obfuscated_subject - * @param string $obfuscated_subject ObfuscatedSubject is set when the subject identifier algorithm was set to \"pairwise\" during authorization. It is the `sub` value of the ID Token that was issued. - * @return $this - */ - public function setObfuscatedSubject($obfuscated_subject) - { - $this->container['obfuscated_subject'] = $obfuscated_subject; - - return $this; - } - - /** - * Gets scope - * @return string - */ - public function getScope() - { - return $this->container['scope']; - } - - /** - * Sets scope - * @param string $scope Scope is a JSON string containing a space-separated list of scopes associated with this token. - * @return $this - */ - public function setScope($scope) - { - $this->container['scope'] = $scope; - - return $this; - } - - /** - * Gets sub - * @return string - */ - public function getSub() - { - return $this->container['sub']; - } - - /** - * Sets sub - * @param string $sub Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token. - * @return $this - */ - public function setSub($sub) - { - $this->container['sub'] = $sub; - - return $this; - } - - /** - * Gets token_type - * @return string - */ - public function getTokenType() - { - return $this->container['token_type']; - } - - /** - * Sets token_type - * @param string $token_type TokenType is the introspected token's type, for example `access_token` or `refresh_token`. - * @return $this - */ - public function setTokenType($token_type) - { - $this->container['token_type'] = $token_type; - - return $this; - } - - /** - * Gets username - * @return string - */ - public function getUsername() - { - return $this->container['username']; - } - - /** - * Sets username - * @param string $username Username is a human-readable identifier for the resource owner who authorized this token. - * @return $this - */ - public function setUsername($username) - { - $this->container['username'] = $username; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/JSONWebKey.php b/sdk/php/swagger/lib/Model/JSONWebKey.php index 7d88f1069f2..16d425c4e49 100644 --- a/sdk/php/swagger/lib/Model/JSONWebKey.php +++ b/sdk/php/swagger/lib/Model/JSONWebKey.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * JSONWebKey Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -688,10 +688,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/JSONWebKeySet.php b/sdk/php/swagger/lib/Model/JSONWebKeySet.php index 6586329c340..e56e1189ea7 100644 --- a/sdk/php/swagger/lib/Model/JSONWebKeySet.php +++ b/sdk/php/swagger/lib/Model/JSONWebKeySet.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * JSONWebKeySet Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -54,7 +54,7 @@ class JSONWebKeySet implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'keys' => '\HydraSDK\Model\JSONWebKey[]' + 'keys' => '\Hydra\SDK\Model\JSONWebKey[]' ]; /** @@ -162,7 +162,7 @@ public function valid() /** * Gets keys - * @return \HydraSDK\Model\JSONWebKey[] + * @return \Hydra\SDK\Model\JSONWebKey[] */ public function getKeys() { @@ -171,7 +171,7 @@ public function getKeys() /** * Sets keys - * @param \HydraSDK\Model\JSONWebKey[] $keys The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. + * @param \Hydra\SDK\Model\JSONWebKey[] $keys The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. * @return $this */ public function setKeys($keys) @@ -232,10 +232,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/JsonWebKeySetGeneratorRequest.php b/sdk/php/swagger/lib/Model/JsonWebKeySetGeneratorRequest.php index 1678b6448db..a8b687c59d3 100644 --- a/sdk/php/swagger/lib/Model/JsonWebKeySetGeneratorRequest.php +++ b/sdk/php/swagger/lib/Model/JsonWebKeySetGeneratorRequest.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * JsonWebKeySetGeneratorRequest Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -304,10 +304,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/LoginRequest.php b/sdk/php/swagger/lib/Model/LoginRequest.php index b67bbfcbe6d..cc700f385a0 100644 --- a/sdk/php/swagger/lib/Model/LoginRequest.php +++ b/sdk/php/swagger/lib/Model/LoginRequest.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * LoginRequest Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -55,8 +55,8 @@ class LoginRequest implements ArrayAccess */ protected static $swaggerTypes = [ 'challenge' => 'string', - 'client' => '\HydraSDK\Model\OAuth2Client', - 'oidc_context' => '\HydraSDK\Model\OpenIDConnectContext', + 'client' => '\Hydra\SDK\Model\OAuth2Client', + 'oidc_context' => '\Hydra\SDK\Model\OpenIDConnectContext', 'request_url' => 'string', 'requested_access_token_audience' => 'string[]', 'requested_scope' => 'string[]', @@ -231,7 +231,7 @@ public function setChallenge($challenge) /** * Gets client - * @return \HydraSDK\Model\OAuth2Client + * @return \Hydra\SDK\Model\OAuth2Client */ public function getClient() { @@ -240,7 +240,7 @@ public function getClient() /** * Sets client - * @param \HydraSDK\Model\OAuth2Client $client + * @param \Hydra\SDK\Model\OAuth2Client $client * @return $this */ public function setClient($client) @@ -252,7 +252,7 @@ public function setClient($client) /** * Gets oidc_context - * @return \HydraSDK\Model\OpenIDConnectContext + * @return \Hydra\SDK\Model\OpenIDConnectContext */ public function getOidcContext() { @@ -261,7 +261,7 @@ public function getOidcContext() /** * Sets oidc_context - * @param \HydraSDK\Model\OpenIDConnectContext $oidc_context + * @param \Hydra\SDK\Model\OpenIDConnectContext $oidc_context * @return $this */ public function setOidcContext($oidc_context) @@ -448,10 +448,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/LogoutRequest.php b/sdk/php/swagger/lib/Model/LogoutRequest.php index 05a777c3062..b335ea88093 100644 --- a/sdk/php/swagger/lib/Model/LogoutRequest.php +++ b/sdk/php/swagger/lib/Model/LogoutRequest.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * LogoutRequest Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -313,10 +313,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/OAuth2Client.php b/sdk/php/swagger/lib/Model/OAuth2Client.php index 0d94f7bd603..358412ee854 100644 --- a/sdk/php/swagger/lib/Model/OAuth2Client.php +++ b/sdk/php/swagger/lib/Model/OAuth2Client.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * OAuth2Client Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -68,7 +68,7 @@ class OAuth2Client implements ArrayAccess 'frontchannel_logout_session_required' => 'bool', 'frontchannel_logout_uri' => 'string', 'grant_types' => 'string[]', - 'jwks' => '\HydraSDK\Model\JSONWebKeySet', + 'jwks' => '\Hydra\SDK\Model\JSONWebKeySet', 'jwks_uri' => 'string', 'logo_uri' => 'string', 'owner' => 'string', @@ -643,7 +643,7 @@ public function setGrantTypes($grant_types) /** * Gets jwks - * @return \HydraSDK\Model\JSONWebKeySet + * @return \Hydra\SDK\Model\JSONWebKeySet */ public function getJwks() { @@ -652,7 +652,7 @@ public function getJwks() /** * Sets jwks - * @param \HydraSDK\Model\JSONWebKeySet $jwks + * @param \Hydra\SDK\Model\JSONWebKeySet $jwks * @return $this */ public function setJwks($jwks) @@ -1054,10 +1054,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/OAuth2TokenIntrospection.php b/sdk/php/swagger/lib/Model/OAuth2TokenIntrospection.php index 4d13bf0671f..72544d27d5b 100644 --- a/sdk/php/swagger/lib/Model/OAuth2TokenIntrospection.php +++ b/sdk/php/swagger/lib/Model/OAuth2TokenIntrospection.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -36,7 +36,7 @@ * * @category Class * @description https://tools.ietf.org/html/rfc7662 - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -563,10 +563,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/Oauth2TokenResponse.php b/sdk/php/swagger/lib/Model/Oauth2TokenResponse.php index f73cd748d27..e9e76707f75 100644 --- a/sdk/php/swagger/lib/Model/Oauth2TokenResponse.php +++ b/sdk/php/swagger/lib/Model/Oauth2TokenResponse.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -36,7 +36,7 @@ * * @category Class * @description The Access Token Response - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -314,10 +314,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/OauthTokenResponse.php b/sdk/php/swagger/lib/Model/OauthTokenResponse.php index 6ee9cd341ec..64a5cd615dc 100644 --- a/sdk/php/swagger/lib/Model/OauthTokenResponse.php +++ b/sdk/php/swagger/lib/Model/OauthTokenResponse.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -36,7 +36,7 @@ * * @category Class * @description The token response - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -368,10 +368,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/OpenIDConnectContext.php b/sdk/php/swagger/lib/Model/OpenIDConnectContext.php index 97af8c9145a..50a6b3adeae 100644 --- a/sdk/php/swagger/lib/Model/OpenIDConnectContext.php +++ b/sdk/php/swagger/lib/Model/OpenIDConnectContext.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * OpenIDConnectContext Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -340,10 +340,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/PreviousConsentSession.php b/sdk/php/swagger/lib/Model/PreviousConsentSession.php index 833475cfd11..21085fe4cda 100644 --- a/sdk/php/swagger/lib/Model/PreviousConsentSession.php +++ b/sdk/php/swagger/lib/Model/PreviousConsentSession.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -36,7 +36,7 @@ * * @category Class * @description The response used to return used consent requests same as HandledLoginRequest, just with consent_request exposed as json - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -55,12 +55,12 @@ class PreviousConsentSession implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'consent_request' => '\HydraSDK\Model\ConsentRequest', + 'consent_request' => '\Hydra\SDK\Model\ConsentRequest', 'grant_access_token_audience' => 'string[]', 'grant_scope' => 'string[]', 'remember' => 'bool', 'remember_for' => 'int', - 'session' => '\HydraSDK\Model\ConsentRequestSession' + 'session' => '\Hydra\SDK\Model\ConsentRequestSession' ]; /** @@ -193,7 +193,7 @@ public function valid() /** * Gets consent_request - * @return \HydraSDK\Model\ConsentRequest + * @return \Hydra\SDK\Model\ConsentRequest */ public function getConsentRequest() { @@ -202,7 +202,7 @@ public function getConsentRequest() /** * Sets consent_request - * @param \HydraSDK\Model\ConsentRequest $consent_request + * @param \Hydra\SDK\Model\ConsentRequest $consent_request * @return $this */ public function setConsentRequest($consent_request) @@ -298,7 +298,7 @@ public function setRememberFor($remember_for) /** * Gets session - * @return \HydraSDK\Model\ConsentRequestSession + * @return \Hydra\SDK\Model\ConsentRequestSession */ public function getSession() { @@ -307,7 +307,7 @@ public function getSession() /** * Sets session - * @param \HydraSDK\Model\ConsentRequestSession $session + * @param \Hydra\SDK\Model\ConsentRequestSession $session * @return $this */ public function setSession($session) @@ -368,10 +368,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/RejectRequest.php b/sdk/php/swagger/lib/Model/RejectRequest.php index 9fcec63feac..b3ceed1f6e6 100644 --- a/sdk/php/swagger/lib/Model/RejectRequest.php +++ b/sdk/php/swagger/lib/Model/RejectRequest.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * RejectRequest Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -340,10 +340,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/RequestDeniedError.php b/sdk/php/swagger/lib/Model/RequestDeniedError.php deleted file mode 100644 index a58016a8527..00000000000 --- a/sdk/php/swagger/lib/Model/RequestDeniedError.php +++ /dev/null @@ -1,350 +0,0 @@ -<?php -/** - * RequestDeniedError - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * RequestDeniedError Class Doc Comment - * - * @category Class - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class RequestDeniedError implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'RequestDeniedError'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'error' => 'string', - 'error_debug' => 'string', - 'error_description' => 'string', - 'error_hint' => 'string', - 'status_code' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'error' => null, - 'error_debug' => null, - 'error_description' => null, - 'error_hint' => null, - 'status_code' => 'int64' - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'error' => 'error', - 'error_debug' => 'error_debug', - 'error_description' => 'error_description', - 'error_hint' => 'error_hint', - 'status_code' => 'status_code' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'error' => 'setError', - 'error_debug' => 'setErrorDebug', - 'error_description' => 'setErrorDescription', - 'error_hint' => 'setErrorHint', - 'status_code' => 'setStatusCode' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'error' => 'getError', - 'error_debug' => 'getErrorDebug', - 'error_description' => 'getErrorDescription', - 'error_hint' => 'getErrorHint', - 'status_code' => 'getStatusCode' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['error'] = isset($data['error']) ? $data['error'] : null; - $this->container['error_debug'] = isset($data['error_debug']) ? $data['error_debug'] : null; - $this->container['error_description'] = isset($data['error_description']) ? $data['error_description'] : null; - $this->container['error_hint'] = isset($data['error_hint']) ? $data['error_hint'] : null; - $this->container['status_code'] = isset($data['status_code']) ? $data['status_code'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets error - * @return string - */ - public function getError() - { - return $this->container['error']; - } - - /** - * Sets error - * @param string $error name - * @return $this - */ - public function setError($error) - { - $this->container['error'] = $error; - - return $this; - } - - /** - * Gets error_debug - * @return string - */ - public function getErrorDebug() - { - return $this->container['error_debug']; - } - - /** - * Sets error_debug - * @param string $error_debug debug - * @return $this - */ - public function setErrorDebug($error_debug) - { - $this->container['error_debug'] = $error_debug; - - return $this; - } - - /** - * Gets error_description - * @return string - */ - public function getErrorDescription() - { - return $this->container['error_description']; - } - - /** - * Sets error_description - * @param string $error_description description - * @return $this - */ - public function setErrorDescription($error_description) - { - $this->container['error_description'] = $error_description; - - return $this; - } - - /** - * Gets error_hint - * @return string - */ - public function getErrorHint() - { - return $this->container['error_hint']; - } - - /** - * Sets error_hint - * @param string $error_hint hint - * @return $this - */ - public function setErrorHint($error_hint) - { - $this->container['error_hint'] = $error_hint; - - return $this; - } - - /** - * Gets status_code - * @return int - */ - public function getStatusCode() - { - return $this->container['status_code']; - } - - /** - * Sets status_code - * @param int $status_code code - * @return $this - */ - public function setStatusCode($status_code) - { - $this->container['status_code'] = $status_code; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/RequestHandlerResponse.php b/sdk/php/swagger/lib/Model/RequestHandlerResponse.php deleted file mode 100644 index 6f08bd3025d..00000000000 --- a/sdk/php/swagger/lib/Model/RequestHandlerResponse.php +++ /dev/null @@ -1,242 +0,0 @@ -<?php -/** - * RequestHandlerResponse - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * RequestHandlerResponse Class Doc Comment - * - * @category Class - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class RequestHandlerResponse implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'RequestHandlerResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'redirect_to' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'redirect_to' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'redirect_to' => 'redirect_to' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'redirect_to' => 'setRedirectTo' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'redirect_to' => 'getRedirectTo' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['redirect_to'] = isset($data['redirect_to']) ? $data['redirect_to'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets redirect_to - * @return string - */ - public function getRedirectTo() - { - return $this->container['redirect_to']; - } - - /** - * Sets redirect_to - * @param string $redirect_to RedirectURL is the URL which you should redirect the user to once the authentication process is completed. - * @return $this - */ - public function setRedirectTo($redirect_to) - { - $this->container['redirect_to'] = $redirect_to; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/SwaggerFlushInactiveAccessTokens.php b/sdk/php/swagger/lib/Model/SwaggerFlushInactiveAccessTokens.php index 3e1a388d6c1..34add503b39 100644 --- a/sdk/php/swagger/lib/Model/SwaggerFlushInactiveAccessTokens.php +++ b/sdk/php/swagger/lib/Model/SwaggerFlushInactiveAccessTokens.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,8 +35,7 @@ * SwaggerFlushInactiveAccessTokens Class Doc Comment * * @category Class - * @description SwaggerFlushInactiveAccessTokens swagger flush inactive access tokens - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -55,7 +54,7 @@ class SwaggerFlushInactiveAccessTokens implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'body' => '\HydraSDK\Model\FlushInactiveOAuth2TokensRequest' + 'body' => '\Hydra\SDK\Model\FlushInactiveOAuth2TokensRequest' ]; /** @@ -163,7 +162,7 @@ public function valid() /** * Gets body - * @return \HydraSDK\Model\FlushInactiveOAuth2TokensRequest + * @return \Hydra\SDK\Model\FlushInactiveOAuth2TokensRequest */ public function getBody() { @@ -172,7 +171,7 @@ public function getBody() /** * Sets body - * @param \HydraSDK\Model\FlushInactiveOAuth2TokensRequest $body + * @param \Hydra\SDK\Model\FlushInactiveOAuth2TokensRequest $body * @return $this */ public function setBody($body) @@ -233,10 +232,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/SwaggerHealthStatus.php b/sdk/php/swagger/lib/Model/SwaggerHealthStatus.php deleted file mode 100644 index f8abb9375bb..00000000000 --- a/sdk/php/swagger/lib/Model/SwaggerHealthStatus.php +++ /dev/null @@ -1,243 +0,0 @@ -<?php -/** - * SwaggerHealthStatus - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * SwaggerHealthStatus Class Doc Comment - * - * @category Class - * @description SwaggerHealthStatus swagger health status - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class SwaggerHealthStatus implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'swaggerHealthStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'status' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'status' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'status' => 'status' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'status' => 'setStatus' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'status' => 'getStatus' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['status'] = isset($data['status']) ? $data['status'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets status - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * @param string $status Status always contains \"ok\". - * @return $this - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/SwaggerJSONWebKey.php b/sdk/php/swagger/lib/Model/SwaggerJSONWebKey.php deleted file mode 100644 index a9ba70dba47..00000000000 --- a/sdk/php/swagger/lib/Model/SwaggerJSONWebKey.php +++ /dev/null @@ -1,699 +0,0 @@ -<?php -/** - * SwaggerJSONWebKey - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * SwaggerJSONWebKey Class Doc Comment - * - * @category Class - * @description SwaggerJSONWebKey swagger JSON web key - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class SwaggerJSONWebKey implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'swaggerJSONWebKey'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'alg' => 'string', - 'crv' => 'string', - 'd' => 'string', - 'dp' => 'string', - 'dq' => 'string', - 'e' => 'string', - 'k' => 'string', - 'kid' => 'string', - 'kty' => 'string', - 'n' => 'string', - 'p' => 'string', - 'q' => 'string', - 'qi' => 'string', - 'use' => 'string', - 'x' => 'string', - 'x5c' => 'string[]', - 'y' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'alg' => null, - 'crv' => null, - 'd' => null, - 'dp' => null, - 'dq' => null, - 'e' => null, - 'k' => null, - 'kid' => null, - 'kty' => null, - 'n' => null, - 'p' => null, - 'q' => null, - 'qi' => null, - 'use' => null, - 'x' => null, - 'x5c' => null, - 'y' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'alg' => 'alg', - 'crv' => 'crv', - 'd' => 'd', - 'dp' => 'dp', - 'dq' => 'dq', - 'e' => 'e', - 'k' => 'k', - 'kid' => 'kid', - 'kty' => 'kty', - 'n' => 'n', - 'p' => 'p', - 'q' => 'q', - 'qi' => 'qi', - 'use' => 'use', - 'x' => 'x', - 'x5c' => 'x5c', - 'y' => 'y' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'alg' => 'setAlg', - 'crv' => 'setCrv', - 'd' => 'setD', - 'dp' => 'setDp', - 'dq' => 'setDq', - 'e' => 'setE', - 'k' => 'setK', - 'kid' => 'setKid', - 'kty' => 'setKty', - 'n' => 'setN', - 'p' => 'setP', - 'q' => 'setQ', - 'qi' => 'setQi', - 'use' => 'setUse', - 'x' => 'setX', - 'x5c' => 'setX5c', - 'y' => 'setY' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'alg' => 'getAlg', - 'crv' => 'getCrv', - 'd' => 'getD', - 'dp' => 'getDp', - 'dq' => 'getDq', - 'e' => 'getE', - 'k' => 'getK', - 'kid' => 'getKid', - 'kty' => 'getKty', - 'n' => 'getN', - 'p' => 'getP', - 'q' => 'getQ', - 'qi' => 'getQi', - 'use' => 'getUse', - 'x' => 'getX', - 'x5c' => 'getX5c', - 'y' => 'getY' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['alg'] = isset($data['alg']) ? $data['alg'] : null; - $this->container['crv'] = isset($data['crv']) ? $data['crv'] : null; - $this->container['d'] = isset($data['d']) ? $data['d'] : null; - $this->container['dp'] = isset($data['dp']) ? $data['dp'] : null; - $this->container['dq'] = isset($data['dq']) ? $data['dq'] : null; - $this->container['e'] = isset($data['e']) ? $data['e'] : null; - $this->container['k'] = isset($data['k']) ? $data['k'] : null; - $this->container['kid'] = isset($data['kid']) ? $data['kid'] : null; - $this->container['kty'] = isset($data['kty']) ? $data['kty'] : null; - $this->container['n'] = isset($data['n']) ? $data['n'] : null; - $this->container['p'] = isset($data['p']) ? $data['p'] : null; - $this->container['q'] = isset($data['q']) ? $data['q'] : null; - $this->container['qi'] = isset($data['qi']) ? $data['qi'] : null; - $this->container['use'] = isset($data['use']) ? $data['use'] : null; - $this->container['x'] = isset($data['x']) ? $data['x'] : null; - $this->container['x5c'] = isset($data['x5c']) ? $data['x5c'] : null; - $this->container['y'] = isset($data['y']) ? $data['y'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - if ($this->container['alg'] === null) { - $invalid_properties[] = "'alg' can't be null"; - } - if ($this->container['kid'] === null) { - $invalid_properties[] = "'kid' can't be null"; - } - if ($this->container['kty'] === null) { - $invalid_properties[] = "'kty' can't be null"; - } - if ($this->container['use'] === null) { - $invalid_properties[] = "'use' can't be null"; - } - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - if ($this->container['alg'] === null) { - return false; - } - if ($this->container['kid'] === null) { - return false; - } - if ($this->container['kty'] === null) { - return false; - } - if ($this->container['use'] === null) { - return false; - } - return true; - } - - - /** - * Gets alg - * @return string - */ - public function getAlg() - { - return $this->container['alg']; - } - - /** - * Sets alg - * @param string $alg The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. - * @return $this - */ - public function setAlg($alg) - { - $this->container['alg'] = $alg; - - return $this; - } - - /** - * Gets crv - * @return string - */ - public function getCrv() - { - return $this->container['crv']; - } - - /** - * Sets crv - * @param string $crv crv - * @return $this - */ - public function setCrv($crv) - { - $this->container['crv'] = $crv; - - return $this; - } - - /** - * Gets d - * @return string - */ - public function getD() - { - return $this->container['d']; - } - - /** - * Sets d - * @param string $d d - * @return $this - */ - public function setD($d) - { - $this->container['d'] = $d; - - return $this; - } - - /** - * Gets dp - * @return string - */ - public function getDp() - { - return $this->container['dp']; - } - - /** - * Sets dp - * @param string $dp dp - * @return $this - */ - public function setDp($dp) - { - $this->container['dp'] = $dp; - - return $this; - } - - /** - * Gets dq - * @return string - */ - public function getDq() - { - return $this->container['dq']; - } - - /** - * Sets dq - * @param string $dq dq - * @return $this - */ - public function setDq($dq) - { - $this->container['dq'] = $dq; - - return $this; - } - - /** - * Gets e - * @return string - */ - public function getE() - { - return $this->container['e']; - } - - /** - * Sets e - * @param string $e e - * @return $this - */ - public function setE($e) - { - $this->container['e'] = $e; - - return $this; - } - - /** - * Gets k - * @return string - */ - public function getK() - { - return $this->container['k']; - } - - /** - * Sets k - * @param string $k k - * @return $this - */ - public function setK($k) - { - $this->container['k'] = $k; - - return $this; - } - - /** - * Gets kid - * @return string - */ - public function getKid() - { - return $this->container['kid']; - } - - /** - * Sets kid - * @param string $kid The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string. - * @return $this - */ - public function setKid($kid) - { - $this->container['kid'] = $kid; - - return $this; - } - - /** - * Gets kty - * @return string - */ - public function getKty() - { - return $this->container['kty']; - } - - /** - * Sets kty - * @param string $kty The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string. - * @return $this - */ - public function setKty($kty) - { - $this->container['kty'] = $kty; - - return $this; - } - - /** - * Gets n - * @return string - */ - public function getN() - { - return $this->container['n']; - } - - /** - * Sets n - * @param string $n n - * @return $this - */ - public function setN($n) - { - $this->container['n'] = $n; - - return $this; - } - - /** - * Gets p - * @return string - */ - public function getP() - { - return $this->container['p']; - } - - /** - * Sets p - * @param string $p p - * @return $this - */ - public function setP($p) - { - $this->container['p'] = $p; - - return $this; - } - - /** - * Gets q - * @return string - */ - public function getQ() - { - return $this->container['q']; - } - - /** - * Sets q - * @param string $q q - * @return $this - */ - public function setQ($q) - { - $this->container['q'] = $q; - - return $this; - } - - /** - * Gets qi - * @return string - */ - public function getQi() - { - return $this->container['qi']; - } - - /** - * Sets qi - * @param string $qi qi - * @return $this - */ - public function setQi($qi) - { - $this->container['qi'] = $qi; - - return $this; - } - - /** - * Gets use - * @return string - */ - public function getUse() - { - return $this->container['use']; - } - - /** - * Sets use - * @param string $use Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption). - * @return $this - */ - public function setUse($use) - { - $this->container['use'] = $use; - - return $this; - } - - /** - * Gets x - * @return string - */ - public function getX() - { - return $this->container['x']; - } - - /** - * Sets x - * @param string $x x - * @return $this - */ - public function setX($x) - { - $this->container['x'] = $x; - - return $this; - } - - /** - * Gets x5c - * @return string[] - */ - public function getX5c() - { - return $this->container['x5c']; - } - - /** - * Sets x5c - * @param string[] $x5c The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate. - * @return $this - */ - public function setX5c($x5c) - { - $this->container['x5c'] = $x5c; - - return $this; - } - - /** - * Gets y - * @return string - */ - public function getY() - { - return $this->container['y']; - } - - /** - * Sets y - * @param string $y y - * @return $this - */ - public function setY($y) - { - $this->container['y'] = $y; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/SwaggerJSONWebKeySet.php b/sdk/php/swagger/lib/Model/SwaggerJSONWebKeySet.php deleted file mode 100644 index 4dc45469727..00000000000 --- a/sdk/php/swagger/lib/Model/SwaggerJSONWebKeySet.php +++ /dev/null @@ -1,243 +0,0 @@ -<?php -/** - * SwaggerJSONWebKeySet - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * SwaggerJSONWebKeySet Class Doc Comment - * - * @category Class - * @description SwaggerJSONWebKeySet swagger JSON web key set - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class SwaggerJSONWebKeySet implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'swaggerJSONWebKeySet'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'keys' => '\HydraSDK\Model\SwaggerJSONWebKey[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'keys' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'keys' => 'keys' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'keys' => 'setKeys' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'keys' => 'getKeys' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['keys'] = isset($data['keys']) ? $data['keys'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets keys - * @return \HydraSDK\Model\SwaggerJSONWebKey[] - */ - public function getKeys() - { - return $this->container['keys']; - } - - /** - * Sets keys - * @param \HydraSDK\Model\SwaggerJSONWebKey[] $keys The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. - * @return $this - */ - public function setKeys($keys) - { - $this->container['keys'] = $keys; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/SwaggerJsonWebKeyQuery.php b/sdk/php/swagger/lib/Model/SwaggerJsonWebKeyQuery.php index 397a427e1f5..bbe51d93d70 100644 --- a/sdk/php/swagger/lib/Model/SwaggerJsonWebKeyQuery.php +++ b/sdk/php/swagger/lib/Model/SwaggerJsonWebKeyQuery.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * SwaggerJsonWebKeyQuery Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -271,10 +271,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/SwaggerJwkCreateSet.php b/sdk/php/swagger/lib/Model/SwaggerJwkCreateSet.php index decafa53cd5..7e407ea2f14 100644 --- a/sdk/php/swagger/lib/Model/SwaggerJwkCreateSet.php +++ b/sdk/php/swagger/lib/Model/SwaggerJwkCreateSet.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * SwaggerJwkCreateSet Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -54,7 +54,7 @@ class SwaggerJwkCreateSet implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'body' => '\HydraSDK\Model\JsonWebKeySetGeneratorRequest', + 'body' => '\Hydra\SDK\Model\JsonWebKeySetGeneratorRequest', 'set' => 'string' ]; @@ -174,7 +174,7 @@ public function valid() /** * Gets body - * @return \HydraSDK\Model\JsonWebKeySetGeneratorRequest + * @return \Hydra\SDK\Model\JsonWebKeySetGeneratorRequest */ public function getBody() { @@ -183,7 +183,7 @@ public function getBody() /** * Sets body - * @param \HydraSDK\Model\JsonWebKeySetGeneratorRequest $body + * @param \Hydra\SDK\Model\JsonWebKeySetGeneratorRequest $body * @return $this */ public function setBody($body) @@ -265,10 +265,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/SwaggerJwkSetQuery.php b/sdk/php/swagger/lib/Model/SwaggerJwkSetQuery.php index e7998f95469..c62603bb622 100644 --- a/sdk/php/swagger/lib/Model/SwaggerJwkSetQuery.php +++ b/sdk/php/swagger/lib/Model/SwaggerJwkSetQuery.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * SwaggerJwkSetQuery Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -238,10 +238,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/SwaggerJwkUpdateSet.php b/sdk/php/swagger/lib/Model/SwaggerJwkUpdateSet.php index 65d23be50ab..a7c06319d66 100644 --- a/sdk/php/swagger/lib/Model/SwaggerJwkUpdateSet.php +++ b/sdk/php/swagger/lib/Model/SwaggerJwkUpdateSet.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * SwaggerJwkUpdateSet Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -54,7 +54,7 @@ class SwaggerJwkUpdateSet implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'body' => '\HydraSDK\Model\JSONWebKeySet', + 'body' => '\Hydra\SDK\Model\JSONWebKeySet', 'set' => 'string' ]; @@ -174,7 +174,7 @@ public function valid() /** * Gets body - * @return \HydraSDK\Model\JSONWebKeySet + * @return \Hydra\SDK\Model\JSONWebKeySet */ public function getBody() { @@ -183,7 +183,7 @@ public function getBody() /** * Sets body - * @param \HydraSDK\Model\JSONWebKeySet $body + * @param \Hydra\SDK\Model\JSONWebKeySet $body * @return $this */ public function setBody($body) @@ -265,10 +265,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/SwaggerJwkUpdateSetKey.php b/sdk/php/swagger/lib/Model/SwaggerJwkUpdateSetKey.php index e4d9801b86f..6db823924f8 100644 --- a/sdk/php/swagger/lib/Model/SwaggerJwkUpdateSetKey.php +++ b/sdk/php/swagger/lib/Model/SwaggerJwkUpdateSetKey.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * SwaggerJwkUpdateSetKey Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -54,7 +54,7 @@ class SwaggerJwkUpdateSetKey implements ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'body' => '\HydraSDK\Model\JSONWebKey', + 'body' => '\Hydra\SDK\Model\JSONWebKey', 'kid' => 'string', 'set' => 'string' ]; @@ -186,7 +186,7 @@ public function valid() /** * Gets body - * @return \HydraSDK\Model\JSONWebKey + * @return \Hydra\SDK\Model\JSONWebKey */ public function getBody() { @@ -195,7 +195,7 @@ public function getBody() /** * Sets body - * @param \HydraSDK\Model\JSONWebKey $body + * @param \Hydra\SDK\Model\JSONWebKey $body * @return $this */ public function setBody($body) @@ -298,10 +298,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/SwaggerNotReadyStatus.php b/sdk/php/swagger/lib/Model/SwaggerNotReadyStatus.php deleted file mode 100644 index 27330eb8c92..00000000000 --- a/sdk/php/swagger/lib/Model/SwaggerNotReadyStatus.php +++ /dev/null @@ -1,243 +0,0 @@ -<?php -/** - * SwaggerNotReadyStatus - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * SwaggerNotReadyStatus Class Doc Comment - * - * @category Class - * @description SwaggerNotReadyStatus swagger not ready status - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class SwaggerNotReadyStatus implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'swaggerNotReadyStatus'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'errors' => 'map[string,string]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'errors' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'errors' => 'errors' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'errors' => 'setErrors' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'errors' => 'getErrors' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets errors - * @return map[string,string] - */ - public function getErrors() - { - return $this->container['errors']; - } - - /** - * Sets errors - * @param map[string,string] $errors Errors contains a list of errors that caused the not ready status. - * @return $this - */ - public function setErrors($errors) - { - $this->container['errors'] = $errors; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/SwaggerOAuthIntrospectionRequest.php b/sdk/php/swagger/lib/Model/SwaggerOAuthIntrospectionRequest.php index 62bd928a2db..d5c33967bc7 100644 --- a/sdk/php/swagger/lib/Model/SwaggerOAuthIntrospectionRequest.php +++ b/sdk/php/swagger/lib/Model/SwaggerOAuthIntrospectionRequest.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,8 +35,7 @@ * SwaggerOAuthIntrospectionRequest Class Doc Comment * * @category Class - * @description SwaggerOAuthIntrospectionRequest swagger o auth introspection request - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -205,7 +204,7 @@ public function getToken() /** * Sets token - * @param string $token The string value of the token. For access tokens, this is the \"access_token\" value returned from the token endpoint defined in OAuth 2.0 [RFC6749], Section 5.1. This endpoint DOES NOT accept refresh tokens for validation. + * @param string $token The string value of the token. For access tokens, this is the \"access_token\" value returned from the token endpoint defined in OAuth 2.0. For refresh tokens, this is the \"refresh_token\" value returned. * @return $this */ public function setToken($token) @@ -266,10 +265,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/SwaggerOAuthTokenResponse.php b/sdk/php/swagger/lib/Model/SwaggerOAuthTokenResponse.php deleted file mode 100644 index 1510590e405..00000000000 --- a/sdk/php/swagger/lib/Model/SwaggerOAuthTokenResponse.php +++ /dev/null @@ -1,378 +0,0 @@ -<?php -/** - * SwaggerOAuthTokenResponse - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * SwaggerOAuthTokenResponse Class Doc Comment - * - * @category Class - * @description SwaggerOAuthTokenResponse The token response - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class SwaggerOAuthTokenResponse implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'swaggerOAuthTokenResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'access_token' => 'string', - 'expires_in' => 'int', - 'id_token' => 'int', - 'refresh_token' => 'string', - 'scope' => 'int', - 'token_type' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'access_token' => null, - 'expires_in' => 'int64', - 'id_token' => 'int64', - 'refresh_token' => null, - 'scope' => 'int64', - 'token_type' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'access_token' => 'access_token', - 'expires_in' => 'expires_in', - 'id_token' => 'id_token', - 'refresh_token' => 'refresh_token', - 'scope' => 'scope', - 'token_type' => 'token_type' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'access_token' => 'setAccessToken', - 'expires_in' => 'setExpiresIn', - 'id_token' => 'setIdToken', - 'refresh_token' => 'setRefreshToken', - 'scope' => 'setScope', - 'token_type' => 'setTokenType' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'access_token' => 'getAccessToken', - 'expires_in' => 'getExpiresIn', - 'id_token' => 'getIdToken', - 'refresh_token' => 'getRefreshToken', - 'scope' => 'getScope', - 'token_type' => 'getTokenType' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['access_token'] = isset($data['access_token']) ? $data['access_token'] : null; - $this->container['expires_in'] = isset($data['expires_in']) ? $data['expires_in'] : null; - $this->container['id_token'] = isset($data['id_token']) ? $data['id_token'] : null; - $this->container['refresh_token'] = isset($data['refresh_token']) ? $data['refresh_token'] : null; - $this->container['scope'] = isset($data['scope']) ? $data['scope'] : null; - $this->container['token_type'] = isset($data['token_type']) ? $data['token_type'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets access_token - * @return string - */ - public function getAccessToken() - { - return $this->container['access_token']; - } - - /** - * Sets access_token - * @param string $access_token The access token issued by the authorization server. - * @return $this - */ - public function setAccessToken($access_token) - { - $this->container['access_token'] = $access_token; - - return $this; - } - - /** - * Gets expires_in - * @return int - */ - public function getExpiresIn() - { - return $this->container['expires_in']; - } - - /** - * Sets expires_in - * @param int $expires_in The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. - * @return $this - */ - public function setExpiresIn($expires_in) - { - $this->container['expires_in'] = $expires_in; - - return $this; - } - - /** - * Gets id_token - * @return int - */ - public function getIdToken() - { - return $this->container['id_token']; - } - - /** - * Sets id_token - * @param int $id_token To retrieve a refresh token request the id_token scope. - * @return $this - */ - public function setIdToken($id_token) - { - $this->container['id_token'] = $id_token; - - return $this; - } - - /** - * Gets refresh_token - * @return string - */ - public function getRefreshToken() - { - return $this->container['refresh_token']; - } - - /** - * Sets refresh_token - * @param string $refresh_token The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. - * @return $this - */ - public function setRefreshToken($refresh_token) - { - $this->container['refresh_token'] = $refresh_token; - - return $this; - } - - /** - * Gets scope - * @return int - */ - public function getScope() - { - return $this->container['scope']; - } - - /** - * Sets scope - * @param int $scope The scope of the access token - * @return $this - */ - public function setScope($scope) - { - $this->container['scope'] = $scope; - - return $this; - } - - /** - * Gets token_type - * @return string - */ - public function getTokenType() - { - return $this->container['token_type']; - } - - /** - * Sets token_type - * @param string $token_type The type of the token issued - * @return $this - */ - public function setTokenType($token_type) - { - $this->container['token_type'] = $token_type; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/SwaggerRevokeOAuth2TokenParameters.php b/sdk/php/swagger/lib/Model/SwaggerRevokeOAuth2TokenParameters.php index 01f20047392..169b1dbd940 100644 --- a/sdk/php/swagger/lib/Model/SwaggerRevokeOAuth2TokenParameters.php +++ b/sdk/php/swagger/lib/Model/SwaggerRevokeOAuth2TokenParameters.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,8 +35,7 @@ * SwaggerRevokeOAuth2TokenParameters Class Doc Comment * * @category Class - * @description SwaggerRevokeOAuth2TokenParameters swagger revoke o auth2 token parameters - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -239,10 +238,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/SwaggerVersion.php b/sdk/php/swagger/lib/Model/SwaggerVersion.php deleted file mode 100644 index a2f94d1e33f..00000000000 --- a/sdk/php/swagger/lib/Model/SwaggerVersion.php +++ /dev/null @@ -1,243 +0,0 @@ -<?php -/** - * SwaggerVersion - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * SwaggerVersion Class Doc Comment - * - * @category Class - * @description SwaggerVersion swagger version - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class SwaggerVersion implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'swaggerVersion'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'version' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'version' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'version' => 'version' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'version' => 'setVersion' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'version' => 'getVersion' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['version'] = isset($data['version']) ? $data['version'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets version - * @return string - */ - public function getVersion() - { - return $this->container['version']; - } - - /** - * Sets version - * @param string $version Version is the service's version. - * @return $this - */ - public function setVersion($version) - { - $this->container['version'] = $version; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/Swaggeroauth2TokenParameters.php b/sdk/php/swagger/lib/Model/Swaggeroauth2TokenParameters.php index 2ead5f27483..33d546d9873 100644 --- a/sdk/php/swagger/lib/Model/Swaggeroauth2TokenParameters.php +++ b/sdk/php/swagger/lib/Model/Swaggeroauth2TokenParameters.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,8 +35,7 @@ * Swaggeroauth2TokenParameters Class Doc Comment * * @category Class - * @description Swaggeroauth2TokenParameters swaggeroauth2 token parameters - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -320,10 +319,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/Swaggeroauth2TokenResponse.php b/sdk/php/swagger/lib/Model/Swaggeroauth2TokenResponse.php deleted file mode 100644 index 8912f1d61f6..00000000000 --- a/sdk/php/swagger/lib/Model/Swaggeroauth2TokenResponse.php +++ /dev/null @@ -1,324 +0,0 @@ -<?php -/** - * Swaggeroauth2TokenResponse - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * Swaggeroauth2TokenResponse Class Doc Comment - * - * @category Class - * @description Swaggeroauth2TokenResponse The Access Token Response - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class Swaggeroauth2TokenResponse implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'swaggeroauth2TokenResponse'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'access_token' => 'string', - 'client_id' => 'string', - 'code' => 'string', - 'redirect_uri' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'access_token' => null, - 'client_id' => null, - 'code' => null, - 'redirect_uri' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'access_token' => 'access_token', - 'client_id' => 'client_id', - 'code' => 'code', - 'redirect_uri' => 'redirect_uri' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'access_token' => 'setAccessToken', - 'client_id' => 'setClientId', - 'code' => 'setCode', - 'redirect_uri' => 'setRedirectUri' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'access_token' => 'getAccessToken', - 'client_id' => 'getClientId', - 'code' => 'getCode', - 'redirect_uri' => 'getRedirectUri' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['access_token'] = isset($data['access_token']) ? $data['access_token'] : null; - $this->container['client_id'] = isset($data['client_id']) ? $data['client_id'] : null; - $this->container['code'] = isset($data['code']) ? $data['code'] : null; - $this->container['redirect_uri'] = isset($data['redirect_uri']) ? $data['redirect_uri'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets access_token - * @return string - */ - public function getAccessToken() - { - return $this->container['access_token']; - } - - /** - * Sets access_token - * @param string $access_token access token - * @return $this - */ - public function setAccessToken($access_token) - { - $this->container['access_token'] = $access_token; - - return $this; - } - - /** - * Gets client_id - * @return string - */ - public function getClientId() - { - return $this->container['client_id']; - } - - /** - * Sets client_id - * @param string $client_id refresh token - * @return $this - */ - public function setClientId($client_id) - { - $this->container['client_id'] = $client_id; - - return $this; - } - - /** - * Gets code - * @return string - */ - public function getCode() - { - return $this->container['code']; - } - - /** - * Sets code - * @param string $code token type - * @return $this - */ - public function setCode($code) - { - $this->container['code'] = $code; - - return $this; - } - - /** - * Gets redirect_uri - * @return string - */ - public function getRedirectUri() - { - return $this->container['redirect_uri']; - } - - /** - * Sets redirect_uri - * @param string $redirect_uri expires in - * @return $this - */ - public function setRedirectUri($redirect_uri) - { - $this->container['redirect_uri'] = $redirect_uri; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/SwaggeruserinfoResponsePayload.php b/sdk/php/swagger/lib/Model/SwaggeruserinfoResponsePayload.php deleted file mode 100644 index 8f994b6abc5..00000000000 --- a/sdk/php/swagger/lib/Model/SwaggeruserinfoResponsePayload.php +++ /dev/null @@ -1,729 +0,0 @@ -<?php -/** - * SwaggeruserinfoResponsePayload - * - * PHP version 5 - * - * @category Class - * @package HydraSDK - * @author Swaagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ - -/** - * ORY Hydra - * - * Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here. - * - * OpenAPI spec version: latest - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * - */ - -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. - */ - -namespace HydraSDK\Model; - -use \ArrayAccess; - -/** - * SwaggeruserinfoResponsePayload Class Doc Comment - * - * @category Class - * @description SwaggeruserinfoResponsePayload The userinfo response - * @package HydraSDK - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen - */ -class SwaggeruserinfoResponsePayload implements ArrayAccess -{ - const DISCRIMINATOR = null; - - /** - * The original name of the model. - * @var string - */ - protected static $swaggerModelName = 'swaggeruserinfoResponsePayload'; - - /** - * Array of property to type mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerTypes = [ - 'birthdate' => 'string', - 'email' => 'string', - 'email_verified' => 'bool', - 'family_name' => 'string', - 'gender' => 'string', - 'given_name' => 'string', - 'locale' => 'string', - 'middle_name' => 'string', - 'name' => 'string', - 'nickname' => 'string', - 'phone_number' => 'string', - 'phone_number_verified' => 'bool', - 'picture' => 'string', - 'preferred_username' => 'string', - 'profile' => 'string', - 'sub' => 'string', - 'updated_at' => 'int', - 'website' => 'string', - 'zoneinfo' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * @var string[] - */ - protected static $swaggerFormats = [ - 'birthdate' => null, - 'email' => null, - 'email_verified' => null, - 'family_name' => null, - 'gender' => null, - 'given_name' => null, - 'locale' => null, - 'middle_name' => null, - 'name' => null, - 'nickname' => null, - 'phone_number' => null, - 'phone_number_verified' => null, - 'picture' => null, - 'preferred_username' => null, - 'profile' => null, - 'sub' => null, - 'updated_at' => 'int64', - 'website' => null, - 'zoneinfo' => null - ]; - - public static function swaggerTypes() - { - return self::$swaggerTypes; - } - - public static function swaggerFormats() - { - return self::$swaggerFormats; - } - - /** - * Array of attributes where the key is the local name, and the value is the original name - * @var string[] - */ - protected static $attributeMap = [ - 'birthdate' => 'birthdate', - 'email' => 'email', - 'email_verified' => 'email_verified', - 'family_name' => 'family_name', - 'gender' => 'gender', - 'given_name' => 'given_name', - 'locale' => 'locale', - 'middle_name' => 'middle_name', - 'name' => 'name', - 'nickname' => 'nickname', - 'phone_number' => 'phone_number', - 'phone_number_verified' => 'phone_number_verified', - 'picture' => 'picture', - 'preferred_username' => 'preferred_username', - 'profile' => 'profile', - 'sub' => 'sub', - 'updated_at' => 'updated_at', - 'website' => 'website', - 'zoneinfo' => 'zoneinfo' - ]; - - - /** - * Array of attributes to setter functions (for deserialization of responses) - * @var string[] - */ - protected static $setters = [ - 'birthdate' => 'setBirthdate', - 'email' => 'setEmail', - 'email_verified' => 'setEmailVerified', - 'family_name' => 'setFamilyName', - 'gender' => 'setGender', - 'given_name' => 'setGivenName', - 'locale' => 'setLocale', - 'middle_name' => 'setMiddleName', - 'name' => 'setName', - 'nickname' => 'setNickname', - 'phone_number' => 'setPhoneNumber', - 'phone_number_verified' => 'setPhoneNumberVerified', - 'picture' => 'setPicture', - 'preferred_username' => 'setPreferredUsername', - 'profile' => 'setProfile', - 'sub' => 'setSub', - 'updated_at' => 'setUpdatedAt', - 'website' => 'setWebsite', - 'zoneinfo' => 'setZoneinfo' - ]; - - - /** - * Array of attributes to getter functions (for serialization of requests) - * @var string[] - */ - protected static $getters = [ - 'birthdate' => 'getBirthdate', - 'email' => 'getEmail', - 'email_verified' => 'getEmailVerified', - 'family_name' => 'getFamilyName', - 'gender' => 'getGender', - 'given_name' => 'getGivenName', - 'locale' => 'getLocale', - 'middle_name' => 'getMiddleName', - 'name' => 'getName', - 'nickname' => 'getNickname', - 'phone_number' => 'getPhoneNumber', - 'phone_number_verified' => 'getPhoneNumberVerified', - 'picture' => 'getPicture', - 'preferred_username' => 'getPreferredUsername', - 'profile' => 'getProfile', - 'sub' => 'getSub', - 'updated_at' => 'getUpdatedAt', - 'website' => 'getWebsite', - 'zoneinfo' => 'getZoneinfo' - ]; - - public static function attributeMap() - { - return self::$attributeMap; - } - - public static function setters() - { - return self::$setters; - } - - public static function getters() - { - return self::$getters; - } - - - - - - /** - * Associative array for storing property values - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * @param mixed[] $data Associated array of property values initializing the model - */ - public function __construct(array $data = null) - { - $this->container['birthdate'] = isset($data['birthdate']) ? $data['birthdate'] : null; - $this->container['email'] = isset($data['email']) ? $data['email'] : null; - $this->container['email_verified'] = isset($data['email_verified']) ? $data['email_verified'] : null; - $this->container['family_name'] = isset($data['family_name']) ? $data['family_name'] : null; - $this->container['gender'] = isset($data['gender']) ? $data['gender'] : null; - $this->container['given_name'] = isset($data['given_name']) ? $data['given_name'] : null; - $this->container['locale'] = isset($data['locale']) ? $data['locale'] : null; - $this->container['middle_name'] = isset($data['middle_name']) ? $data['middle_name'] : null; - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - $this->container['nickname'] = isset($data['nickname']) ? $data['nickname'] : null; - $this->container['phone_number'] = isset($data['phone_number']) ? $data['phone_number'] : null; - $this->container['phone_number_verified'] = isset($data['phone_number_verified']) ? $data['phone_number_verified'] : null; - $this->container['picture'] = isset($data['picture']) ? $data['picture'] : null; - $this->container['preferred_username'] = isset($data['preferred_username']) ? $data['preferred_username'] : null; - $this->container['profile'] = isset($data['profile']) ? $data['profile'] : null; - $this->container['sub'] = isset($data['sub']) ? $data['sub'] : null; - $this->container['updated_at'] = isset($data['updated_at']) ? $data['updated_at'] : null; - $this->container['website'] = isset($data['website']) ? $data['website'] : null; - $this->container['zoneinfo'] = isset($data['zoneinfo']) ? $data['zoneinfo'] : null; - } - - /** - * show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalid_properties = []; - - return $invalid_properties; - } - - /** - * validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - - return true; - } - - - /** - * Gets birthdate - * @return string - */ - public function getBirthdate() - { - return $this->container['birthdate']; - } - - /** - * Sets birthdate - * @param string $birthdate End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates. - * @return $this - */ - public function setBirthdate($birthdate) - { - $this->container['birthdate'] = $birthdate; - - return $this; - } - - /** - * Gets email - * @return string - */ - public function getEmail() - { - return $this->container['email']; - } - - /** - * Sets email - * @param string $email End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7. - * @return $this - */ - public function setEmail($email) - { - $this->container['email'] = $email; - - return $this; - } - - /** - * Gets email_verified - * @return bool - */ - public function getEmailVerified() - { - return $this->container['email_verified']; - } - - /** - * Sets email_verified - * @param bool $email_verified True if the End-User's e-mail address has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this e-mail address was controlled by the End-User at the time the verification was performed. The means by which an e-mail address is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. - * @return $this - */ - public function setEmailVerified($email_verified) - { - $this->container['email_verified'] = $email_verified; - - return $this; - } - - /** - * Gets family_name - * @return string - */ - public function getFamilyName() - { - return $this->container['family_name']; - } - - /** - * Sets family_name - * @param string $family_name Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters. - * @return $this - */ - public function setFamilyName($family_name) - { - $this->container['family_name'] = $family_name; - - return $this; - } - - /** - * Gets gender - * @return string - */ - public function getGender() - { - return $this->container['gender']; - } - - /** - * Sets gender - * @param string $gender End-User's gender. Values defined by this specification are female and male. Other values MAY be used when neither of the defined values are applicable. - * @return $this - */ - public function setGender($gender) - { - $this->container['gender'] = $gender; - - return $this; - } - - /** - * Gets given_name - * @return string - */ - public function getGivenName() - { - return $this->container['given_name']; - } - - /** - * Sets given_name - * @param string $given_name Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters. - * @return $this - */ - public function setGivenName($given_name) - { - $this->container['given_name'] = $given_name; - - return $this; - } - - /** - * Gets locale - * @return string - */ - public function getLocale() - { - return $this->container['locale']; - } - - /** - * Sets locale - * @param string $locale End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well. - * @return $this - */ - public function setLocale($locale) - { - $this->container['locale'] = $locale; - - return $this; - } - - /** - * Gets middle_name - * @return string - */ - public function getMiddleName() - { - return $this->container['middle_name']; - } - - /** - * Sets middle_name - * @param string $middle_name Middle name(s) of the End-User. Note that in some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used. - * @return $this - */ - public function setMiddleName($middle_name) - { - $this->container['middle_name'] = $middle_name; - - return $this; - } - - /** - * Gets name - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * @param string $name End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences. - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets nickname - * @return string - */ - public function getNickname() - { - return $this->container['nickname']; - } - - /** - * Sets nickname - * @param string $nickname Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael. - * @return $this - */ - public function setNickname($nickname) - { - $this->container['nickname'] = $nickname; - - return $this; - } - - /** - * Gets phone_number - * @return string - */ - public function getPhoneNumber() - { - return $this->container['phone_number']; - } - - /** - * Sets phone_number - * @param string $phone_number End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678. - * @return $this - */ - public function setPhoneNumber($phone_number) - { - $this->container['phone_number'] = $phone_number; - - return $this; - } - - /** - * Gets phone_number_verified - * @return bool - */ - public function getPhoneNumberVerified() - { - return $this->container['phone_number_verified']; - } - - /** - * Sets phone_number_verified - * @param bool $phone_number_verified True if the End-User's phone number has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this phone number was controlled by the End-User at the time the verification was performed. The means by which a phone number is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. When true, the phone_number Claim MUST be in E.164 format and any extensions MUST be represented in RFC 3966 format. - * @return $this - */ - public function setPhoneNumberVerified($phone_number_verified) - { - $this->container['phone_number_verified'] = $phone_number_verified; - - return $this; - } - - /** - * Gets picture - * @return string - */ - public function getPicture() - { - return $this->container['picture']; - } - - /** - * Sets picture - * @param string $picture URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User. - * @return $this - */ - public function setPicture($picture) - { - $this->container['picture'] = $picture; - - return $this; - } - - /** - * Gets preferred_username - * @return string - */ - public function getPreferredUsername() - { - return $this->container['preferred_username']; - } - - /** - * Sets preferred_username - * @param string $preferred_username Non-unique shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as @, /, or whitespace. - * @return $this - */ - public function setPreferredUsername($preferred_username) - { - $this->container['preferred_username'] = $preferred_username; - - return $this; - } - - /** - * Gets profile - * @return string - */ - public function getProfile() - { - return $this->container['profile']; - } - - /** - * Sets profile - * @param string $profile URL of the End-User's profile page. The contents of this Web page SHOULD be about the End-User. - * @return $this - */ - public function setProfile($profile) - { - $this->container['profile'] = $profile; - - return $this; - } - - /** - * Gets sub - * @return string - */ - public function getSub() - { - return $this->container['sub']; - } - - /** - * Sets sub - * @param string $sub Subject - Identifier for the End-User at the IssuerURL. - * @return $this - */ - public function setSub($sub) - { - $this->container['sub'] = $sub; - - return $this; - } - - /** - * Gets updated_at - * @return int - */ - public function getUpdatedAt() - { - return $this->container['updated_at']; - } - - /** - * Sets updated_at - * @param int $updated_at Time the End-User's information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. - * @return $this - */ - public function setUpdatedAt($updated_at) - { - $this->container['updated_at'] = $updated_at; - - return $this; - } - - /** - * Gets website - * @return string - */ - public function getWebsite() - { - return $this->container['website']; - } - - /** - * Sets website - * @param string $website URL of the End-User's Web page or blog. This Web page SHOULD contain information published by the End-User or an organization that the End-User is affiliated with. - * @return $this - */ - public function setWebsite($website) - { - $this->container['website'] = $website; - - return $this; - } - - /** - * Gets zoneinfo - * @return string - */ - public function getZoneinfo() - { - return $this->container['zoneinfo']; - } - - /** - * Sets zoneinfo - * @param string $zoneinfo String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles. - * @return $this - */ - public function setZoneinfo($zoneinfo) - { - $this->container['zoneinfo'] = $zoneinfo; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * @param integer $offset Offset - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * @param integer $offset Offset - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * @param integer $offset Offset - * @param mixed $value Value to be set - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * @param integer $offset Offset - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * @return string - */ - public function __toString() - { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); - } - - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sdk/php/swagger/lib/Model/UserinfoResponse.php b/sdk/php/swagger/lib/Model/UserinfoResponse.php index fb503998de6..4df874cd59d 100644 --- a/sdk/php/swagger/lib/Model/UserinfoResponse.php +++ b/sdk/php/swagger/lib/Model/UserinfoResponse.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -36,7 +36,7 @@ * * @category Class * @description The userinfo response - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -719,10 +719,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/Version.php b/sdk/php/swagger/lib/Model/Version.php index 42dfdfde69a..7ea5b6cb60c 100644 --- a/sdk/php/swagger/lib/Model/Version.php +++ b/sdk/php/swagger/lib/Model/Version.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -35,7 +35,7 @@ * Version Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -232,10 +232,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/Model/WellKnown.php b/sdk/php/swagger/lib/Model/WellKnown.php index 355c2b092f4..46f1bbc78cb 100644 --- a/sdk/php/swagger/lib/Model/WellKnown.php +++ b/sdk/php/swagger/lib/Model/WellKnown.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swaagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,7 +27,7 @@ * Do not edit the class manually. */ -namespace HydraSDK\Model; +namespace Hydra\SDK\Model; use \ArrayAccess; @@ -36,7 +36,7 @@ * * @category Class * @description It includes links to several endpoints (e.g. /oauth2/token) and exposes information on supported signature algorithms among others. - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -923,10 +923,10 @@ public function offsetUnset($offset) public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT); } - return json_encode(\HydraSDK\ObjectSerializer::sanitizeForSerialization($this)); + return json_encode(\Hydra\SDK\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/sdk/php/swagger/lib/ObjectSerializer.php b/sdk/php/swagger/lib/ObjectSerializer.php index 23cb1284b10..03f518870cd 100644 --- a/sdk/php/swagger/lib/ObjectSerializer.php +++ b/sdk/php/swagger/lib/ObjectSerializer.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,13 +27,13 @@ * Do not edit the class manually. */ -namespace HydraSDK; +namespace Hydra\SDK; /** * ObjectSerializer Class Doc Comment * * @category Class - * @package HydraSDK + * @package Hydra\SDK * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -288,7 +288,7 @@ public static function deserialize($data, $class, $httpHeaders = null) // If a discriminator is defined and points to a valid subclass, use it. $discriminator = $class::DISCRIMINATOR; if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { - $subclass = '\HydraSDK\Model\\' . $data->{$discriminator}; + $subclass = '\Hydra\SDK\Model\\' . $data->{$discriminator}; if (is_subclass_of($subclass, $class)) { $class = $subclass; }