From ded8aec11f686c3bf65425cb448d395ad0584b01 Mon Sep 17 00:00:00 2001 From: arekkas Date: Sun, 11 Nov 2018 20:35:17 +0100 Subject: [PATCH] docs: Improve some docs and update SDK Signed-off-by: arekkas --- docs/api.swagger.json | 232 +------------ proxy/authorizer.go | 10 - rule/doc.go | 4 +- rule/rule.go | 2 - sdk/go/oathkeeper/swagger/README.md | 10 - .../swagger/authentication_default_session.go | 20 -- ...tion_o_auth2_client_credentials_request.go | 22 -- ...tion_o_auth2_client_credentials_session.go | 20 -- ...ntication_o_auth2_introspection_request.go | 20 -- .../swagger/authentication_o_auth2_session.go | 48 --- sdk/go/oathkeeper/swagger/authenticator.go | 14 - .../docs/AuthenticationDefaultSession.md | 11 - ...nticationOAuth2ClientCredentialsRequest.md | 12 - ...nticationOAuth2ClientCredentialsSession.md | 11 - ...uthenticationOAuth2IntrospectionRequest.md | 11 - .../docs/AuthenticationOAuth2Session.md | 20 -- .../oathkeeper/swagger/docs/Authenticator.md | 9 - .../swagger/docs/IntrospectionResponse.md | 21 -- .../OAuth2ClientCredentialsAuthentication.md | 9 - .../docs/OAuth2IntrospectionAuthentication.md | 9 - sdk/go/oathkeeper/swagger/docs/RuleMatch.md | 2 +- sdk/go/oathkeeper/swagger/docs/Session.md | 10 - .../swagger/introspection_response.go | 39 --- ...auth2_client_credentials_authentication.go | 14 - .../o_auth2_introspection_authentication.go | 14 - sdk/go/oathkeeper/swagger/rule_match.go | 2 +- sdk/go/oathkeeper/swagger/session.go | 15 - sdk/js/swagger/.gitignore | 1 - sdk/js/swagger/README.md | 10 - .../docs/AuthenticationDefaultSession.md | 9 - ...nticationOAuth2ClientCredentialsRequest.md | 10 - ...nticationOAuth2ClientCredentialsSession.md | 9 - ...uthenticationOAuth2IntrospectionRequest.md | 9 - .../docs/AuthenticationOAuth2Session.md | 18 - sdk/js/swagger/docs/Authenticator.md | 7 - sdk/js/swagger/docs/IntrospectionResponse.md | 19 - .../OAuth2ClientCredentialsAuthentication.md | 7 - .../docs/OAuth2IntrospectionAuthentication.md | 7 - sdk/js/swagger/docs/RuleMatch.md | 2 +- sdk/js/swagger/docs/Session.md | 8 - sdk/js/swagger/src/ApiClient.js | 327 +++++++++--------- sdk/js/swagger/src/api/DefaultApi.js | 77 +++-- sdk/js/swagger/src/api/HealthApi.js | 125 ++++--- sdk/js/swagger/src/api/JudgeApi.js | 71 ++-- sdk/js/swagger/src/api/RuleApi.js | 269 +++++++------- sdk/js/swagger/src/api/VersionApi.js | 71 ++-- sdk/js/swagger/src/index.js | 135 ++++---- .../src/model/AuthenticationDefaultSession.js | 92 ----- ...nticationOAuth2ClientCredentialsRequest.js | 100 ------ ...nticationOAuth2ClientCredentialsSession.js | 92 ----- ...uthenticationOAuth2IntrospectionRequest.js | 92 ----- .../src/model/AuthenticationOAuth2Session.js | 170 --------- sdk/js/swagger/src/model/Authenticator.js | 74 ---- .../swagger/src/model/HealthNotReadyStatus.js | 43 +-- sdk/js/swagger/src/model/HealthStatus.js | 39 +-- sdk/js/swagger/src/model/InlineResponse401.js | 66 ++-- .../src/model/IntrospectionResponse.js | 172 --------- sdk/js/swagger/src/model/JsonWebKey.js | 119 +++---- sdk/js/swagger/src/model/JsonWebKeySet.js | 42 +-- .../OAuth2ClientCredentialsAuthentication.js | 74 ---- .../OAuth2IntrospectionAuthentication.js | 74 ---- sdk/js/swagger/src/model/Rule.js | 92 ++--- sdk/js/swagger/src/model/RuleHandler.js | 44 +-- sdk/js/swagger/src/model/RuleMatch.js | 46 +-- sdk/js/swagger/src/model/Session.js | 82 ----- .../src/model/SwaggerCreateRuleParameters.js | 42 +-- .../src/model/SwaggerGetRuleParameters.js | 41 +-- .../src/model/SwaggerListRulesParameters.js | 46 +-- .../swagger/src/model/SwaggerRuleResponse.js | 42 +-- .../swagger/src/model/SwaggerRulesResponse.js | 42 +-- .../src/model/SwaggerUpdateRuleParameters.js | 47 ++- sdk/js/swagger/src/model/Upstream.js | 55 ++- sdk/js/swagger/src/model/Version.js | 39 +-- sdk/js/swagger/test/api/DefaultApi.spec.js | 66 ---- sdk/js/swagger/test/api/HealthApi.spec.js | 76 ---- sdk/js/swagger/test/api/JudgeApi.spec.js | 66 ---- sdk/js/swagger/test/api/RuleApi.spec.js | 106 ------ sdk/js/swagger/test/api/VersionApi.spec.js | 66 ---- .../AuthenticationDefaultSession.spec.js | 74 ---- ...tionOAuth2ClientCredentialsRequest.spec.js | 80 ----- ...tionOAuth2ClientCredentialsSession.spec.js | 74 ---- ...ticationOAuth2IntrospectionRequest.spec.js | 74 ---- .../model/AuthenticationOAuth2Session.spec.js | 128 ------- .../swagger/test/model/Authenticator.spec.js | 62 ---- .../test/model/HealthNotReadyStatus.spec.js | 68 ---- .../swagger/test/model/HealthStatus.spec.js | 68 ---- .../test/model/InlineResponse401.spec.js | 98 ------ .../test/model/IntrospectionResponse.spec.js | 134 ------- sdk/js/swagger/test/model/JsonWebKey.spec.js | 164 --------- .../swagger/test/model/JsonWebKeySet.spec.js | 68 ---- ...th2ClientCredentialsAuthentication.spec.js | 62 ---- .../OAuth2IntrospectionAuthentication.spec.js | 62 ---- sdk/js/swagger/test/model/Rule.spec.js | 104 ------ sdk/js/swagger/test/model/RuleHandler.spec.js | 74 ---- sdk/js/swagger/test/model/RuleMatch.spec.js | 74 ---- sdk/js/swagger/test/model/Session.spec.js | 68 ---- .../model/SwaggerCreateRuleParameters.spec.js | 68 ---- .../model/SwaggerGetRuleParameters.spec.js | 68 ---- .../model/SwaggerListRulesParameters.spec.js | 74 ---- .../test/model/SwaggerRuleResponse.spec.js | 68 ---- .../test/model/SwaggerRulesResponse.spec.js | 68 ---- .../model/SwaggerUpdateRuleParameters.spec.js | 74 ---- sdk/js/swagger/test/model/Upstream.spec.js | 80 ----- sdk/js/swagger/test/model/Version.spec.js | 68 ---- 104 files changed, 973 insertions(+), 5180 deletions(-) delete mode 100644 sdk/go/oathkeeper/swagger/authentication_default_session.go delete mode 100644 sdk/go/oathkeeper/swagger/authentication_o_auth2_client_credentials_request.go delete mode 100644 sdk/go/oathkeeper/swagger/authentication_o_auth2_client_credentials_session.go delete mode 100644 sdk/go/oathkeeper/swagger/authentication_o_auth2_introspection_request.go delete mode 100644 sdk/go/oathkeeper/swagger/authentication_o_auth2_session.go delete mode 100644 sdk/go/oathkeeper/swagger/authenticator.go delete mode 100644 sdk/go/oathkeeper/swagger/docs/AuthenticationDefaultSession.md delete mode 100644 sdk/go/oathkeeper/swagger/docs/AuthenticationOAuth2ClientCredentialsRequest.md delete mode 100644 sdk/go/oathkeeper/swagger/docs/AuthenticationOAuth2ClientCredentialsSession.md delete mode 100644 sdk/go/oathkeeper/swagger/docs/AuthenticationOAuth2IntrospectionRequest.md delete mode 100644 sdk/go/oathkeeper/swagger/docs/AuthenticationOAuth2Session.md delete mode 100644 sdk/go/oathkeeper/swagger/docs/Authenticator.md delete mode 100644 sdk/go/oathkeeper/swagger/docs/IntrospectionResponse.md delete mode 100644 sdk/go/oathkeeper/swagger/docs/OAuth2ClientCredentialsAuthentication.md delete mode 100644 sdk/go/oathkeeper/swagger/docs/OAuth2IntrospectionAuthentication.md delete mode 100644 sdk/go/oathkeeper/swagger/docs/Session.md delete mode 100644 sdk/go/oathkeeper/swagger/introspection_response.go delete mode 100644 sdk/go/oathkeeper/swagger/o_auth2_client_credentials_authentication.go delete mode 100644 sdk/go/oathkeeper/swagger/o_auth2_introspection_authentication.go delete mode 100644 sdk/go/oathkeeper/swagger/session.go delete mode 100644 sdk/js/swagger/.gitignore delete mode 100644 sdk/js/swagger/docs/AuthenticationDefaultSession.md delete mode 100644 sdk/js/swagger/docs/AuthenticationOAuth2ClientCredentialsRequest.md delete mode 100644 sdk/js/swagger/docs/AuthenticationOAuth2ClientCredentialsSession.md delete mode 100644 sdk/js/swagger/docs/AuthenticationOAuth2IntrospectionRequest.md delete mode 100644 sdk/js/swagger/docs/AuthenticationOAuth2Session.md delete mode 100644 sdk/js/swagger/docs/Authenticator.md delete mode 100644 sdk/js/swagger/docs/IntrospectionResponse.md delete mode 100644 sdk/js/swagger/docs/OAuth2ClientCredentialsAuthentication.md delete mode 100644 sdk/js/swagger/docs/OAuth2IntrospectionAuthentication.md delete mode 100644 sdk/js/swagger/docs/Session.md delete mode 100644 sdk/js/swagger/src/model/AuthenticationDefaultSession.js delete mode 100644 sdk/js/swagger/src/model/AuthenticationOAuth2ClientCredentialsRequest.js delete mode 100644 sdk/js/swagger/src/model/AuthenticationOAuth2ClientCredentialsSession.js delete mode 100644 sdk/js/swagger/src/model/AuthenticationOAuth2IntrospectionRequest.js delete mode 100644 sdk/js/swagger/src/model/AuthenticationOAuth2Session.js delete mode 100644 sdk/js/swagger/src/model/Authenticator.js delete mode 100644 sdk/js/swagger/src/model/IntrospectionResponse.js delete mode 100644 sdk/js/swagger/src/model/OAuth2ClientCredentialsAuthentication.js delete mode 100644 sdk/js/swagger/src/model/OAuth2IntrospectionAuthentication.js delete mode 100644 sdk/js/swagger/src/model/Session.js delete mode 100644 sdk/js/swagger/test/api/DefaultApi.spec.js delete mode 100644 sdk/js/swagger/test/api/HealthApi.spec.js delete mode 100644 sdk/js/swagger/test/api/JudgeApi.spec.js delete mode 100644 sdk/js/swagger/test/api/RuleApi.spec.js delete mode 100644 sdk/js/swagger/test/api/VersionApi.spec.js delete mode 100644 sdk/js/swagger/test/model/AuthenticationDefaultSession.spec.js delete mode 100644 sdk/js/swagger/test/model/AuthenticationOAuth2ClientCredentialsRequest.spec.js delete mode 100644 sdk/js/swagger/test/model/AuthenticationOAuth2ClientCredentialsSession.spec.js delete mode 100644 sdk/js/swagger/test/model/AuthenticationOAuth2IntrospectionRequest.spec.js delete mode 100644 sdk/js/swagger/test/model/AuthenticationOAuth2Session.spec.js delete mode 100644 sdk/js/swagger/test/model/Authenticator.spec.js delete mode 100644 sdk/js/swagger/test/model/HealthNotReadyStatus.spec.js delete mode 100644 sdk/js/swagger/test/model/HealthStatus.spec.js delete mode 100644 sdk/js/swagger/test/model/InlineResponse401.spec.js delete mode 100644 sdk/js/swagger/test/model/IntrospectionResponse.spec.js delete mode 100644 sdk/js/swagger/test/model/JsonWebKey.spec.js delete mode 100644 sdk/js/swagger/test/model/JsonWebKeySet.spec.js delete mode 100644 sdk/js/swagger/test/model/OAuth2ClientCredentialsAuthentication.spec.js delete mode 100644 sdk/js/swagger/test/model/OAuth2IntrospectionAuthentication.spec.js delete mode 100644 sdk/js/swagger/test/model/Rule.spec.js delete mode 100644 sdk/js/swagger/test/model/RuleHandler.spec.js delete mode 100644 sdk/js/swagger/test/model/RuleMatch.spec.js delete mode 100644 sdk/js/swagger/test/model/Session.spec.js delete mode 100644 sdk/js/swagger/test/model/SwaggerCreateRuleParameters.spec.js delete mode 100644 sdk/js/swagger/test/model/SwaggerGetRuleParameters.spec.js delete mode 100644 sdk/js/swagger/test/model/SwaggerListRulesParameters.spec.js delete mode 100644 sdk/js/swagger/test/model/SwaggerRuleResponse.spec.js delete mode 100644 sdk/js/swagger/test/model/SwaggerRulesResponse.spec.js delete mode 100644 sdk/js/swagger/test/model/SwaggerUpdateRuleParameters.spec.js delete mode 100644 sdk/js/swagger/test/model/Upstream.spec.js delete mode 100644 sdk/js/swagger/test/model/Version.spec.js diff --git a/docs/api.swagger.json b/docs/api.swagger.json index 12a00b2f33..d93264aa31 100644 --- a/docs/api.swagger.json +++ b/docs/api.swagger.json @@ -380,134 +380,6 @@ } }, "definitions": { - "AuthenticationOAuth2ClientCredentialsRequest": { - "type": "object", - "properties": { - "id": { - "description": "Token is the token to introspect.", - "type": "string", - "x-go-name": "ClientID" - }, - "scope": { - "description": "Scope is an array of scopes that are required.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Scopes" - }, - "secret": { - "type": "string", - "x-go-name": "ClientSecret" - } - }, - "x-go-package": "github.com/ory/oathkeeper/vendor/github.com/ory/keto/authentication" - }, - "AuthenticationOAuth2IntrospectionRequest": { - "type": "object", - "properties": { - "scope": { - "description": "Scope is an array of scopes that are required.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Scope" - }, - "token": { - "description": "Token is the token to introspect.", - "type": "string", - "x-go-name": "Token" - } - }, - "x-go-package": "github.com/ory/oathkeeper/vendor/github.com/ory/keto/authentication" - }, - "Authenticator": { - "type": "object", - "x-go-package": "github.com/ory/oathkeeper/vendor/github.com/ory/keto/authentication" - }, - "IntrospectionResponse": { - "type": "object", - "properties": { - "active": { - "type": "boolean", - "x-go-name": "Active" - }, - "aud": { - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Audience" - }, - "client_id": { - "type": "string", - "x-go-name": "ClientID" - }, - "exp": { - "type": "integer", - "format": "int64", - "x-go-name": "ExpiresAt" - }, - "ext": { - "description": "Session represents arbitrary session data.", - "type": "object", - "additionalProperties": { - "type": "object" - }, - "x-go-name": "Extra" - }, - "iat": { - "type": "integer", - "format": "int64", - "x-go-name": "IssuedAt" - }, - "iss": { - "type": "string", - "x-go-name": "Issuer" - }, - "nbf": { - "type": "integer", - "format": "int64", - "x-go-name": "NotBefore" - }, - "scope": { - "type": "string", - "x-go-name": "Scope" - }, - "sub": { - "description": "Here, it's sub", - "type": "string", - "x-go-name": "Subject" - }, - "token_type": { - "type": "string", - "x-go-name": "TokenType" - }, - "username": { - "type": "string", - "x-go-name": "Username" - } - }, - "x-go-package": "github.com/ory/oathkeeper/vendor/github.com/ory/keto/authentication" - }, - "OAuth2ClientCredentialsAuthentication": { - "type": "object", - "x-go-package": "github.com/ory/oathkeeper/vendor/github.com/ory/keto/authentication" - }, - "OAuth2IntrospectionAuthentication": { - "type": "object", - "x-go-package": "github.com/ory/oathkeeper/vendor/github.com/ory/keto/authentication" - }, - "Session": { - "type": "object", - "properties": { - "GetSubject": { - "type": "string" - } - }, - "x-go-package": "github.com/ory/oathkeeper/vendor/github.com/ory/keto/authentication" - }, "Upstream": { "type": "object", "properties": { @@ -529,108 +401,6 @@ }, "x-go-package": "github.com/ory/oathkeeper/rule" }, - "authenticationDefaultSession": { - "type": "object", - "properties": { - "allowed": { - "description": "Allowed is true if the request is allowed and false otherwise.", - "type": "boolean", - "x-go-name": "Allowed" - }, - "sub": { - "description": "Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app.\nThis is usually a uuid but you can choose a urn or some other id too.", - "type": "string", - "x-go-name": "Subject" - } - }, - "x-go-name": "DefaultSession", - "x-go-package": "github.com/ory/oathkeeper/vendor/github.com/ory/keto/authentication" - }, - "authenticationOAuth2ClientCredentialsSession": { - "type": "object", - "properties": { - "allowed": { - "description": "Allowed is true if the request is allowed and false otherwise.", - "type": "boolean", - "x-go-name": "Allowed" - }, - "sub": { - "description": "Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app.\nThis is usually a uuid but you can choose a urn or some other id too.", - "type": "string", - "x-go-name": "Subject" - } - }, - "x-go-name": "OAuth2ClientCredentialsSession", - "x-go-package": "github.com/ory/oathkeeper/vendor/github.com/ory/keto/authentication" - }, - "authenticationOAuth2Session": { - "type": "object", - "properties": { - "allowed": { - "description": "Allowed is true if the request is allowed and false otherwise.", - "type": "boolean", - "x-go-name": "Allowed" - }, - "aud": { - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Audience" - }, - "client_id": { - "description": "ClientID is the id of the OAuth2 client that requested the token.", - "type": "string", - "x-go-name": "ClientID" - }, - "exp": { - "description": "ExpiresAt is the expiry timestamp.", - "type": "string", - "format": "date-time", - "x-go-name": "ExpiresAt" - }, - "iat": { - "description": "IssuedAt is the token creation time stamp.", - "type": "string", - "format": "date-time", - "x-go-name": "IssuedAt" - }, - "iss": { - "description": "Issuer is the id of the issuer, typically an hydra instance.", - "type": "string", - "x-go-name": "Issuer" - }, - "nbf": { - "type": "string", - "format": "date-time", - "x-go-name": "NotBefore" - }, - "scope": { - "description": "GrantedScopes is a list of scopes that the subject authorized when asked for consent.", - "type": "string", - "x-go-name": "GrantedScopes" - }, - "session": { - "description": "Session represents arbitrary session data.", - "type": "object", - "additionalProperties": { - "type": "object" - }, - "x-go-name": "Extra" - }, - "sub": { - "description": "Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app.\nThis is usually a uuid but you can choose a urn or some other id too.", - "type": "string", - "x-go-name": "Subject" - }, - "username": { - "type": "string", - "x-go-name": "Username" - } - }, - "x-go-name": "OAuth2Session", - "x-go-package": "github.com/ory/oathkeeper/vendor/github.com/ory/keto/authentication" - }, "healthNotReadyStatus": { "type": "object", "properties": { @@ -823,7 +593,7 @@ "x-go-name": "Methods" }, "url": { - "description": "This field represents the URL pattern this rule matches. When ORY Oathkeeper searches for rules\nto decide what to do with an incoming request to the proxy server, it compares the full request URL\n(e.g. https://mydomain.com/api/resource) without query parameters of the incoming\nrequest with this field. If a match is found, the rule is considered a partial match.\nIf the matchesMethods field is satisfied as well, the rule is considered a full match.\n\nYou can use regular expressions in this field to match more than one url. Regular expressions are encapsulated in\nbrackets \u003c and \u003e. The following example matches all paths of the domain `mydomain.com`: `https://mydomain.com/\u003c.*\u003e`.\n\nFor more information refer to: https://ory.gitbooks.io/oathkeeper/content/concepts.html#rules", + "description": "This field represents the URL pattern this rule matches. When ORY Oathkeeper searches for rules\nto decide what to do with an incoming request to the proxy server, it compares the full request URL\n(e.g. https://mydomain.com/api/resource) without query parameters of the incoming\nrequest with this field. If a match is found, the rule is considered a partial match.\nIf the matchesMethods field is satisfied as well, the rule is considered a full match.\n\nYou can use regular expressions in this field to match more than one url. Regular expressions are encapsulated in\nbrackets \u003c and \u003e. The following example matches all paths of the domain `mydomain.com`: `https://mydomain.com/\u003c.*\u003e`.", "type": "string", "x-go-name": "URL" } diff --git a/proxy/authorizer.go b/proxy/authorizer.go index 3a006b8f5d..5dc393e64f 100644 --- a/proxy/authorizer.go +++ b/proxy/authorizer.go @@ -11,13 +11,3 @@ type Authorizer interface { Authorize(r *http.Request, session *AuthenticationSession, config json.RawMessage, rl *rule.Rule) error GetID() string } - -// This field will be used to decide advanced authorization requests where access control policies are used. A -// action is typically something a user wants to do (e.g. write, read, delete). -// This field supports expansion as described in the developer guide: https://ory.gitbooks.io/oathkeeper/content/concepts.html#rules -//RequiredAction string `json:"requiredAction"` - -// This field will be used to decide advanced authorization requests where access control policies are used. A -// resource is typically something a user wants to access (e.g. printer, article, virtual machine). -// This field supports expansion as described in the developer guide: https://ory.gitbooks.io/oathkeeper/content/concepts.html#rules -//RequiredResource string `json:"requiredResource"` diff --git a/rule/doc.go b/rule/doc.go index 7e10e22ad4..b05e18c5e2 100644 --- a/rule/doc.go +++ b/rule/doc.go @@ -25,7 +25,7 @@ // has no rule applied, the proxy server will return a 404 not found error. // // ORY Oathkeeper stores as many rules as required and iterates through them on every request. Rules are essential -// to the way ORY Oathkeeper works. To read more on rules, please refer to the developer guide: https://ory.gitbooks.io/oathkeeper/content/concepts.html#rules +// to the way ORY Oathkeeper works. package rule // A rule @@ -93,8 +93,6 @@ type swaggerRuleMatch struct { // // You can use regular expressions in this field to match more than one url. Regular expressions are encapsulated in // brackets < and >. The following example matches all paths of the domain `mydomain.com`: `https://mydomain.com/<.*>`. - // - // For more information refer to: https://ory.gitbooks.io/oathkeeper/content/concepts.html#rules URL string `json:"url"` } diff --git a/rule/rule.go b/rule/rule.go index b082aea6ca..21ada0f63e 100644 --- a/rule/rule.go +++ b/rule/rule.go @@ -46,8 +46,6 @@ type RuleMatch struct { // // You can use regular expressions in this field to match more than one url. Regular expressions are encapsulated in // brackets < and >. The following example matches all paths of the domain `mydomain.com`: `https://mydomain.com/<.*>`. - // - // For more information refer to: https://ory.gitbooks.io/oathkeeper/content/concepts.html#rules URL string `json:"url" db:"url"` compiledURL *regexp.Regexp diff --git a/sdk/go/oathkeeper/swagger/README.md b/sdk/go/oathkeeper/swagger/README.md index 81ae7f925b..caa87ee71f 100644 --- a/sdk/go/oathkeeper/swagger/README.md +++ b/sdk/go/oathkeeper/swagger/README.md @@ -36,24 +36,14 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [AuthenticationDefaultSession](docs/AuthenticationDefaultSession.md) - - [AuthenticationOAuth2ClientCredentialsRequest](docs/AuthenticationOAuth2ClientCredentialsRequest.md) - - [AuthenticationOAuth2ClientCredentialsSession](docs/AuthenticationOAuth2ClientCredentialsSession.md) - - [AuthenticationOAuth2IntrospectionRequest](docs/AuthenticationOAuth2IntrospectionRequest.md) - - [AuthenticationOAuth2Session](docs/AuthenticationOAuth2Session.md) - - [Authenticator](docs/Authenticator.md) - [HealthNotReadyStatus](docs/HealthNotReadyStatus.md) - [HealthStatus](docs/HealthStatus.md) - [InlineResponse401](docs/InlineResponse401.md) - - [IntrospectionResponse](docs/IntrospectionResponse.md) - [JsonWebKey](docs/JsonWebKey.md) - [JsonWebKeySet](docs/JsonWebKeySet.md) - - [OAuth2ClientCredentialsAuthentication](docs/OAuth2ClientCredentialsAuthentication.md) - - [OAuth2IntrospectionAuthentication](docs/OAuth2IntrospectionAuthentication.md) - [Rule](docs/Rule.md) - [RuleHandler](docs/RuleHandler.md) - [RuleMatch](docs/RuleMatch.md) - - [Session](docs/Session.md) - [SwaggerCreateRuleParameters](docs/SwaggerCreateRuleParameters.md) - [SwaggerGetRuleParameters](docs/SwaggerGetRuleParameters.md) - [SwaggerListRulesParameters](docs/SwaggerListRulesParameters.md) diff --git a/sdk/go/oathkeeper/swagger/authentication_default_session.go b/sdk/go/oathkeeper/swagger/authentication_default_session.go deleted file mode 100644 index b02d700bb4..0000000000 --- a/sdk/go/oathkeeper/swagger/authentication_default_session.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * ORY Oathkeeper - * - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package swagger - -type AuthenticationDefaultSession struct { - - // Allowed is true if the request is allowed and false otherwise. - Allowed bool `json:"allowed,omitempty"` - - // Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too. - Sub string `json:"sub,omitempty"` -} diff --git a/sdk/go/oathkeeper/swagger/authentication_o_auth2_client_credentials_request.go b/sdk/go/oathkeeper/swagger/authentication_o_auth2_client_credentials_request.go deleted file mode 100644 index 620bc1827e..0000000000 --- a/sdk/go/oathkeeper/swagger/authentication_o_auth2_client_credentials_request.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * ORY Oathkeeper - * - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package swagger - -type AuthenticationOAuth2ClientCredentialsRequest struct { - - // Token is the token to introspect. - Id string `json:"id,omitempty"` - - // Scope is an array of scopes that are required. - Scope []string `json:"scope,omitempty"` - - Secret string `json:"secret,omitempty"` -} diff --git a/sdk/go/oathkeeper/swagger/authentication_o_auth2_client_credentials_session.go b/sdk/go/oathkeeper/swagger/authentication_o_auth2_client_credentials_session.go deleted file mode 100644 index 1361279bf7..0000000000 --- a/sdk/go/oathkeeper/swagger/authentication_o_auth2_client_credentials_session.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * ORY Oathkeeper - * - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package swagger - -type AuthenticationOAuth2ClientCredentialsSession struct { - - // Allowed is true if the request is allowed and false otherwise. - Allowed bool `json:"allowed,omitempty"` - - // Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too. - Sub string `json:"sub,omitempty"` -} diff --git a/sdk/go/oathkeeper/swagger/authentication_o_auth2_introspection_request.go b/sdk/go/oathkeeper/swagger/authentication_o_auth2_introspection_request.go deleted file mode 100644 index 99e5fe7d75..0000000000 --- a/sdk/go/oathkeeper/swagger/authentication_o_auth2_introspection_request.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * ORY Oathkeeper - * - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package swagger - -type AuthenticationOAuth2IntrospectionRequest struct { - - // Scope is an array of scopes that are required. - Scope []string `json:"scope,omitempty"` - - // Token is the token to introspect. - Token string `json:"token,omitempty"` -} diff --git a/sdk/go/oathkeeper/swagger/authentication_o_auth2_session.go b/sdk/go/oathkeeper/swagger/authentication_o_auth2_session.go deleted file mode 100644 index e707592cff..0000000000 --- a/sdk/go/oathkeeper/swagger/authentication_o_auth2_session.go +++ /dev/null @@ -1,48 +0,0 @@ -/* - * ORY Oathkeeper - * - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package swagger - -import ( - "time" -) - -type AuthenticationOAuth2Session struct { - - // Allowed is true if the request is allowed and false otherwise. - Allowed bool `json:"allowed,omitempty"` - - Aud []string `json:"aud,omitempty"` - - // ClientID is the id of the OAuth2 client that requested the token. - ClientId string `json:"client_id,omitempty"` - - // ExpiresAt is the expiry timestamp. - Exp time.Time `json:"exp,omitempty"` - - // IssuedAt is the token creation time stamp. - Iat time.Time `json:"iat,omitempty"` - - // Issuer is the id of the issuer, typically an hydra instance. - Iss string `json:"iss,omitempty"` - - Nbf time.Time `json:"nbf,omitempty"` - - // GrantedScopes is a list of scopes that the subject authorized when asked for consent. - Scope string `json:"scope,omitempty"` - - // Session represents arbitrary session data. - Session map[string]interface{} `json:"session,omitempty"` - - // Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too. - Sub string `json:"sub,omitempty"` - - Username string `json:"username,omitempty"` -} diff --git a/sdk/go/oathkeeper/swagger/authenticator.go b/sdk/go/oathkeeper/swagger/authenticator.go deleted file mode 100644 index 07db5c848d..0000000000 --- a/sdk/go/oathkeeper/swagger/authenticator.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * ORY Oathkeeper - * - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package swagger - -type Authenticator struct { -} diff --git a/sdk/go/oathkeeper/swagger/docs/AuthenticationDefaultSession.md b/sdk/go/oathkeeper/swagger/docs/AuthenticationDefaultSession.md deleted file mode 100644 index 5c274c868d..0000000000 --- a/sdk/go/oathkeeper/swagger/docs/AuthenticationDefaultSession.md +++ /dev/null @@ -1,11 +0,0 @@ -# AuthenticationDefaultSession - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Allowed** | **bool** | Allowed is true if the request is allowed and false otherwise. | [optional] [default to null] -**Sub** | **string** | Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too. | [optional] [default to null] - -[[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/go/oathkeeper/swagger/docs/AuthenticationOAuth2ClientCredentialsRequest.md b/sdk/go/oathkeeper/swagger/docs/AuthenticationOAuth2ClientCredentialsRequest.md deleted file mode 100644 index 656ee648fc..0000000000 --- a/sdk/go/oathkeeper/swagger/docs/AuthenticationOAuth2ClientCredentialsRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# AuthenticationOAuth2ClientCredentialsRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | Token is the token to introspect. | [optional] [default to null] -**Scope** | **[]string** | Scope is an array of scopes that are required. | [optional] [default to null] -**Secret** | **string** | | [optional] [default to null] - -[[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/go/oathkeeper/swagger/docs/AuthenticationOAuth2ClientCredentialsSession.md b/sdk/go/oathkeeper/swagger/docs/AuthenticationOAuth2ClientCredentialsSession.md deleted file mode 100644 index 87710e6725..0000000000 --- a/sdk/go/oathkeeper/swagger/docs/AuthenticationOAuth2ClientCredentialsSession.md +++ /dev/null @@ -1,11 +0,0 @@ -# AuthenticationOAuth2ClientCredentialsSession - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Allowed** | **bool** | Allowed is true if the request is allowed and false otherwise. | [optional] [default to null] -**Sub** | **string** | Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too. | [optional] [default to null] - -[[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/go/oathkeeper/swagger/docs/AuthenticationOAuth2IntrospectionRequest.md b/sdk/go/oathkeeper/swagger/docs/AuthenticationOAuth2IntrospectionRequest.md deleted file mode 100644 index a76d4d7bb9..0000000000 --- a/sdk/go/oathkeeper/swagger/docs/AuthenticationOAuth2IntrospectionRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# AuthenticationOAuth2IntrospectionRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Scope** | **[]string** | Scope is an array of scopes that are required. | [optional] [default to null] -**Token** | **string** | Token is the token to introspect. | [optional] [default to null] - -[[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/go/oathkeeper/swagger/docs/AuthenticationOAuth2Session.md b/sdk/go/oathkeeper/swagger/docs/AuthenticationOAuth2Session.md deleted file mode 100644 index 94b9fd4919..0000000000 --- a/sdk/go/oathkeeper/swagger/docs/AuthenticationOAuth2Session.md +++ /dev/null @@ -1,20 +0,0 @@ -# AuthenticationOAuth2Session - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Allowed** | **bool** | Allowed is true if the request is allowed and false otherwise. | [optional] [default to null] -**Aud** | **[]string** | | [optional] [default to null] -**ClientId** | **string** | ClientID is the id of the OAuth2 client that requested the token. | [optional] [default to null] -**Exp** | [**time.Time**](time.Time.md) | ExpiresAt is the expiry timestamp. | [optional] [default to null] -**Iat** | [**time.Time**](time.Time.md) | IssuedAt is the token creation time stamp. | [optional] [default to null] -**Iss** | **string** | Issuer is the id of the issuer, typically an hydra instance. | [optional] [default to null] -**Nbf** | [**time.Time**](time.Time.md) | | [optional] [default to null] -**Scope** | **string** | GrantedScopes is a list of scopes that the subject authorized when asked for consent. | [optional] [default to null] -**Session** | [**map[string]interface{}**](interface{}.md) | Session represents arbitrary session data. | [optional] [default to null] -**Sub** | **string** | Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too. | [optional] [default to null] -**Username** | **string** | | [optional] [default to null] - -[[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/go/oathkeeper/swagger/docs/Authenticator.md b/sdk/go/oathkeeper/swagger/docs/Authenticator.md deleted file mode 100644 index 841ffbb143..0000000000 --- a/sdk/go/oathkeeper/swagger/docs/Authenticator.md +++ /dev/null @@ -1,9 +0,0 @@ -# Authenticator - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[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/go/oathkeeper/swagger/docs/IntrospectionResponse.md b/sdk/go/oathkeeper/swagger/docs/IntrospectionResponse.md deleted file mode 100644 index f78586f44f..0000000000 --- a/sdk/go/oathkeeper/swagger/docs/IntrospectionResponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# IntrospectionResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Active** | **bool** | | [optional] [default to null] -**Aud** | **[]string** | | [optional] [default to null] -**ClientId** | **string** | | [optional] [default to null] -**Exp** | **int64** | | [optional] [default to null] -**Ext** | [**map[string]interface{}**](interface{}.md) | Session represents arbitrary session data. | [optional] [default to null] -**Iat** | **int64** | | [optional] [default to null] -**Iss** | **string** | | [optional] [default to null] -**Nbf** | **int64** | | [optional] [default to null] -**Scope** | **string** | | [optional] [default to null] -**Sub** | **string** | Here, it's sub | [optional] [default to null] -**TokenType** | **string** | | [optional] [default to null] -**Username** | **string** | | [optional] [default to null] - -[[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/go/oathkeeper/swagger/docs/OAuth2ClientCredentialsAuthentication.md b/sdk/go/oathkeeper/swagger/docs/OAuth2ClientCredentialsAuthentication.md deleted file mode 100644 index f77ef723c8..0000000000 --- a/sdk/go/oathkeeper/swagger/docs/OAuth2ClientCredentialsAuthentication.md +++ /dev/null @@ -1,9 +0,0 @@ -# OAuth2ClientCredentialsAuthentication - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[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/go/oathkeeper/swagger/docs/OAuth2IntrospectionAuthentication.md b/sdk/go/oathkeeper/swagger/docs/OAuth2IntrospectionAuthentication.md deleted file mode 100644 index aeccd97ff1..0000000000 --- a/sdk/go/oathkeeper/swagger/docs/OAuth2IntrospectionAuthentication.md +++ /dev/null @@ -1,9 +0,0 @@ -# OAuth2IntrospectionAuthentication - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[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/go/oathkeeper/swagger/docs/RuleMatch.md b/sdk/go/oathkeeper/swagger/docs/RuleMatch.md index a237b54120..60487be559 100644 --- a/sdk/go/oathkeeper/swagger/docs/RuleMatch.md +++ b/sdk/go/oathkeeper/swagger/docs/RuleMatch.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Methods** | **[]string** | An array of HTTP methods (e.g. GET, POST, PUT, DELETE, ...). When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the HTTP method of the incoming request with the HTTP methods of each rules. If a match is found, the rule is considered a partial match. If the matchesUrl field is satisfied as well, the rule is considered a full match. | [optional] [default to null] -**Url** | **string** | This field represents the URL pattern this rule matches. When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the full request URL (e.g. https://mydomain.com/api/resource) without query parameters of the incoming request with this field. If a match is found, the rule is considered a partial match. If the matchesMethods field is satisfied as well, the rule is considered a full match. You can use regular expressions in this field to match more than one url. Regular expressions are encapsulated in brackets < and >. The following example matches all paths of the domain `mydomain.com`: `https://mydomain.com/<.*>`. For more information refer to: https://ory.gitbooks.io/oathkeeper/content/concepts.html#rules | [optional] [default to null] +**Url** | **string** | This field represents the URL pattern this rule matches. When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the full request URL (e.g. https://mydomain.com/api/resource) without query parameters of the incoming request with this field. If a match is found, the rule is considered a partial match. If the matchesMethods field is satisfied as well, the rule is considered a full match. You can use regular expressions in this field to match more than one url. Regular expressions are encapsulated in brackets < and >. The following example matches all paths of the domain `mydomain.com`: `https://mydomain.com/<.*>`. | [optional] [default to null] [[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/go/oathkeeper/swagger/docs/Session.md b/sdk/go/oathkeeper/swagger/docs/Session.md deleted file mode 100644 index 9a47b3b1c1..0000000000 --- a/sdk/go/oathkeeper/swagger/docs/Session.md +++ /dev/null @@ -1,10 +0,0 @@ -# Session - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**GetSubject** | **string** | | [optional] [default to null] - -[[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/go/oathkeeper/swagger/introspection_response.go b/sdk/go/oathkeeper/swagger/introspection_response.go deleted file mode 100644 index 8c8fd5e98d..0000000000 --- a/sdk/go/oathkeeper/swagger/introspection_response.go +++ /dev/null @@ -1,39 +0,0 @@ -/* - * ORY Oathkeeper - * - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package swagger - -type IntrospectionResponse struct { - Active bool `json:"active,omitempty"` - - Aud []string `json:"aud,omitempty"` - - ClientId string `json:"client_id,omitempty"` - - Exp int64 `json:"exp,omitempty"` - - // Session represents arbitrary session data. - Ext map[string]interface{} `json:"ext,omitempty"` - - Iat int64 `json:"iat,omitempty"` - - Iss string `json:"iss,omitempty"` - - Nbf int64 `json:"nbf,omitempty"` - - Scope string `json:"scope,omitempty"` - - // Here, it's sub - Sub string `json:"sub,omitempty"` - - TokenType string `json:"token_type,omitempty"` - - Username string `json:"username,omitempty"` -} diff --git a/sdk/go/oathkeeper/swagger/o_auth2_client_credentials_authentication.go b/sdk/go/oathkeeper/swagger/o_auth2_client_credentials_authentication.go deleted file mode 100644 index d330d320df..0000000000 --- a/sdk/go/oathkeeper/swagger/o_auth2_client_credentials_authentication.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * ORY Oathkeeper - * - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package swagger - -type OAuth2ClientCredentialsAuthentication struct { -} diff --git a/sdk/go/oathkeeper/swagger/o_auth2_introspection_authentication.go b/sdk/go/oathkeeper/swagger/o_auth2_introspection_authentication.go deleted file mode 100644 index 8bbff8fa26..0000000000 --- a/sdk/go/oathkeeper/swagger/o_auth2_introspection_authentication.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * ORY Oathkeeper - * - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package swagger - -type OAuth2IntrospectionAuthentication struct { -} diff --git a/sdk/go/oathkeeper/swagger/rule_match.go b/sdk/go/oathkeeper/swagger/rule_match.go index cf335140c3..0975e13532 100644 --- a/sdk/go/oathkeeper/swagger/rule_match.go +++ b/sdk/go/oathkeeper/swagger/rule_match.go @@ -15,6 +15,6 @@ type RuleMatch struct { // An array of HTTP methods (e.g. GET, POST, PUT, DELETE, ...). When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the HTTP method of the incoming request with the HTTP methods of each rules. If a match is found, the rule is considered a partial match. If the matchesUrl field is satisfied as well, the rule is considered a full match. Methods []string `json:"methods,omitempty"` - // This field represents the URL pattern this rule matches. When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the full request URL (e.g. https://mydomain.com/api/resource) without query parameters of the incoming request with this field. If a match is found, the rule is considered a partial match. If the matchesMethods field is satisfied as well, the rule is considered a full match. You can use regular expressions in this field to match more than one url. Regular expressions are encapsulated in brackets < and >. The following example matches all paths of the domain `mydomain.com`: `https://mydomain.com/<.*>`. For more information refer to: https://ory.gitbooks.io/oathkeeper/content/concepts.html#rules + // This field represents the URL pattern this rule matches. When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the full request URL (e.g. https://mydomain.com/api/resource) without query parameters of the incoming request with this field. If a match is found, the rule is considered a partial match. If the matchesMethods field is satisfied as well, the rule is considered a full match. You can use regular expressions in this field to match more than one url. Regular expressions are encapsulated in brackets < and >. The following example matches all paths of the domain `mydomain.com`: `https://mydomain.com/<.*>`. Url string `json:"url,omitempty"` } diff --git a/sdk/go/oathkeeper/swagger/session.go b/sdk/go/oathkeeper/swagger/session.go deleted file mode 100644 index 1157f6c54e..0000000000 --- a/sdk/go/oathkeeper/swagger/session.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * ORY Oathkeeper - * - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package swagger - -type Session struct { - GetSubject string `json:"GetSubject,omitempty"` -} diff --git a/sdk/js/swagger/.gitignore b/sdk/js/swagger/.gitignore deleted file mode 100644 index 2ff8622f17..0000000000 --- a/sdk/js/swagger/.gitignore +++ /dev/null @@ -1 +0,0 @@ -package.json \ No newline at end of file diff --git a/sdk/js/swagger/README.md b/sdk/js/swagger/README.md index 8f98acc1a3..cf57de05f5 100644 --- a/sdk/js/swagger/README.md +++ b/sdk/js/swagger/README.md @@ -129,24 +129,14 @@ Class | Method | HTTP request | Description ## Documentation for Models - - [OryOathkeeper.AuthenticationDefaultSession](docs/AuthenticationDefaultSession.md) - - [OryOathkeeper.AuthenticationOAuth2ClientCredentialsRequest](docs/AuthenticationOAuth2ClientCredentialsRequest.md) - - [OryOathkeeper.AuthenticationOAuth2ClientCredentialsSession](docs/AuthenticationOAuth2ClientCredentialsSession.md) - - [OryOathkeeper.AuthenticationOAuth2IntrospectionRequest](docs/AuthenticationOAuth2IntrospectionRequest.md) - - [OryOathkeeper.AuthenticationOAuth2Session](docs/AuthenticationOAuth2Session.md) - - [OryOathkeeper.Authenticator](docs/Authenticator.md) - [OryOathkeeper.HealthNotReadyStatus](docs/HealthNotReadyStatus.md) - [OryOathkeeper.HealthStatus](docs/HealthStatus.md) - [OryOathkeeper.InlineResponse401](docs/InlineResponse401.md) - - [OryOathkeeper.IntrospectionResponse](docs/IntrospectionResponse.md) - [OryOathkeeper.JsonWebKey](docs/JsonWebKey.md) - [OryOathkeeper.JsonWebKeySet](docs/JsonWebKeySet.md) - - [OryOathkeeper.OAuth2ClientCredentialsAuthentication](docs/OAuth2ClientCredentialsAuthentication.md) - - [OryOathkeeper.OAuth2IntrospectionAuthentication](docs/OAuth2IntrospectionAuthentication.md) - [OryOathkeeper.Rule](docs/Rule.md) - [OryOathkeeper.RuleHandler](docs/RuleHandler.md) - [OryOathkeeper.RuleMatch](docs/RuleMatch.md) - - [OryOathkeeper.Session](docs/Session.md) - [OryOathkeeper.SwaggerCreateRuleParameters](docs/SwaggerCreateRuleParameters.md) - [OryOathkeeper.SwaggerGetRuleParameters](docs/SwaggerGetRuleParameters.md) - [OryOathkeeper.SwaggerListRulesParameters](docs/SwaggerListRulesParameters.md) diff --git a/sdk/js/swagger/docs/AuthenticationDefaultSession.md b/sdk/js/swagger/docs/AuthenticationDefaultSession.md deleted file mode 100644 index 38a0920e9f..0000000000 --- a/sdk/js/swagger/docs/AuthenticationDefaultSession.md +++ /dev/null @@ -1,9 +0,0 @@ -# OryOathkeeper.AuthenticationDefaultSession - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed** | **Boolean** | Allowed is true if the request is allowed and false otherwise. | [optional] -**sub** | **String** | Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too. | [optional] - - diff --git a/sdk/js/swagger/docs/AuthenticationOAuth2ClientCredentialsRequest.md b/sdk/js/swagger/docs/AuthenticationOAuth2ClientCredentialsRequest.md deleted file mode 100644 index 5a68b6ee53..0000000000 --- a/sdk/js/swagger/docs/AuthenticationOAuth2ClientCredentialsRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# OryOathkeeper.AuthenticationOAuth2ClientCredentialsRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Token is the token to introspect. | [optional] -**scope** | **[String]** | Scope is an array of scopes that are required. | [optional] -**secret** | **String** | | [optional] - - diff --git a/sdk/js/swagger/docs/AuthenticationOAuth2ClientCredentialsSession.md b/sdk/js/swagger/docs/AuthenticationOAuth2ClientCredentialsSession.md deleted file mode 100644 index 87de67129c..0000000000 --- a/sdk/js/swagger/docs/AuthenticationOAuth2ClientCredentialsSession.md +++ /dev/null @@ -1,9 +0,0 @@ -# OryOathkeeper.AuthenticationOAuth2ClientCredentialsSession - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed** | **Boolean** | Allowed is true if the request is allowed and false otherwise. | [optional] -**sub** | **String** | Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too. | [optional] - - diff --git a/sdk/js/swagger/docs/AuthenticationOAuth2IntrospectionRequest.md b/sdk/js/swagger/docs/AuthenticationOAuth2IntrospectionRequest.md deleted file mode 100644 index 7c4b31d0b4..0000000000 --- a/sdk/js/swagger/docs/AuthenticationOAuth2IntrospectionRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# OryOathkeeper.AuthenticationOAuth2IntrospectionRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scope** | **[String]** | Scope is an array of scopes that are required. | [optional] -**token** | **String** | Token is the token to introspect. | [optional] - - diff --git a/sdk/js/swagger/docs/AuthenticationOAuth2Session.md b/sdk/js/swagger/docs/AuthenticationOAuth2Session.md deleted file mode 100644 index d60ca113e7..0000000000 --- a/sdk/js/swagger/docs/AuthenticationOAuth2Session.md +++ /dev/null @@ -1,18 +0,0 @@ -# OryOathkeeper.AuthenticationOAuth2Session - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowed** | **Boolean** | Allowed is true if the request is allowed and false otherwise. | [optional] -**aud** | **[String]** | | [optional] -**clientId** | **String** | ClientID is the id of the OAuth2 client that requested the token. | [optional] -**exp** | **Date** | ExpiresAt is the expiry timestamp. | [optional] -**iat** | **Date** | IssuedAt is the token creation time stamp. | [optional] -**iss** | **String** | Issuer is the id of the issuer, typically an hydra instance. | [optional] -**nbf** | **Date** | | [optional] -**scope** | **String** | GrantedScopes is a list of scopes that the subject authorized when asked for consent. | [optional] -**session** | **{String: Object}** | Session represents arbitrary session data. | [optional] -**sub** | **String** | Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too. | [optional] -**username** | **String** | | [optional] - - diff --git a/sdk/js/swagger/docs/Authenticator.md b/sdk/js/swagger/docs/Authenticator.md deleted file mode 100644 index e9574fdbbc..0000000000 --- a/sdk/js/swagger/docs/Authenticator.md +++ /dev/null @@ -1,7 +0,0 @@ -# OryOathkeeper.Authenticator - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/sdk/js/swagger/docs/IntrospectionResponse.md b/sdk/js/swagger/docs/IntrospectionResponse.md deleted file mode 100644 index dfbfb8f865..0000000000 --- a/sdk/js/swagger/docs/IntrospectionResponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# OryOathkeeper.IntrospectionResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **Boolean** | | [optional] -**aud** | **[String]** | | [optional] -**clientId** | **String** | | [optional] -**exp** | **Number** | | [optional] -**ext** | **{String: Object}** | Session represents arbitrary session data. | [optional] -**iat** | **Number** | | [optional] -**iss** | **String** | | [optional] -**nbf** | **Number** | | [optional] -**scope** | **String** | | [optional] -**sub** | **String** | Here, it's sub | [optional] -**tokenType** | **String** | | [optional] -**username** | **String** | | [optional] - - diff --git a/sdk/js/swagger/docs/OAuth2ClientCredentialsAuthentication.md b/sdk/js/swagger/docs/OAuth2ClientCredentialsAuthentication.md deleted file mode 100644 index d5ebc1a968..0000000000 --- a/sdk/js/swagger/docs/OAuth2ClientCredentialsAuthentication.md +++ /dev/null @@ -1,7 +0,0 @@ -# OryOathkeeper.OAuth2ClientCredentialsAuthentication - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/sdk/js/swagger/docs/OAuth2IntrospectionAuthentication.md b/sdk/js/swagger/docs/OAuth2IntrospectionAuthentication.md deleted file mode 100644 index ebc89f512d..0000000000 --- a/sdk/js/swagger/docs/OAuth2IntrospectionAuthentication.md +++ /dev/null @@ -1,7 +0,0 @@ -# OryOathkeeper.OAuth2IntrospectionAuthentication - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - diff --git a/sdk/js/swagger/docs/RuleMatch.md b/sdk/js/swagger/docs/RuleMatch.md index be81e70d3c..2f74b49d33 100644 --- a/sdk/js/swagger/docs/RuleMatch.md +++ b/sdk/js/swagger/docs/RuleMatch.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **methods** | **[String]** | An array of HTTP methods (e.g. GET, POST, PUT, DELETE, ...). When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the HTTP method of the incoming request with the HTTP methods of each rules. If a match is found, the rule is considered a partial match. If the matchesUrl field is satisfied as well, the rule is considered a full match. | [optional] -**url** | **String** | This field represents the URL pattern this rule matches. When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the full request URL (e.g. https://mydomain.com/api/resource) without query parameters of the incoming request with this field. If a match is found, the rule is considered a partial match. If the matchesMethods field is satisfied as well, the rule is considered a full match. You can use regular expressions in this field to match more than one url. Regular expressions are encapsulated in brackets < and >. The following example matches all paths of the domain `mydomain.com`: `https://mydomain.com/<.*>`. For more information refer to: https://ory.gitbooks.io/oathkeeper/content/concepts.html#rules | [optional] +**url** | **String** | This field represents the URL pattern this rule matches. When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the full request URL (e.g. https://mydomain.com/api/resource) without query parameters of the incoming request with this field. If a match is found, the rule is considered a partial match. If the matchesMethods field is satisfied as well, the rule is considered a full match. You can use regular expressions in this field to match more than one url. Regular expressions are encapsulated in brackets < and >. The following example matches all paths of the domain `mydomain.com`: `https://mydomain.com/<.*>`. | [optional] diff --git a/sdk/js/swagger/docs/Session.md b/sdk/js/swagger/docs/Session.md deleted file mode 100644 index 6e281cd4a5..0000000000 --- a/sdk/js/swagger/docs/Session.md +++ /dev/null @@ -1,8 +0,0 @@ -# OryOathkeeper.Session - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**getSubject** | **String** | | [optional] - - diff --git a/sdk/js/swagger/src/ApiClient.js b/sdk/js/swagger/src/ApiClient.js index c791986b98..a3b941afc8 100644 --- a/sdk/js/swagger/src/ApiClient.js +++ b/sdk/js/swagger/src/ApiClient.js @@ -14,22 +14,22 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['superagent', 'querystring'], factory); + define(['superagent', 'querystring'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('superagent'), require('querystring')); + module.exports = factory(require('superagent'), require('querystring')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.ApiClient = factory(root.superagent, root.querystring); + root.OryOathkeeper.ApiClient = factory(root.superagent, root.querystring) } -}(this, function(superagent, querystring) { - 'use strict'; +})(this, function(superagent, querystring) { + 'use strict' /** * @module ApiClient @@ -49,27 +49,26 @@ * @type {String} * @default http://localhost */ - this.basePath = 'http://localhost'.replace(/\/+$/, ''); + this.basePath = 'http://localhost'.replace(/\/+$/, '') /** * The authentication methods to be included for all API calls. * @type {Array.} */ - this.authentications = { - }; + this.authentications = {} /** * The default HTTP headers to be included for all API calls. * @type {Array.} * @default {} */ - this.defaultHeaders = {}; + this.defaultHeaders = {} /** * The default HTTP timeout for all API calls. * @type {Number} * @default 60000 */ - this.timeout = 60000; + this.timeout = 60000 /** * If set to false an additional timestamp parameter is added to all API GET calls to @@ -77,24 +76,23 @@ * @type {Boolean} * @default true */ - this.cache = true; + this.cache = true /** * If set to true, the client will save the cookies from each server * response, and return them in the next request. * @default false */ - this.enableCookies = false; + this.enableCookies = false /* * Used to save and return cookies in a node.js (non-browser) setting, * if this.enableCookies is set to true. */ if (typeof window === 'undefined') { - this.agent = new superagent.agent(); + this.agent = new superagent.agent() } - - }; + } /** * Returns a string representation for an actual parameter. @@ -103,13 +101,13 @@ */ exports.prototype.paramToString = function(param) { if (param == undefined || param == null) { - return ''; + return '' } if (param instanceof Date) { - return param.toJSON(); + return param.toJSON() } - return param.toString(); - }; + return param.toString() + } /** * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. @@ -120,21 +118,21 @@ */ exports.prototype.buildUrl = function(path, pathParams) { if (!path.match(/^\//)) { - path = '/' + path; + path = '/' + path } - var url = this.basePath + path; - var _this = this; + var url = this.basePath + path + var _this = this url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) { - var value; + var value if (pathParams.hasOwnProperty(key)) { - value = _this.paramToString(pathParams[key]); + value = _this.paramToString(pathParams[key]) } else { - value = fullMatch; + value = fullMatch } - return encodeURIComponent(value); - }); - return url; - }; + return encodeURIComponent(value) + }) + return url + } /** * Checks whether the given content type represents JSON.
@@ -148,8 +146,10 @@ * @returns {Boolean} true if contentType represents JSON, otherwise false. */ exports.prototype.isJsonMime = function(contentType) { - return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); - }; + return Boolean( + contentType != null && contentType.match(/^application\/json(;.*)?$/i) + ) + } /** * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. @@ -159,11 +159,11 @@ exports.prototype.jsonPreferredMime = function(contentTypes) { for (var i = 0; i < contentTypes.length; i++) { if (this.isJsonMime(contentTypes[i])) { - return contentTypes[i]; + return contentTypes[i] } } - return contentTypes[0]; - }; + return contentTypes[0] + } /** * Checks whether the given parameter value represents file-like content. @@ -173,28 +173,28 @@ exports.prototype.isFileParam = function(param) { // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) if (typeof require === 'function') { - var fs; + var fs try { - fs = require('fs'); + fs = require('fs') } catch (err) {} if (fs && fs.ReadStream && param instanceof fs.ReadStream) { - return true; + return true } } // Buffer in Node.js if (typeof Buffer === 'function' && param instanceof Buffer) { - return true; + return true } // Blob in browser if (typeof Blob === 'function' && param instanceof Blob) { - return true; + return true } // File in browser (it seems File object is also instance of Blob, but keep this for safe) if (typeof File === 'function' && param instanceof File) { - return true; + return true } - return false; - }; + return false + } /** * Normalizes parameter values: @@ -207,19 +207,23 @@ * @returns {Object.} normalized parameters. */ exports.prototype.normalizeParams = function(params) { - var newParams = {}; + var newParams = {} for (var key in params) { - if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { - var value = params[key]; + if ( + params.hasOwnProperty(key) && + params[key] != undefined && + params[key] != null + ) { + var value = params[key] if (this.isFileParam(value) || Array.isArray(value)) { - newParams[key] = value; + newParams[key] = value } else { - newParams[key] = this.paramToString(value); + newParams[key] = this.paramToString(value) } } } - return newParams; - }; + return newParams + } /** * Enumeration of collection format separator strategies. @@ -252,7 +256,7 @@ * @const */ MULTI: 'multi' - }; + } /** * Builds a string representation of an array-type actual parameter, according to the given collection format. @@ -261,26 +265,29 @@ * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns * param as is if collectionFormat is multi. */ - exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) { + exports.prototype.buildCollectionParam = function buildCollectionParam( + param, + collectionFormat + ) { if (param == null) { - return null; + return null } switch (collectionFormat) { case 'csv': - return param.map(this.paramToString).join(','); + return param.map(this.paramToString).join(',') case 'ssv': - return param.map(this.paramToString).join(' '); + return param.map(this.paramToString).join(' ') case 'tsv': - return param.map(this.paramToString).join('\t'); + return param.map(this.paramToString).join('\t') case 'pipes': - return param.map(this.paramToString).join('|'); + return param.map(this.paramToString).join('|') case 'multi': // return the array directly as SuperAgent will handle it as expected - return param.map(this.paramToString); + return param.map(this.paramToString) default: - throw new Error('Unknown collection format: ' + collectionFormat); + throw new Error('Unknown collection format: ' + collectionFormat) } - }; + } /** * Applies authentication headers to the request. @@ -288,40 +295,40 @@ * @param {Array.} authNames An array of authentication method names. */ exports.prototype.applyAuthToRequest = function(request, authNames) { - var _this = this; + var _this = this authNames.forEach(function(authName) { - var auth = _this.authentications[authName]; + var auth = _this.authentications[authName] switch (auth.type) { case 'basic': if (auth.username || auth.password) { - request.auth(auth.username || '', auth.password || ''); + request.auth(auth.username || '', auth.password || '') } - break; + break case 'apiKey': if (auth.apiKey) { - var data = {}; + var data = {} if (auth.apiKeyPrefix) { - data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; + data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey } else { - data[auth.name] = auth.apiKey; + data[auth.name] = auth.apiKey } if (auth['in'] === 'header') { - request.set(data); + request.set(data) } else { - request.query(data); + request.query(data) } } - break; + break case 'oauth2': if (auth.accessToken) { - request.set({'Authorization': 'Bearer ' + auth.accessToken}); + request.set({ Authorization: 'Bearer ' + auth.accessToken }) } - break; + break default: - throw new Error('Unknown authentication type: ' + auth.type); + throw new Error('Unknown authentication type: ' + auth.type) } - }); - }; + }) + } /** * Deserializes an HTTP response body into a value of the specified type. @@ -334,17 +341,22 @@ */ exports.prototype.deserialize = function deserialize(response, returnType) { if (response == null || returnType == null || response.status == 204) { - return null; + return null } // Rely on SuperAgent for parsing response body. // See http://visionmedia.github.io/superagent/#parsing-response-bodies - var data = response.body; - if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) { + var data = response.body + if ( + data == null || + (typeof data === 'object' && + typeof data.length === 'undefined' && + !Object.keys(data).length) + ) { // SuperAgent does not always produce a body; use the unparsed response as a fallback - data = response.text; + data = response.text } - return exports.convertToType(data, returnType); - }; + return exports.convertToType(data, returnType) + } /** * Callback function to receive the result of the operation. @@ -371,98 +383,106 @@ * @param {module:ApiClient~callApiCallback} callback The callback function. * @returns {Object} The SuperAgent request object. */ - exports.prototype.callApi = function callApi(path, httpMethod, pathParams, - queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, - returnType, callback) { - - var _this = this; - var url = this.buildUrl(path, pathParams); - var request = superagent(httpMethod, url); + exports.prototype.callApi = function callApi( + path, + httpMethod, + pathParams, + queryParams, + headerParams, + formParams, + bodyParam, + authNames, + contentTypes, + accepts, + returnType, + callback + ) { + var _this = this + var url = this.buildUrl(path, pathParams) + var request = superagent(httpMethod, url) // apply authentications - this.applyAuthToRequest(request, authNames); + this.applyAuthToRequest(request, authNames) // set query parameters if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { - queryParams['_'] = new Date().getTime(); + queryParams['_'] = new Date().getTime() } - request.query(this.normalizeParams(queryParams)); + request.query(this.normalizeParams(queryParams)) // set header parameters - request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); + request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)) // set request timeout - request.timeout(this.timeout); + request.timeout(this.timeout) - var contentType = this.jsonPreferredMime(contentTypes); + var contentType = this.jsonPreferredMime(contentTypes) if (contentType) { // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) - if(contentType != 'multipart/form-data') { - request.type(contentType); + if (contentType != 'multipart/form-data') { + request.type(contentType) } } else if (!request.header['Content-Type']) { - request.type('application/json'); + request.type('application/json') } if (contentType === 'application/x-www-form-urlencoded') { - request.send(querystring.stringify(this.normalizeParams(formParams))); + request.send(querystring.stringify(this.normalizeParams(formParams))) } else if (contentType == 'multipart/form-data') { - var _formParams = this.normalizeParams(formParams); + var _formParams = this.normalizeParams(formParams) for (var key in _formParams) { if (_formParams.hasOwnProperty(key)) { if (this.isFileParam(_formParams[key])) { // file field - request.attach(key, _formParams[key]); + request.attach(key, _formParams[key]) } else { - request.field(key, _formParams[key]); + request.field(key, _formParams[key]) } } } } else if (bodyParam) { - request.send(bodyParam); + request.send(bodyParam) } - var accept = this.jsonPreferredMime(accepts); + var accept = this.jsonPreferredMime(accepts) if (accept) { - request.accept(accept); + request.accept(accept) } if (returnType === 'Blob') { - request.responseType('blob'); + request.responseType('blob') } else if (returnType === 'String') { - request.responseType('string'); + request.responseType('string') } // Attach previously saved cookies, if enabled - if (this.enableCookies){ + if (this.enableCookies) { if (typeof window === 'undefined') { - this.agent.attachCookies(request); - } - else { - request.withCredentials(); + this.agent.attachCookies(request) + } else { + request.withCredentials() } } - request.end(function(error, response) { if (callback) { - var data = null; + var data = null if (!error) { try { - data = _this.deserialize(response, returnType); - if (_this.enableCookies && typeof window === 'undefined'){ - _this.agent.saveCookies(response); + data = _this.deserialize(response, returnType) + if (_this.enableCookies && typeof window === 'undefined') { + _this.agent.saveCookies(response) } } catch (err) { - error = err; + error = err } } - callback(error, data, response); + callback(error, data, response) } - }); + }) - return request; - }; + return request + } /** * Parses an ISO-8601 string representation of a date value. @@ -470,8 +490,8 @@ * @returns {Date} The parsed date object. */ exports.parseDate = function(str) { - return new Date(str.replace(/T/i, ' ')); - }; + return new Date(str.replace(/T/i, ' ')) + } /** * Converts a value to the specified type. @@ -483,60 +503,59 @@ * @returns An instance of the specified type or null or undefined if data is null or undefined. */ exports.convertToType = function(data, type) { - if (data === null || data === undefined) - return data + if (data === null || data === undefined) return data switch (type) { case 'Boolean': - return Boolean(data); + return Boolean(data) case 'Integer': - return parseInt(data, 10); + return parseInt(data, 10) case 'Number': - return parseFloat(data); + return parseFloat(data) case 'String': - return String(data); + return String(data) case 'Date': - return this.parseDate(String(data)); + return this.parseDate(String(data)) case 'Blob': - return data; + return data default: if (type === Object) { // generic object, return directly - return data; + return data } else if (typeof type === 'function') { // for model type like: User - return type.constructFromObject(data); + return type.constructFromObject(data) } else if (Array.isArray(type)) { // for array type like: ['String'] - var itemType = type[0]; + var itemType = type[0] return data.map(function(item) { - return exports.convertToType(item, itemType); - }); + return exports.convertToType(item, itemType) + }) } else if (typeof type === 'object') { // for plain object type like: {'String': 'Integer'} - var keyType, valueType; + var keyType, valueType for (var k in type) { if (type.hasOwnProperty(k)) { - keyType = k; - valueType = type[k]; - break; + keyType = k + valueType = type[k] + break } } - var result = {}; + var result = {} for (var k in data) { if (data.hasOwnProperty(k)) { - var key = exports.convertToType(k, keyType); - var value = exports.convertToType(data[k], valueType); - result[key] = value; + var key = exports.convertToType(k, keyType) + var value = exports.convertToType(data[k], valueType) + result[key] = value } } - return result; + return result } else { // for unknown type, return the data directly - return data; + return data } } - }; + } /** * Constructs a new map or array model from REST data. @@ -547,21 +566,21 @@ if (Array.isArray(data)) { for (var i = 0; i < data.length; i++) { if (data.hasOwnProperty(i)) - obj[i] = exports.convertToType(data[i], itemType); + obj[i] = exports.convertToType(data[i], itemType) } } else { for (var k in data) { if (data.hasOwnProperty(k)) - obj[k] = exports.convertToType(data[k], itemType); + obj[k] = exports.convertToType(data[k], itemType) } } - }; + } /** * The default API client implementation. * @type {module:ApiClient} */ - exports.instance = new exports(); + exports.instance = new exports() - return exports; -})); + return exports +}) diff --git a/sdk/js/swagger/src/api/DefaultApi.js b/sdk/js/swagger/src/api/DefaultApi.js index a72eca5b2e..e96409dba5 100644 --- a/sdk/js/swagger/src/api/DefaultApi.js +++ b/sdk/js/swagger/src/api/DefaultApi.js @@ -14,22 +14,34 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/InlineResponse401', 'model/JsonWebKeySet'], factory); + define([ + 'ApiClient', + 'model/InlineResponse401', + 'model/JsonWebKeySet' + ], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/InlineResponse401'), require('../model/JsonWebKeySet')); + module.exports = factory( + require('../ApiClient'), + require('../model/InlineResponse401'), + require('../model/JsonWebKeySet') + ) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.DefaultApi = factory(root.OryOathkeeper.ApiClient, root.OryOathkeeper.InlineResponse401, root.OryOathkeeper.JsonWebKeySet); + root.OryOathkeeper.DefaultApi = factory( + root.OryOathkeeper.ApiClient, + root.OryOathkeeper.InlineResponse401, + root.OryOathkeeper.JsonWebKeySet + ) } -}(this, function(ApiClient, InlineResponse401, JsonWebKeySet) { - 'use strict'; +})(this, function(ApiClient, InlineResponse401, JsonWebKeySet) { + 'use strict' /** * Default service. @@ -38,15 +50,14 @@ */ /** - * Constructs a new DefaultApi. + * Constructs a new DefaultApi. * @alias module:api/DefaultApi * @class * @param {module:ApiClient} apiClient Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - + this.apiClient = apiClient || ApiClient.instance /** * Callback function to receive the result of the getWellKnown operation. @@ -63,30 +74,34 @@ * data is of type: {@link module:model/JsonWebKeySet} */ this.getWellKnown = function(callback) { - var postBody = null; - + var postBody = null - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + var pathParams = {} + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = JsonWebKeySet; + var authNames = [] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = JsonWebKeySet return this.apiClient.callApi( - '/.well-known/jwks.json', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/.well-known/jwks.json', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } - }; + } - return exports; -})); + return exports +}) diff --git a/sdk/js/swagger/src/api/HealthApi.js b/sdk/js/swagger/src/api/HealthApi.js index 2659afde70..6d987087c0 100644 --- a/sdk/js/swagger/src/api/HealthApi.js +++ b/sdk/js/swagger/src/api/HealthApi.js @@ -14,22 +14,42 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/HealthNotReadyStatus', 'model/HealthStatus', 'model/InlineResponse401'], factory); + define([ + 'ApiClient', + 'model/HealthNotReadyStatus', + 'model/HealthStatus', + 'model/InlineResponse401' + ], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/HealthNotReadyStatus'), require('../model/HealthStatus'), require('../model/InlineResponse401')); + module.exports = factory( + require('../ApiClient'), + require('../model/HealthNotReadyStatus'), + require('../model/HealthStatus'), + require('../model/InlineResponse401') + ) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.HealthApi = factory(root.OryOathkeeper.ApiClient, root.OryOathkeeper.HealthNotReadyStatus, root.OryOathkeeper.HealthStatus, root.OryOathkeeper.InlineResponse401); + root.OryOathkeeper.HealthApi = factory( + root.OryOathkeeper.ApiClient, + root.OryOathkeeper.HealthNotReadyStatus, + root.OryOathkeeper.HealthStatus, + root.OryOathkeeper.InlineResponse401 + ) } -}(this, function(ApiClient, HealthNotReadyStatus, HealthStatus, InlineResponse401) { - 'use strict'; +})(this, function( + ApiClient, + HealthNotReadyStatus, + HealthStatus, + InlineResponse401 +) { + 'use strict' /** * Health service. @@ -38,15 +58,14 @@ */ /** - * Constructs a new HealthApi. + * Constructs a new HealthApi. * @alias module:api/HealthApi * @class * @param {module:ApiClient} apiClient Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - + this.apiClient = apiClient || ApiClient.instance /** * Callback function to receive the result of the isInstanceAlive operation. @@ -63,28 +82,32 @@ * data is of type: {@link module:model/HealthStatus} */ this.isInstanceAlive = function(callback) { - var postBody = null; - + var postBody = null - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + var pathParams = {} + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = HealthStatus; + var authNames = [] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = HealthStatus return this.apiClient.callApi( - '/health/alive', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/health/alive', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -102,30 +125,34 @@ * data is of type: {@link module:model/HealthStatus} */ this.isInstanceReady = function(callback) { - var postBody = null; + var postBody = null + var pathParams = {} + var queryParams = {} + var headerParams = {} + var formParams = {} - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = HealthStatus; + var authNames = [] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = HealthStatus return this.apiClient.callApi( - '/health/ready', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/health/ready', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } - }; + } - return exports; -})); + return exports +}) diff --git a/sdk/js/swagger/src/api/JudgeApi.js b/sdk/js/swagger/src/api/JudgeApi.js index 0e9de7790e..3ccd16bb52 100644 --- a/sdk/js/swagger/src/api/JudgeApi.js +++ b/sdk/js/swagger/src/api/JudgeApi.js @@ -14,22 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/InlineResponse401'], factory); + define(['ApiClient', 'model/InlineResponse401'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/InlineResponse401')); + module.exports = factory( + require('../ApiClient'), + require('../model/InlineResponse401') + ) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.JudgeApi = factory(root.OryOathkeeper.ApiClient, root.OryOathkeeper.InlineResponse401); + root.OryOathkeeper.JudgeApi = factory( + root.OryOathkeeper.ApiClient, + root.OryOathkeeper.InlineResponse401 + ) } -}(this, function(ApiClient, InlineResponse401) { - 'use strict'; +})(this, function(ApiClient, InlineResponse401) { + 'use strict' /** * Judge service. @@ -38,15 +44,14 @@ */ /** - * Constructs a new JudgeApi. + * Constructs a new JudgeApi. * @alias module:api/JudgeApi * @class * @param {module:ApiClient} apiClient Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - + this.apiClient = apiClient || ApiClient.instance /** * Callback function to receive the result of the judge operation. @@ -62,30 +67,34 @@ * @param {module:api/JudgeApi~judgeCallback} callback The callback function, accepting three arguments: error, data, response */ this.judge = function(callback) { - var postBody = null; - + var postBody = null - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + var pathParams = {} + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; + var authNames = [] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/judge', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/judge', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } - }; + } - return exports; -})); + return exports +}) diff --git a/sdk/js/swagger/src/api/RuleApi.js b/sdk/js/swagger/src/api/RuleApi.js index 7c40cbc03a..ae713efb51 100644 --- a/sdk/js/swagger/src/api/RuleApi.js +++ b/sdk/js/swagger/src/api/RuleApi.js @@ -14,22 +14,30 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/InlineResponse401', 'model/Rule'], factory); + define(['ApiClient', 'model/InlineResponse401', 'model/Rule'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/InlineResponse401'), require('../model/Rule')); + module.exports = factory( + require('../ApiClient'), + require('../model/InlineResponse401'), + require('../model/Rule') + ) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.RuleApi = factory(root.OryOathkeeper.ApiClient, root.OryOathkeeper.InlineResponse401, root.OryOathkeeper.Rule); + root.OryOathkeeper.RuleApi = factory( + root.OryOathkeeper.ApiClient, + root.OryOathkeeper.InlineResponse401, + root.OryOathkeeper.Rule + ) } -}(this, function(ApiClient, InlineResponse401, Rule) { - 'use strict'; +})(this, function(ApiClient, InlineResponse401, Rule) { + 'use strict' /** * Rule service. @@ -38,15 +46,14 @@ */ /** - * Constructs a new RuleApi. + * Constructs a new RuleApi. * @alias module:api/RuleApi * @class * @param {module:ApiClient} apiClient Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - + this.apiClient = apiClient || ApiClient.instance /** * Callback function to receive the result of the createRule operation. @@ -60,34 +67,38 @@ * Create a rule * This method allows creation of rules. If a rule id exists, you will receive an error. * @param {Object} opts Optional parameters - * @param {module:model/Rule} opts.body + * @param {module:model/Rule} opts.body * @param {module:api/RuleApi~createRuleCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Rule} */ this.createRule = function(opts, callback) { - opts = opts || {}; - var postBody = opts['body']; + opts = opts || {} + var postBody = opts['body'] + var pathParams = {} + var queryParams = {} + var headerParams = {} + var formParams = {} - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Rule; + var authNames = [] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = Rule return this.apiClient.callApi( - '/rules', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/rules', + 'POST', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -101,38 +112,45 @@ /** * Delete a rule * Use this endpoint to delete a rule. - * @param {String} id + * @param {String} id * @param {module:api/RuleApi~deleteRuleCallback} callback The callback function, accepting three arguments: error, data, response */ this.deleteRule = function(id, callback) { - var postBody = null; + var postBody = null // verify the required parameter 'id' is set if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteRule"); + throw new Error( + "Missing the required parameter 'id' when calling deleteRule" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; + var authNames = [] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/rules/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/rules/{id}', + 'DELETE', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -146,39 +164,46 @@ /** * Retrieve a rule * Use this method to retrieve a rule from the storage. If it does not exist you will receive a 404 error. - * @param {String} id + * @param {String} id * @param {module:api/RuleApi~getRuleCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Rule} */ this.getRule = function(id, callback) { - var postBody = null; + var postBody = null // verify the required parameter 'id' is set if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getRule"); + throw new Error( + "Missing the required parameter 'id' when calling getRule" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Rule; + var authNames = [] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = Rule return this.apiClient.callApi( - '/rules/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/rules/{id}', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -199,31 +224,36 @@ * data is of type: {@link Array.} */ this.listRules = function(opts, callback) { - opts = opts || {}; - var postBody = null; - + opts = opts || {} + var postBody = null - var pathParams = { - }; + var pathParams = {} var queryParams = { - 'limit': opts['limit'], - 'offset': opts['offset'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = [Rule]; + limit: opts['limit'], + offset: opts['offset'] + } + var headerParams = {} + var formParams = {} + + var authNames = [] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = [Rule] return this.apiClient.callApi( - '/rules', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/rules', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -237,44 +267,51 @@ /** * Update a rule * Use this method to update a rule. Keep in mind that you need to send the full rule payload as this endpoint does not support patching. - * @param {String} id + * @param {String} id * @param {Object} opts Optional parameters - * @param {module:model/Rule} opts.body + * @param {module:model/Rule} opts.body * @param {module:api/RuleApi~updateRuleCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Rule} */ this.updateRule = function(id, opts, callback) { - opts = opts || {}; - var postBody = opts['body']; + opts = opts || {} + var postBody = opts['body'] // verify the required parameter 'id' is set if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateRule"); + throw new Error( + "Missing the required parameter 'id' when calling updateRule" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Rule; + var authNames = [] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = Rule return this.apiClient.callApi( - '/rules/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/rules/{id}', + 'PUT', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } - }; + } - return exports; -})); + return exports +}) diff --git a/sdk/js/swagger/src/api/VersionApi.js b/sdk/js/swagger/src/api/VersionApi.js index 96ac19d606..265048d44e 100644 --- a/sdk/js/swagger/src/api/VersionApi.js +++ b/sdk/js/swagger/src/api/VersionApi.js @@ -14,22 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Version'], factory); + define(['ApiClient', 'model/Version'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/Version')); + module.exports = factory( + require('../ApiClient'), + require('../model/Version') + ) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.VersionApi = factory(root.OryOathkeeper.ApiClient, root.OryOathkeeper.Version); + root.OryOathkeeper.VersionApi = factory( + root.OryOathkeeper.ApiClient, + root.OryOathkeeper.Version + ) } -}(this, function(ApiClient, Version) { - 'use strict'; +})(this, function(ApiClient, Version) { + 'use strict' /** * Version service. @@ -38,15 +44,14 @@ */ /** - * Constructs a new VersionApi. + * Constructs a new VersionApi. * @alias module:api/VersionApi * @class * @param {module:ApiClient} apiClient Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ var exports = function(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - + this.apiClient = apiClient || ApiClient.instance /** * Callback function to receive the result of the getVersion operation. @@ -63,30 +68,34 @@ * data is of type: {@link module:model/Version} */ this.getVersion = function(callback) { - var postBody = null; - + var postBody = null - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + var pathParams = {} + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Version; + var authNames = [] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = Version return this.apiClient.callApi( - '/version', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/version', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } - }; + } - return exports; -})); + return exports +}) diff --git a/sdk/js/swagger/src/index.js b/sdk/js/swagger/src/index.js index b7aadf9a8f..d5af4e5a9f 100644 --- a/sdk/js/swagger/src/index.js +++ b/sdk/js/swagger/src/index.js @@ -14,16 +14,85 @@ * */ -(function(factory) { +;(function(factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/AuthenticationDefaultSession', 'model/AuthenticationOAuth2ClientCredentialsRequest', 'model/AuthenticationOAuth2ClientCredentialsSession', 'model/AuthenticationOAuth2IntrospectionRequest', 'model/AuthenticationOAuth2Session', 'model/Authenticator', 'model/HealthNotReadyStatus', 'model/HealthStatus', 'model/InlineResponse401', 'model/IntrospectionResponse', 'model/JsonWebKey', 'model/JsonWebKeySet', 'model/OAuth2ClientCredentialsAuthentication', 'model/OAuth2IntrospectionAuthentication', 'model/Rule', 'model/RuleHandler', 'model/RuleMatch', 'model/Session', 'model/SwaggerCreateRuleParameters', 'model/SwaggerGetRuleParameters', 'model/SwaggerListRulesParameters', 'model/SwaggerRuleResponse', 'model/SwaggerRulesResponse', 'model/SwaggerUpdateRuleParameters', 'model/Upstream', 'model/Version', 'api/DefaultApi', 'api/HealthApi', 'api/JudgeApi', 'api/RuleApi', 'api/VersionApi'], factory); + define([ + 'ApiClient', + 'model/HealthNotReadyStatus', + 'model/HealthStatus', + 'model/InlineResponse401', + 'model/JsonWebKey', + 'model/JsonWebKeySet', + 'model/Rule', + 'model/RuleHandler', + 'model/RuleMatch', + 'model/SwaggerCreateRuleParameters', + 'model/SwaggerGetRuleParameters', + 'model/SwaggerListRulesParameters', + 'model/SwaggerRuleResponse', + 'model/SwaggerRulesResponse', + 'model/SwaggerUpdateRuleParameters', + 'model/Upstream', + 'model/Version', + 'api/DefaultApi', + 'api/HealthApi', + 'api/JudgeApi', + 'api/RuleApi', + '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/AuthenticationDefaultSession'), require('./model/AuthenticationOAuth2ClientCredentialsRequest'), require('./model/AuthenticationOAuth2ClientCredentialsSession'), require('./model/AuthenticationOAuth2IntrospectionRequest'), require('./model/AuthenticationOAuth2Session'), require('./model/Authenticator'), require('./model/HealthNotReadyStatus'), require('./model/HealthStatus'), require('./model/InlineResponse401'), require('./model/IntrospectionResponse'), require('./model/JsonWebKey'), require('./model/JsonWebKeySet'), require('./model/OAuth2ClientCredentialsAuthentication'), require('./model/OAuth2IntrospectionAuthentication'), require('./model/Rule'), require('./model/RuleHandler'), require('./model/RuleMatch'), require('./model/Session'), require('./model/SwaggerCreateRuleParameters'), require('./model/SwaggerGetRuleParameters'), require('./model/SwaggerListRulesParameters'), require('./model/SwaggerRuleResponse'), require('./model/SwaggerRulesResponse'), require('./model/SwaggerUpdateRuleParameters'), require('./model/Upstream'), require('./model/Version'), require('./api/DefaultApi'), require('./api/HealthApi'), require('./api/JudgeApi'), require('./api/RuleApi'), require('./api/VersionApi')); + module.exports = factory( + require('./ApiClient'), + require('./model/HealthNotReadyStatus'), + require('./model/HealthStatus'), + require('./model/InlineResponse401'), + require('./model/JsonWebKey'), + require('./model/JsonWebKeySet'), + require('./model/Rule'), + require('./model/RuleHandler'), + require('./model/RuleMatch'), + require('./model/SwaggerCreateRuleParameters'), + require('./model/SwaggerGetRuleParameters'), + require('./model/SwaggerListRulesParameters'), + require('./model/SwaggerRuleResponse'), + require('./model/SwaggerRulesResponse'), + require('./model/SwaggerUpdateRuleParameters'), + require('./model/Upstream'), + require('./model/Version'), + require('./api/DefaultApi'), + require('./api/HealthApi'), + require('./api/JudgeApi'), + require('./api/RuleApi'), + require('./api/VersionApi') + ) } -}(function(ApiClient, AuthenticationDefaultSession, AuthenticationOAuth2ClientCredentialsRequest, AuthenticationOAuth2ClientCredentialsSession, AuthenticationOAuth2IntrospectionRequest, AuthenticationOAuth2Session, Authenticator, HealthNotReadyStatus, HealthStatus, InlineResponse401, IntrospectionResponse, JsonWebKey, JsonWebKeySet, OAuth2ClientCredentialsAuthentication, OAuth2IntrospectionAuthentication, Rule, RuleHandler, RuleMatch, Session, SwaggerCreateRuleParameters, SwaggerGetRuleParameters, SwaggerListRulesParameters, SwaggerRuleResponse, SwaggerRulesResponse, SwaggerUpdateRuleParameters, Upstream, Version, DefaultApi, HealthApi, JudgeApi, RuleApi, VersionApi) { - 'use strict'; +})(function( + ApiClient, + HealthNotReadyStatus, + HealthStatus, + InlineResponse401, + JsonWebKey, + JsonWebKeySet, + Rule, + RuleHandler, + RuleMatch, + SwaggerCreateRuleParameters, + SwaggerGetRuleParameters, + SwaggerListRulesParameters, + SwaggerRuleResponse, + SwaggerRulesResponse, + SwaggerUpdateRuleParameters, + Upstream, + Version, + DefaultApi, + HealthApi, + JudgeApi, + RuleApi, + VersionApi +) { + 'use strict' /** * ORY_Oathkeeper_is_a_reverse_proxy_that_checks_the_HTTP_Authorization_for_validity_against_a_set_of_rules__This_service_uses_Hydra_to_validate_access_tokens_and_policies_.
@@ -62,36 +131,6 @@ * @property {module:ApiClient} */ ApiClient: ApiClient, - /** - * The AuthenticationDefaultSession model constructor. - * @property {module:model/AuthenticationDefaultSession} - */ - AuthenticationDefaultSession: AuthenticationDefaultSession, - /** - * The AuthenticationOAuth2ClientCredentialsRequest model constructor. - * @property {module:model/AuthenticationOAuth2ClientCredentialsRequest} - */ - AuthenticationOAuth2ClientCredentialsRequest: AuthenticationOAuth2ClientCredentialsRequest, - /** - * The AuthenticationOAuth2ClientCredentialsSession model constructor. - * @property {module:model/AuthenticationOAuth2ClientCredentialsSession} - */ - AuthenticationOAuth2ClientCredentialsSession: AuthenticationOAuth2ClientCredentialsSession, - /** - * The AuthenticationOAuth2IntrospectionRequest model constructor. - * @property {module:model/AuthenticationOAuth2IntrospectionRequest} - */ - AuthenticationOAuth2IntrospectionRequest: AuthenticationOAuth2IntrospectionRequest, - /** - * The AuthenticationOAuth2Session model constructor. - * @property {module:model/AuthenticationOAuth2Session} - */ - AuthenticationOAuth2Session: AuthenticationOAuth2Session, - /** - * The Authenticator model constructor. - * @property {module:model/Authenticator} - */ - Authenticator: Authenticator, /** * The HealthNotReadyStatus model constructor. * @property {module:model/HealthNotReadyStatus} @@ -107,11 +146,6 @@ * @property {module:model/InlineResponse401} */ InlineResponse401: InlineResponse401, - /** - * The IntrospectionResponse model constructor. - * @property {module:model/IntrospectionResponse} - */ - IntrospectionResponse: IntrospectionResponse, /** * The JsonWebKey model constructor. * @property {module:model/JsonWebKey} @@ -122,16 +156,6 @@ * @property {module:model/JsonWebKeySet} */ JsonWebKeySet: JsonWebKeySet, - /** - * The OAuth2ClientCredentialsAuthentication model constructor. - * @property {module:model/OAuth2ClientCredentialsAuthentication} - */ - OAuth2ClientCredentialsAuthentication: OAuth2ClientCredentialsAuthentication, - /** - * The OAuth2IntrospectionAuthentication model constructor. - * @property {module:model/OAuth2IntrospectionAuthentication} - */ - OAuth2IntrospectionAuthentication: OAuth2IntrospectionAuthentication, /** * The Rule model constructor. * @property {module:model/Rule} @@ -147,11 +171,6 @@ * @property {module:model/RuleMatch} */ RuleMatch: RuleMatch, - /** - * The Session model constructor. - * @property {module:model/Session} - */ - Session: Session, /** * The SwaggerCreateRuleParameters model constructor. * @property {module:model/SwaggerCreateRuleParameters} @@ -217,7 +236,7 @@ * @property {module:api/VersionApi} */ VersionApi: VersionApi - }; + } - return exports; -})); + return exports +}) diff --git a/sdk/js/swagger/src/model/AuthenticationDefaultSession.js b/sdk/js/swagger/src/model/AuthenticationDefaultSession.js deleted file mode 100644 index 22657d3e7d..0000000000 --- a/sdk/js/swagger/src/model/AuthenticationDefaultSession.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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.OryOathkeeper) { - root.OryOathkeeper = {}; - } - root.OryOathkeeper.AuthenticationDefaultSession = factory(root.OryOathkeeper.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The AuthenticationDefaultSession model module. - * @module model/AuthenticationDefaultSession - * @version Latest - */ - - /** - * Constructs a new AuthenticationDefaultSession. - * @alias module:model/AuthenticationDefaultSession - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a AuthenticationDefaultSession from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthenticationDefaultSession} obj Optional instance to populate. - * @return {module:model/AuthenticationDefaultSession} The populated AuthenticationDefaultSession instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('allowed')) { - obj['allowed'] = ApiClient.convertToType(data['allowed'], 'Boolean'); - } - if (data.hasOwnProperty('sub')) { - obj['sub'] = ApiClient.convertToType(data['sub'], 'String'); - } - } - return obj; - } - - /** - * Allowed is true if the request is allowed and false otherwise. - * @member {Boolean} allowed - */ - exports.prototype['allowed'] = undefined; - /** - * Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too. - * @member {String} sub - */ - exports.prototype['sub'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/AuthenticationOAuth2ClientCredentialsRequest.js b/sdk/js/swagger/src/model/AuthenticationOAuth2ClientCredentialsRequest.js deleted file mode 100644 index b66638435b..0000000000 --- a/sdk/js/swagger/src/model/AuthenticationOAuth2ClientCredentialsRequest.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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.OryOathkeeper) { - root.OryOathkeeper = {}; - } - root.OryOathkeeper.AuthenticationOAuth2ClientCredentialsRequest = factory(root.OryOathkeeper.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The AuthenticationOAuth2ClientCredentialsRequest model module. - * @module model/AuthenticationOAuth2ClientCredentialsRequest - * @version Latest - */ - - /** - * Constructs a new AuthenticationOAuth2ClientCredentialsRequest. - * @alias module:model/AuthenticationOAuth2ClientCredentialsRequest - * @class - */ - var exports = function() { - var _this = this; - - - - - }; - - /** - * Constructs a AuthenticationOAuth2ClientCredentialsRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthenticationOAuth2ClientCredentialsRequest} obj Optional instance to populate. - * @return {module:model/AuthenticationOAuth2ClientCredentialsRequest} The populated AuthenticationOAuth2ClientCredentialsRequest instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('scope')) { - obj['scope'] = ApiClient.convertToType(data['scope'], ['String']); - } - if (data.hasOwnProperty('secret')) { - obj['secret'] = ApiClient.convertToType(data['secret'], 'String'); - } - } - return obj; - } - - /** - * Token is the token to introspect. - * @member {String} id - */ - exports.prototype['id'] = undefined; - /** - * Scope is an array of scopes that are required. - * @member {Array.} scope - */ - exports.prototype['scope'] = undefined; - /** - * @member {String} secret - */ - exports.prototype['secret'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/AuthenticationOAuth2ClientCredentialsSession.js b/sdk/js/swagger/src/model/AuthenticationOAuth2ClientCredentialsSession.js deleted file mode 100644 index a9a7cd8a78..0000000000 --- a/sdk/js/swagger/src/model/AuthenticationOAuth2ClientCredentialsSession.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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.OryOathkeeper) { - root.OryOathkeeper = {}; - } - root.OryOathkeeper.AuthenticationOAuth2ClientCredentialsSession = factory(root.OryOathkeeper.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The AuthenticationOAuth2ClientCredentialsSession model module. - * @module model/AuthenticationOAuth2ClientCredentialsSession - * @version Latest - */ - - /** - * Constructs a new AuthenticationOAuth2ClientCredentialsSession. - * @alias module:model/AuthenticationOAuth2ClientCredentialsSession - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a AuthenticationOAuth2ClientCredentialsSession from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthenticationOAuth2ClientCredentialsSession} obj Optional instance to populate. - * @return {module:model/AuthenticationOAuth2ClientCredentialsSession} The populated AuthenticationOAuth2ClientCredentialsSession instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('allowed')) { - obj['allowed'] = ApiClient.convertToType(data['allowed'], 'Boolean'); - } - if (data.hasOwnProperty('sub')) { - obj['sub'] = ApiClient.convertToType(data['sub'], 'String'); - } - } - return obj; - } - - /** - * Allowed is true if the request is allowed and false otherwise. - * @member {Boolean} allowed - */ - exports.prototype['allowed'] = undefined; - /** - * Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too. - * @member {String} sub - */ - exports.prototype['sub'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/AuthenticationOAuth2IntrospectionRequest.js b/sdk/js/swagger/src/model/AuthenticationOAuth2IntrospectionRequest.js deleted file mode 100644 index d72094eccd..0000000000 --- a/sdk/js/swagger/src/model/AuthenticationOAuth2IntrospectionRequest.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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.OryOathkeeper) { - root.OryOathkeeper = {}; - } - root.OryOathkeeper.AuthenticationOAuth2IntrospectionRequest = factory(root.OryOathkeeper.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The AuthenticationOAuth2IntrospectionRequest model module. - * @module model/AuthenticationOAuth2IntrospectionRequest - * @version Latest - */ - - /** - * Constructs a new AuthenticationOAuth2IntrospectionRequest. - * @alias module:model/AuthenticationOAuth2IntrospectionRequest - * @class - */ - var exports = function() { - var _this = this; - - - - }; - - /** - * Constructs a AuthenticationOAuth2IntrospectionRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthenticationOAuth2IntrospectionRequest} obj Optional instance to populate. - * @return {module:model/AuthenticationOAuth2IntrospectionRequest} The populated AuthenticationOAuth2IntrospectionRequest instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('scope')) { - obj['scope'] = ApiClient.convertToType(data['scope'], ['String']); - } - if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], 'String'); - } - } - return obj; - } - - /** - * Scope is an array of scopes that are required. - * @member {Array.} scope - */ - exports.prototype['scope'] = undefined; - /** - * Token is the token to introspect. - * @member {String} token - */ - exports.prototype['token'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/AuthenticationOAuth2Session.js b/sdk/js/swagger/src/model/AuthenticationOAuth2Session.js deleted file mode 100644 index 8c94e67eae..0000000000 --- a/sdk/js/swagger/src/model/AuthenticationOAuth2Session.js +++ /dev/null @@ -1,170 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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.OryOathkeeper) { - root.OryOathkeeper = {}; - } - root.OryOathkeeper.AuthenticationOAuth2Session = factory(root.OryOathkeeper.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The AuthenticationOAuth2Session model module. - * @module model/AuthenticationOAuth2Session - * @version Latest - */ - - /** - * Constructs a new AuthenticationOAuth2Session. - * @alias module:model/AuthenticationOAuth2Session - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - - - - - }; - - /** - * Constructs a AuthenticationOAuth2Session from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthenticationOAuth2Session} obj Optional instance to populate. - * @return {module:model/AuthenticationOAuth2Session} The populated AuthenticationOAuth2Session instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('allowed')) { - obj['allowed'] = ApiClient.convertToType(data['allowed'], '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'], 'Date'); - } - if (data.hasOwnProperty('iat')) { - obj['iat'] = ApiClient.convertToType(data['iat'], 'Date'); - } - if (data.hasOwnProperty('iss')) { - obj['iss'] = ApiClient.convertToType(data['iss'], 'String'); - } - if (data.hasOwnProperty('nbf')) { - obj['nbf'] = ApiClient.convertToType(data['nbf'], 'Date'); - } - if (data.hasOwnProperty('scope')) { - obj['scope'] = ApiClient.convertToType(data['scope'], 'String'); - } - if (data.hasOwnProperty('session')) { - obj['session'] = ApiClient.convertToType(data['session'], {'String': Object}); - } - if (data.hasOwnProperty('sub')) { - obj['sub'] = ApiClient.convertToType(data['sub'], 'String'); - } - if (data.hasOwnProperty('username')) { - obj['username'] = ApiClient.convertToType(data['username'], 'String'); - } - } - return obj; - } - - /** - * Allowed is true if the request is allowed and false otherwise. - * @member {Boolean} allowed - */ - exports.prototype['allowed'] = undefined; - /** - * @member {Array.} aud - */ - exports.prototype['aud'] = undefined; - /** - * ClientID is the id of the OAuth2 client that requested the token. - * @member {String} client_id - */ - exports.prototype['client_id'] = undefined; - /** - * ExpiresAt is the expiry timestamp. - * @member {Date} exp - */ - exports.prototype['exp'] = undefined; - /** - * IssuedAt is the token creation time stamp. - * @member {Date} iat - */ - exports.prototype['iat'] = undefined; - /** - * Issuer is the id of the issuer, typically an hydra instance. - * @member {String} iss - */ - exports.prototype['iss'] = undefined; - /** - * @member {Date} nbf - */ - exports.prototype['nbf'] = undefined; - /** - * GrantedScopes is a list of scopes that the subject authorized when asked for consent. - * @member {String} scope - */ - exports.prototype['scope'] = undefined; - /** - * Session represents arbitrary session data. - * @member {Object.} session - */ - exports.prototype['session'] = undefined; - /** - * Subject is the identity that authorized issuing the token, for example a user or an OAuth2 app. This is usually a uuid but you can choose a urn or some other id too. - * @member {String} sub - */ - exports.prototype['sub'] = undefined; - /** - * @member {String} username - */ - exports.prototype['username'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/Authenticator.js b/sdk/js/swagger/src/model/Authenticator.js deleted file mode 100644 index c280d94b28..0000000000 --- a/sdk/js/swagger/src/model/Authenticator.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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.OryOathkeeper) { - root.OryOathkeeper = {}; - } - root.OryOathkeeper.Authenticator = factory(root.OryOathkeeper.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The Authenticator model module. - * @module model/Authenticator - * @version Latest - */ - - /** - * Constructs a new Authenticator. - * @alias module:model/Authenticator - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a Authenticator from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Authenticator} obj Optional instance to populate. - * @return {module:model/Authenticator} The populated Authenticator instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; - } - - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/HealthNotReadyStatus.js b/sdk/js/swagger/src/model/HealthNotReadyStatus.js index 578c31d7e9..bab576e4fe 100644 --- a/sdk/js/swagger/src/model/HealthNotReadyStatus.js +++ b/sdk/js/swagger/src/model/HealthNotReadyStatus.js @@ -14,25 +14,24 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.HealthNotReadyStatus = factory(root.OryOathkeeper.ApiClient); + root.OryOathkeeper.HealthNotReadyStatus = factory( + root.OryOathkeeper.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The HealthNotReadyStatus model module. @@ -46,10 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a HealthNotReadyStatus from a plain JavaScript object, optionally creating a new instance. @@ -60,24 +57,22 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('errors')) { - obj['errors'] = ApiClient.convertToType(data['errors'], {'String': 'String'}); + obj['errors'] = ApiClient.convertToType(data['errors'], { + String: 'String' + }) } } - return obj; + return obj } /** * Errors contains a list of errors that caused the not ready status. * @member {Object.} errors */ - exports.prototype['errors'] = undefined; - - - - return exports; -})); - + exports.prototype['errors'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/HealthStatus.js b/sdk/js/swagger/src/model/HealthStatus.js index fd7f3842f0..90a52f0859 100644 --- a/sdk/js/swagger/src/model/HealthStatus.js +++ b/sdk/js/swagger/src/model/HealthStatus.js @@ -14,25 +14,22 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.HealthStatus = factory(root.OryOathkeeper.ApiClient); + root.OryOathkeeper.HealthStatus = factory(root.OryOathkeeper.ApiClient) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The HealthStatus model module. @@ -46,10 +43,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a HealthStatus from a plain JavaScript object, optionally creating a new instance. @@ -60,24 +55,20 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); + obj['status'] = ApiClient.convertToType(data['status'], 'String') } } - return obj; + return obj } /** * Status always contains \"ok\". * @member {String} status */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - + exports.prototype['status'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/InlineResponse401.js b/sdk/js/swagger/src/model/InlineResponse401.js index c668e6df52..dad3a7701c 100644 --- a/sdk/js/swagger/src/model/InlineResponse401.js +++ b/sdk/js/swagger/src/model/InlineResponse401.js @@ -14,25 +14,22 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.InlineResponse401 = factory(root.OryOathkeeper.ApiClient); + root.OryOathkeeper.InlineResponse401 = factory(root.OryOathkeeper.ApiClient) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The InlineResponse401 model module. @@ -46,15 +43,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; + var _this = this + } /** * Constructs a InlineResponse401 from a plain JavaScript object, optionally creating a new instance. @@ -65,58 +55,56 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'Number'); + obj['code'] = ApiClient.convertToType(data['code'], 'Number') } if (data.hasOwnProperty('details')) { - obj['details'] = ApiClient.convertToType(data['details'], [{'String': Object}]); + obj['details'] = ApiClient.convertToType(data['details'], [ + { String: Object } + ]) } if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); + obj['message'] = ApiClient.convertToType(data['message'], 'String') } if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); + obj['reason'] = ApiClient.convertToType(data['reason'], 'String') } if (data.hasOwnProperty('request')) { - obj['request'] = ApiClient.convertToType(data['request'], 'String'); + obj['request'] = ApiClient.convertToType(data['request'], 'String') } if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); + obj['status'] = ApiClient.convertToType(data['status'], 'String') } } - return obj; + return obj } /** * @member {Number} code */ - exports.prototype['code'] = undefined; + exports.prototype['code'] = undefined /** * @member {Array.>} details */ - exports.prototype['details'] = undefined; + exports.prototype['details'] = undefined /** * @member {String} message */ - exports.prototype['message'] = undefined; + exports.prototype['message'] = undefined /** * @member {String} reason */ - exports.prototype['reason'] = undefined; + exports.prototype['reason'] = undefined /** * @member {String} request */ - exports.prototype['request'] = undefined; + exports.prototype['request'] = undefined /** * @member {String} status */ - exports.prototype['status'] = undefined; - - - - return exports; -})); - + exports.prototype['status'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/IntrospectionResponse.js b/sdk/js/swagger/src/model/IntrospectionResponse.js deleted file mode 100644 index b9eaf76744..0000000000 --- a/sdk/js/swagger/src/model/IntrospectionResponse.js +++ /dev/null @@ -1,172 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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.OryOathkeeper) { - root.OryOathkeeper = {}; - } - root.OryOathkeeper.IntrospectionResponse = factory(root.OryOathkeeper.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The IntrospectionResponse model module. - * @module model/IntrospectionResponse - * @version Latest - */ - - /** - * Constructs a new IntrospectionResponse. - * @alias module:model/IntrospectionResponse - * @class - */ - var exports = function() { - var _this = this; - - - - - - - - - - - - - - }; - - /** - * Constructs a IntrospectionResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/IntrospectionResponse} obj Optional instance to populate. - * @return {module:model/IntrospectionResponse} The populated IntrospectionResponse 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('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; - } - - /** - * @member {Boolean} active - */ - exports.prototype['active'] = undefined; - /** - * @member {Array.} aud - */ - exports.prototype['aud'] = undefined; - /** - * @member {String} client_id - */ - exports.prototype['client_id'] = undefined; - /** - * @member {Number} exp - */ - exports.prototype['exp'] = undefined; - /** - * Session represents arbitrary session data. - * @member {Object.} ext - */ - exports.prototype['ext'] = undefined; - /** - * @member {Number} iat - */ - exports.prototype['iat'] = undefined; - /** - * @member {String} iss - */ - exports.prototype['iss'] = undefined; - /** - * @member {Number} nbf - */ - exports.prototype['nbf'] = undefined; - /** - * @member {String} scope - */ - exports.prototype['scope'] = undefined; - /** - * Here, it's sub - * @member {String} sub - */ - exports.prototype['sub'] = undefined; - /** - * @member {String} token_type - */ - exports.prototype['token_type'] = undefined; - /** - * @member {String} username - */ - exports.prototype['username'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/JsonWebKey.js b/sdk/js/swagger/src/model/JsonWebKey.js index 5405c914b7..e14ed338e0 100644 --- a/sdk/js/swagger/src/model/JsonWebKey.js +++ b/sdk/js/swagger/src/model/JsonWebKey.js @@ -14,25 +14,22 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.JsonWebKey = factory(root.OryOathkeeper.ApiClient); + root.OryOathkeeper.JsonWebKey = factory(root.OryOathkeeper.ApiClient) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The JsonWebKey model module. @@ -46,26 +43,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - - - - - - - - - - }; + var _this = this + } /** * Constructs a JsonWebKey from a plain JavaScript object, optionally creating a new instance. @@ -76,140 +55,136 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('alg')) { - obj['alg'] = ApiClient.convertToType(data['alg'], 'String'); + obj['alg'] = ApiClient.convertToType(data['alg'], 'String') } if (data.hasOwnProperty('crv')) { - obj['crv'] = ApiClient.convertToType(data['crv'], 'String'); + obj['crv'] = ApiClient.convertToType(data['crv'], 'String') } if (data.hasOwnProperty('d')) { - obj['d'] = ApiClient.convertToType(data['d'], 'String'); + obj['d'] = ApiClient.convertToType(data['d'], 'String') } if (data.hasOwnProperty('dp')) { - obj['dp'] = ApiClient.convertToType(data['dp'], 'String'); + obj['dp'] = ApiClient.convertToType(data['dp'], 'String') } if (data.hasOwnProperty('dq')) { - obj['dq'] = ApiClient.convertToType(data['dq'], 'String'); + obj['dq'] = ApiClient.convertToType(data['dq'], 'String') } if (data.hasOwnProperty('e')) { - obj['e'] = ApiClient.convertToType(data['e'], 'String'); + obj['e'] = ApiClient.convertToType(data['e'], 'String') } if (data.hasOwnProperty('k')) { - obj['k'] = ApiClient.convertToType(data['k'], 'String'); + obj['k'] = ApiClient.convertToType(data['k'], 'String') } if (data.hasOwnProperty('kid')) { - obj['kid'] = ApiClient.convertToType(data['kid'], 'String'); + obj['kid'] = ApiClient.convertToType(data['kid'], 'String') } if (data.hasOwnProperty('kty')) { - obj['kty'] = ApiClient.convertToType(data['kty'], 'String'); + obj['kty'] = ApiClient.convertToType(data['kty'], 'String') } if (data.hasOwnProperty('n')) { - obj['n'] = ApiClient.convertToType(data['n'], 'String'); + obj['n'] = ApiClient.convertToType(data['n'], 'String') } if (data.hasOwnProperty('p')) { - obj['p'] = ApiClient.convertToType(data['p'], 'String'); + obj['p'] = ApiClient.convertToType(data['p'], 'String') } if (data.hasOwnProperty('q')) { - obj['q'] = ApiClient.convertToType(data['q'], 'String'); + obj['q'] = ApiClient.convertToType(data['q'], 'String') } if (data.hasOwnProperty('qi')) { - obj['qi'] = ApiClient.convertToType(data['qi'], 'String'); + obj['qi'] = ApiClient.convertToType(data['qi'], 'String') } if (data.hasOwnProperty('use')) { - obj['use'] = ApiClient.convertToType(data['use'], 'String'); + obj['use'] = ApiClient.convertToType(data['use'], 'String') } if (data.hasOwnProperty('x')) { - obj['x'] = ApiClient.convertToType(data['x'], 'String'); + obj['x'] = ApiClient.convertToType(data['x'], 'String') } if (data.hasOwnProperty('x5c')) { - obj['x5c'] = ApiClient.convertToType(data['x5c'], ['String']); + obj['x5c'] = ApiClient.convertToType(data['x5c'], ['String']) } if (data.hasOwnProperty('y')) { - obj['y'] = ApiClient.convertToType(data['y'], 'String'); + obj['y'] = ApiClient.convertToType(data['y'], 'String') } } - return obj; + 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; + exports.prototype['alg'] = undefined /** * @member {String} crv */ - exports.prototype['crv'] = undefined; + exports.prototype['crv'] = undefined /** * @member {String} d */ - exports.prototype['d'] = undefined; + exports.prototype['d'] = undefined /** * @member {String} dp */ - exports.prototype['dp'] = undefined; + exports.prototype['dp'] = undefined /** * @member {String} dq */ - exports.prototype['dq'] = undefined; + exports.prototype['dq'] = undefined /** * @member {String} e */ - exports.prototype['e'] = undefined; + exports.prototype['e'] = undefined /** * @member {String} k */ - exports.prototype['k'] = undefined; + 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; + 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; + exports.prototype['kty'] = undefined /** * @member {String} n */ - exports.prototype['n'] = undefined; + exports.prototype['n'] = undefined /** * @member {String} p */ - exports.prototype['p'] = undefined; + exports.prototype['p'] = undefined /** * @member {String} q */ - exports.prototype['q'] = undefined; + exports.prototype['q'] = undefined /** * @member {String} qi */ - exports.prototype['qi'] = undefined; + exports.prototype['qi'] = 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. Values are commonly \"sig\" (signature) or \"enc\" (encryption). * @member {String} use */ - exports.prototype['use'] = undefined; + exports.prototype['use'] = undefined /** * @member {String} x */ - exports.prototype['x'] = undefined; + 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.} x5c */ - exports.prototype['x5c'] = undefined; + exports.prototype['x5c'] = undefined /** * @member {String} y */ - exports.prototype['y'] = undefined; - - - - return exports; -})); - + exports.prototype['y'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/JsonWebKeySet.js b/sdk/js/swagger/src/model/JsonWebKeySet.js index af9e7acae3..9e5c41c2c6 100644 --- a/sdk/js/swagger/src/model/JsonWebKeySet.js +++ b/sdk/js/swagger/src/model/JsonWebKeySet.js @@ -14,25 +14,25 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/JsonWebKey'], factory); + define(['ApiClient', 'model/JsonWebKey'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./JsonWebKey')); + module.exports = factory(require('../ApiClient'), require('./JsonWebKey')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.JsonWebKeySet = factory(root.OryOathkeeper.ApiClient, root.OryOathkeeper.JsonWebKey); + root.OryOathkeeper.JsonWebKeySet = factory( + root.OryOathkeeper.ApiClient, + root.OryOathkeeper.JsonWebKey + ) } -}(this, function(ApiClient, JsonWebKey) { - 'use strict'; - - - +})(this, function(ApiClient, JsonWebKey) { + 'use strict' /** * The JsonWebKeySet model module. @@ -46,10 +46,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a JsonWebKeySet from a plain JavaScript object, optionally creating a new instance. @@ -60,24 +58,20 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('keys')) { - obj['keys'] = ApiClient.convertToType(data['keys'], [JsonWebKey]); + obj['keys'] = ApiClient.convertToType(data['keys'], [JsonWebKey]) } } - return obj; + 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.} keys */ - exports.prototype['keys'] = undefined; - - - - return exports; -})); - + exports.prototype['keys'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/OAuth2ClientCredentialsAuthentication.js b/sdk/js/swagger/src/model/OAuth2ClientCredentialsAuthentication.js deleted file mode 100644 index c5e4f33881..0000000000 --- a/sdk/js/swagger/src/model/OAuth2ClientCredentialsAuthentication.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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.OryOathkeeper) { - root.OryOathkeeper = {}; - } - root.OryOathkeeper.OAuth2ClientCredentialsAuthentication = factory(root.OryOathkeeper.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The OAuth2ClientCredentialsAuthentication model module. - * @module model/OAuth2ClientCredentialsAuthentication - * @version Latest - */ - - /** - * Constructs a new OAuth2ClientCredentialsAuthentication. - * @alias module:model/OAuth2ClientCredentialsAuthentication - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a OAuth2ClientCredentialsAuthentication from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OAuth2ClientCredentialsAuthentication} obj Optional instance to populate. - * @return {module:model/OAuth2ClientCredentialsAuthentication} The populated OAuth2ClientCredentialsAuthentication instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; - } - - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/OAuth2IntrospectionAuthentication.js b/sdk/js/swagger/src/model/OAuth2IntrospectionAuthentication.js deleted file mode 100644 index 38e3a709d0..0000000000 --- a/sdk/js/swagger/src/model/OAuth2IntrospectionAuthentication.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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.OryOathkeeper) { - root.OryOathkeeper = {}; - } - root.OryOathkeeper.OAuth2IntrospectionAuthentication = factory(root.OryOathkeeper.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The OAuth2IntrospectionAuthentication model module. - * @module model/OAuth2IntrospectionAuthentication - * @version Latest - */ - - /** - * Constructs a new OAuth2IntrospectionAuthentication. - * @alias module:model/OAuth2IntrospectionAuthentication - * @class - */ - var exports = function() { - var _this = this; - - }; - - /** - * Constructs a OAuth2IntrospectionAuthentication from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OAuth2IntrospectionAuthentication} obj Optional instance to populate. - * @return {module:model/OAuth2IntrospectionAuthentication} The populated OAuth2IntrospectionAuthentication instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - } - return obj; - } - - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/Rule.js b/sdk/js/swagger/src/model/Rule.js index f7e6237372..cb9f4d4e4f 100644 --- a/sdk/js/swagger/src/model/Rule.js +++ b/sdk/js/swagger/src/model/Rule.js @@ -14,25 +14,37 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/RuleHandler', 'model/RuleMatch', 'model/Upstream'], factory); + define([ + 'ApiClient', + 'model/RuleHandler', + 'model/RuleMatch', + 'model/Upstream' + ], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./RuleHandler'), require('./RuleMatch'), require('./Upstream')); + module.exports = factory( + require('../ApiClient'), + require('./RuleHandler'), + require('./RuleMatch'), + require('./Upstream') + ) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.Rule = factory(root.OryOathkeeper.ApiClient, root.OryOathkeeper.RuleHandler, root.OryOathkeeper.RuleMatch, root.OryOathkeeper.Upstream); + root.OryOathkeeper.Rule = factory( + root.OryOathkeeper.ApiClient, + root.OryOathkeeper.RuleHandler, + root.OryOathkeeper.RuleMatch, + root.OryOathkeeper.Upstream + ) } -}(this, function(ApiClient, RuleHandler, RuleMatch, Upstream) { - 'use strict'; - - - +})(this, function(ApiClient, RuleHandler, RuleMatch, Upstream) { + 'use strict' /** * The Rule model module. @@ -46,16 +58,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - }; + var _this = this + } /** * Constructs a Rule from a plain JavaScript object, optionally creating a new instance. @@ -66,68 +70,72 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('authenticators')) { - obj['authenticators'] = ApiClient.convertToType(data['authenticators'], [RuleHandler]); + obj['authenticators'] = ApiClient.convertToType( + data['authenticators'], + [RuleHandler] + ) } if (data.hasOwnProperty('authorizer')) { - obj['authorizer'] = RuleHandler.constructFromObject(data['authorizer']); + obj['authorizer'] = RuleHandler.constructFromObject(data['authorizer']) } if (data.hasOwnProperty('credentials_issuer')) { - obj['credentials_issuer'] = RuleHandler.constructFromObject(data['credentials_issuer']); + obj['credentials_issuer'] = RuleHandler.constructFromObject( + data['credentials_issuer'] + ) } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); + obj['description'] = ApiClient.convertToType( + data['description'], + 'String' + ) } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); + obj['id'] = ApiClient.convertToType(data['id'], 'String') } if (data.hasOwnProperty('match')) { - obj['match'] = RuleMatch.constructFromObject(data['match']); + obj['match'] = RuleMatch.constructFromObject(data['match']) } if (data.hasOwnProperty('upstream')) { - obj['upstream'] = Upstream.constructFromObject(data['upstream']); + obj['upstream'] = Upstream.constructFromObject(data['upstream']) } } - return obj; + return obj } /** * Authenticators is a list of authentication handlers that will try and authenticate the provided credentials. Authenticators are checked iteratively from index 0 to n and if the first authenticator to return a positive result will be the one used. If you want the rule to first check a specific authenticator before \"falling back\" to others, have that authenticator as the first item in the array. * @member {Array.} authenticators */ - exports.prototype['authenticators'] = undefined; + exports.prototype['authenticators'] = undefined /** * @member {module:model/RuleHandler} authorizer */ - exports.prototype['authorizer'] = undefined; + exports.prototype['authorizer'] = undefined /** * @member {module:model/RuleHandler} credentials_issuer */ - exports.prototype['credentials_issuer'] = undefined; + exports.prototype['credentials_issuer'] = undefined /** * Description is a human readable description of this rule. * @member {String} description */ - exports.prototype['description'] = undefined; + exports.prototype['description'] = undefined /** * ID is the unique id of the rule. It can be at most 190 characters long, but the layout of the ID is up to you. You will need this ID later on to update or delete the rule. * @member {String} id */ - exports.prototype['id'] = undefined; + exports.prototype['id'] = undefined /** * @member {module:model/RuleMatch} match */ - exports.prototype['match'] = undefined; + exports.prototype['match'] = undefined /** * @member {module:model/Upstream} upstream */ - exports.prototype['upstream'] = undefined; - - - - return exports; -})); - + exports.prototype['upstream'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/RuleHandler.js b/sdk/js/swagger/src/model/RuleHandler.js index 2c33b0fb20..780083b286 100644 --- a/sdk/js/swagger/src/model/RuleHandler.js +++ b/sdk/js/swagger/src/model/RuleHandler.js @@ -14,25 +14,22 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.RuleHandler = factory(root.OryOathkeeper.ApiClient); + root.OryOathkeeper.RuleHandler = factory(root.OryOathkeeper.ApiClient) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The RuleHandler model module. @@ -46,11 +43,8 @@ * @class */ var exports = function() { - var _this = this; - - - - }; + var _this = this + } /** * Constructs a RuleHandler from a plain JavaScript object, optionally creating a new instance. @@ -61,32 +55,28 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('config')) { - obj['config'] = ApiClient.convertToType(data['config'], 'String'); + obj['config'] = ApiClient.convertToType(data['config'], 'String') } if (data.hasOwnProperty('handler')) { - obj['handler'] = ApiClient.convertToType(data['handler'], 'String'); + obj['handler'] = ApiClient.convertToType(data['handler'], 'String') } } - return obj; + return obj } /** * Config contains the configuration for the handler. Please read the user guide for a complete list of each handler's available settings. * @member {String} config */ - exports.prototype['config'] = undefined; + exports.prototype['config'] = undefined /** * Handler identifies the implementation which will be used to handle this specific request. Please read the user guide for a complete list of available handlers. * @member {String} handler */ - exports.prototype['handler'] = undefined; - - - - return exports; -})); - + exports.prototype['handler'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/RuleMatch.js b/sdk/js/swagger/src/model/RuleMatch.js index 60a86fc867..f2fb724c5b 100644 --- a/sdk/js/swagger/src/model/RuleMatch.js +++ b/sdk/js/swagger/src/model/RuleMatch.js @@ -14,25 +14,22 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.RuleMatch = factory(root.OryOathkeeper.ApiClient); + root.OryOathkeeper.RuleMatch = factory(root.OryOathkeeper.ApiClient) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The RuleMatch model module. @@ -46,11 +43,8 @@ * @class */ var exports = function() { - var _this = this; - - - - }; + var _this = this + } /** * Constructs a RuleMatch from a plain JavaScript object, optionally creating a new instance. @@ -61,32 +55,28 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('methods')) { - obj['methods'] = ApiClient.convertToType(data['methods'], ['String']); + obj['methods'] = ApiClient.convertToType(data['methods'], ['String']) } if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); + obj['url'] = ApiClient.convertToType(data['url'], 'String') } } - return obj; + return obj } /** * An array of HTTP methods (e.g. GET, POST, PUT, DELETE, ...). When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the HTTP method of the incoming request with the HTTP methods of each rules. If a match is found, the rule is considered a partial match. If the matchesUrl field is satisfied as well, the rule is considered a full match. * @member {Array.} methods */ - exports.prototype['methods'] = undefined; + exports.prototype['methods'] = undefined /** - * This field represents the URL pattern this rule matches. When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the full request URL (e.g. https://mydomain.com/api/resource) without query parameters of the incoming request with this field. If a match is found, the rule is considered a partial match. If the matchesMethods field is satisfied as well, the rule is considered a full match. You can use regular expressions in this field to match more than one url. Regular expressions are encapsulated in brackets < and >. The following example matches all paths of the domain `mydomain.com`: `https://mydomain.com/<.*>`. For more information refer to: https://ory.gitbooks.io/oathkeeper/content/concepts.html#rules + * This field represents the URL pattern this rule matches. When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the full request URL (e.g. https://mydomain.com/api/resource) without query parameters of the incoming request with this field. If a match is found, the rule is considered a partial match. If the matchesMethods field is satisfied as well, the rule is considered a full match. You can use regular expressions in this field to match more than one url. Regular expressions are encapsulated in brackets < and >. The following example matches all paths of the domain `mydomain.com`: `https://mydomain.com/<.*>`. * @member {String} url */ - exports.prototype['url'] = undefined; - - - - return exports; -})); - + exports.prototype['url'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/Session.js b/sdk/js/swagger/src/model/Session.js deleted file mode 100644 index 2b0693da7c..0000000000 --- a/sdk/js/swagger/src/model/Session.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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.OryOathkeeper) { - root.OryOathkeeper = {}; - } - root.OryOathkeeper.Session = factory(root.OryOathkeeper.ApiClient); - } -}(this, function(ApiClient) { - 'use strict'; - - - - - /** - * The Session model module. - * @module model/Session - * @version Latest - */ - - /** - * Constructs a new Session. - * @alias module:model/Session - * @class - */ - var exports = function() { - var _this = this; - - - }; - - /** - * Constructs a Session from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Session} obj Optional instance to populate. - * @return {module:model/Session} The populated Session instance. - */ - exports.constructFromObject = function(data, obj) { - if (data) { - obj = obj || new exports(); - - if (data.hasOwnProperty('GetSubject')) { - obj['GetSubject'] = ApiClient.convertToType(data['GetSubject'], 'String'); - } - } - return obj; - } - - /** - * @member {String} GetSubject - */ - exports.prototype['GetSubject'] = undefined; - - - - return exports; -})); - - diff --git a/sdk/js/swagger/src/model/SwaggerCreateRuleParameters.js b/sdk/js/swagger/src/model/SwaggerCreateRuleParameters.js index 619222def2..7ff0185721 100644 --- a/sdk/js/swagger/src/model/SwaggerCreateRuleParameters.js +++ b/sdk/js/swagger/src/model/SwaggerCreateRuleParameters.js @@ -14,25 +14,25 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Rule'], factory); + define(['ApiClient', 'model/Rule'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Rule')); + module.exports = factory(require('../ApiClient'), require('./Rule')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.SwaggerCreateRuleParameters = factory(root.OryOathkeeper.ApiClient, root.OryOathkeeper.Rule); + root.OryOathkeeper.SwaggerCreateRuleParameters = factory( + root.OryOathkeeper.ApiClient, + root.OryOathkeeper.Rule + ) } -}(this, function(ApiClient, Rule) { - 'use strict'; - - - +})(this, function(ApiClient, Rule) { + 'use strict' /** * The SwaggerCreateRuleParameters model module. @@ -46,10 +46,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerCreateRuleParameters from a plain JavaScript object, optionally creating a new instance. @@ -60,23 +58,19 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = Rule.constructFromObject(data['Body']); + obj['Body'] = Rule.constructFromObject(data['Body']) } } - return obj; + return obj } /** * @member {module:model/Rule} Body */ - exports.prototype['Body'] = undefined; - - - - return exports; -})); - + exports.prototype['Body'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerGetRuleParameters.js b/sdk/js/swagger/src/model/SwaggerGetRuleParameters.js index 3a3206bd5d..bebcd2b90b 100644 --- a/sdk/js/swagger/src/model/SwaggerGetRuleParameters.js +++ b/sdk/js/swagger/src/model/SwaggerGetRuleParameters.js @@ -14,25 +14,24 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.SwaggerGetRuleParameters = factory(root.OryOathkeeper.ApiClient); + root.OryOathkeeper.SwaggerGetRuleParameters = factory( + root.OryOathkeeper.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The SwaggerGetRuleParameters model module. @@ -47,10 +46,10 @@ * @param id {String} in: path */ var exports = function(id) { - var _this = this; + var _this = this - _this['id'] = id; - }; + _this['id'] = id + } /** * Constructs a SwaggerGetRuleParameters from a plain JavaScript object, optionally creating a new instance. @@ -61,24 +60,20 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); + obj['id'] = ApiClient.convertToType(data['id'], 'String') } } - return obj; + return obj } /** * in: path * @member {String} id */ - exports.prototype['id'] = undefined; - - - - return exports; -})); - + exports.prototype['id'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerListRulesParameters.js b/sdk/js/swagger/src/model/SwaggerListRulesParameters.js index 82e3d7337a..528c685741 100644 --- a/sdk/js/swagger/src/model/SwaggerListRulesParameters.js +++ b/sdk/js/swagger/src/model/SwaggerListRulesParameters.js @@ -14,25 +14,24 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.SwaggerListRulesParameters = factory(root.OryOathkeeper.ApiClient); + root.OryOathkeeper.SwaggerListRulesParameters = factory( + root.OryOathkeeper.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The SwaggerListRulesParameters model module. @@ -46,11 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - - }; + var _this = this + } /** * Constructs a SwaggerListRulesParameters from a plain JavaScript object, optionally creating a new instance. @@ -61,32 +57,28 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('limit')) { - obj['limit'] = ApiClient.convertToType(data['limit'], 'Number'); + obj['limit'] = ApiClient.convertToType(data['limit'], 'Number') } if (data.hasOwnProperty('offset')) { - obj['offset'] = ApiClient.convertToType(data['offset'], 'Number'); + obj['offset'] = ApiClient.convertToType(data['offset'], 'Number') } } - return obj; + return obj } /** * The maximum amount of rules returned. in: query * @member {Number} limit */ - exports.prototype['limit'] = undefined; + exports.prototype['limit'] = undefined /** * The offset from where to start looking. in: query * @member {Number} offset */ - exports.prototype['offset'] = undefined; - - - - return exports; -})); - + exports.prototype['offset'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerRuleResponse.js b/sdk/js/swagger/src/model/SwaggerRuleResponse.js index 389f5c9f45..8f30a5efc1 100644 --- a/sdk/js/swagger/src/model/SwaggerRuleResponse.js +++ b/sdk/js/swagger/src/model/SwaggerRuleResponse.js @@ -14,25 +14,25 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Rule'], factory); + define(['ApiClient', 'model/Rule'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Rule')); + module.exports = factory(require('../ApiClient'), require('./Rule')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.SwaggerRuleResponse = factory(root.OryOathkeeper.ApiClient, root.OryOathkeeper.Rule); + root.OryOathkeeper.SwaggerRuleResponse = factory( + root.OryOathkeeper.ApiClient, + root.OryOathkeeper.Rule + ) } -}(this, function(ApiClient, Rule) { - 'use strict'; - - - +})(this, function(ApiClient, Rule) { + 'use strict' /** * The SwaggerRuleResponse model module. @@ -47,10 +47,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerRuleResponse from a plain JavaScript object, optionally creating a new instance. @@ -61,23 +59,19 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = Rule.constructFromObject(data['Body']); + obj['Body'] = Rule.constructFromObject(data['Body']) } } - return obj; + return obj } /** * @member {module:model/Rule} Body */ - exports.prototype['Body'] = undefined; - - - - return exports; -})); - + exports.prototype['Body'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerRulesResponse.js b/sdk/js/swagger/src/model/SwaggerRulesResponse.js index c0dde2f4cb..749732df78 100644 --- a/sdk/js/swagger/src/model/SwaggerRulesResponse.js +++ b/sdk/js/swagger/src/model/SwaggerRulesResponse.js @@ -14,25 +14,25 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Rule'], factory); + define(['ApiClient', 'model/Rule'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Rule')); + module.exports = factory(require('../ApiClient'), require('./Rule')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.SwaggerRulesResponse = factory(root.OryOathkeeper.ApiClient, root.OryOathkeeper.Rule); + root.OryOathkeeper.SwaggerRulesResponse = factory( + root.OryOathkeeper.ApiClient, + root.OryOathkeeper.Rule + ) } -}(this, function(ApiClient, Rule) { - 'use strict'; - - - +})(this, function(ApiClient, Rule) { + 'use strict' /** * The SwaggerRulesResponse model module. @@ -47,10 +47,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerRulesResponse from a plain JavaScript object, optionally creating a new instance. @@ -61,24 +59,20 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = ApiClient.convertToType(data['Body'], [Rule]); + obj['Body'] = ApiClient.convertToType(data['Body'], [Rule]) } } - return obj; + return obj } /** * in: body type: array * @member {Array.} Body */ - exports.prototype['Body'] = undefined; - - - - return exports; -})); - + exports.prototype['Body'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerUpdateRuleParameters.js b/sdk/js/swagger/src/model/SwaggerUpdateRuleParameters.js index 41517eefdb..3f5e7ad61f 100644 --- a/sdk/js/swagger/src/model/SwaggerUpdateRuleParameters.js +++ b/sdk/js/swagger/src/model/SwaggerUpdateRuleParameters.js @@ -14,25 +14,25 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Rule'], factory); + define(['ApiClient', 'model/Rule'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Rule')); + module.exports = factory(require('../ApiClient'), require('./Rule')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.SwaggerUpdateRuleParameters = factory(root.OryOathkeeper.ApiClient, root.OryOathkeeper.Rule); + root.OryOathkeeper.SwaggerUpdateRuleParameters = factory( + root.OryOathkeeper.ApiClient, + root.OryOathkeeper.Rule + ) } -}(this, function(ApiClient, Rule) { - 'use strict'; - - - +})(this, function(ApiClient, Rule) { + 'use strict' /** * The SwaggerUpdateRuleParameters model module. @@ -47,11 +47,10 @@ * @param id {String} in: path */ var exports = function(id) { - var _this = this; + var _this = this - - _this['id'] = id; - }; + _this['id'] = id + } /** * Constructs a SwaggerUpdateRuleParameters from a plain JavaScript object, optionally creating a new instance. @@ -62,31 +61,27 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = Rule.constructFromObject(data['Body']); + obj['Body'] = Rule.constructFromObject(data['Body']) } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); + obj['id'] = ApiClient.convertToType(data['id'], 'String') } } - return obj; + return obj } /** * @member {module:model/Rule} Body */ - exports.prototype['Body'] = undefined; + exports.prototype['Body'] = undefined /** * in: path * @member {String} id */ - exports.prototype['id'] = undefined; - - - - return exports; -})); - + exports.prototype['id'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/Upstream.js b/sdk/js/swagger/src/model/Upstream.js index 3e8b259ae5..9a8153706f 100644 --- a/sdk/js/swagger/src/model/Upstream.js +++ b/sdk/js/swagger/src/model/Upstream.js @@ -14,25 +14,22 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.Upstream = factory(root.OryOathkeeper.ApiClient); + root.OryOathkeeper.Upstream = factory(root.OryOathkeeper.ApiClient) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The Upstream model module. @@ -46,12 +43,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - }; + var _this = this + } /** * Constructs a Upstream from a plain JavaScript object, optionally creating a new instance. @@ -62,40 +55,42 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('preserve_host')) { - obj['preserve_host'] = ApiClient.convertToType(data['preserve_host'], 'Boolean'); + obj['preserve_host'] = ApiClient.convertToType( + data['preserve_host'], + 'Boolean' + ) } if (data.hasOwnProperty('strip_path')) { - obj['strip_path'] = ApiClient.convertToType(data['strip_path'], 'String'); + obj['strip_path'] = ApiClient.convertToType( + data['strip_path'], + 'String' + ) } if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); + obj['url'] = ApiClient.convertToType(data['url'], 'String') } } - return obj; + return obj } /** * PreserveHost, if false (the default), tells ORY Oathkeeper to set the upstream request's Host header to the hostname of the API's upstream's URL. Setting this flag to true instructs ORY Oathkeeper not to do so. * @member {Boolean} preserve_host */ - exports.prototype['preserve_host'] = undefined; + exports.prototype['preserve_host'] = undefined /** * StripPath if set, replaces the provided path prefix when forwarding the requested URL to the upstream URL. * @member {String} strip_path */ - exports.prototype['strip_path'] = undefined; + exports.prototype['strip_path'] = undefined /** * URL is the URL the request will be proxied to. * @member {String} url */ - exports.prototype['url'] = undefined; - - - - return exports; -})); - + exports.prototype['url'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/Version.js b/sdk/js/swagger/src/model/Version.js index 6d62b7bada..ac85e1cf4b 100644 --- a/sdk/js/swagger/src/model/Version.js +++ b/sdk/js/swagger/src/model/Version.js @@ -14,25 +14,22 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient'], factory); + define(['ApiClient'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient')); + module.exports = factory(require('../ApiClient')) } else { // Browser globals (root is window) if (!root.OryOathkeeper) { - root.OryOathkeeper = {}; + root.OryOathkeeper = {} } - root.OryOathkeeper.Version = factory(root.OryOathkeeper.ApiClient); + root.OryOathkeeper.Version = factory(root.OryOathkeeper.ApiClient) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The Version model module. @@ -46,10 +43,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a Version from a plain JavaScript object, optionally creating a new instance. @@ -60,23 +55,19 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('version')) { - obj['version'] = ApiClient.convertToType(data['version'], 'String'); + obj['version'] = ApiClient.convertToType(data['version'], 'String') } } - return obj; + return obj } /** * @member {String} version */ - exports.prototype['version'] = undefined; - - - - return exports; -})); - + exports.prototype['version'] = undefined + return exports +}) diff --git a/sdk/js/swagger/test/api/DefaultApi.spec.js b/sdk/js/swagger/test/api/DefaultApi.spec.js deleted file mode 100644 index 52b7361ff7..0000000000 --- a/sdk/js/swagger/test/api/DefaultApi.spec.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.DefaultApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DefaultApi', function() { - describe('getWellKnown', function() { - it('should call getWellKnown successfully', function(done) { - //uncomment below and update the code to test getWellKnown - //instance.getWellKnown(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/sdk/js/swagger/test/api/HealthApi.spec.js b/sdk/js/swagger/test/api/HealthApi.spec.js deleted file mode 100644 index e89d28570b..0000000000 --- a/sdk/js/swagger/test/api/HealthApi.spec.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.HealthApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('HealthApi', function() { - describe('isInstanceAlive', function() { - it('should call isInstanceAlive successfully', function(done) { - //uncomment below and update the code to test isInstanceAlive - //instance.isInstanceAlive(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('isInstanceReady', function() { - it('should call isInstanceReady successfully', function(done) { - //uncomment below and update the code to test isInstanceReady - //instance.isInstanceReady(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/sdk/js/swagger/test/api/JudgeApi.spec.js b/sdk/js/swagger/test/api/JudgeApi.spec.js deleted file mode 100644 index dd9c67fb33..0000000000 --- a/sdk/js/swagger/test/api/JudgeApi.spec.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.JudgeApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('JudgeApi', function() { - describe('judge', function() { - it('should call judge successfully', function(done) { - //uncomment below and update the code to test judge - //instance.judge(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/sdk/js/swagger/test/api/RuleApi.spec.js b/sdk/js/swagger/test/api/RuleApi.spec.js deleted file mode 100644 index f9332f6f66..0000000000 --- a/sdk/js/swagger/test/api/RuleApi.spec.js +++ /dev/null @@ -1,106 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.RuleApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RuleApi', function() { - describe('createRule', function() { - it('should call createRule successfully', function(done) { - //uncomment below and update the code to test createRule - //instance.createRule(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteRule', function() { - it('should call deleteRule successfully', function(done) { - //uncomment below and update the code to test deleteRule - //instance.deleteRule(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getRule', function() { - it('should call getRule successfully', function(done) { - //uncomment below and update the code to test getRule - //instance.getRule(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listRules', function() { - it('should call listRules successfully', function(done) { - //uncomment below and update the code to test listRules - //instance.listRules(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateRule', function() { - it('should call updateRule successfully', function(done) { - //uncomment below and update the code to test updateRule - //instance.updateRule(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/sdk/js/swagger/test/api/VersionApi.spec.js b/sdk/js/swagger/test/api/VersionApi.spec.js deleted file mode 100644 index f54f4fd8b6..0000000000 --- a/sdk/js/swagger/test/api/VersionApi.spec.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.VersionApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('VersionApi', function() { - describe('getVersion', function() { - it('should call getVersion successfully', function(done) { - //uncomment below and update the code to test getVersion - //instance.getVersion(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/sdk/js/swagger/test/model/AuthenticationDefaultSession.spec.js b/sdk/js/swagger/test/model/AuthenticationDefaultSession.spec.js deleted file mode 100644 index 2f4eb5dc4f..0000000000 --- a/sdk/js/swagger/test/model/AuthenticationDefaultSession.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.AuthenticationDefaultSession(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AuthenticationDefaultSession', function() { - it('should create an instance of AuthenticationDefaultSession', function() { - // uncomment below and update the code to test AuthenticationDefaultSession - //var instane = new OryOathkeeper.AuthenticationDefaultSession(); - //expect(instance).to.be.a(OryOathkeeper.AuthenticationDefaultSession); - }); - - it('should have the property allowed (base name: "allowed")', function() { - // uncomment below and update the code to test the property allowed - //var instane = new OryOathkeeper.AuthenticationDefaultSession(); - //expect(instance).to.be(); - }); - - it('should have the property sub (base name: "sub")', function() { - // uncomment below and update the code to test the property sub - //var instane = new OryOathkeeper.AuthenticationDefaultSession(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/AuthenticationOAuth2ClientCredentialsRequest.spec.js b/sdk/js/swagger/test/model/AuthenticationOAuth2ClientCredentialsRequest.spec.js deleted file mode 100644 index 1b89887bd7..0000000000 --- a/sdk/js/swagger/test/model/AuthenticationOAuth2ClientCredentialsRequest.spec.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.AuthenticationOAuth2ClientCredentialsRequest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AuthenticationOAuth2ClientCredentialsRequest', function() { - it('should create an instance of AuthenticationOAuth2ClientCredentialsRequest', function() { - // uncomment below and update the code to test AuthenticationOAuth2ClientCredentialsRequest - //var instane = new OryOathkeeper.AuthenticationOAuth2ClientCredentialsRequest(); - //expect(instance).to.be.a(OryOathkeeper.AuthenticationOAuth2ClientCredentialsRequest); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new OryOathkeeper.AuthenticationOAuth2ClientCredentialsRequest(); - //expect(instance).to.be(); - }); - - it('should have the property scope (base name: "scope")', function() { - // uncomment below and update the code to test the property scope - //var instane = new OryOathkeeper.AuthenticationOAuth2ClientCredentialsRequest(); - //expect(instance).to.be(); - }); - - it('should have the property secret (base name: "secret")', function() { - // uncomment below and update the code to test the property secret - //var instane = new OryOathkeeper.AuthenticationOAuth2ClientCredentialsRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/AuthenticationOAuth2ClientCredentialsSession.spec.js b/sdk/js/swagger/test/model/AuthenticationOAuth2ClientCredentialsSession.spec.js deleted file mode 100644 index 6a070de951..0000000000 --- a/sdk/js/swagger/test/model/AuthenticationOAuth2ClientCredentialsSession.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.AuthenticationOAuth2ClientCredentialsSession(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AuthenticationOAuth2ClientCredentialsSession', function() { - it('should create an instance of AuthenticationOAuth2ClientCredentialsSession', function() { - // uncomment below and update the code to test AuthenticationOAuth2ClientCredentialsSession - //var instane = new OryOathkeeper.AuthenticationOAuth2ClientCredentialsSession(); - //expect(instance).to.be.a(OryOathkeeper.AuthenticationOAuth2ClientCredentialsSession); - }); - - it('should have the property allowed (base name: "allowed")', function() { - // uncomment below and update the code to test the property allowed - //var instane = new OryOathkeeper.AuthenticationOAuth2ClientCredentialsSession(); - //expect(instance).to.be(); - }); - - it('should have the property sub (base name: "sub")', function() { - // uncomment below and update the code to test the property sub - //var instane = new OryOathkeeper.AuthenticationOAuth2ClientCredentialsSession(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/AuthenticationOAuth2IntrospectionRequest.spec.js b/sdk/js/swagger/test/model/AuthenticationOAuth2IntrospectionRequest.spec.js deleted file mode 100644 index d92327e219..0000000000 --- a/sdk/js/swagger/test/model/AuthenticationOAuth2IntrospectionRequest.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.AuthenticationOAuth2IntrospectionRequest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AuthenticationOAuth2IntrospectionRequest', function() { - it('should create an instance of AuthenticationOAuth2IntrospectionRequest', function() { - // uncomment below and update the code to test AuthenticationOAuth2IntrospectionRequest - //var instane = new OryOathkeeper.AuthenticationOAuth2IntrospectionRequest(); - //expect(instance).to.be.a(OryOathkeeper.AuthenticationOAuth2IntrospectionRequest); - }); - - it('should have the property scope (base name: "scope")', function() { - // uncomment below and update the code to test the property scope - //var instane = new OryOathkeeper.AuthenticationOAuth2IntrospectionRequest(); - //expect(instance).to.be(); - }); - - it('should have the property token (base name: "token")', function() { - // uncomment below and update the code to test the property token - //var instane = new OryOathkeeper.AuthenticationOAuth2IntrospectionRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/AuthenticationOAuth2Session.spec.js b/sdk/js/swagger/test/model/AuthenticationOAuth2Session.spec.js deleted file mode 100644 index ab9e603c17..0000000000 --- a/sdk/js/swagger/test/model/AuthenticationOAuth2Session.spec.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.AuthenticationOAuth2Session(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AuthenticationOAuth2Session', function() { - it('should create an instance of AuthenticationOAuth2Session', function() { - // uncomment below and update the code to test AuthenticationOAuth2Session - //var instane = new OryOathkeeper.AuthenticationOAuth2Session(); - //expect(instance).to.be.a(OryOathkeeper.AuthenticationOAuth2Session); - }); - - it('should have the property allowed (base name: "allowed")', function() { - // uncomment below and update the code to test the property allowed - //var instane = new OryOathkeeper.AuthenticationOAuth2Session(); - //expect(instance).to.be(); - }); - - it('should have the property aud (base name: "aud")', function() { - // uncomment below and update the code to test the property aud - //var instane = new OryOathkeeper.AuthenticationOAuth2Session(); - //expect(instance).to.be(); - }); - - it('should have the property clientId (base name: "client_id")', function() { - // uncomment below and update the code to test the property clientId - //var instane = new OryOathkeeper.AuthenticationOAuth2Session(); - //expect(instance).to.be(); - }); - - it('should have the property exp (base name: "exp")', function() { - // uncomment below and update the code to test the property exp - //var instane = new OryOathkeeper.AuthenticationOAuth2Session(); - //expect(instance).to.be(); - }); - - it('should have the property iat (base name: "iat")', function() { - // uncomment below and update the code to test the property iat - //var instane = new OryOathkeeper.AuthenticationOAuth2Session(); - //expect(instance).to.be(); - }); - - it('should have the property iss (base name: "iss")', function() { - // uncomment below and update the code to test the property iss - //var instane = new OryOathkeeper.AuthenticationOAuth2Session(); - //expect(instance).to.be(); - }); - - it('should have the property nbf (base name: "nbf")', function() { - // uncomment below and update the code to test the property nbf - //var instane = new OryOathkeeper.AuthenticationOAuth2Session(); - //expect(instance).to.be(); - }); - - it('should have the property scope (base name: "scope")', function() { - // uncomment below and update the code to test the property scope - //var instane = new OryOathkeeper.AuthenticationOAuth2Session(); - //expect(instance).to.be(); - }); - - it('should have the property session (base name: "session")', function() { - // uncomment below and update the code to test the property session - //var instane = new OryOathkeeper.AuthenticationOAuth2Session(); - //expect(instance).to.be(); - }); - - it('should have the property sub (base name: "sub")', function() { - // uncomment below and update the code to test the property sub - //var instane = new OryOathkeeper.AuthenticationOAuth2Session(); - //expect(instance).to.be(); - }); - - it('should have the property username (base name: "username")', function() { - // uncomment below and update the code to test the property username - //var instane = new OryOathkeeper.AuthenticationOAuth2Session(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/Authenticator.spec.js b/sdk/js/swagger/test/model/Authenticator.spec.js deleted file mode 100644 index 80cfcf3c28..0000000000 --- a/sdk/js/swagger/test/model/Authenticator.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.Authenticator(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Authenticator', function() { - it('should create an instance of Authenticator', function() { - // uncomment below and update the code to test Authenticator - //var instane = new OryOathkeeper.Authenticator(); - //expect(instance).to.be.a(OryOathkeeper.Authenticator); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/HealthNotReadyStatus.spec.js b/sdk/js/swagger/test/model/HealthNotReadyStatus.spec.js deleted file mode 100644 index ab308bdded..0000000000 --- a/sdk/js/swagger/test/model/HealthNotReadyStatus.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.HealthNotReadyStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('HealthNotReadyStatus', function() { - it('should create an instance of HealthNotReadyStatus', function() { - // uncomment below and update the code to test HealthNotReadyStatus - //var instane = new OryOathkeeper.HealthNotReadyStatus(); - //expect(instance).to.be.a(OryOathkeeper.HealthNotReadyStatus); - }); - - it('should have the property errors (base name: "errors")', function() { - // uncomment below and update the code to test the property errors - //var instane = new OryOathkeeper.HealthNotReadyStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/HealthStatus.spec.js b/sdk/js/swagger/test/model/HealthStatus.spec.js deleted file mode 100644 index 39950455f7..0000000000 --- a/sdk/js/swagger/test/model/HealthStatus.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.HealthStatus(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('HealthStatus', function() { - it('should create an instance of HealthStatus', function() { - // uncomment below and update the code to test HealthStatus - //var instane = new OryOathkeeper.HealthStatus(); - //expect(instance).to.be.a(OryOathkeeper.HealthStatus); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new OryOathkeeper.HealthStatus(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/InlineResponse401.spec.js b/sdk/js/swagger/test/model/InlineResponse401.spec.js deleted file mode 100644 index 67d5707ec6..0000000000 --- a/sdk/js/swagger/test/model/InlineResponse401.spec.js +++ /dev/null @@ -1,98 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.InlineResponse401(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InlineResponse401', function() { - it('should create an instance of InlineResponse401', function() { - // uncomment below and update the code to test InlineResponse401 - //var instane = new OryOathkeeper.InlineResponse401(); - //expect(instance).to.be.a(OryOathkeeper.InlineResponse401); - }); - - it('should have the property code (base name: "code")', function() { - // uncomment below and update the code to test the property code - //var instane = new OryOathkeeper.InlineResponse401(); - //expect(instance).to.be(); - }); - - it('should have the property details (base name: "details")', function() { - // uncomment below and update the code to test the property details - //var instane = new OryOathkeeper.InlineResponse401(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instane = new OryOathkeeper.InlineResponse401(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new OryOathkeeper.InlineResponse401(); - //expect(instance).to.be(); - }); - - it('should have the property request (base name: "request")', function() { - // uncomment below and update the code to test the property request - //var instane = new OryOathkeeper.InlineResponse401(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new OryOathkeeper.InlineResponse401(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/IntrospectionResponse.spec.js b/sdk/js/swagger/test/model/IntrospectionResponse.spec.js deleted file mode 100644 index 47189ba5a2..0000000000 --- a/sdk/js/swagger/test/model/IntrospectionResponse.spec.js +++ /dev/null @@ -1,134 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.IntrospectionResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('IntrospectionResponse', function() { - it('should create an instance of IntrospectionResponse', function() { - // uncomment below and update the code to test IntrospectionResponse - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be.a(OryOathkeeper.IntrospectionResponse); - }); - - it('should have the property active (base name: "active")', function() { - // uncomment below and update the code to test the property active - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property aud (base name: "aud")', function() { - // uncomment below and update the code to test the property aud - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property clientId (base name: "client_id")', function() { - // uncomment below and update the code to test the property clientId - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property exp (base name: "exp")', function() { - // uncomment below and update the code to test the property exp - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property ext (base name: "ext")', function() { - // uncomment below and update the code to test the property ext - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property iat (base name: "iat")', function() { - // uncomment below and update the code to test the property iat - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property iss (base name: "iss")', function() { - // uncomment below and update the code to test the property iss - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property nbf (base name: "nbf")', function() { - // uncomment below and update the code to test the property nbf - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property scope (base name: "scope")', function() { - // uncomment below and update the code to test the property scope - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property sub (base name: "sub")', function() { - // uncomment below and update the code to test the property sub - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property tokenType (base name: "token_type")', function() { - // uncomment below and update the code to test the property tokenType - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property username (base name: "username")', function() { - // uncomment below and update the code to test the property username - //var instane = new OryOathkeeper.IntrospectionResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/JsonWebKey.spec.js b/sdk/js/swagger/test/model/JsonWebKey.spec.js deleted file mode 100644 index c980fbcc8c..0000000000 --- a/sdk/js/swagger/test/model/JsonWebKey.spec.js +++ /dev/null @@ -1,164 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.JsonWebKey(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('JsonWebKey', function() { - it('should create an instance of JsonWebKey', function() { - // uncomment below and update the code to test JsonWebKey - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be.a(OryOathkeeper.JsonWebKey); - }); - - it('should have the property alg (base name: "alg")', function() { - // uncomment below and update the code to test the property alg - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property crv (base name: "crv")', function() { - // uncomment below and update the code to test the property crv - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property d (base name: "d")', function() { - // uncomment below and update the code to test the property d - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property dp (base name: "dp")', function() { - // uncomment below and update the code to test the property dp - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property dq (base name: "dq")', function() { - // uncomment below and update the code to test the property dq - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property e (base name: "e")', function() { - // uncomment below and update the code to test the property e - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property k (base name: "k")', function() { - // uncomment below and update the code to test the property k - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property kid (base name: "kid")', function() { - // uncomment below and update the code to test the property kid - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property kty (base name: "kty")', function() { - // uncomment below and update the code to test the property kty - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property n (base name: "n")', function() { - // uncomment below and update the code to test the property n - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property p (base name: "p")', function() { - // uncomment below and update the code to test the property p - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property q (base name: "q")', function() { - // uncomment below and update the code to test the property q - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property qi (base name: "qi")', function() { - // uncomment below and update the code to test the property qi - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property use (base name: "use")', function() { - // uncomment below and update the code to test the property use - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property x (base name: "x")', function() { - // uncomment below and update the code to test the property x - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property x5c (base name: "x5c")', function() { - // uncomment below and update the code to test the property x5c - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - it('should have the property y (base name: "y")', function() { - // uncomment below and update the code to test the property y - //var instane = new OryOathkeeper.JsonWebKey(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/JsonWebKeySet.spec.js b/sdk/js/swagger/test/model/JsonWebKeySet.spec.js deleted file mode 100644 index 8dd5b2e414..0000000000 --- a/sdk/js/swagger/test/model/JsonWebKeySet.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.JsonWebKeySet(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('JsonWebKeySet', function() { - it('should create an instance of JsonWebKeySet', function() { - // uncomment below and update the code to test JsonWebKeySet - //var instane = new OryOathkeeper.JsonWebKeySet(); - //expect(instance).to.be.a(OryOathkeeper.JsonWebKeySet); - }); - - it('should have the property keys (base name: "keys")', function() { - // uncomment below and update the code to test the property keys - //var instane = new OryOathkeeper.JsonWebKeySet(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/OAuth2ClientCredentialsAuthentication.spec.js b/sdk/js/swagger/test/model/OAuth2ClientCredentialsAuthentication.spec.js deleted file mode 100644 index 99362af452..0000000000 --- a/sdk/js/swagger/test/model/OAuth2ClientCredentialsAuthentication.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.OAuth2ClientCredentialsAuthentication(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OAuth2ClientCredentialsAuthentication', function() { - it('should create an instance of OAuth2ClientCredentialsAuthentication', function() { - // uncomment below and update the code to test OAuth2ClientCredentialsAuthentication - //var instane = new OryOathkeeper.OAuth2ClientCredentialsAuthentication(); - //expect(instance).to.be.a(OryOathkeeper.OAuth2ClientCredentialsAuthentication); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/OAuth2IntrospectionAuthentication.spec.js b/sdk/js/swagger/test/model/OAuth2IntrospectionAuthentication.spec.js deleted file mode 100644 index 35e7d2629d..0000000000 --- a/sdk/js/swagger/test/model/OAuth2IntrospectionAuthentication.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.OAuth2IntrospectionAuthentication(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OAuth2IntrospectionAuthentication', function() { - it('should create an instance of OAuth2IntrospectionAuthentication', function() { - // uncomment below and update the code to test OAuth2IntrospectionAuthentication - //var instane = new OryOathkeeper.OAuth2IntrospectionAuthentication(); - //expect(instance).to.be.a(OryOathkeeper.OAuth2IntrospectionAuthentication); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/Rule.spec.js b/sdk/js/swagger/test/model/Rule.spec.js deleted file mode 100644 index dc9f85f83a..0000000000 --- a/sdk/js/swagger/test/model/Rule.spec.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.Rule(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Rule', function() { - it('should create an instance of Rule', function() { - // uncomment below and update the code to test Rule - //var instane = new OryOathkeeper.Rule(); - //expect(instance).to.be.a(OryOathkeeper.Rule); - }); - - it('should have the property authenticators (base name: "authenticators")', function() { - // uncomment below and update the code to test the property authenticators - //var instane = new OryOathkeeper.Rule(); - //expect(instance).to.be(); - }); - - it('should have the property authorizer (base name: "authorizer")', function() { - // uncomment below and update the code to test the property authorizer - //var instane = new OryOathkeeper.Rule(); - //expect(instance).to.be(); - }); - - it('should have the property credentialsIssuer (base name: "credentials_issuer")', function() { - // uncomment below and update the code to test the property credentialsIssuer - //var instane = new OryOathkeeper.Rule(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instane = new OryOathkeeper.Rule(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new OryOathkeeper.Rule(); - //expect(instance).to.be(); - }); - - it('should have the property match (base name: "match")', function() { - // uncomment below and update the code to test the property match - //var instane = new OryOathkeeper.Rule(); - //expect(instance).to.be(); - }); - - it('should have the property upstream (base name: "upstream")', function() { - // uncomment below and update the code to test the property upstream - //var instane = new OryOathkeeper.Rule(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/RuleHandler.spec.js b/sdk/js/swagger/test/model/RuleHandler.spec.js deleted file mode 100644 index 4f72beb1a1..0000000000 --- a/sdk/js/swagger/test/model/RuleHandler.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.RuleHandler(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RuleHandler', function() { - it('should create an instance of RuleHandler', function() { - // uncomment below and update the code to test RuleHandler - //var instane = new OryOathkeeper.RuleHandler(); - //expect(instance).to.be.a(OryOathkeeper.RuleHandler); - }); - - it('should have the property config (base name: "config")', function() { - // uncomment below and update the code to test the property config - //var instane = new OryOathkeeper.RuleHandler(); - //expect(instance).to.be(); - }); - - it('should have the property handler (base name: "handler")', function() { - // uncomment below and update the code to test the property handler - //var instane = new OryOathkeeper.RuleHandler(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/RuleMatch.spec.js b/sdk/js/swagger/test/model/RuleMatch.spec.js deleted file mode 100644 index 2c7e9b3167..0000000000 --- a/sdk/js/swagger/test/model/RuleMatch.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.RuleMatch(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RuleMatch', function() { - it('should create an instance of RuleMatch', function() { - // uncomment below and update the code to test RuleMatch - //var instane = new OryOathkeeper.RuleMatch(); - //expect(instance).to.be.a(OryOathkeeper.RuleMatch); - }); - - it('should have the property methods (base name: "methods")', function() { - // uncomment below and update the code to test the property methods - //var instane = new OryOathkeeper.RuleMatch(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instane = new OryOathkeeper.RuleMatch(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/Session.spec.js b/sdk/js/swagger/test/model/Session.spec.js deleted file mode 100644 index 9d85259228..0000000000 --- a/sdk/js/swagger/test/model/Session.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.Session(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Session', function() { - it('should create an instance of Session', function() { - // uncomment below and update the code to test Session - //var instane = new OryOathkeeper.Session(); - //expect(instance).to.be.a(OryOathkeeper.Session); - }); - - it('should have the property getSubject (base name: "GetSubject")', function() { - // uncomment below and update the code to test the property getSubject - //var instane = new OryOathkeeper.Session(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerCreateRuleParameters.spec.js b/sdk/js/swagger/test/model/SwaggerCreateRuleParameters.spec.js deleted file mode 100644 index 5be31d2285..0000000000 --- a/sdk/js/swagger/test/model/SwaggerCreateRuleParameters.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.SwaggerCreateRuleParameters(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SwaggerCreateRuleParameters', function() { - it('should create an instance of SwaggerCreateRuleParameters', function() { - // uncomment below and update the code to test SwaggerCreateRuleParameters - //var instane = new OryOathkeeper.SwaggerCreateRuleParameters(); - //expect(instance).to.be.a(OryOathkeeper.SwaggerCreateRuleParameters); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new OryOathkeeper.SwaggerCreateRuleParameters(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerGetRuleParameters.spec.js b/sdk/js/swagger/test/model/SwaggerGetRuleParameters.spec.js deleted file mode 100644 index 37f352769c..0000000000 --- a/sdk/js/swagger/test/model/SwaggerGetRuleParameters.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.SwaggerGetRuleParameters(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SwaggerGetRuleParameters', function() { - it('should create an instance of SwaggerGetRuleParameters', function() { - // uncomment below and update the code to test SwaggerGetRuleParameters - //var instane = new OryOathkeeper.SwaggerGetRuleParameters(); - //expect(instance).to.be.a(OryOathkeeper.SwaggerGetRuleParameters); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new OryOathkeeper.SwaggerGetRuleParameters(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerListRulesParameters.spec.js b/sdk/js/swagger/test/model/SwaggerListRulesParameters.spec.js deleted file mode 100644 index 9292c75f24..0000000000 --- a/sdk/js/swagger/test/model/SwaggerListRulesParameters.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.SwaggerListRulesParameters(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SwaggerListRulesParameters', function() { - it('should create an instance of SwaggerListRulesParameters', function() { - // uncomment below and update the code to test SwaggerListRulesParameters - //var instane = new OryOathkeeper.SwaggerListRulesParameters(); - //expect(instance).to.be.a(OryOathkeeper.SwaggerListRulesParameters); - }); - - it('should have the property limit (base name: "limit")', function() { - // uncomment below and update the code to test the property limit - //var instane = new OryOathkeeper.SwaggerListRulesParameters(); - //expect(instance).to.be(); - }); - - it('should have the property offset (base name: "offset")', function() { - // uncomment below and update the code to test the property offset - //var instane = new OryOathkeeper.SwaggerListRulesParameters(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerRuleResponse.spec.js b/sdk/js/swagger/test/model/SwaggerRuleResponse.spec.js deleted file mode 100644 index b7493a8800..0000000000 --- a/sdk/js/swagger/test/model/SwaggerRuleResponse.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.SwaggerRuleResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SwaggerRuleResponse', function() { - it('should create an instance of SwaggerRuleResponse', function() { - // uncomment below and update the code to test SwaggerRuleResponse - //var instane = new OryOathkeeper.SwaggerRuleResponse(); - //expect(instance).to.be.a(OryOathkeeper.SwaggerRuleResponse); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new OryOathkeeper.SwaggerRuleResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerRulesResponse.spec.js b/sdk/js/swagger/test/model/SwaggerRulesResponse.spec.js deleted file mode 100644 index 4f1dd1bc6e..0000000000 --- a/sdk/js/swagger/test/model/SwaggerRulesResponse.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.SwaggerRulesResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SwaggerRulesResponse', function() { - it('should create an instance of SwaggerRulesResponse', function() { - // uncomment below and update the code to test SwaggerRulesResponse - //var instane = new OryOathkeeper.SwaggerRulesResponse(); - //expect(instance).to.be.a(OryOathkeeper.SwaggerRulesResponse); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new OryOathkeeper.SwaggerRulesResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerUpdateRuleParameters.spec.js b/sdk/js/swagger/test/model/SwaggerUpdateRuleParameters.spec.js deleted file mode 100644 index c55c86f734..0000000000 --- a/sdk/js/swagger/test/model/SwaggerUpdateRuleParameters.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.SwaggerUpdateRuleParameters(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SwaggerUpdateRuleParameters', function() { - it('should create an instance of SwaggerUpdateRuleParameters', function() { - // uncomment below and update the code to test SwaggerUpdateRuleParameters - //var instane = new OryOathkeeper.SwaggerUpdateRuleParameters(); - //expect(instance).to.be.a(OryOathkeeper.SwaggerUpdateRuleParameters); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new OryOathkeeper.SwaggerUpdateRuleParameters(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new OryOathkeeper.SwaggerUpdateRuleParameters(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/Upstream.spec.js b/sdk/js/swagger/test/model/Upstream.spec.js deleted file mode 100644 index f270fcf5bd..0000000000 --- a/sdk/js/swagger/test/model/Upstream.spec.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.Upstream(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Upstream', function() { - it('should create an instance of Upstream', function() { - // uncomment below and update the code to test Upstream - //var instane = new OryOathkeeper.Upstream(); - //expect(instance).to.be.a(OryOathkeeper.Upstream); - }); - - it('should have the property preserveHost (base name: "preserve_host")', function() { - // uncomment below and update the code to test the property preserveHost - //var instane = new OryOathkeeper.Upstream(); - //expect(instance).to.be(); - }); - - it('should have the property stripPath (base name: "strip_path")', function() { - // uncomment below and update the code to test the property stripPath - //var instane = new OryOathkeeper.Upstream(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instane = new OryOathkeeper.Upstream(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/Version.spec.js b/sdk/js/swagger/test/model/Version.spec.js deleted file mode 100644 index 694434e8a0..0000000000 --- a/sdk/js/swagger/test/model/Version.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * ORY Oathkeeper - * ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. - * - * OpenAPI spec version: Latest - * Contact: hi@ory.am - * - * 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. - define(['expect.js', '../../src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.OryOathkeeper); - } -}(this, function(expect, OryOathkeeper) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new OryOathkeeper.Version(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Version', function() { - it('should create an instance of Version', function() { - // uncomment below and update the code to test Version - //var instane = new OryOathkeeper.Version(); - //expect(instance).to.be.a(OryOathkeeper.Version); - }); - - it('should have the property version (base name: "version")', function() { - // uncomment below and update the code to test the property version - //var instane = new OryOathkeeper.Version(); - //expect(instance).to.be(); - }); - - }); - -}));