diff --git a/package.json b/package.json index 702901fbac..87556cc352 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "Apache 2.0", "main": "sdk/js/swagger/src/index.js", "scripts": { - "test": "./node_modules/mocha/bin/mocha --recursive" + "prettier": "prettier --single-quote --parser flow --no-semi --write \"sdk/js/**/*.js\"" }, "browser": { "fs": false @@ -14,8 +14,6 @@ "superagent": "3.5.2" }, "devDependencies": { - "mocha": "~2.3.4", - "sinon": "1.17.3", - "expect.js": "~0.3.1" + "prettier": "^1.7.4" } } diff --git a/scripts/run-gensdk.sh b/scripts/run-gensdk.sh index b74643a433..47783cad1d 100755 --- a/scripts/run-gensdk.sh +++ b/scripts/run-gensdk.sh @@ -21,3 +21,6 @@ git add -A . git checkout HEAD -- sdk/go/hydra/swagger/configuration.go git checkout HEAD -- sdk/go/hydra/swagger/api_client.go rm -f ./sdk/js/swagger/package.json +rm -rf ./sdk/js/swagger/test + +npm run prettier \ No newline at end of file diff --git a/sdk/js/swagger/src/ApiClient.js b/sdk/js/swagger/src/ApiClient.js index 2dc8d5888b..79c032cdc7 100644 --- a/sdk/js/swagger/src/ApiClient.js +++ b/sdk/js/swagger/src/ApiClient.js @@ -14,22 +14,25 @@ * */ -(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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.ApiClient = factory(root.superagent, root.querystring); + root.HydraOAuth2OpenIdConnectServer.ApiClient = factory( + root.superagent, + root.querystring + ) } -}(this, function(superagent, querystring) { - 'use strict'; +})(this, function(superagent, querystring) { + 'use strict' /** * @module ApiClient @@ -49,29 +52,29 @@ * @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 = { - 'basic': {type: 'basic'}, - 'oauth2': {type: 'oauth2'} - }; + basic: { type: 'basic' }, + oauth2: { type: 'oauth2' } + } /** * 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 @@ -79,24 +82,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. @@ -105,13 +107,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. @@ -122,21 +124,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.
@@ -150,8 +152,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. @@ -161,11 +165,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. @@ -175,28 +179,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: @@ -209,19 +213,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. @@ -254,7 +262,7 @@ * @const */ MULTI: 'multi' - }; + } /** * Builds a string representation of an array-type actual parameter, according to the given collection format. @@ -263,26 +271,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. @@ -290,40 +301,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. @@ -336,17 +347,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. @@ -373,98 +389,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. @@ -472,8 +496,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. @@ -485,60 +509,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. @@ -549,21 +572,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/HealthApi.js b/sdk/js/swagger/src/api/HealthApi.js index 7535969179..bf3337fbf5 100644 --- a/sdk/js/swagger/src/api/HealthApi.js +++ b/sdk/js/swagger/src/api/HealthApi.js @@ -14,22 +14,33 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/InlineResponse200', 'model/InlineResponse401'], factory); + define( + ['ApiClient', 'model/InlineResponse200', '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/InlineResponse200'), require('../model/InlineResponse401')); + module.exports = factory( + require('../ApiClient'), + require('../model/InlineResponse200'), + require('../model/InlineResponse401') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.HealthApi = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.InlineResponse200, root.HydraOAuth2OpenIdConnectServer.InlineResponse401); + root.HydraOAuth2OpenIdConnectServer.HealthApi = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.InlineResponse200, + root.HydraOAuth2OpenIdConnectServer.InlineResponse401 + ) } -}(this, function(ApiClient, InlineResponse200, InlineResponse401) { - 'use strict'; +})(this, function(ApiClient, InlineResponse200, InlineResponse401) { + 'use strict' /** * Health service. @@ -45,8 +56,7 @@ * 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 getInstanceMetrics operation. @@ -62,28 +72,32 @@ * @param {module:api/HealthApi~getInstanceMetricsCallback} callback The callback function, accepting three arguments: error, data, response */ this.getInstanceMetrics = 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 = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/health/metrics', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/health/metrics', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -101,30 +115,37 @@ * data is of type: {@link module:model/InlineResponse200} */ this.getInstanceStatus = 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', 'application/x-www-form-urlencoded']; - var accepts = ['application/json']; - var returnType = InlineResponse200; + var authNames = [] + var contentTypes = [ + 'application/json', + 'application/x-www-form-urlencoded' + ] + var accepts = ['application/json'] + var returnType = InlineResponse200 return this.apiClient.callApi( - '/health/status', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/health/status', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } - }; + } - return exports; -})); + return exports +}) diff --git a/sdk/js/swagger/src/api/JsonWebKeyApi.js b/sdk/js/swagger/src/api/JsonWebKeyApi.js index b551205246..fea352f5d8 100644 --- a/sdk/js/swagger/src/api/JsonWebKeyApi.js +++ b/sdk/js/swagger/src/api/JsonWebKeyApi.js @@ -14,22 +14,49 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/InlineResponse401', 'model/JsonWebKey', 'model/JsonWebKeySet', 'model/JsonWebKeySetGeneratorRequest'], factory); + define( + [ + 'ApiClient', + 'model/InlineResponse401', + 'model/JsonWebKey', + 'model/JsonWebKeySet', + 'model/JsonWebKeySetGeneratorRequest' + ], + 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/JsonWebKey'), require('../model/JsonWebKeySet'), require('../model/JsonWebKeySetGeneratorRequest')); + module.exports = factory( + require('../ApiClient'), + require('../model/InlineResponse401'), + require('../model/JsonWebKey'), + require('../model/JsonWebKeySet'), + require('../model/JsonWebKeySetGeneratorRequest') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.JsonWebKeyApi = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.InlineResponse401, root.HydraOAuth2OpenIdConnectServer.JsonWebKey, root.HydraOAuth2OpenIdConnectServer.JsonWebKeySet, root.HydraOAuth2OpenIdConnectServer.JsonWebKeySetGeneratorRequest); + root.HydraOAuth2OpenIdConnectServer.JsonWebKeyApi = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.InlineResponse401, + root.HydraOAuth2OpenIdConnectServer.JsonWebKey, + root.HydraOAuth2OpenIdConnectServer.JsonWebKeySet, + root.HydraOAuth2OpenIdConnectServer.JsonWebKeySetGeneratorRequest + ) } -}(this, function(ApiClient, InlineResponse401, JsonWebKey, JsonWebKeySet, JsonWebKeySetGeneratorRequest) { - 'use strict'; +})(this, function( + ApiClient, + InlineResponse401, + JsonWebKey, + JsonWebKeySet, + JsonWebKeySetGeneratorRequest +) { + 'use strict' /** * JsonWebKey service. @@ -45,8 +72,7 @@ * 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 createJsonWebKeySet operation. @@ -66,35 +92,42 @@ * data is of type: {@link module:model/JsonWebKeySet} */ this.createJsonWebKeySet = function(set, opts, callback) { - opts = opts || {}; - var postBody = opts['body']; + opts = opts || {} + var postBody = opts['body'] // verify the required parameter 'set' is set if (set === undefined || set === null) { - throw new Error("Missing the required parameter 'set' when calling createJsonWebKeySet"); + throw new Error( + "Missing the required parameter 'set' when calling createJsonWebKeySet" + ) } - var pathParams = { - 'set': set - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = JsonWebKeySet; + set: set + } + var queryParams = {} + var headerParams = {} + var formParams = {} + + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = JsonWebKeySet return this.apiClient.callApi( - '/keys/{set}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/keys/{set}', + 'POST', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -113,40 +146,49 @@ * @param {module:api/JsonWebKeyApi~deleteJsonWebKeyCallback} callback The callback function, accepting three arguments: error, data, response */ this.deleteJsonWebKey = function(kid, set, callback) { - var postBody = null; + var postBody = null // verify the required parameter 'kid' is set if (kid === undefined || kid === null) { - throw new Error("Missing the required parameter 'kid' when calling deleteJsonWebKey"); + throw new Error( + "Missing the required parameter 'kid' when calling deleteJsonWebKey" + ) } // verify the required parameter 'set' is set if (set === undefined || set === null) { - throw new Error("Missing the required parameter 'set' when calling deleteJsonWebKey"); + throw new Error( + "Missing the required parameter 'set' when calling deleteJsonWebKey" + ) } - var pathParams = { - 'kid': kid, - 'set': set - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; + kid: kid, + set: set + } + var queryParams = {} + var headerParams = {} + var formParams = {} + + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/keys/{set}/{kid}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/keys/{set}/{kid}', + 'DELETE', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -164,34 +206,41 @@ * @param {module:api/JsonWebKeyApi~deleteJsonWebKeySetCallback} callback The callback function, accepting three arguments: error, data, response */ this.deleteJsonWebKeySet = function(set, callback) { - var postBody = null; + var postBody = null // verify the required parameter 'set' is set if (set === undefined || set === null) { - throw new Error("Missing the required parameter 'set' when calling deleteJsonWebKeySet"); + throw new Error( + "Missing the required parameter 'set' when calling deleteJsonWebKeySet" + ) } - var pathParams = { - 'set': set - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; + set: set + } + var queryParams = {} + var headerParams = {} + var formParams = {} + + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/keys/{set}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/keys/{set}', + 'DELETE', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -211,40 +260,49 @@ * data is of type: {@link module:model/JsonWebKeySet} */ this.getJsonWebKey = function(kid, set, callback) { - var postBody = null; + var postBody = null // verify the required parameter 'kid' is set if (kid === undefined || kid === null) { - throw new Error("Missing the required parameter 'kid' when calling getJsonWebKey"); + throw new Error( + "Missing the required parameter 'kid' when calling getJsonWebKey" + ) } // verify the required parameter 'set' is set if (set === undefined || set === null) { - throw new Error("Missing the required parameter 'set' when calling getJsonWebKey"); + throw new Error( + "Missing the required parameter 'set' when calling getJsonWebKey" + ) } - var pathParams = { - 'kid': kid, - 'set': set - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = JsonWebKeySet; + kid: kid, + set: set + } + var queryParams = {} + var headerParams = {} + var formParams = {} + + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = JsonWebKeySet return this.apiClient.callApi( - '/keys/{set}/{kid}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/keys/{set}/{kid}', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -263,34 +321,41 @@ * data is of type: {@link module:model/JsonWebKeySet} */ this.getJsonWebKeySet = function(set, callback) { - var postBody = null; + var postBody = null // verify the required parameter 'set' is set if (set === undefined || set === null) { - throw new Error("Missing the required parameter 'set' when calling getJsonWebKeySet"); + throw new Error( + "Missing the required parameter 'set' when calling getJsonWebKeySet" + ) } - var pathParams = { - 'set': set - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = JsonWebKeySet; + set: set + } + var queryParams = {} + var headerParams = {} + var formParams = {} + + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = JsonWebKeySet return this.apiClient.callApi( - '/keys/{set}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/keys/{set}', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -312,41 +377,50 @@ * data is of type: {@link module:model/JsonWebKey} */ this.updateJsonWebKey = function(kid, set, opts, callback) { - opts = opts || {}; - var postBody = opts['body']; + opts = opts || {} + var postBody = opts['body'] // verify the required parameter 'kid' is set if (kid === undefined || kid === null) { - throw new Error("Missing the required parameter 'kid' when calling updateJsonWebKey"); + throw new Error( + "Missing the required parameter 'kid' when calling updateJsonWebKey" + ) } // verify the required parameter 'set' is set if (set === undefined || set === null) { - throw new Error("Missing the required parameter 'set' when calling updateJsonWebKey"); + throw new Error( + "Missing the required parameter 'set' when calling updateJsonWebKey" + ) } - var pathParams = { - 'kid': kid, - 'set': set - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = JsonWebKey; + kid: kid, + set: set + } + var queryParams = {} + var headerParams = {} + var formParams = {} + + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = JsonWebKey return this.apiClient.callApi( - '/keys/{set}/{kid}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/keys/{set}/{kid}', + 'PUT', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -367,37 +441,44 @@ * data is of type: {@link module:model/JsonWebKeySet} */ this.updateJsonWebKeySet = function(set, opts, callback) { - opts = opts || {}; - var postBody = opts['body']; + opts = opts || {} + var postBody = opts['body'] // verify the required parameter 'set' is set if (set === undefined || set === null) { - throw new Error("Missing the required parameter 'set' when calling updateJsonWebKeySet"); + throw new Error( + "Missing the required parameter 'set' when calling updateJsonWebKeySet" + ) } - var pathParams = { - 'set': set - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = JsonWebKeySet; + set: set + } + var queryParams = {} + var headerParams = {} + var formParams = {} + + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = JsonWebKeySet return this.apiClient.callApi( - '/keys/{set}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/keys/{set}', + 'PUT', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } - }; + } - return exports; -})); + return exports +}) diff --git a/sdk/js/swagger/src/api/OAuth2Api.js b/sdk/js/swagger/src/api/OAuth2Api.js index a79e8fe1b3..c40d6df41f 100644 --- a/sdk/js/swagger/src/api/OAuth2Api.js +++ b/sdk/js/swagger/src/api/OAuth2Api.js @@ -14,22 +14,69 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/ConsentRequestAcceptance', 'model/ConsentRequestRejection', 'model/InlineResponse2001', 'model/InlineResponse401', 'model/JsonWebKeySet', 'model/OAuth2Client', 'model/OAuth2ConsentRequest', 'model/OAuth2TokenIntrospection', 'model/WellKnown'], factory); + define( + [ + 'ApiClient', + 'model/ConsentRequestAcceptance', + 'model/ConsentRequestRejection', + 'model/InlineResponse2001', + 'model/InlineResponse401', + 'model/JsonWebKeySet', + 'model/OAuth2Client', + 'model/OAuth2ConsentRequest', + 'model/OAuth2TokenIntrospection', + 'model/WellKnown' + ], + factory + ) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/ConsentRequestAcceptance'), require('../model/ConsentRequestRejection'), require('../model/InlineResponse2001'), require('../model/InlineResponse401'), require('../model/JsonWebKeySet'), require('../model/OAuth2Client'), require('../model/OAuth2ConsentRequest'), require('../model/OAuth2TokenIntrospection'), require('../model/WellKnown')); + module.exports = factory( + require('../ApiClient'), + require('../model/ConsentRequestAcceptance'), + require('../model/ConsentRequestRejection'), + require('../model/InlineResponse2001'), + require('../model/InlineResponse401'), + require('../model/JsonWebKeySet'), + require('../model/OAuth2Client'), + require('../model/OAuth2ConsentRequest'), + require('../model/OAuth2TokenIntrospection'), + require('../model/WellKnown') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.OAuth2Api = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance, root.HydraOAuth2OpenIdConnectServer.ConsentRequestRejection, root.HydraOAuth2OpenIdConnectServer.InlineResponse2001, root.HydraOAuth2OpenIdConnectServer.InlineResponse401, root.HydraOAuth2OpenIdConnectServer.JsonWebKeySet, root.HydraOAuth2OpenIdConnectServer.OAuth2Client, root.HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest, root.HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection, root.HydraOAuth2OpenIdConnectServer.WellKnown); + root.HydraOAuth2OpenIdConnectServer.OAuth2Api = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance, + root.HydraOAuth2OpenIdConnectServer.ConsentRequestRejection, + root.HydraOAuth2OpenIdConnectServer.InlineResponse2001, + root.HydraOAuth2OpenIdConnectServer.InlineResponse401, + root.HydraOAuth2OpenIdConnectServer.JsonWebKeySet, + root.HydraOAuth2OpenIdConnectServer.OAuth2Client, + root.HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest, + root.HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection, + root.HydraOAuth2OpenIdConnectServer.WellKnown + ) } -}(this, function(ApiClient, ConsentRequestAcceptance, ConsentRequestRejection, InlineResponse2001, InlineResponse401, JsonWebKeySet, OAuth2Client, OAuth2ConsentRequest, OAuth2TokenIntrospection, WellKnown) { - 'use strict'; +})(this, function( + ApiClient, + ConsentRequestAcceptance, + ConsentRequestRejection, + InlineResponse2001, + InlineResponse401, + JsonWebKeySet, + OAuth2Client, + OAuth2ConsentRequest, + OAuth2TokenIntrospection, + WellKnown +) { + 'use strict' /** * OAuth2 service. @@ -45,8 +92,7 @@ * 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 acceptOAuth2ConsentRequest operation. @@ -64,39 +110,48 @@ * @param {module:api/OAuth2Api~acceptOAuth2ConsentRequestCallback} callback The callback function, accepting three arguments: error, data, response */ this.acceptOAuth2ConsentRequest = function(id, body, callback) { - var postBody = body; + var postBody = body // verify the required parameter 'id' is set if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling acceptOAuth2ConsentRequest"); + throw new Error( + "Missing the required parameter 'id' when calling acceptOAuth2ConsentRequest" + ) } // verify the required parameter 'body' is set if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling acceptOAuth2ConsentRequest"); + throw new Error( + "Missing the required parameter 'body' when calling acceptOAuth2ConsentRequest" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/oauth2/consent/requests/{id}/accept', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/oauth2/consent/requests/{id}/accept', + 'PATCH', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -115,33 +170,39 @@ * data is of type: {@link module:model/OAuth2Client} */ this.createOAuth2Client = function(body, callback) { - var postBody = body; + var postBody = body // verify the required parameter 'body' is set if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createOAuth2Client"); + throw new Error( + "Missing the required parameter 'body' when calling createOAuth2Client" + ) } + var pathParams = {} + var queryParams = {} + var headerParams = {} + var formParams = {} - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = OAuth2Client; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = OAuth2Client return this.apiClient.callApi( - '/clients', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/clients', + 'POST', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -159,34 +220,41 @@ * @param {module:api/OAuth2Api~deleteOAuth2ClientCallback} callback The callback function, accepting three arguments: error, data, response */ this.deleteOAuth2Client = 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 deleteOAuth2Client"); + throw new Error( + "Missing the required parameter 'id' when calling deleteOAuth2Client" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/clients/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/clients/{id}', + 'DELETE', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -205,34 +273,41 @@ * data is of type: {@link module:model/OAuth2Client} */ this.getOAuth2Client = 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 getOAuth2Client"); + throw new Error( + "Missing the required parameter 'id' when calling getOAuth2Client" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = OAuth2Client; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = OAuth2Client return this.apiClient.callApi( - '/clients/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/clients/{id}', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -251,34 +326,41 @@ * data is of type: {@link module:model/OAuth2ConsentRequest} */ this.getOAuth2ConsentRequest = 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 getOAuth2ConsentRequest"); + throw new Error( + "Missing the required parameter 'id' when calling getOAuth2ConsentRequest" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = OAuth2ConsentRequest; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = OAuth2ConsentRequest return this.apiClient.callApi( - '/oauth2/consent/requests/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/oauth2/consent/requests/{id}', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -296,28 +378,35 @@ * data is of type: {@link module:model/WellKnown} */ 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', 'application/x-www-form-urlencoded']; - var accepts = ['application/json']; - var returnType = WellKnown; + var authNames = [] + var contentTypes = [ + 'application/json', + 'application/x-www-form-urlencoded' + ] + var accepts = ['application/json'] + var returnType = WellKnown return this.apiClient.callApi( - '/.well-known/openid-configuration', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/.well-known/openid-configuration', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -338,36 +427,43 @@ * data is of type: {@link module:model/OAuth2TokenIntrospection} */ this.introspectOAuth2Token = function(token, opts, callback) { - opts = opts || {}; - var postBody = null; + opts = opts || {} + var postBody = null // verify the required parameter 'token' is set if (token === undefined || token === null) { - throw new Error("Missing the required parameter 'token' when calling introspectOAuth2Token"); + throw new Error( + "Missing the required parameter 'token' when calling introspectOAuth2Token" + ) } - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; + var pathParams = {} + var queryParams = {} + var headerParams = {} var formParams = { - 'token': token, - 'scope': opts['scope'] - }; + token: token, + scope: opts['scope'] + } - var authNames = ['basic', 'oauth2']; - var contentTypes = ['application/x-www-form-urlencoded']; - var accepts = ['application/json']; - var returnType = OAuth2TokenIntrospection; + var authNames = ['basic', 'oauth2'] + var contentTypes = ['application/x-www-form-urlencoded'] + var accepts = ['application/json'] + var returnType = OAuth2TokenIntrospection return this.apiClient.callApi( - '/oauth2/introspect', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/oauth2/introspect', + 'POST', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -385,28 +481,32 @@ * data is of type: {@link Array.} */ this.listOAuth2Clients = 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 = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = [OAuth2Client]; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = [OAuth2Client] return this.apiClient.callApi( - '/clients', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/clients', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -423,28 +523,32 @@ * @param {module:api/OAuth2Api~oauthAuthCallback} callback The callback function, accepting three arguments: error, data, response */ this.oauthAuth = 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/x-www-form-urlencoded']; - var accepts = ['application/json']; - var returnType = null; + var authNames = [] + var contentTypes = ['application/x-www-form-urlencoded'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/oauth2/auth', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/oauth2/auth', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -462,28 +566,32 @@ * data is of type: {@link module:model/InlineResponse2001} */ this.oauthToken = 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 = ['basic', 'oauth2']; - var contentTypes = ['application/x-www-form-urlencoded']; - var accepts = ['application/json']; - var returnType = InlineResponse2001; + var authNames = ['basic', 'oauth2'] + var contentTypes = ['application/x-www-form-urlencoded'] + var accepts = ['application/json'] + var returnType = InlineResponse2001 return this.apiClient.callApi( - '/oauth2/token', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/oauth2/token', + 'POST', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -502,39 +610,48 @@ * @param {module:api/OAuth2Api~rejectOAuth2ConsentRequestCallback} callback The callback function, accepting three arguments: error, data, response */ this.rejectOAuth2ConsentRequest = function(id, body, callback) { - var postBody = body; + var postBody = body // verify the required parameter 'id' is set if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling rejectOAuth2ConsentRequest"); + throw new Error( + "Missing the required parameter 'id' when calling rejectOAuth2ConsentRequest" + ) } // verify the required parameter 'body' is set if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling rejectOAuth2ConsentRequest"); + throw new Error( + "Missing the required parameter 'body' when calling rejectOAuth2ConsentRequest" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/oauth2/consent/requests/{id}/reject', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/oauth2/consent/requests/{id}/reject', + 'PATCH', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -552,34 +669,41 @@ * @param {module:api/OAuth2Api~revokeOAuth2TokenCallback} callback The callback function, accepting three arguments: error, data, response */ this.revokeOAuth2Token = function(token, callback) { - var postBody = null; + var postBody = null // verify the required parameter 'token' is set if (token === undefined || token === null) { - throw new Error("Missing the required parameter 'token' when calling revokeOAuth2Token"); + throw new Error( + "Missing the required parameter 'token' when calling revokeOAuth2Token" + ) } - - var pathParams = { - }; - var queryParams = { - }; - var headerParams = { - }; + var pathParams = {} + var queryParams = {} + var headerParams = {} var formParams = { - 'token': token - }; + token: token + } - var authNames = ['basic']; - var contentTypes = ['application/x-www-form-urlencoded']; - var accepts = ['application/json']; - var returnType = null; + var authNames = ['basic'] + var contentTypes = ['application/x-www-form-urlencoded'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/oauth2/revoke', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/oauth2/revoke', + 'POST', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -599,39 +723,48 @@ * data is of type: {@link module:model/OAuth2Client} */ this.updateOAuth2Client = function(id, body, callback) { - var postBody = body; + var postBody = body // verify the required parameter 'id' is set if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateOAuth2Client"); + throw new Error( + "Missing the required parameter 'id' when calling updateOAuth2Client" + ) } // verify the required parameter 'body' is set if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateOAuth2Client"); + throw new Error( + "Missing the required parameter 'body' when calling updateOAuth2Client" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = OAuth2Client; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = OAuth2Client return this.apiClient.callApi( - '/clients/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/clients/{id}', + 'PUT', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -649,30 +782,34 @@ * data is of type: {@link module:model/JsonWebKeySet} */ this.wellKnown = 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 = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = JsonWebKeySet; + var authNames = ['oauth2'] + 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/PolicyApi.js b/sdk/js/swagger/src/api/PolicyApi.js index 3167c89199..23c54bd149 100644 --- a/sdk/js/swagger/src/api/PolicyApi.js +++ b/sdk/js/swagger/src/api/PolicyApi.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/Policy'], factory); + define(['ApiClient', 'model/InlineResponse401', 'model/Policy'], 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/Policy')); + module.exports = factory( + require('../ApiClient'), + require('../model/InlineResponse401'), + require('../model/Policy') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.PolicyApi = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.InlineResponse401, root.HydraOAuth2OpenIdConnectServer.Policy); + root.HydraOAuth2OpenIdConnectServer.PolicyApi = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.InlineResponse401, + root.HydraOAuth2OpenIdConnectServer.Policy + ) } -}(this, function(ApiClient, InlineResponse401, Policy) { - 'use strict'; +})(this, function(ApiClient, InlineResponse401, Policy) { + 'use strict' /** * Policy service. @@ -45,8 +53,7 @@ * 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 createPolicy operation. @@ -65,29 +72,33 @@ * data is of type: {@link module:model/Policy} */ this.createPolicy = 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 = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Policy; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = Policy return this.apiClient.callApi( - '/policies', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/policies', + 'POST', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -105,34 +116,41 @@ * @param {module:api/PolicyApi~deletePolicyCallback} callback The callback function, accepting three arguments: error, data, response */ this.deletePolicy = 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 deletePolicy"); + throw new Error( + "Missing the required parameter 'id' when calling deletePolicy" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/policies/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/policies/{id}', + 'DELETE', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -151,34 +169,41 @@ * data is of type: {@link module:model/Policy} */ this.getPolicy = 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 getPolicy"); + throw new Error( + "Missing the required parameter 'id' when calling getPolicy" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Policy; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = Policy return this.apiClient.callApi( - '/policies/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/policies/{id}', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -199,31 +224,36 @@ * data is of type: {@link Array.} */ this.listPolicies = function(opts, callback) { - opts = opts || {}; - var postBody = null; - + opts = opts || {} + var postBody = null - var pathParams = { - }; + var pathParams = {} var queryParams = { - 'offset': opts['offset'], - 'limit': opts['limit'] - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = [Policy]; + offset: opts['offset'], + limit: opts['limit'] + } + var headerParams = {} + var formParams = {} + + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = [Policy] return this.apiClient.callApi( - '/policies', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/policies', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -244,37 +274,44 @@ * data is of type: {@link module:model/Policy} */ this.updatePolicy = 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 updatePolicy"); + throw new Error( + "Missing the required parameter 'id' when calling updatePolicy" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Policy; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = Policy return this.apiClient.callApi( - '/policies/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/policies/{id}', + 'PUT', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } - }; + } - return exports; -})); + return exports +}) diff --git a/sdk/js/swagger/src/api/WardenApi.js b/sdk/js/swagger/src/api/WardenApi.js index b1a8fcaf8c..177dd77a94 100644 --- a/sdk/js/swagger/src/api/WardenApi.js +++ b/sdk/js/swagger/src/api/WardenApi.js @@ -14,22 +14,61 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Group', 'model/GroupMembers', 'model/InlineResponse401', 'model/WardenAccessRequest', 'model/WardenAccessRequestResponse', 'model/WardenTokenAccessRequest', 'model/WardenTokenAccessRequestResponse'], factory); + define( + [ + 'ApiClient', + 'model/Group', + 'model/GroupMembers', + 'model/InlineResponse401', + 'model/WardenAccessRequest', + 'model/WardenAccessRequestResponse', + 'model/WardenTokenAccessRequest', + 'model/WardenTokenAccessRequestResponse' + ], + factory + ) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('../model/Group'), require('../model/GroupMembers'), require('../model/InlineResponse401'), require('../model/WardenAccessRequest'), require('../model/WardenAccessRequestResponse'), require('../model/WardenTokenAccessRequest'), require('../model/WardenTokenAccessRequestResponse')); + module.exports = factory( + require('../ApiClient'), + require('../model/Group'), + require('../model/GroupMembers'), + require('../model/InlineResponse401'), + require('../model/WardenAccessRequest'), + require('../model/WardenAccessRequestResponse'), + require('../model/WardenTokenAccessRequest'), + require('../model/WardenTokenAccessRequestResponse') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.WardenApi = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.Group, root.HydraOAuth2OpenIdConnectServer.GroupMembers, root.HydraOAuth2OpenIdConnectServer.InlineResponse401, root.HydraOAuth2OpenIdConnectServer.WardenAccessRequest, root.HydraOAuth2OpenIdConnectServer.WardenAccessRequestResponse, root.HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest, root.HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse); + root.HydraOAuth2OpenIdConnectServer.WardenApi = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.Group, + root.HydraOAuth2OpenIdConnectServer.GroupMembers, + root.HydraOAuth2OpenIdConnectServer.InlineResponse401, + root.HydraOAuth2OpenIdConnectServer.WardenAccessRequest, + root.HydraOAuth2OpenIdConnectServer.WardenAccessRequestResponse, + root.HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest, + root.HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse + ) } -}(this, function(ApiClient, Group, GroupMembers, InlineResponse401, WardenAccessRequest, WardenAccessRequestResponse, WardenTokenAccessRequest, WardenTokenAccessRequestResponse) { - 'use strict'; +})(this, function( + ApiClient, + Group, + GroupMembers, + InlineResponse401, + WardenAccessRequest, + WardenAccessRequestResponse, + WardenTokenAccessRequest, + WardenTokenAccessRequestResponse +) { + 'use strict' /** * Warden service. @@ -45,8 +84,7 @@ * 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 addMembersToGroup operation. @@ -65,35 +103,42 @@ * @param {module:api/WardenApi~addMembersToGroupCallback} callback The callback function, accepting three arguments: error, data, response */ this.addMembersToGroup = 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 addMembersToGroup"); + throw new Error( + "Missing the required parameter 'id' when calling addMembersToGroup" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/warden/groups/{id}/members', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/warden/groups/{id}/members', + 'POST', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -113,29 +158,33 @@ * data is of type: {@link module:model/Group} */ this.createGroup = 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 = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Group; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = Group return this.apiClient.callApi( - '/warden/groups', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/warden/groups', + 'POST', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -153,34 +202,41 @@ * @param {module:api/WardenApi~deleteGroupCallback} callback The callback function, accepting three arguments: error, data, response */ this.deleteGroup = 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 deleteGroup"); + throw new Error( + "Missing the required parameter 'id' when calling deleteGroup" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/warden/groups/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/warden/groups/{id}', + 'DELETE', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -200,29 +256,33 @@ * data is of type: {@link module:model/WardenAccessRequestResponse} */ this.doesWardenAllowAccessRequest = 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 = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = WardenAccessRequestResponse; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = WardenAccessRequestResponse return this.apiClient.callApi( - '/warden/allowed', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/warden/allowed', + 'POST', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -242,29 +302,33 @@ * data is of type: {@link module:model/WardenTokenAccessRequestResponse} */ this.doesWardenAllowTokenAccessRequest = 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 = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = WardenTokenAccessRequestResponse; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = WardenTokenAccessRequestResponse return this.apiClient.callApi( - '/warden/token/allowed', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/warden/token/allowed', + 'POST', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -283,34 +347,41 @@ * data is of type: {@link Array.} */ this.findGroupsByMember = function(member, callback) { - var postBody = null; + var postBody = null // verify the required parameter 'member' is set if (member === undefined || member === null) { - throw new Error("Missing the required parameter 'member' when calling findGroupsByMember"); + throw new Error( + "Missing the required parameter 'member' when calling findGroupsByMember" + ) } - - var pathParams = { - }; + var pathParams = {} var queryParams = { - 'member': member - }; - var headerParams = { - }; - var formParams = { - }; - - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = [Group]; + member: member + } + var headerParams = {} + var formParams = {} + + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = [Group] return this.apiClient.callApi( - '/warden/groups', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/warden/groups', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -329,34 +400,41 @@ * data is of type: {@link module:model/Group} */ this.getGroup = 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 getGroup"); + throw new Error( + "Missing the required parameter 'id' when calling getGroup" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Group; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = Group return this.apiClient.callApi( - '/warden/groups/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/warden/groups/{id}', + 'GET', + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + callback + ) } /** @@ -376,37 +454,44 @@ * @param {module:api/WardenApi~removeMembersFromGroupCallback} callback The callback function, accepting three arguments: error, data, response */ this.removeMembersFromGroup = 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 removeMembersFromGroup"); + throw new Error( + "Missing the required parameter 'id' when calling removeMembersFromGroup" + ) } - var pathParams = { - 'id': id - }; - var queryParams = { - }; - var headerParams = { - }; - var formParams = { - }; + id: id + } + var queryParams = {} + var headerParams = {} + var formParams = {} - var authNames = ['oauth2']; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; + var authNames = ['oauth2'] + var contentTypes = ['application/json'] + var accepts = ['application/json'] + var returnType = null return this.apiClient.callApi( - '/warden/groups/{id}/members', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, callback - ); + '/warden/groups/{id}/members', + 'DELETE', + 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 bda4590e34..8f8544fe3c 100644 --- a/sdk/js/swagger/src/index.js +++ b/sdk/js/swagger/src/index.js @@ -14,16 +14,202 @@ * */ -(function(factory) { +;(function(factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/ConsentRequest', 'model/ConsentRequestAcceptance', 'model/ConsentRequestManager', 'model/ConsentRequestRejection', 'model/Context', 'model/Firewall', 'model/Group', 'model/GroupMembers', 'model/Handler', 'model/InlineResponse200', 'model/InlineResponse2001', 'model/InlineResponse401', 'model/JoseWebKeySetRequest', 'model/JsonWebKey', 'model/JsonWebKeySet', 'model/JsonWebKeySetGeneratorRequest', 'model/KeyGenerator', 'model/Manager', 'model/OAuth2Client', 'model/OAuth2ConsentRequest', 'model/OAuth2TokenIntrospection', 'model/Policy', 'model/PolicyConditions', 'model/RawMessage', 'model/SwaggerAcceptConsentRequest', 'model/SwaggerCreatePolicyParameters', 'model/SwaggerDoesWardenAllowAccessRequestParameters', 'model/SwaggerDoesWardenAllowTokenAccessRequestParameters', 'model/SwaggerGetPolicyParameters', 'model/SwaggerJsonWebKeyQuery', 'model/SwaggerJwkCreateSet', 'model/SwaggerJwkSetQuery', 'model/SwaggerJwkUpdateSet', 'model/SwaggerJwkUpdateSetKey', 'model/SwaggerListPolicyParameters', 'model/SwaggerListPolicyResponse', 'model/SwaggerOAuthConsentRequest', 'model/SwaggerOAuthConsentRequestPayload', 'model/SwaggerOAuthIntrospectionRequest', 'model/SwaggerOAuthIntrospectionResponse', 'model/SwaggerOAuthTokenResponse', 'model/SwaggerOAuthTokenResponseBody', 'model/SwaggerRejectConsentRequest', 'model/SwaggerRevokeOAuth2TokenParameters', 'model/SwaggerUpdatePolicyParameters', 'model/SwaggerWardenAccessRequestResponseParameters', 'model/SwaggerWardenTokenAccessRequestResponse', 'model/TokenAllowedRequest', 'model/WardenAccessRequest', 'model/WardenAccessRequestResponse', 'model/WardenTokenAccessRequest', 'model/WardenTokenAccessRequestResponse', 'model/WellKnown', 'model/Writer', 'api/HealthApi', 'api/JsonWebKeyApi', 'api/OAuth2Api', 'api/PolicyApi', 'api/WardenApi'], factory); + define( + [ + 'ApiClient', + 'model/ConsentRequest', + 'model/ConsentRequestAcceptance', + 'model/ConsentRequestManager', + 'model/ConsentRequestRejection', + 'model/Context', + 'model/Firewall', + 'model/Group', + 'model/GroupMembers', + 'model/Handler', + 'model/InlineResponse200', + 'model/InlineResponse2001', + 'model/InlineResponse401', + 'model/JoseWebKeySetRequest', + 'model/JsonWebKey', + 'model/JsonWebKeySet', + 'model/JsonWebKeySetGeneratorRequest', + 'model/KeyGenerator', + 'model/Manager', + 'model/OAuth2Client', + 'model/OAuth2ConsentRequest', + 'model/OAuth2TokenIntrospection', + 'model/Policy', + 'model/PolicyConditions', + 'model/RawMessage', + 'model/SwaggerAcceptConsentRequest', + 'model/SwaggerCreatePolicyParameters', + 'model/SwaggerDoesWardenAllowAccessRequestParameters', + 'model/SwaggerDoesWardenAllowTokenAccessRequestParameters', + 'model/SwaggerGetPolicyParameters', + 'model/SwaggerJsonWebKeyQuery', + 'model/SwaggerJwkCreateSet', + 'model/SwaggerJwkSetQuery', + 'model/SwaggerJwkUpdateSet', + 'model/SwaggerJwkUpdateSetKey', + 'model/SwaggerListPolicyParameters', + 'model/SwaggerListPolicyResponse', + 'model/SwaggerOAuthConsentRequest', + 'model/SwaggerOAuthConsentRequestPayload', + 'model/SwaggerOAuthIntrospectionRequest', + 'model/SwaggerOAuthIntrospectionResponse', + 'model/SwaggerOAuthTokenResponse', + 'model/SwaggerOAuthTokenResponseBody', + 'model/SwaggerRejectConsentRequest', + 'model/SwaggerRevokeOAuth2TokenParameters', + 'model/SwaggerUpdatePolicyParameters', + 'model/SwaggerWardenAccessRequestResponseParameters', + 'model/SwaggerWardenTokenAccessRequestResponse', + 'model/TokenAllowedRequest', + 'model/WardenAccessRequest', + 'model/WardenAccessRequestResponse', + 'model/WardenTokenAccessRequest', + 'model/WardenTokenAccessRequestResponse', + 'model/WellKnown', + 'model/Writer', + 'api/HealthApi', + 'api/JsonWebKeyApi', + 'api/OAuth2Api', + 'api/PolicyApi', + 'api/WardenApi' + ], + factory + ) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('./ApiClient'), require('./model/ConsentRequest'), require('./model/ConsentRequestAcceptance'), require('./model/ConsentRequestManager'), require('./model/ConsentRequestRejection'), require('./model/Context'), require('./model/Firewall'), require('./model/Group'), require('./model/GroupMembers'), require('./model/Handler'), require('./model/InlineResponse200'), require('./model/InlineResponse2001'), require('./model/InlineResponse401'), require('./model/JoseWebKeySetRequest'), require('./model/JsonWebKey'), require('./model/JsonWebKeySet'), require('./model/JsonWebKeySetGeneratorRequest'), require('./model/KeyGenerator'), require('./model/Manager'), require('./model/OAuth2Client'), require('./model/OAuth2ConsentRequest'), require('./model/OAuth2TokenIntrospection'), require('./model/Policy'), require('./model/PolicyConditions'), require('./model/RawMessage'), require('./model/SwaggerAcceptConsentRequest'), require('./model/SwaggerCreatePolicyParameters'), require('./model/SwaggerDoesWardenAllowAccessRequestParameters'), require('./model/SwaggerDoesWardenAllowTokenAccessRequestParameters'), require('./model/SwaggerGetPolicyParameters'), require('./model/SwaggerJsonWebKeyQuery'), require('./model/SwaggerJwkCreateSet'), require('./model/SwaggerJwkSetQuery'), require('./model/SwaggerJwkUpdateSet'), require('./model/SwaggerJwkUpdateSetKey'), require('./model/SwaggerListPolicyParameters'), require('./model/SwaggerListPolicyResponse'), require('./model/SwaggerOAuthConsentRequest'), require('./model/SwaggerOAuthConsentRequestPayload'), require('./model/SwaggerOAuthIntrospectionRequest'), require('./model/SwaggerOAuthIntrospectionResponse'), require('./model/SwaggerOAuthTokenResponse'), require('./model/SwaggerOAuthTokenResponseBody'), require('./model/SwaggerRejectConsentRequest'), require('./model/SwaggerRevokeOAuth2TokenParameters'), require('./model/SwaggerUpdatePolicyParameters'), require('./model/SwaggerWardenAccessRequestResponseParameters'), require('./model/SwaggerWardenTokenAccessRequestResponse'), require('./model/TokenAllowedRequest'), require('./model/WardenAccessRequest'), require('./model/WardenAccessRequestResponse'), require('./model/WardenTokenAccessRequest'), require('./model/WardenTokenAccessRequestResponse'), require('./model/WellKnown'), require('./model/Writer'), require('./api/HealthApi'), require('./api/JsonWebKeyApi'), require('./api/OAuth2Api'), require('./api/PolicyApi'), require('./api/WardenApi')); + module.exports = factory( + require('./ApiClient'), + require('./model/ConsentRequest'), + require('./model/ConsentRequestAcceptance'), + require('./model/ConsentRequestManager'), + require('./model/ConsentRequestRejection'), + require('./model/Context'), + require('./model/Firewall'), + require('./model/Group'), + require('./model/GroupMembers'), + require('./model/Handler'), + require('./model/InlineResponse200'), + require('./model/InlineResponse2001'), + require('./model/InlineResponse401'), + require('./model/JoseWebKeySetRequest'), + require('./model/JsonWebKey'), + require('./model/JsonWebKeySet'), + require('./model/JsonWebKeySetGeneratorRequest'), + require('./model/KeyGenerator'), + require('./model/Manager'), + require('./model/OAuth2Client'), + require('./model/OAuth2ConsentRequest'), + require('./model/OAuth2TokenIntrospection'), + require('./model/Policy'), + require('./model/PolicyConditions'), + require('./model/RawMessage'), + require('./model/SwaggerAcceptConsentRequest'), + require('./model/SwaggerCreatePolicyParameters'), + require('./model/SwaggerDoesWardenAllowAccessRequestParameters'), + require('./model/SwaggerDoesWardenAllowTokenAccessRequestParameters'), + require('./model/SwaggerGetPolicyParameters'), + require('./model/SwaggerJsonWebKeyQuery'), + require('./model/SwaggerJwkCreateSet'), + require('./model/SwaggerJwkSetQuery'), + require('./model/SwaggerJwkUpdateSet'), + require('./model/SwaggerJwkUpdateSetKey'), + require('./model/SwaggerListPolicyParameters'), + require('./model/SwaggerListPolicyResponse'), + require('./model/SwaggerOAuthConsentRequest'), + require('./model/SwaggerOAuthConsentRequestPayload'), + require('./model/SwaggerOAuthIntrospectionRequest'), + require('./model/SwaggerOAuthIntrospectionResponse'), + require('./model/SwaggerOAuthTokenResponse'), + require('./model/SwaggerOAuthTokenResponseBody'), + require('./model/SwaggerRejectConsentRequest'), + require('./model/SwaggerRevokeOAuth2TokenParameters'), + require('./model/SwaggerUpdatePolicyParameters'), + require('./model/SwaggerWardenAccessRequestResponseParameters'), + require('./model/SwaggerWardenTokenAccessRequestResponse'), + require('./model/TokenAllowedRequest'), + require('./model/WardenAccessRequest'), + require('./model/WardenAccessRequestResponse'), + require('./model/WardenTokenAccessRequest'), + require('./model/WardenTokenAccessRequestResponse'), + require('./model/WellKnown'), + require('./model/Writer'), + require('./api/HealthApi'), + require('./api/JsonWebKeyApi'), + require('./api/OAuth2Api'), + require('./api/PolicyApi'), + require('./api/WardenApi') + ) } -}(function(ApiClient, ConsentRequest, ConsentRequestAcceptance, ConsentRequestManager, ConsentRequestRejection, Context, Firewall, Group, GroupMembers, Handler, InlineResponse200, InlineResponse2001, InlineResponse401, JoseWebKeySetRequest, JsonWebKey, JsonWebKeySet, JsonWebKeySetGeneratorRequest, KeyGenerator, Manager, OAuth2Client, OAuth2ConsentRequest, OAuth2TokenIntrospection, Policy, PolicyConditions, RawMessage, SwaggerAcceptConsentRequest, SwaggerCreatePolicyParameters, SwaggerDoesWardenAllowAccessRequestParameters, SwaggerDoesWardenAllowTokenAccessRequestParameters, SwaggerGetPolicyParameters, SwaggerJsonWebKeyQuery, SwaggerJwkCreateSet, SwaggerJwkSetQuery, SwaggerJwkUpdateSet, SwaggerJwkUpdateSetKey, SwaggerListPolicyParameters, SwaggerListPolicyResponse, SwaggerOAuthConsentRequest, SwaggerOAuthConsentRequestPayload, SwaggerOAuthIntrospectionRequest, SwaggerOAuthIntrospectionResponse, SwaggerOAuthTokenResponse, SwaggerOAuthTokenResponseBody, SwaggerRejectConsentRequest, SwaggerRevokeOAuth2TokenParameters, SwaggerUpdatePolicyParameters, SwaggerWardenAccessRequestResponseParameters, SwaggerWardenTokenAccessRequestResponse, TokenAllowedRequest, WardenAccessRequest, WardenAccessRequestResponse, WardenTokenAccessRequest, WardenTokenAccessRequestResponse, WellKnown, Writer, HealthApi, JsonWebKeyApi, OAuth2Api, PolicyApi, WardenApi) { - 'use strict'; +})(function( + ApiClient, + ConsentRequest, + ConsentRequestAcceptance, + ConsentRequestManager, + ConsentRequestRejection, + Context, + Firewall, + Group, + GroupMembers, + Handler, + InlineResponse200, + InlineResponse2001, + InlineResponse401, + JoseWebKeySetRequest, + JsonWebKey, + JsonWebKeySet, + JsonWebKeySetGeneratorRequest, + KeyGenerator, + Manager, + OAuth2Client, + OAuth2ConsentRequest, + OAuth2TokenIntrospection, + Policy, + PolicyConditions, + RawMessage, + SwaggerAcceptConsentRequest, + SwaggerCreatePolicyParameters, + SwaggerDoesWardenAllowAccessRequestParameters, + SwaggerDoesWardenAllowTokenAccessRequestParameters, + SwaggerGetPolicyParameters, + SwaggerJsonWebKeyQuery, + SwaggerJwkCreateSet, + SwaggerJwkSetQuery, + SwaggerJwkUpdateSet, + SwaggerJwkUpdateSetKey, + SwaggerListPolicyParameters, + SwaggerListPolicyResponse, + SwaggerOAuthConsentRequest, + SwaggerOAuthConsentRequestPayload, + SwaggerOAuthIntrospectionRequest, + SwaggerOAuthIntrospectionResponse, + SwaggerOAuthTokenResponse, + SwaggerOAuthTokenResponseBody, + SwaggerRejectConsentRequest, + SwaggerRevokeOAuth2TokenParameters, + SwaggerUpdatePolicyParameters, + SwaggerWardenAccessRequestResponseParameters, + SwaggerWardenTokenAccessRequestResponse, + TokenAllowedRequest, + WardenAccessRequest, + WardenAccessRequestResponse, + WardenTokenAccessRequest, + WardenTokenAccessRequestResponse, + WellKnown, + Writer, + HealthApi, + JsonWebKeyApi, + OAuth2Api, + PolicyApi, + WardenApi +) { + 'use strict' /** * Please_refer_to_the_user_guide_for_in_depth_documentation_httpsory_gitbooks_iohydracontentHydra_offers_OAuth_2_0_and_OpenID_Connect_Core_1_0_capabilities_as_a_service__Hydra_is_different_because_it_works_with_any_existing_authentication_infrastructure_not_just_LDAP_or_SAML__By_implementing_a_consent_app__works_with_any_programming_language_you_build_a_bridge_between_Hydra_and_your_authentication_infrastructure_Hydra_is_able_to_securely_manage_JSON_Web_Keys_and_has_a_sophisticated_policy_based_access_control_you_can_use_if_you_want_to_Hydra_is_suitable_for_green___new_and_brownfield__existing_projects__If_you_are_not_familiar_with_OAuth_2_0_and_are_working_on_a_greenfield_project_we_recommend_evaluating_if_OAuth_2_0_really_serves_your_purpose__Knowledge_of_OAuth_2_0_is_imperative_in_understanding_what_Hydra_does_and_how_it_works_The_official_repository_is_located_at_httpsgithub_comoryhydra_Important_REST_API_Documentation_NotesThe_swagger_generator_used_to_create_this_documentation_does_currently_not_support_example_responses__To_seerequest_and_response_payloads_click_on_Show_JSON_schema_Enable_JSON_Schema_on_Apiary_httpsstorage_googleapis_comory_amhydrajson_schema_pngThe_API_documentation_always_refers_to_the_latest_tagged_version_of_ORY_Hydra__For_previous_API_documentations_pleaserefer_to_httpsgithub_comoryhydrablobtag_iddocsapi_swagger_yaml___for_example0_9_13_httpsgithub_comoryhydrablobv0_9_13docsapi_swagger_yaml0_8_1_httpsgithub_comoryhydrablobv0_8_1docsapi_swagger_yaml.
@@ -357,7 +543,7 @@ * @property {module:api/WardenApi} */ WardenApi: WardenApi - }; + } - return exports; -})); + return exports +}) diff --git a/sdk/js/swagger/src/model/ConsentRequest.js b/sdk/js/swagger/src/model/ConsentRequest.js index f91fe5c86a..f2fcf6a8ff 100644 --- a/sdk/js/swagger/src/model/ConsentRequest.js +++ b/sdk/js/swagger/src/model/ConsentRequest.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.ConsentRequest = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.ConsentRequest = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The ConsentRequest model module. @@ -46,13 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; + var _this = this + } /** * Constructs a ConsentRequest from a plain JavaScript object, optionally creating a new instance. @@ -63,48 +57,50 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('clientId')) { - obj['clientId'] = ApiClient.convertToType(data['clientId'], 'String'); + obj['clientId'] = ApiClient.convertToType(data['clientId'], 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); + obj['id'] = ApiClient.convertToType(data['id'], 'String') } if (data.hasOwnProperty('redirectUrl')) { - obj['redirectUrl'] = ApiClient.convertToType(data['redirectUrl'], 'String'); + obj['redirectUrl'] = ApiClient.convertToType( + data['redirectUrl'], + 'String' + ) } if (data.hasOwnProperty('requestedScopes')) { - obj['requestedScopes'] = ApiClient.convertToType(data['requestedScopes'], ['String']); + obj['requestedScopes'] = ApiClient.convertToType( + data['requestedScopes'], + ['String'] + ) } } - return obj; + return obj } /** * ClientID is the client id that initiated the OAuth2 request. * @member {String} clientId */ - exports.prototype['clientId'] = undefined; + exports.prototype['clientId'] = undefined /** * ID is the id of this consent request. * @member {String} id */ - exports.prototype['id'] = undefined; + exports.prototype['id'] = undefined /** * Redirect URL is the URL where the user agent should be redirected to after the consent has been accepted or rejected. * @member {String} redirectUrl */ - exports.prototype['redirectUrl'] = undefined; + exports.prototype['redirectUrl'] = undefined /** * RequestedScopes represents a list of scopes that have been requested by the OAuth2 request initiator. * @member {Array.} requestedScopes */ - exports.prototype['requestedScopes'] = undefined; - - - - return exports; -})); - + exports.prototype['requestedScopes'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/ConsentRequestAcceptance.js b/sdk/js/swagger/src/model/ConsentRequestAcceptance.js index da7c64fc96..cc76b31786 100644 --- a/sdk/js/swagger/src/model/ConsentRequestAcceptance.js +++ b/sdk/js/swagger/src/model/ConsentRequestAcceptance.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The ConsentRequestAcceptance model module. @@ -46,13 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; + var _this = this + } /** * Constructs a ConsentRequestAcceptance from a plain JavaScript object, optionally creating a new instance. @@ -63,48 +57,51 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('accessTokenExtra')) { - obj['accessTokenExtra'] = ApiClient.convertToType(data['accessTokenExtra'], {'String': Object}); + obj['accessTokenExtra'] = ApiClient.convertToType( + data['accessTokenExtra'], + { String: Object } + ) } if (data.hasOwnProperty('grantScopes')) { - obj['grantScopes'] = ApiClient.convertToType(data['grantScopes'], ['String']); + obj['grantScopes'] = ApiClient.convertToType(data['grantScopes'], [ + 'String' + ]) } if (data.hasOwnProperty('idTokenExtra')) { - obj['idTokenExtra'] = ApiClient.convertToType(data['idTokenExtra'], {'String': Object}); + obj['idTokenExtra'] = ApiClient.convertToType(data['idTokenExtra'], { + String: Object + }) } if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); + obj['subject'] = ApiClient.convertToType(data['subject'], 'String') } } - return obj; + return obj } /** * AccessTokenExtra represents arbitrary data that will be added to the access token and that will be returned on introspection and warden requests. * @member {Object.} accessTokenExtra */ - exports.prototype['accessTokenExtra'] = undefined; + exports.prototype['accessTokenExtra'] = undefined /** * A list of scopes that the user agreed to grant. It should be a subset of requestedScopes from the consent request. * @member {Array.} grantScopes */ - exports.prototype['grantScopes'] = undefined; + exports.prototype['grantScopes'] = undefined /** * IDTokenExtra represents arbitrary data that will be added to the ID token. The ID token will only be issued if the user agrees to it and if the client requested an ID token. * @member {Object.} idTokenExtra */ - exports.prototype['idTokenExtra'] = undefined; + exports.prototype['idTokenExtra'] = undefined /** * Subject represents a unique identifier of the user (or service, or legal entity, ...) that accepted the OAuth2 request. * @member {String} subject */ - exports.prototype['subject'] = undefined; - - - - return exports; -})); - + exports.prototype['subject'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/ConsentRequestManager.js b/sdk/js/swagger/src/model/ConsentRequestManager.js index 826a7f970b..5aac2b99b5 100644 --- a/sdk/js/swagger/src/model/ConsentRequestManager.js +++ b/sdk/js/swagger/src/model/ConsentRequestManager.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.ConsentRequestManager = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.ConsentRequestManager = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The ConsentRequestManager model module. @@ -46,9 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - }; + var _this = this + } /** * Constructs a ConsentRequestManager from a plain JavaScript object, optionally creating a new instance. @@ -59,16 +57,10 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); - + obj = obj || new exports() } - return obj; + return obj } - - - - return exports; -})); - - + return exports +}) diff --git a/sdk/js/swagger/src/model/ConsentRequestRejection.js b/sdk/js/swagger/src/model/ConsentRequestRejection.js index 9ec23c0920..1abeee8e0a 100644 --- a/sdk/js/swagger/src/model/ConsentRequestRejection.js +++ b/sdk/js/swagger/src/model/ConsentRequestRejection.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.ConsentRequestRejection = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.ConsentRequestRejection = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The ConsentRequestRejection model module. @@ -46,10 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a ConsentRequestRejection from a plain JavaScript object, optionally creating a new instance. @@ -60,24 +57,20 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('reason')) { - obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); + obj['reason'] = ApiClient.convertToType(data['reason'], 'String') } } - return obj; + return obj } /** * Reason represents the reason why the user rejected the consent request. * @member {String} reason */ - exports.prototype['reason'] = undefined; - - - - return exports; -})); - + exports.prototype['reason'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/Context.js b/sdk/js/swagger/src/model/Context.js index a98b3f80cd..2c3cab5549 100644 --- a/sdk/js/swagger/src/model/Context.js +++ b/sdk/js/swagger/src/model/Context.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.Context = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.Context = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The Context model module. @@ -47,14 +46,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - }; + var _this = this + } /** * Constructs a Context from a plain JavaScript object, optionally creating a new instance. @@ -65,56 +58,57 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('accessTokenExtra')) { - obj['accessTokenExtra'] = ApiClient.convertToType(data['accessTokenExtra'], {'String': Object}); + obj['accessTokenExtra'] = ApiClient.convertToType( + data['accessTokenExtra'], + { String: Object } + ) } if (data.hasOwnProperty('clientId')) { - obj['clientId'] = ApiClient.convertToType(data['clientId'], 'String'); + obj['clientId'] = ApiClient.convertToType(data['clientId'], 'String') } if (data.hasOwnProperty('grantedScopes')) { - obj['grantedScopes'] = ApiClient.convertToType(data['grantedScopes'], ['String']); + obj['grantedScopes'] = ApiClient.convertToType(data['grantedScopes'], [ + 'String' + ]) } if (data.hasOwnProperty('issuer')) { - obj['issuer'] = ApiClient.convertToType(data['issuer'], 'String'); + obj['issuer'] = ApiClient.convertToType(data['issuer'], 'String') } if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); + obj['subject'] = ApiClient.convertToType(data['subject'], 'String') } } - return obj; + return obj } /** * Extra represents arbitrary session data. * @member {Object.} accessTokenExtra */ - exports.prototype['accessTokenExtra'] = undefined; + exports.prototype['accessTokenExtra'] = undefined /** * ClientID is id of the client the token was issued for.. * @member {String} clientId */ - exports.prototype['clientId'] = undefined; + exports.prototype['clientId'] = undefined /** * GrantedScopes is a list of scopes that the subject authorized when asked for consent. * @member {Array.} grantedScopes */ - exports.prototype['grantedScopes'] = undefined; + exports.prototype['grantedScopes'] = undefined /** * Issuer is the id of the issuer, typically an hydra instance. * @member {String} issuer */ - exports.prototype['issuer'] = undefined; + exports.prototype['issuer'] = 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} subject */ - exports.prototype['subject'] = undefined; - - - - return exports; -})); - + exports.prototype['subject'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/Firewall.js b/sdk/js/swagger/src/model/Firewall.js index 03fa9e5b81..791425af67 100644 --- a/sdk/js/swagger/src/model/Firewall.js +++ b/sdk/js/swagger/src/model/Firewall.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.Firewall = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.Firewall = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The Firewall model module. @@ -46,9 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - }; + var _this = this + } /** * Constructs a Firewall from a plain JavaScript object, optionally creating a new instance. @@ -59,16 +57,10 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); - + obj = obj || new exports() } - return obj; + return obj } - - - - return exports; -})); - - + return exports +}) diff --git a/sdk/js/swagger/src/model/Group.js b/sdk/js/swagger/src/model/Group.js index beda106633..a2e0c7e63e 100644 --- a/sdk/js/swagger/src/model/Group.js +++ b/sdk/js/swagger/src/model/Group.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.Group = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.Group = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The Group model module. @@ -47,11 +46,8 @@ * @class */ var exports = function() { - var _this = this; - - - - }; + var _this = this + } /** * Constructs a Group from a plain JavaScript object, optionally creating a new instance. @@ -62,32 +58,28 @@ */ 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') } if (data.hasOwnProperty('members')) { - obj['members'] = ApiClient.convertToType(data['members'], ['String']); + obj['members'] = ApiClient.convertToType(data['members'], ['String']) } } - return obj; + return obj } /** * ID is the groups id. * @member {String} id */ - exports.prototype['id'] = undefined; + exports.prototype['id'] = undefined /** * Members is who belongs to the group. * @member {Array.} members */ - exports.prototype['members'] = undefined; - - - - return exports; -})); - + exports.prototype['members'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/GroupMembers.js b/sdk/js/swagger/src/model/GroupMembers.js index 64c6657b1e..5d84e7e261 100644 --- a/sdk/js/swagger/src/model/GroupMembers.js +++ b/sdk/js/swagger/src/model/GroupMembers.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.GroupMembers = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.GroupMembers = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The GroupMembers model module. @@ -46,10 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a GroupMembers from a plain JavaScript object, optionally creating a new instance. @@ -60,23 +57,19 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('members')) { - obj['members'] = ApiClient.convertToType(data['members'], ['String']); + obj['members'] = ApiClient.convertToType(data['members'], ['String']) } } - return obj; + return obj } /** * @member {Array.} members */ - exports.prototype['members'] = undefined; - - - - return exports; -})); - + exports.prototype['members'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/Handler.js b/sdk/js/swagger/src/model/Handler.js index d3605d49cf..bb70efcbc2 100644 --- a/sdk/js/swagger/src/model/Handler.js +++ b/sdk/js/swagger/src/model/Handler.js @@ -14,25 +14,43 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/Firewall', 'model/KeyGenerator', 'model/Manager', 'model/Writer'], factory); + define( + [ + 'ApiClient', + 'model/Firewall', + 'model/KeyGenerator', + 'model/Manager', + 'model/Writer' + ], + factory + ) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Firewall'), require('./KeyGenerator'), require('./Manager'), require('./Writer')); + module.exports = factory( + require('../ApiClient'), + require('./Firewall'), + require('./KeyGenerator'), + require('./Manager'), + require('./Writer') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.Handler = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.Firewall, root.HydraOAuth2OpenIdConnectServer.KeyGenerator, root.HydraOAuth2OpenIdConnectServer.Manager, root.HydraOAuth2OpenIdConnectServer.Writer); + root.HydraOAuth2OpenIdConnectServer.Handler = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.Firewall, + root.HydraOAuth2OpenIdConnectServer.KeyGenerator, + root.HydraOAuth2OpenIdConnectServer.Manager, + root.HydraOAuth2OpenIdConnectServer.Writer + ) } -}(this, function(ApiClient, Firewall, KeyGenerator, Manager, Writer) { - 'use strict'; - - - +})(this, function(ApiClient, Firewall, KeyGenerator, Manager, Writer) { + 'use strict' /** * The Handler model module. @@ -46,13 +64,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; + var _this = this + } /** * Constructs a Handler from a plain JavaScript object, optionally creating a new instance. @@ -63,44 +76,42 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Generators')) { - obj['Generators'] = ApiClient.convertToType(data['Generators'], {'String': KeyGenerator}); + obj['Generators'] = ApiClient.convertToType(data['Generators'], { + String: KeyGenerator + }) } if (data.hasOwnProperty('H')) { - obj['H'] = Writer.constructFromObject(data['H']); + obj['H'] = Writer.constructFromObject(data['H']) } if (data.hasOwnProperty('Manager')) { - obj['Manager'] = Manager.constructFromObject(data['Manager']); + obj['Manager'] = Manager.constructFromObject(data['Manager']) } if (data.hasOwnProperty('W')) { - obj['W'] = Firewall.constructFromObject(data['W']); + obj['W'] = Firewall.constructFromObject(data['W']) } } - return obj; + return obj } /** * @member {Object.} Generators */ - exports.prototype['Generators'] = undefined; + exports.prototype['Generators'] = undefined /** * @member {module:model/Writer} H */ - exports.prototype['H'] = undefined; + exports.prototype['H'] = undefined /** * @member {module:model/Manager} Manager */ - exports.prototype['Manager'] = undefined; + exports.prototype['Manager'] = undefined /** * @member {module:model/Firewall} W */ - exports.prototype['W'] = undefined; - - - - return exports; -})); - + exports.prototype['W'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/InlineResponse200.js b/sdk/js/swagger/src/model/InlineResponse200.js index 9caf85af25..190264d2aa 100644 --- a/sdk/js/swagger/src/model/InlineResponse200.js +++ b/sdk/js/swagger/src/model/InlineResponse200.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.InlineResponse200 = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.InlineResponse200 = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The InlineResponse200 model module. @@ -46,10 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a InlineResponse200 from a plain JavaScript object, optionally creating a new instance. @@ -60,24 +57,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/InlineResponse2001.js b/sdk/js/swagger/src/model/InlineResponse2001.js index 6f69f93def..bd5881da58 100644 --- a/sdk/js/swagger/src/model/InlineResponse2001.js +++ b/sdk/js/swagger/src/model/InlineResponse2001.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.InlineResponse2001 = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.InlineResponse2001 = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The InlineResponse2001 model module. @@ -46,15 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; + var _this = this + } /** * Constructs a InlineResponse2001 from a plain JavaScript object, optionally creating a new instance. @@ -65,64 +57,72 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('access_token')) { - obj['access_token'] = ApiClient.convertToType(data['access_token'], 'String'); + obj['access_token'] = ApiClient.convertToType( + data['access_token'], + 'String' + ) } if (data.hasOwnProperty('expires_in')) { - obj['expires_in'] = ApiClient.convertToType(data['expires_in'], 'Number'); + obj['expires_in'] = ApiClient.convertToType( + data['expires_in'], + 'Number' + ) } if (data.hasOwnProperty('id_token')) { - obj['id_token'] = ApiClient.convertToType(data['id_token'], 'Number'); + obj['id_token'] = ApiClient.convertToType(data['id_token'], 'Number') } if (data.hasOwnProperty('refresh_token')) { - obj['refresh_token'] = ApiClient.convertToType(data['refresh_token'], 'String'); + obj['refresh_token'] = ApiClient.convertToType( + data['refresh_token'], + 'String' + ) } if (data.hasOwnProperty('scope')) { - obj['scope'] = ApiClient.convertToType(data['scope'], 'Number'); + obj['scope'] = ApiClient.convertToType(data['scope'], 'Number') } if (data.hasOwnProperty('token_type')) { - obj['token_type'] = ApiClient.convertToType(data['token_type'], 'String'); + obj['token_type'] = ApiClient.convertToType( + data['token_type'], + 'String' + ) } } - return obj; + return obj } /** * The access token issued by the authorization server. * @member {String} access_token */ - exports.prototype['access_token'] = undefined; + exports.prototype['access_token'] = undefined /** * The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. * @member {Number} expires_in */ - exports.prototype['expires_in'] = undefined; + exports.prototype['expires_in'] = undefined /** * To retrieve a refresh token request the id_token scope. * @member {Number} id_token */ - exports.prototype['id_token'] = undefined; + exports.prototype['id_token'] = undefined /** * The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. * @member {String} refresh_token */ - exports.prototype['refresh_token'] = undefined; + exports.prototype['refresh_token'] = undefined /** * The scope of the access token * @member {Number} scope */ - exports.prototype['scope'] = undefined; + exports.prototype['scope'] = undefined /** * The type of the token issued * @member {String} token_type */ - exports.prototype['token_type'] = undefined; - - - - return exports; -})); - + exports.prototype['token_type'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/InlineResponse401.js b/sdk/js/swagger/src/model/InlineResponse401.js index c5d4da2809..87ba419abe 100644 --- a/sdk/js/swagger/src/model/InlineResponse401.js +++ b/sdk/js/swagger/src/model/InlineResponse401.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.InlineResponse401 = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.InlineResponse401 = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The InlineResponse401 model module. @@ -46,15 +45,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 +57,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/JoseWebKeySetRequest.js b/sdk/js/swagger/src/model/JoseWebKeySetRequest.js index 7ceb625efb..6915287f1a 100644 --- a/sdk/js/swagger/src/model/JoseWebKeySetRequest.js +++ b/sdk/js/swagger/src/model/JoseWebKeySetRequest.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/RawMessage'], factory); + define(['ApiClient', 'model/RawMessage'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./RawMessage')); + module.exports = factory(require('../ApiClient'), require('./RawMessage')) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.JoseWebKeySetRequest = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.RawMessage); + root.HydraOAuth2OpenIdConnectServer.JoseWebKeySetRequest = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.RawMessage + ) } -}(this, function(ApiClient, RawMessage) { - 'use strict'; - - - +})(this, function(ApiClient, RawMessage) { + 'use strict' /** * The JoseWebKeySetRequest model module. @@ -46,10 +46,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a JoseWebKeySetRequest 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('keys')) { - obj['keys'] = ApiClient.convertToType(data['keys'], [RawMessage]); + obj['keys'] = ApiClient.convertToType(data['keys'], [RawMessage]) } } - return obj; + return obj } /** * @member {Array.} keys */ - exports.prototype['keys'] = undefined; - - - - return exports; -})); - + exports.prototype['keys'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/JsonWebKey.js b/sdk/js/swagger/src/model/JsonWebKey.js index d34e05ea43..e6ecc8b696 100644 --- a/sdk/js/swagger/src/model/JsonWebKey.js +++ b/sdk/js/swagger/src/model/JsonWebKey.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.JsonWebKey = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.JsonWebKey = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The JsonWebKey model module. @@ -46,26 +45,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 +57,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 ac1ee583a6..42832be45f 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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.JsonWebKeySet = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.JsonWebKey); + root.HydraOAuth2OpenIdConnectServer.JsonWebKeySet = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.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/JsonWebKeySetGeneratorRequest.js b/sdk/js/swagger/src/model/JsonWebKeySetGeneratorRequest.js index 807b8be43f..1e3fd75be9 100644 --- a/sdk/js/swagger/src/model/JsonWebKeySetGeneratorRequest.js +++ b/sdk/js/swagger/src/model/JsonWebKeySetGeneratorRequest.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.JsonWebKeySetGeneratorRequest = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.JsonWebKeySetGeneratorRequest = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The JsonWebKeySetGeneratorRequest model module. @@ -48,11 +47,11 @@ * @param kid {String} The kid of the key to be created */ var exports = function(alg, kid) { - var _this = this; + var _this = this - _this['alg'] = alg; - _this['kid'] = kid; - }; + _this['alg'] = alg + _this['kid'] = kid + } /** * Constructs a JsonWebKeySetGeneratorRequest from a plain JavaScript object, optionally creating a new instance. @@ -63,32 +62,28 @@ */ 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('kid')) { - obj['kid'] = ApiClient.convertToType(data['kid'], 'String'); + obj['kid'] = ApiClient.convertToType(data['kid'], 'String') } } - return obj; + return obj } /** * The algorithm to be used for creating the key. Supports \"RS256\", \"ES521\" and \"HS256\" * @member {String} alg */ - exports.prototype['alg'] = undefined; + exports.prototype['alg'] = undefined /** * The kid of the key to be created * @member {String} kid */ - exports.prototype['kid'] = undefined; - - - - return exports; -})); - + exports.prototype['kid'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/KeyGenerator.js b/sdk/js/swagger/src/model/KeyGenerator.js index 310d0d038e..3168462b33 100644 --- a/sdk/js/swagger/src/model/KeyGenerator.js +++ b/sdk/js/swagger/src/model/KeyGenerator.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.KeyGenerator = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.KeyGenerator = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The KeyGenerator model module. @@ -46,9 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - }; + var _this = this + } /** * Constructs a KeyGenerator from a plain JavaScript object, optionally creating a new instance. @@ -59,16 +57,10 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); - + obj = obj || new exports() } - return obj; + return obj } - - - - return exports; -})); - - + return exports +}) diff --git a/sdk/js/swagger/src/model/Manager.js b/sdk/js/swagger/src/model/Manager.js index 1bcb2d2c87..35fd2a9e25 100644 --- a/sdk/js/swagger/src/model/Manager.js +++ b/sdk/js/swagger/src/model/Manager.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.Manager = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.Manager = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The Manager model module. @@ -46,9 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - }; + var _this = this + } /** * Constructs a Manager from a plain JavaScript object, optionally creating a new instance. @@ -59,16 +57,10 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); - + obj = obj || new exports() } - return obj; + return obj } - - - - return exports; -})); - - + return exports +}) diff --git a/sdk/js/swagger/src/model/OAuth2Client.js b/sdk/js/swagger/src/model/OAuth2Client.js index 81f2234912..86d553af04 100644 --- a/sdk/js/swagger/src/model/OAuth2Client.js +++ b/sdk/js/swagger/src/model/OAuth2Client.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.OAuth2Client = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.OAuth2Client = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The OAuth2Client model module. @@ -46,23 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - - - - - - - }; + var _this = this + } /** * Constructs a OAuth2Client from a plain JavaScript object, optionally creating a new instance. @@ -73,128 +57,143 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('client_name')) { - obj['client_name'] = ApiClient.convertToType(data['client_name'], 'String'); + obj['client_name'] = ApiClient.convertToType( + data['client_name'], + 'String' + ) } if (data.hasOwnProperty('client_secret')) { - obj['client_secret'] = ApiClient.convertToType(data['client_secret'], 'String'); + obj['client_secret'] = ApiClient.convertToType( + data['client_secret'], + 'String' + ) } if (data.hasOwnProperty('client_uri')) { - obj['client_uri'] = ApiClient.convertToType(data['client_uri'], 'String'); + obj['client_uri'] = ApiClient.convertToType( + data['client_uri'], + 'String' + ) } if (data.hasOwnProperty('contacts')) { - obj['contacts'] = ApiClient.convertToType(data['contacts'], ['String']); + obj['contacts'] = ApiClient.convertToType(data['contacts'], ['String']) } if (data.hasOwnProperty('grant_types')) { - obj['grant_types'] = ApiClient.convertToType(data['grant_types'], ['String']); + obj['grant_types'] = ApiClient.convertToType(data['grant_types'], [ + 'String' + ]) } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); + obj['id'] = ApiClient.convertToType(data['id'], 'String') } if (data.hasOwnProperty('logo_uri')) { - obj['logo_uri'] = ApiClient.convertToType(data['logo_uri'], 'String'); + obj['logo_uri'] = ApiClient.convertToType(data['logo_uri'], 'String') } if (data.hasOwnProperty('owner')) { - obj['owner'] = ApiClient.convertToType(data['owner'], 'String'); + obj['owner'] = ApiClient.convertToType(data['owner'], 'String') } if (data.hasOwnProperty('policy_uri')) { - obj['policy_uri'] = ApiClient.convertToType(data['policy_uri'], 'String'); + obj['policy_uri'] = ApiClient.convertToType( + data['policy_uri'], + 'String' + ) } if (data.hasOwnProperty('public')) { - obj['public'] = ApiClient.convertToType(data['public'], 'Boolean'); + obj['public'] = ApiClient.convertToType(data['public'], 'Boolean') } if (data.hasOwnProperty('redirect_uris')) { - obj['redirect_uris'] = ApiClient.convertToType(data['redirect_uris'], ['String']); + obj['redirect_uris'] = ApiClient.convertToType(data['redirect_uris'], [ + 'String' + ]) } if (data.hasOwnProperty('response_types')) { - obj['response_types'] = ApiClient.convertToType(data['response_types'], ['String']); + obj['response_types'] = ApiClient.convertToType( + data['response_types'], + ['String'] + ) } if (data.hasOwnProperty('scope')) { - obj['scope'] = ApiClient.convertToType(data['scope'], 'String'); + obj['scope'] = ApiClient.convertToType(data['scope'], 'String') } if (data.hasOwnProperty('tos_uri')) { - obj['tos_uri'] = ApiClient.convertToType(data['tos_uri'], 'String'); + obj['tos_uri'] = ApiClient.convertToType(data['tos_uri'], 'String') } } - return obj; + return obj } /** * Name is the human-readable string name of the client to be presented to the end-user during authorization. * @member {String} client_name */ - exports.prototype['client_name'] = undefined; + exports.prototype['client_name'] = undefined /** * Secret is the client's secret. The secret will be included in the create request as cleartext, and then never again. The secret is stored using BCrypt so it is impossible to recover it. Tell your users that they need to write the secret down as it will not be made available again. * @member {String} client_secret */ - exports.prototype['client_secret'] = undefined; + exports.prototype['client_secret'] = undefined /** * ClientURI is an URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion. * @member {String} client_uri */ - exports.prototype['client_uri'] = undefined; + exports.prototype['client_uri'] = undefined /** * Contacts is a array of strings representing ways to contact people responsible for this client, typically email addresses. * @member {Array.} contacts */ - exports.prototype['contacts'] = undefined; + exports.prototype['contacts'] = undefined /** * GrantTypes is an array of grant types the client is allowed to use. * @member {Array.} grant_types */ - exports.prototype['grant_types'] = undefined; + exports.prototype['grant_types'] = undefined /** * ID is the id for this client. * @member {String} id */ - exports.prototype['id'] = undefined; + exports.prototype['id'] = undefined /** * LogoURI is an URL string that references a logo for the client. * @member {String} logo_uri */ - exports.prototype['logo_uri'] = undefined; + exports.prototype['logo_uri'] = undefined /** * Owner is a string identifying the owner of the OAuth 2.0 Client. * @member {String} owner */ - exports.prototype['owner'] = undefined; + exports.prototype['owner'] = undefined /** * PolicyURI is a URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data. * @member {String} policy_uri */ - exports.prototype['policy_uri'] = undefined; + exports.prototype['policy_uri'] = undefined /** * Public is a boolean that identifies this client as public, meaning that it does not have a secret. It will disable the client_credentials grant type for this client if set. * @member {Boolean} public */ - exports.prototype['public'] = undefined; + exports.prototype['public'] = undefined /** * RedirectURIs is an array of allowed redirect urls for the client, for example: http://mydomain/oauth/callback . * @member {Array.} redirect_uris */ - exports.prototype['redirect_uris'] = undefined; + exports.prototype['redirect_uris'] = undefined /** * ResponseTypes is an array of the OAuth 2.0 response type strings that the client can use at the authorization endpoint. * @member {Array.} response_types */ - exports.prototype['response_types'] = undefined; + exports.prototype['response_types'] = undefined /** * Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. * @member {String} scope */ - exports.prototype['scope'] = undefined; + exports.prototype['scope'] = undefined /** * TermsOfServiceURI is a URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. * @member {String} tos_uri */ - exports.prototype['tos_uri'] = undefined; - - - - return exports; -})); - + exports.prototype['tos_uri'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/OAuth2ConsentRequest.js b/sdk/js/swagger/src/model/OAuth2ConsentRequest.js index 79abf9d4ab..888fa9b6b3 100644 --- a/sdk/js/swagger/src/model/OAuth2ConsentRequest.js +++ b/sdk/js/swagger/src/model/OAuth2ConsentRequest.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The OAuth2ConsentRequest model module. @@ -46,14 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - }; + var _this = this + } /** * Constructs a OAuth2ConsentRequest from a plain JavaScript object, optionally creating a new instance. @@ -64,56 +57,58 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('clientId')) { - obj['clientId'] = ApiClient.convertToType(data['clientId'], 'String'); + obj['clientId'] = ApiClient.convertToType(data['clientId'], 'String') } if (data.hasOwnProperty('expiresAt')) { - obj['expiresAt'] = ApiClient.convertToType(data['expiresAt'], 'String'); + obj['expiresAt'] = ApiClient.convertToType(data['expiresAt'], 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); + obj['id'] = ApiClient.convertToType(data['id'], 'String') } if (data.hasOwnProperty('redirectUrl')) { - obj['redirectUrl'] = ApiClient.convertToType(data['redirectUrl'], 'String'); + obj['redirectUrl'] = ApiClient.convertToType( + data['redirectUrl'], + 'String' + ) } if (data.hasOwnProperty('requestedScopes')) { - obj['requestedScopes'] = ApiClient.convertToType(data['requestedScopes'], ['String']); + obj['requestedScopes'] = ApiClient.convertToType( + data['requestedScopes'], + ['String'] + ) } } - return obj; + return obj } /** * ClientID is the client id that initiated the OAuth2 request. * @member {String} clientId */ - exports.prototype['clientId'] = undefined; + exports.prototype['clientId'] = undefined /** * ExpiresAt is the time where the access request will expire. * @member {String} expiresAt */ - exports.prototype['expiresAt'] = undefined; + exports.prototype['expiresAt'] = undefined /** * ID is the id of this consent request. * @member {String} id */ - exports.prototype['id'] = undefined; + exports.prototype['id'] = undefined /** * Redirect URL is the URL where the user agent should be redirected to after the consent has been accepted or rejected. * @member {String} redirectUrl */ - exports.prototype['redirectUrl'] = undefined; + exports.prototype['redirectUrl'] = undefined /** * RequestedScopes represents a list of scopes that have been requested by the OAuth2 request initiator. * @member {Array.} requestedScopes */ - exports.prototype['requestedScopes'] = undefined; - - - - return exports; -})); - + exports.prototype['requestedScopes'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/OAuth2TokenIntrospection.js b/sdk/js/swagger/src/model/OAuth2TokenIntrospection.js index ec07352497..3f5edf0f8a 100644 --- a/sdk/js/swagger/src/model/OAuth2TokenIntrospection.js +++ b/sdk/js/swagger/src/model/OAuth2TokenIntrospection.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The OAuth2TokenIntrospection model module. @@ -46,20 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - - - - }; + var _this = this + } /** * Constructs a OAuth2TokenIntrospection from a plain JavaScript object, optionally creating a new instance. @@ -70,104 +57,100 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); + obj['active'] = ApiClient.convertToType(data['active'], 'Boolean') } if (data.hasOwnProperty('aud')) { - obj['aud'] = ApiClient.convertToType(data['aud'], 'String'); + obj['aud'] = ApiClient.convertToType(data['aud'], 'String') } if (data.hasOwnProperty('client_id')) { - obj['client_id'] = ApiClient.convertToType(data['client_id'], 'String'); + obj['client_id'] = ApiClient.convertToType(data['client_id'], 'String') } if (data.hasOwnProperty('exp')) { - obj['exp'] = ApiClient.convertToType(data['exp'], 'Number'); + obj['exp'] = ApiClient.convertToType(data['exp'], 'Number') } if (data.hasOwnProperty('ext')) { - obj['ext'] = ApiClient.convertToType(data['ext'], {'String': Object}); + obj['ext'] = ApiClient.convertToType(data['ext'], { String: Object }) } if (data.hasOwnProperty('iat')) { - obj['iat'] = ApiClient.convertToType(data['iat'], 'Number'); + obj['iat'] = ApiClient.convertToType(data['iat'], 'Number') } if (data.hasOwnProperty('iss')) { - obj['iss'] = ApiClient.convertToType(data['iss'], 'String'); + obj['iss'] = ApiClient.convertToType(data['iss'], 'String') } if (data.hasOwnProperty('nbf')) { - obj['nbf'] = ApiClient.convertToType(data['nbf'], 'Number'); + obj['nbf'] = ApiClient.convertToType(data['nbf'], 'Number') } if (data.hasOwnProperty('scope')) { - obj['scope'] = ApiClient.convertToType(data['scope'], 'String'); + obj['scope'] = ApiClient.convertToType(data['scope'], 'String') } if (data.hasOwnProperty('sub')) { - obj['sub'] = ApiClient.convertToType(data['sub'], 'String'); + obj['sub'] = ApiClient.convertToType(data['sub'], 'String') } if (data.hasOwnProperty('username')) { - obj['username'] = ApiClient.convertToType(data['username'], 'String'); + obj['username'] = ApiClient.convertToType(data['username'], 'String') } } - return obj; + return obj } /** * Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's \"active\" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a \"true\" value return for the \"active\" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time). * @member {Boolean} active */ - exports.prototype['active'] = undefined; + exports.prototype['active'] = undefined /** * ClientID is a service-specific string identifier or list of string identifiers representing the intended audience for this token. * @member {String} aud */ - exports.prototype['aud'] = undefined; + exports.prototype['aud'] = undefined /** * ClientID is aclient identifier for the OAuth 2.0 client that requested this token. * @member {String} client_id */ - exports.prototype['client_id'] = undefined; + exports.prototype['client_id'] = undefined /** * Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire. * @member {Number} exp */ - exports.prototype['exp'] = undefined; + exports.prototype['exp'] = undefined /** * Extra is arbitrary data set by the session. * @member {Object.} ext */ - exports.prototype['ext'] = undefined; + exports.prototype['ext'] = undefined /** * Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued. * @member {Number} iat */ - exports.prototype['iat'] = undefined; + exports.prototype['iat'] = undefined /** * Issuer is a string representing the issuer of this token * @member {String} iss */ - exports.prototype['iss'] = undefined; + exports.prototype['iss'] = undefined /** * NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before. * @member {Number} nbf */ - exports.prototype['nbf'] = undefined; + exports.prototype['nbf'] = undefined /** * Scope is a JSON string containing a space-separated list of scopes associated with this token. * @member {String} scope */ - exports.prototype['scope'] = undefined; + exports.prototype['scope'] = undefined /** * Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token. * @member {String} sub */ - exports.prototype['sub'] = undefined; + exports.prototype['sub'] = undefined /** * Username is a human-readable identifier for the resource owner who authorized this token. * @member {String} username */ - exports.prototype['username'] = undefined; - - - - return exports; -})); - + exports.prototype['username'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/Policy.js b/sdk/js/swagger/src/model/Policy.js index d44b0392e6..a1627df7a0 100644 --- a/sdk/js/swagger/src/model/Policy.js +++ b/sdk/js/swagger/src/model/Policy.js @@ -14,25 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/PolicyConditions'], factory); + define(['ApiClient', 'model/PolicyConditions'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./PolicyConditions')); + module.exports = factory( + require('../ApiClient'), + require('./PolicyConditions') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.Policy = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.PolicyConditions); + root.HydraOAuth2OpenIdConnectServer.Policy = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.PolicyConditions + ) } -}(this, function(ApiClient, PolicyConditions) { - 'use strict'; - - - +})(this, function(ApiClient, PolicyConditions) { + 'use strict' /** * The Policy model module. @@ -46,16 +49,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - }; + var _this = this + } /** * Constructs a Policy from a plain JavaScript object, optionally creating a new instance. @@ -66,72 +61,75 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('actions')) { - obj['actions'] = ApiClient.convertToType(data['actions'], ['String']); + obj['actions'] = ApiClient.convertToType(data['actions'], ['String']) } if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], {'String': PolicyConditions}); + obj['conditions'] = ApiClient.convertToType(data['conditions'], { + String: PolicyConditions + }) } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); + obj['description'] = ApiClient.convertToType( + data['description'], + 'String' + ) } if (data.hasOwnProperty('effect')) { - obj['effect'] = ApiClient.convertToType(data['effect'], 'String'); + obj['effect'] = ApiClient.convertToType(data['effect'], 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); + obj['id'] = ApiClient.convertToType(data['id'], 'String') } if (data.hasOwnProperty('resources')) { - obj['resources'] = ApiClient.convertToType(data['resources'], ['String']); + obj['resources'] = ApiClient.convertToType(data['resources'], [ + 'String' + ]) } if (data.hasOwnProperty('subjects')) { - obj['subjects'] = ApiClient.convertToType(data['subjects'], ['String']); + obj['subjects'] = ApiClient.convertToType(data['subjects'], ['String']) } } - return obj; + return obj } /** * Actions impacted by the policy. * @member {Array.} actions */ - exports.prototype['actions'] = undefined; + exports.prototype['actions'] = undefined /** * Conditions under which the policy is active. * @member {Object.} conditions */ - exports.prototype['conditions'] = undefined; + exports.prototype['conditions'] = undefined /** * Description of the policy. * @member {String} description */ - exports.prototype['description'] = undefined; + exports.prototype['description'] = undefined /** * Effect of the policy * @member {String} effect */ - exports.prototype['effect'] = undefined; + exports.prototype['effect'] = undefined /** * ID of the policy. * @member {String} id */ - exports.prototype['id'] = undefined; + exports.prototype['id'] = undefined /** * Resources impacted by the policy. * @member {Array.} resources */ - exports.prototype['resources'] = undefined; + exports.prototype['resources'] = undefined /** * Subjects impacted by the policy. * @member {Array.} subjects */ - exports.prototype['subjects'] = undefined; - - - - return exports; -})); - + exports.prototype['subjects'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/PolicyConditions.js b/sdk/js/swagger/src/model/PolicyConditions.js index 77bde845c5..3ac36d5818 100644 --- a/sdk/js/swagger/src/model/PolicyConditions.js +++ b/sdk/js/swagger/src/model/PolicyConditions.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.PolicyConditions = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.PolicyConditions = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The PolicyConditions model module. @@ -46,11 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - - }; + var _this = this + } /** * Constructs a PolicyConditions from a plain JavaScript object, optionally creating a new instance. @@ -61,30 +57,28 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], {'String': Object}); + obj['options'] = ApiClient.convertToType(data['options'], { + String: Object + }) } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); + obj['type'] = ApiClient.convertToType(data['type'], 'String') } } - return obj; + return obj } /** * @member {Object.} options */ - exports.prototype['options'] = undefined; + exports.prototype['options'] = undefined /** * @member {String} type */ - exports.prototype['type'] = undefined; - - - - return exports; -})); - + exports.prototype['type'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/RawMessage.js b/sdk/js/swagger/src/model/RawMessage.js index 876b9a09c3..2daa3f9020 100644 --- a/sdk/js/swagger/src/model/RawMessage.js +++ b/sdk/js/swagger/src/model/RawMessage.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.RawMessage = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.RawMessage = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The RawMessage model module. @@ -48,12 +47,12 @@ * @extends Array */ var exports = function() { - var _this = this; - _this = new Array(); - Object.setPrototypeOf(_this, exports); + var _this = this + _this = new Array() + Object.setPrototypeOf(_this, exports) - return _this; - }; + return _this + } /** * Constructs a RawMessage from a plain JavaScript object, optionally creating a new instance. @@ -64,17 +63,11 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); - ApiClient.constructFromObject(data, obj, 'Number'); - + obj = obj || new exports() + ApiClient.constructFromObject(data, obj, 'Number') } - return obj; + return obj } - - - - return exports; -})); - - + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerAcceptConsentRequest.js b/sdk/js/swagger/src/model/SwaggerAcceptConsentRequest.js index e4ef0278e9..3af299d418 100644 --- a/sdk/js/swagger/src/model/SwaggerAcceptConsentRequest.js +++ b/sdk/js/swagger/src/model/SwaggerAcceptConsentRequest.js @@ -14,25 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/ConsentRequestAcceptance'], factory); + define(['ApiClient', 'model/ConsentRequestAcceptance'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ConsentRequestAcceptance')); + module.exports = factory( + require('../ApiClient'), + require('./ConsentRequestAcceptance') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerAcceptConsentRequest = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance); + root.HydraOAuth2OpenIdConnectServer.SwaggerAcceptConsentRequest = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance + ) } -}(this, function(ApiClient, ConsentRequestAcceptance) { - 'use strict'; - - - +})(this, function(ApiClient, ConsentRequestAcceptance) { + 'use strict' /** * The SwaggerAcceptConsentRequest model module. @@ -48,11 +51,11 @@ * @param id {String} in: path */ var exports = function(body, id) { - var _this = this; + var _this = this - _this['Body'] = body; - _this['id'] = id; - }; + _this['Body'] = body + _this['id'] = id + } /** * Constructs a SwaggerAcceptConsentRequest from a plain JavaScript object, optionally creating a new instance. @@ -63,31 +66,27 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = ConsentRequestAcceptance.constructFromObject(data['Body']); + obj['Body'] = ConsentRequestAcceptance.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/ConsentRequestAcceptance} 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/SwaggerCreatePolicyParameters.js b/sdk/js/swagger/src/model/SwaggerCreatePolicyParameters.js index 2c82d4ef85..cf190eefd9 100644 --- a/sdk/js/swagger/src/model/SwaggerCreatePolicyParameters.js +++ b/sdk/js/swagger/src/model/SwaggerCreatePolicyParameters.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/Policy'], factory); + define(['ApiClient', 'model/Policy'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Policy')); + module.exports = factory(require('../ApiClient'), require('./Policy')) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerCreatePolicyParameters = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.Policy); + root.HydraOAuth2OpenIdConnectServer.SwaggerCreatePolicyParameters = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.Policy + ) } -}(this, function(ApiClient, Policy) { - 'use strict'; - - - +})(this, function(ApiClient, Policy) { + 'use strict' /** * The SwaggerCreatePolicyParameters model module. @@ -46,10 +46,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerCreatePolicyParameters 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'] = Policy.constructFromObject(data['Body']); + obj['Body'] = Policy.constructFromObject(data['Body']) } } - return obj; + return obj } /** * @member {module:model/Policy} Body */ - exports.prototype['Body'] = undefined; - - - - return exports; -})); - + exports.prototype['Body'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerDoesWardenAllowAccessRequestParameters.js b/sdk/js/swagger/src/model/SwaggerDoesWardenAllowAccessRequestParameters.js index ac856b8f1a..f9b227ddc5 100644 --- a/sdk/js/swagger/src/model/SwaggerDoesWardenAllowAccessRequestParameters.js +++ b/sdk/js/swagger/src/model/SwaggerDoesWardenAllowAccessRequestParameters.js @@ -14,25 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/WardenAccessRequest'], factory); + define(['ApiClient', 'model/WardenAccessRequest'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./WardenAccessRequest')); + module.exports = factory( + require('../ApiClient'), + require('./WardenAccessRequest') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerDoesWardenAllowAccessRequestParameters = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.WardenAccessRequest); + root.HydraOAuth2OpenIdConnectServer.SwaggerDoesWardenAllowAccessRequestParameters = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.WardenAccessRequest + ) } -}(this, function(ApiClient, WardenAccessRequest) { - 'use strict'; - - - +})(this, function(ApiClient, WardenAccessRequest) { + 'use strict' /** * The SwaggerDoesWardenAllowAccessRequestParameters model module. @@ -46,10 +49,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerDoesWardenAllowAccessRequestParameters from a plain JavaScript object, optionally creating a new instance. @@ -60,23 +61,19 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = WardenAccessRequest.constructFromObject(data['Body']); + obj['Body'] = WardenAccessRequest.constructFromObject(data['Body']) } } - return obj; + return obj } /** * @member {module:model/WardenAccessRequest} Body */ - exports.prototype['Body'] = undefined; - - - - return exports; -})); - + exports.prototype['Body'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerDoesWardenAllowTokenAccessRequestParameters.js b/sdk/js/swagger/src/model/SwaggerDoesWardenAllowTokenAccessRequestParameters.js index 4c456a16a4..2a7a1a6cca 100644 --- a/sdk/js/swagger/src/model/SwaggerDoesWardenAllowTokenAccessRequestParameters.js +++ b/sdk/js/swagger/src/model/SwaggerDoesWardenAllowTokenAccessRequestParameters.js @@ -14,25 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/WardenTokenAccessRequest'], factory); + define(['ApiClient', 'model/WardenTokenAccessRequest'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./WardenTokenAccessRequest')); + module.exports = factory( + require('../ApiClient'), + require('./WardenTokenAccessRequest') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerDoesWardenAllowTokenAccessRequestParameters = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest); + root.HydraOAuth2OpenIdConnectServer.SwaggerDoesWardenAllowTokenAccessRequestParameters = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest + ) } -}(this, function(ApiClient, WardenTokenAccessRequest) { - 'use strict'; - - - +})(this, function(ApiClient, WardenTokenAccessRequest) { + 'use strict' /** * The SwaggerDoesWardenAllowTokenAccessRequestParameters model module. @@ -46,10 +49,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerDoesWardenAllowTokenAccessRequestParameters from a plain JavaScript object, optionally creating a new instance. @@ -60,23 +61,19 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = WardenTokenAccessRequest.constructFromObject(data['Body']); + obj['Body'] = WardenTokenAccessRequest.constructFromObject(data['Body']) } } - return obj; + return obj } /** * @member {module:model/WardenTokenAccessRequest} Body */ - exports.prototype['Body'] = undefined; - - - - return exports; -})); - + exports.prototype['Body'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerGetPolicyParameters.js b/sdk/js/swagger/src/model/SwaggerGetPolicyParameters.js index e03a6c0d55..6447b0f361 100644 --- a/sdk/js/swagger/src/model/SwaggerGetPolicyParameters.js +++ b/sdk/js/swagger/src/model/SwaggerGetPolicyParameters.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerGetPolicyParameters = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.SwaggerGetPolicyParameters = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The SwaggerGetPolicyParameters model module. @@ -46,10 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerGetPolicyParameters from a plain JavaScript object, optionally creating a new instance. @@ -60,24 +57,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 } /** * The id of the policy. 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/SwaggerJsonWebKeyQuery.js b/sdk/js/swagger/src/model/SwaggerJsonWebKeyQuery.js index 6e88976df1..62149751ad 100644 --- a/sdk/js/swagger/src/model/SwaggerJsonWebKeyQuery.js +++ b/sdk/js/swagger/src/model/SwaggerJsonWebKeyQuery.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerJsonWebKeyQuery = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.SwaggerJsonWebKeyQuery = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The SwaggerJsonWebKeyQuery model module. @@ -48,11 +47,11 @@ * @param set {String} The set in: path */ var exports = function(kid, set) { - var _this = this; + var _this = this - _this['kid'] = kid; - _this['set'] = set; - }; + _this['kid'] = kid + _this['set'] = set + } /** * Constructs a SwaggerJsonWebKeyQuery from a plain JavaScript object, optionally creating a new instance. @@ -63,32 +62,28 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('kid')) { - obj['kid'] = ApiClient.convertToType(data['kid'], 'String'); + obj['kid'] = ApiClient.convertToType(data['kid'], 'String') } if (data.hasOwnProperty('set')) { - obj['set'] = ApiClient.convertToType(data['set'], 'String'); + obj['set'] = ApiClient.convertToType(data['set'], 'String') } } - return obj; + return obj } /** * The kid of the desired key in: path * @member {String} kid */ - exports.prototype['kid'] = undefined; + exports.prototype['kid'] = undefined /** * The set in: path * @member {String} set */ - exports.prototype['set'] = undefined; - - - - return exports; -})); - + exports.prototype['set'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerJwkCreateSet.js b/sdk/js/swagger/src/model/SwaggerJwkCreateSet.js index 612f783343..01eeecabc5 100644 --- a/sdk/js/swagger/src/model/SwaggerJwkCreateSet.js +++ b/sdk/js/swagger/src/model/SwaggerJwkCreateSet.js @@ -14,25 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/JsonWebKeySetGeneratorRequest'], factory); + define(['ApiClient', 'model/JsonWebKeySetGeneratorRequest'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./JsonWebKeySetGeneratorRequest')); + module.exports = factory( + require('../ApiClient'), + require('./JsonWebKeySetGeneratorRequest') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerJwkCreateSet = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.JsonWebKeySetGeneratorRequest); + root.HydraOAuth2OpenIdConnectServer.SwaggerJwkCreateSet = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.JsonWebKeySetGeneratorRequest + ) } -}(this, function(ApiClient, JsonWebKeySetGeneratorRequest) { - 'use strict'; - - - +})(this, function(ApiClient, JsonWebKeySetGeneratorRequest) { + 'use strict' /** * The SwaggerJwkCreateSet model module. @@ -47,11 +50,10 @@ * @param set {String} The set in: path */ var exports = function(set) { - var _this = this; + var _this = this - - _this['set'] = set; - }; + _this['set'] = set + } /** * Constructs a SwaggerJwkCreateSet from a plain JavaScript object, optionally creating a new instance. @@ -62,31 +64,29 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = JsonWebKeySetGeneratorRequest.constructFromObject(data['Body']); + obj['Body'] = JsonWebKeySetGeneratorRequest.constructFromObject( + data['Body'] + ) } if (data.hasOwnProperty('set')) { - obj['set'] = ApiClient.convertToType(data['set'], 'String'); + obj['set'] = ApiClient.convertToType(data['set'], 'String') } } - return obj; + return obj } /** * @member {module:model/JsonWebKeySetGeneratorRequest} Body */ - exports.prototype['Body'] = undefined; + exports.prototype['Body'] = undefined /** * The set in: path * @member {String} set */ - exports.prototype['set'] = undefined; - - - - return exports; -})); - + exports.prototype['set'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerJwkSetQuery.js b/sdk/js/swagger/src/model/SwaggerJwkSetQuery.js index ed7992e663..354faa598e 100644 --- a/sdk/js/swagger/src/model/SwaggerJwkSetQuery.js +++ b/sdk/js/swagger/src/model/SwaggerJwkSetQuery.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerJwkSetQuery = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.SwaggerJwkSetQuery = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The SwaggerJwkSetQuery model module. @@ -47,10 +46,10 @@ * @param set {String} The set in: path */ var exports = function(set) { - var _this = this; + var _this = this - _this['set'] = set; - }; + _this['set'] = set + } /** * Constructs a SwaggerJwkSetQuery 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('set')) { - obj['set'] = ApiClient.convertToType(data['set'], 'String'); + obj['set'] = ApiClient.convertToType(data['set'], 'String') } } - return obj; + return obj } /** * The set in: path * @member {String} set */ - exports.prototype['set'] = undefined; - - - - return exports; -})); - + exports.prototype['set'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerJwkUpdateSet.js b/sdk/js/swagger/src/model/SwaggerJwkUpdateSet.js index c000381607..566e1fe58c 100644 --- a/sdk/js/swagger/src/model/SwaggerJwkUpdateSet.js +++ b/sdk/js/swagger/src/model/SwaggerJwkUpdateSet.js @@ -14,25 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/JsonWebKeySet'], factory); + define(['ApiClient', '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('./JsonWebKeySet')); + module.exports = factory( + require('../ApiClient'), + require('./JsonWebKeySet') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSet = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.JsonWebKeySet); + root.HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSet = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.JsonWebKeySet + ) } -}(this, function(ApiClient, JsonWebKeySet) { - 'use strict'; - - - +})(this, function(ApiClient, JsonWebKeySet) { + 'use strict' /** * The SwaggerJwkUpdateSet model module. @@ -47,11 +50,10 @@ * @param set {String} The set in: path */ var exports = function(set) { - var _this = this; + var _this = this - - _this['set'] = set; - }; + _this['set'] = set + } /** * Constructs a SwaggerJwkUpdateSet from a plain JavaScript object, optionally creating a new instance. @@ -62,31 +64,27 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = JsonWebKeySet.constructFromObject(data['Body']); + obj['Body'] = JsonWebKeySet.constructFromObject(data['Body']) } if (data.hasOwnProperty('set')) { - obj['set'] = ApiClient.convertToType(data['set'], 'String'); + obj['set'] = ApiClient.convertToType(data['set'], 'String') } } - return obj; + return obj } /** * @member {module:model/JsonWebKeySet} Body */ - exports.prototype['Body'] = undefined; + exports.prototype['Body'] = undefined /** * The set in: path * @member {String} set */ - exports.prototype['set'] = undefined; - - - - return exports; -})); - + exports.prototype['set'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerJwkUpdateSetKey.js b/sdk/js/swagger/src/model/SwaggerJwkUpdateSetKey.js index 986b2c9390..de7f8e902e 100644 --- a/sdk/js/swagger/src/model/SwaggerJwkUpdateSetKey.js +++ b/sdk/js/swagger/src/model/SwaggerJwkUpdateSetKey.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSetKey = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.JsonWebKey); + root.HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSetKey = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.JsonWebKey + ) } -}(this, function(ApiClient, JsonWebKey) { - 'use strict'; - - - +})(this, function(ApiClient, JsonWebKey) { + 'use strict' /** * The SwaggerJwkUpdateSetKey model module. @@ -48,12 +48,11 @@ * @param set {String} The set in: path */ var exports = function(kid, set) { - var _this = this; + var _this = this - - _this['kid'] = kid; - _this['set'] = set; - }; + _this['kid'] = kid + _this['set'] = set + } /** * Constructs a SwaggerJwkUpdateSetKey from a plain JavaScript object, optionally creating a new instance. @@ -64,39 +63,35 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = JsonWebKey.constructFromObject(data['Body']); + obj['Body'] = JsonWebKey.constructFromObject(data['Body']) } if (data.hasOwnProperty('kid')) { - obj['kid'] = ApiClient.convertToType(data['kid'], 'String'); + obj['kid'] = ApiClient.convertToType(data['kid'], 'String') } if (data.hasOwnProperty('set')) { - obj['set'] = ApiClient.convertToType(data['set'], 'String'); + obj['set'] = ApiClient.convertToType(data['set'], 'String') } } - return obj; + return obj } /** * @member {module:model/JsonWebKey} Body */ - exports.prototype['Body'] = undefined; + exports.prototype['Body'] = undefined /** * The kid of the desired key in: path * @member {String} kid */ - exports.prototype['kid'] = undefined; + exports.prototype['kid'] = undefined /** * The set in: path * @member {String} set */ - exports.prototype['set'] = undefined; - - - - return exports; -})); - + exports.prototype['set'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerListPolicyParameters.js b/sdk/js/swagger/src/model/SwaggerListPolicyParameters.js index 1489610286..ee005201ae 100644 --- a/sdk/js/swagger/src/model/SwaggerListPolicyParameters.js +++ b/sdk/js/swagger/src/model/SwaggerListPolicyParameters.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerListPolicyParameters = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.SwaggerListPolicyParameters = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The SwaggerListPolicyParameters model module. @@ -46,11 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - - }; + var _this = this + } /** * Constructs a SwaggerListPolicyParameters 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 policies 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/SwaggerListPolicyResponse.js b/sdk/js/swagger/src/model/SwaggerListPolicyResponse.js index 708aa5b57b..0fa4ba65e5 100644 --- a/sdk/js/swagger/src/model/SwaggerListPolicyResponse.js +++ b/sdk/js/swagger/src/model/SwaggerListPolicyResponse.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/Policy'], factory); + define(['ApiClient', 'model/Policy'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Policy')); + module.exports = factory(require('../ApiClient'), require('./Policy')) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerListPolicyResponse = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.Policy); + root.HydraOAuth2OpenIdConnectServer.SwaggerListPolicyResponse = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.Policy + ) } -}(this, function(ApiClient, Policy) { - 'use strict'; - - - +})(this, function(ApiClient, Policy) { + 'use strict' /** * The SwaggerListPolicyResponse model module. @@ -47,10 +47,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerListPolicyResponse 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'], [Policy]); + obj['Body'] = ApiClient.convertToType(data['Body'], [Policy]) } } - 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/SwaggerOAuthConsentRequest.js b/sdk/js/swagger/src/model/SwaggerOAuthConsentRequest.js index e739dd7c22..bb942f8f53 100644 --- a/sdk/js/swagger/src/model/SwaggerOAuthConsentRequest.js +++ b/sdk/js/swagger/src/model/SwaggerOAuthConsentRequest.js @@ -14,25 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/OAuth2ConsentRequest'], factory); + define(['ApiClient', 'model/OAuth2ConsentRequest'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./OAuth2ConsentRequest')); + module.exports = factory( + require('../ApiClient'), + require('./OAuth2ConsentRequest') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthConsentRequest = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest); + root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthConsentRequest = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest + ) } -}(this, function(ApiClient, OAuth2ConsentRequest) { - 'use strict'; - - - +})(this, function(ApiClient, OAuth2ConsentRequest) { + 'use strict' /** * The SwaggerOAuthConsentRequest model module. @@ -47,10 +50,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerOAuthConsentRequest from a plain JavaScript object, optionally creating a new instance. @@ -61,23 +62,19 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = OAuth2ConsentRequest.constructFromObject(data['Body']); + obj['Body'] = OAuth2ConsentRequest.constructFromObject(data['Body']) } } - return obj; + return obj } /** * @member {module:model/OAuth2ConsentRequest} Body */ - exports.prototype['Body'] = undefined; - - - - return exports; -})); - + exports.prototype['Body'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerOAuthConsentRequestPayload.js b/sdk/js/swagger/src/model/SwaggerOAuthConsentRequestPayload.js index 1fc83404e2..538db8a559 100644 --- a/sdk/js/swagger/src/model/SwaggerOAuthConsentRequestPayload.js +++ b/sdk/js/swagger/src/model/SwaggerOAuthConsentRequestPayload.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthConsentRequestPayload = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthConsentRequestPayload = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The SwaggerOAuthConsentRequestPayload model module. @@ -47,10 +46,10 @@ * @param id {String} The id of the OAuth 2.0 Consent Request. */ var exports = function(id) { - var _this = this; + var _this = this - _this['id'] = id; - }; + _this['id'] = id + } /** * Constructs a SwaggerOAuthConsentRequestPayload 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 } /** * The id of the OAuth 2.0 Consent Request. * @member {String} id */ - exports.prototype['id'] = undefined; - - - - return exports; -})); - + exports.prototype['id'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerOAuthIntrospectionRequest.js b/sdk/js/swagger/src/model/SwaggerOAuthIntrospectionRequest.js index e66b79f9e9..010871a7ab 100644 --- a/sdk/js/swagger/src/model/SwaggerOAuthIntrospectionRequest.js +++ b/sdk/js/swagger/src/model/SwaggerOAuthIntrospectionRequest.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionRequest = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionRequest = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The SwaggerOAuthIntrospectionRequest model module. @@ -47,11 +46,10 @@ * @param token {String} The string value of the token. For access tokens, this is the \"access_token\" value returned from the token endpoint defined in OAuth 2.0 [RFC6749], Section 5.1. This endpoint DOES NOT accept refresh tokens for validation. */ var exports = function(token) { - var _this = this; + var _this = this - - _this['token'] = token; - }; + _this['token'] = token + } /** * Constructs a SwaggerOAuthIntrospectionRequest from a plain JavaScript object, optionally creating a new instance. @@ -62,32 +60,28 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('scope')) { - obj['scope'] = ApiClient.convertToType(data['scope'], 'String'); + obj['scope'] = ApiClient.convertToType(data['scope'], 'String') } if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], 'String'); + obj['token'] = ApiClient.convertToType(data['token'], 'String') } } - return obj; + return obj } /** * An optional, space separated list of required scopes. If the access token was not granted one of the scopes, the result of active will be false. in: formData * @member {String} scope */ - exports.prototype['scope'] = undefined; + exports.prototype['scope'] = undefined /** * The string value of the token. For access tokens, this is the \"access_token\" value returned from the token endpoint defined in OAuth 2.0 [RFC6749], Section 5.1. This endpoint DOES NOT accept refresh tokens for validation. * @member {String} token */ - exports.prototype['token'] = undefined; - - - - return exports; -})); - + exports.prototype['token'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerOAuthIntrospectionResponse.js b/sdk/js/swagger/src/model/SwaggerOAuthIntrospectionResponse.js index 5b741f8c56..cdaa1bfbd1 100644 --- a/sdk/js/swagger/src/model/SwaggerOAuthIntrospectionResponse.js +++ b/sdk/js/swagger/src/model/SwaggerOAuthIntrospectionResponse.js @@ -14,25 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/OAuth2TokenIntrospection'], factory); + define(['ApiClient', 'model/OAuth2TokenIntrospection'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./OAuth2TokenIntrospection')); + module.exports = factory( + require('../ApiClient'), + require('./OAuth2TokenIntrospection') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionResponse = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection); + root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionResponse = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection + ) } -}(this, function(ApiClient, OAuth2TokenIntrospection) { - 'use strict'; - - - +})(this, function(ApiClient, OAuth2TokenIntrospection) { + 'use strict' /** * The SwaggerOAuthIntrospectionResponse model module. @@ -47,10 +50,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerOAuthIntrospectionResponse from a plain JavaScript object, optionally creating a new instance. @@ -61,23 +62,19 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = OAuth2TokenIntrospection.constructFromObject(data['Body']); + obj['Body'] = OAuth2TokenIntrospection.constructFromObject(data['Body']) } } - return obj; + return obj } /** * @member {module:model/OAuth2TokenIntrospection} Body */ - exports.prototype['Body'] = undefined; - - - - return exports; -})); - + exports.prototype['Body'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerOAuthTokenResponse.js b/sdk/js/swagger/src/model/SwaggerOAuthTokenResponse.js index 1bc1510ff8..10ea42f11a 100644 --- a/sdk/js/swagger/src/model/SwaggerOAuthTokenResponse.js +++ b/sdk/js/swagger/src/model/SwaggerOAuthTokenResponse.js @@ -14,25 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/SwaggerOAuthTokenResponseBody'], factory); + define(['ApiClient', 'model/SwaggerOAuthTokenResponseBody'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./SwaggerOAuthTokenResponseBody')); + module.exports = factory( + require('../ApiClient'), + require('./SwaggerOAuthTokenResponseBody') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponse = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody); + root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponse = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody + ) } -}(this, function(ApiClient, SwaggerOAuthTokenResponseBody) { - 'use strict'; - - - +})(this, function(ApiClient, SwaggerOAuthTokenResponseBody) { + 'use strict' /** * The SwaggerOAuthTokenResponse model module. @@ -47,10 +50,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerOAuthTokenResponse from a plain JavaScript object, optionally creating a new instance. @@ -61,23 +62,21 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = SwaggerOAuthTokenResponseBody.constructFromObject(data['Body']); + obj['Body'] = SwaggerOAuthTokenResponseBody.constructFromObject( + data['Body'] + ) } } - return obj; + return obj } /** * @member {module:model/SwaggerOAuthTokenResponseBody} Body */ - exports.prototype['Body'] = undefined; - - - - return exports; -})); - + exports.prototype['Body'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerOAuthTokenResponseBody.js b/sdk/js/swagger/src/model/SwaggerOAuthTokenResponseBody.js index 5b322d2f4d..f0432d727b 100644 --- a/sdk/js/swagger/src/model/SwaggerOAuthTokenResponseBody.js +++ b/sdk/js/swagger/src/model/SwaggerOAuthTokenResponseBody.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The SwaggerOAuthTokenResponseBody model module. @@ -47,15 +46,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - }; + var _this = this + } /** * Constructs a SwaggerOAuthTokenResponseBody from a plain JavaScript object, optionally creating a new instance. @@ -66,64 +58,72 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('access_token')) { - obj['access_token'] = ApiClient.convertToType(data['access_token'], 'String'); + obj['access_token'] = ApiClient.convertToType( + data['access_token'], + 'String' + ) } if (data.hasOwnProperty('expires_in')) { - obj['expires_in'] = ApiClient.convertToType(data['expires_in'], 'Number'); + obj['expires_in'] = ApiClient.convertToType( + data['expires_in'], + 'Number' + ) } if (data.hasOwnProperty('id_token')) { - obj['id_token'] = ApiClient.convertToType(data['id_token'], 'Number'); + obj['id_token'] = ApiClient.convertToType(data['id_token'], 'Number') } if (data.hasOwnProperty('refresh_token')) { - obj['refresh_token'] = ApiClient.convertToType(data['refresh_token'], 'String'); + obj['refresh_token'] = ApiClient.convertToType( + data['refresh_token'], + 'String' + ) } if (data.hasOwnProperty('scope')) { - obj['scope'] = ApiClient.convertToType(data['scope'], 'Number'); + obj['scope'] = ApiClient.convertToType(data['scope'], 'Number') } if (data.hasOwnProperty('token_type')) { - obj['token_type'] = ApiClient.convertToType(data['token_type'], 'String'); + obj['token_type'] = ApiClient.convertToType( + data['token_type'], + 'String' + ) } } - return obj; + return obj } /** * The access token issued by the authorization server. * @member {String} access_token */ - exports.prototype['access_token'] = undefined; + exports.prototype['access_token'] = undefined /** * The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. * @member {Number} expires_in */ - exports.prototype['expires_in'] = undefined; + exports.prototype['expires_in'] = undefined /** * To retrieve a refresh token request the id_token scope. * @member {Number} id_token */ - exports.prototype['id_token'] = undefined; + exports.prototype['id_token'] = undefined /** * The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. * @member {String} refresh_token */ - exports.prototype['refresh_token'] = undefined; + exports.prototype['refresh_token'] = undefined /** * The scope of the access token * @member {Number} scope */ - exports.prototype['scope'] = undefined; + exports.prototype['scope'] = undefined /** * The type of the token issued * @member {String} token_type */ - exports.prototype['token_type'] = undefined; - - - - return exports; -})); - + exports.prototype['token_type'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerRejectConsentRequest.js b/sdk/js/swagger/src/model/SwaggerRejectConsentRequest.js index 0a6da0188b..ba0751e1b2 100644 --- a/sdk/js/swagger/src/model/SwaggerRejectConsentRequest.js +++ b/sdk/js/swagger/src/model/SwaggerRejectConsentRequest.js @@ -14,25 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/ConsentRequestRejection'], factory); + define(['ApiClient', 'model/ConsentRequestRejection'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./ConsentRequestRejection')); + module.exports = factory( + require('../ApiClient'), + require('./ConsentRequestRejection') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerRejectConsentRequest = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.ConsentRequestRejection); + root.HydraOAuth2OpenIdConnectServer.SwaggerRejectConsentRequest = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.ConsentRequestRejection + ) } -}(this, function(ApiClient, ConsentRequestRejection) { - 'use strict'; - - - +})(this, function(ApiClient, ConsentRequestRejection) { + 'use strict' /** * The SwaggerRejectConsentRequest model module. @@ -48,11 +51,11 @@ * @param id {String} in: path */ var exports = function(body, id) { - var _this = this; + var _this = this - _this['Body'] = body; - _this['id'] = id; - }; + _this['Body'] = body + _this['id'] = id + } /** * Constructs a SwaggerRejectConsentRequest from a plain JavaScript object, optionally creating a new instance. @@ -63,31 +66,27 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = ConsentRequestRejection.constructFromObject(data['Body']); + obj['Body'] = ConsentRequestRejection.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/ConsentRequestRejection} 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/SwaggerRevokeOAuth2TokenParameters.js b/sdk/js/swagger/src/model/SwaggerRevokeOAuth2TokenParameters.js index ba67b757d2..5a69a2ef1f 100644 --- a/sdk/js/swagger/src/model/SwaggerRevokeOAuth2TokenParameters.js +++ b/sdk/js/swagger/src/model/SwaggerRevokeOAuth2TokenParameters.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerRevokeOAuth2TokenParameters = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.SwaggerRevokeOAuth2TokenParameters = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The SwaggerRevokeOAuth2TokenParameters model module. @@ -47,10 +46,10 @@ * @param token {String} in: formData */ var exports = function(token) { - var _this = this; + var _this = this - _this['token'] = token; - }; + _this['token'] = token + } /** * Constructs a SwaggerRevokeOAuth2TokenParameters 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('token')) { - obj['token'] = ApiClient.convertToType(data['token'], 'String'); + obj['token'] = ApiClient.convertToType(data['token'], 'String') } } - return obj; + return obj } /** * in: formData * @member {String} token */ - exports.prototype['token'] = undefined; - - - - return exports; -})); - + exports.prototype['token'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerUpdatePolicyParameters.js b/sdk/js/swagger/src/model/SwaggerUpdatePolicyParameters.js index 6160030a70..db1636c4cb 100644 --- a/sdk/js/swagger/src/model/SwaggerUpdatePolicyParameters.js +++ b/sdk/js/swagger/src/model/SwaggerUpdatePolicyParameters.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/Policy'], factory); + define(['ApiClient', 'model/Policy'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./Policy')); + module.exports = factory(require('../ApiClient'), require('./Policy')) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerUpdatePolicyParameters = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.Policy); + root.HydraOAuth2OpenIdConnectServer.SwaggerUpdatePolicyParameters = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.Policy + ) } -}(this, function(ApiClient, Policy) { - 'use strict'; - - - +})(this, function(ApiClient, Policy) { + 'use strict' /** * The SwaggerUpdatePolicyParameters model module. @@ -46,11 +46,8 @@ * @class */ var exports = function() { - var _this = this; - - - - }; + var _this = this + } /** * Constructs a SwaggerUpdatePolicyParameters from a plain JavaScript object, optionally creating a new instance. @@ -61,31 +58,27 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = Policy.constructFromObject(data['Body']); + obj['Body'] = Policy.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/Policy} Body */ - exports.prototype['Body'] = undefined; + exports.prototype['Body'] = undefined /** * The id of the policy. 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/SwaggerWardenAccessRequestResponseParameters.js b/sdk/js/swagger/src/model/SwaggerWardenAccessRequestResponseParameters.js index f4dd530580..fec1b4f98f 100644 --- a/sdk/js/swagger/src/model/SwaggerWardenAccessRequestResponseParameters.js +++ b/sdk/js/swagger/src/model/SwaggerWardenAccessRequestResponseParameters.js @@ -14,25 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/WardenAccessRequestResponse'], factory); + define(['ApiClient', 'model/WardenAccessRequestResponse'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./WardenAccessRequestResponse')); + module.exports = factory( + require('../ApiClient'), + require('./WardenAccessRequestResponse') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerWardenAccessRequestResponseParameters = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.WardenAccessRequestResponse); + root.HydraOAuth2OpenIdConnectServer.SwaggerWardenAccessRequestResponseParameters = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.WardenAccessRequestResponse + ) } -}(this, function(ApiClient, WardenAccessRequestResponse) { - 'use strict'; - - - +})(this, function(ApiClient, WardenAccessRequestResponse) { + 'use strict' /** * The SwaggerWardenAccessRequestResponseParameters model module. @@ -47,10 +50,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerWardenAccessRequestResponseParameters from a plain JavaScript object, optionally creating a new instance. @@ -61,23 +62,21 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = WardenAccessRequestResponse.constructFromObject(data['Body']); + obj['Body'] = WardenAccessRequestResponse.constructFromObject( + data['Body'] + ) } } - return obj; + return obj } /** * @member {module:model/WardenAccessRequestResponse} Body */ - exports.prototype['Body'] = undefined; - - - - return exports; -})); - + exports.prototype['Body'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/SwaggerWardenTokenAccessRequestResponse.js b/sdk/js/swagger/src/model/SwaggerWardenTokenAccessRequestResponse.js index 1cdfd60a9d..6a63375006 100644 --- a/sdk/js/swagger/src/model/SwaggerWardenTokenAccessRequestResponse.js +++ b/sdk/js/swagger/src/model/SwaggerWardenTokenAccessRequestResponse.js @@ -14,25 +14,28 @@ * */ -(function(root, factory) { +;(function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. - define(['ApiClient', 'model/WardenTokenAccessRequestResponse'], factory); + define(['ApiClient', 'model/WardenTokenAccessRequestResponse'], factory) } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. - module.exports = factory(require('../ApiClient'), require('./WardenTokenAccessRequestResponse')); + module.exports = factory( + require('../ApiClient'), + require('./WardenTokenAccessRequestResponse') + ) } else { // Browser globals (root is window) if (!root.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.SwaggerWardenTokenAccessRequestResponse = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient, root.HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse); + root.HydraOAuth2OpenIdConnectServer.SwaggerWardenTokenAccessRequestResponse = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient, + root.HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse + ) } -}(this, function(ApiClient, WardenTokenAccessRequestResponse) { - 'use strict'; - - - +})(this, function(ApiClient, WardenTokenAccessRequestResponse) { + 'use strict' /** * The SwaggerWardenTokenAccessRequestResponse model module. @@ -47,10 +50,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a SwaggerWardenTokenAccessRequestResponse from a plain JavaScript object, optionally creating a new instance. @@ -61,23 +62,21 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('Body')) { - obj['Body'] = WardenTokenAccessRequestResponse.constructFromObject(data['Body']); + obj['Body'] = WardenTokenAccessRequestResponse.constructFromObject( + data['Body'] + ) } } - return obj; + return obj } /** * @member {module:model/WardenTokenAccessRequestResponse} Body */ - exports.prototype['Body'] = undefined; - - - - return exports; -})); - + exports.prototype['Body'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/TokenAllowedRequest.js b/sdk/js/swagger/src/model/TokenAllowedRequest.js index 86d0d9d4aa..7bd46e981a 100644 --- a/sdk/js/swagger/src/model/TokenAllowedRequest.js +++ b/sdk/js/swagger/src/model/TokenAllowedRequest.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.TokenAllowedRequest = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.TokenAllowedRequest = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The TokenAllowedRequest model module. @@ -46,12 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - }; + var _this = this + } /** * Constructs a TokenAllowedRequest from a plain JavaScript object, optionally creating a new instance. @@ -62,40 +57,38 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('action')) { - obj['action'] = ApiClient.convertToType(data['action'], 'String'); + obj['action'] = ApiClient.convertToType(data['action'], 'String') } if (data.hasOwnProperty('context')) { - obj['context'] = ApiClient.convertToType(data['context'], {'String': Object}); + obj['context'] = ApiClient.convertToType(data['context'], { + String: Object + }) } if (data.hasOwnProperty('resource')) { - obj['resource'] = ApiClient.convertToType(data['resource'], 'String'); + obj['resource'] = ApiClient.convertToType(data['resource'], 'String') } } - return obj; + return obj } /** * Action is the action that is requested on the resource. * @member {String} action */ - exports.prototype['action'] = undefined; + exports.prototype['action'] = undefined /** * Context is the request's environmental context. * @member {Object.} context */ - exports.prototype['context'] = undefined; + exports.prototype['context'] = undefined /** * Resource is the resource that access is requested to. * @member {String} resource */ - exports.prototype['resource'] = undefined; - - - - return exports; -})); - + exports.prototype['resource'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/WardenAccessRequest.js b/sdk/js/swagger/src/model/WardenAccessRequest.js index 37c73cc209..e8b2ba8d8c 100644 --- a/sdk/js/swagger/src/model/WardenAccessRequest.js +++ b/sdk/js/swagger/src/model/WardenAccessRequest.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.WardenAccessRequest = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.WardenAccessRequest = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The WardenAccessRequest model module. @@ -46,13 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - }; + var _this = this + } /** * Constructs a WardenAccessRequest from a plain JavaScript object, optionally creating a new instance. @@ -63,48 +57,46 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('action')) { - obj['action'] = ApiClient.convertToType(data['action'], 'String'); + obj['action'] = ApiClient.convertToType(data['action'], 'String') } if (data.hasOwnProperty('context')) { - obj['context'] = ApiClient.convertToType(data['context'], {'String': Object}); + obj['context'] = ApiClient.convertToType(data['context'], { + String: Object + }) } if (data.hasOwnProperty('resource')) { - obj['resource'] = ApiClient.convertToType(data['resource'], 'String'); + obj['resource'] = ApiClient.convertToType(data['resource'], 'String') } if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); + obj['subject'] = ApiClient.convertToType(data['subject'], 'String') } } - return obj; + return obj } /** * Action is the action that is requested on the resource. * @member {String} action */ - exports.prototype['action'] = undefined; + exports.prototype['action'] = undefined /** * Context is the request's environmental context. * @member {Object.} context */ - exports.prototype['context'] = undefined; + exports.prototype['context'] = undefined /** * Resource is the resource that access is requested to. * @member {String} resource */ - exports.prototype['resource'] = undefined; + exports.prototype['resource'] = undefined /** * Subejct is the subject that is requesting access. * @member {String} subject */ - exports.prototype['subject'] = undefined; - - - - return exports; -})); - + exports.prototype['subject'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/WardenAccessRequestResponse.js b/sdk/js/swagger/src/model/WardenAccessRequestResponse.js index 0080569d92..9877cb0765 100644 --- a/sdk/js/swagger/src/model/WardenAccessRequestResponse.js +++ b/sdk/js/swagger/src/model/WardenAccessRequestResponse.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.WardenAccessRequestResponse = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.WardenAccessRequestResponse = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The WardenAccessRequestResponse model module. @@ -47,10 +46,8 @@ * @class */ var exports = function() { - var _this = this; - - - }; + var _this = this + } /** * Constructs a WardenAccessRequestResponse from a plain JavaScript object, optionally creating a new instance. @@ -61,24 +58,20 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('allowed')) { - obj['allowed'] = ApiClient.convertToType(data['allowed'], 'Boolean'); + obj['allowed'] = ApiClient.convertToType(data['allowed'], 'Boolean') } } - return obj; + return obj } /** * Allowed is true if the request is allowed and false otherwise. * @member {Boolean} allowed */ - exports.prototype['allowed'] = undefined; - - - - return exports; -})); - + exports.prototype['allowed'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/WardenTokenAccessRequest.js b/sdk/js/swagger/src/model/WardenTokenAccessRequest.js index 09ea4ca416..4ce9627973 100644 --- a/sdk/js/swagger/src/model/WardenTokenAccessRequest.js +++ b/sdk/js/swagger/src/model/WardenTokenAccessRequest.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The WardenTokenAccessRequest model module. @@ -46,14 +45,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - }; + var _this = this + } /** * Constructs a WardenTokenAccessRequest from a plain JavaScript object, optionally creating a new instance. @@ -64,56 +57,54 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('action')) { - obj['action'] = ApiClient.convertToType(data['action'], 'String'); + obj['action'] = ApiClient.convertToType(data['action'], 'String') } if (data.hasOwnProperty('context')) { - obj['context'] = ApiClient.convertToType(data['context'], {'String': Object}); + obj['context'] = ApiClient.convertToType(data['context'], { + String: Object + }) } if (data.hasOwnProperty('resource')) { - obj['resource'] = ApiClient.convertToType(data['resource'], 'String'); + obj['resource'] = ApiClient.convertToType(data['resource'], 'String') } if (data.hasOwnProperty('scopes')) { - obj['scopes'] = ApiClient.convertToType(data['scopes'], ['String']); + obj['scopes'] = ApiClient.convertToType(data['scopes'], ['String']) } if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], 'String'); + obj['token'] = ApiClient.convertToType(data['token'], 'String') } } - return obj; + return obj } /** * Action is the action that is requested on the resource. * @member {String} action */ - exports.prototype['action'] = undefined; + exports.prototype['action'] = undefined /** * Context is the request's environmental context. * @member {Object.} context */ - exports.prototype['context'] = undefined; + exports.prototype['context'] = undefined /** * Resource is the resource that access is requested to. * @member {String} resource */ - exports.prototype['resource'] = undefined; + exports.prototype['resource'] = undefined /** * Scopes is an array of scopes that are requried. * @member {Array.} scopes */ - exports.prototype['scopes'] = undefined; + exports.prototype['scopes'] = undefined /** * Token is the token to introspect. * @member {String} token */ - exports.prototype['token'] = undefined; - - - - return exports; -})); - + exports.prototype['token'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/WardenTokenAccessRequestResponse.js b/sdk/js/swagger/src/model/WardenTokenAccessRequestResponse.js index ee6fc8fa16..282f21369e 100644 --- a/sdk/js/swagger/src/model/WardenTokenAccessRequestResponse.js +++ b/sdk/js/swagger/src/model/WardenTokenAccessRequestResponse.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The WardenTokenAccessRequestResponse model module. @@ -47,17 +46,8 @@ * @class */ var exports = function() { - var _this = this; - - - - - - - - - - }; + var _this = this + } /** * Constructs a WardenTokenAccessRequestResponse from a plain JavaScript object, optionally creating a new instance. @@ -68,80 +58,81 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('accessTokenExtra')) { - obj['accessTokenExtra'] = ApiClient.convertToType(data['accessTokenExtra'], {'String': Object}); + obj['accessTokenExtra'] = ApiClient.convertToType( + data['accessTokenExtra'], + { String: Object } + ) } if (data.hasOwnProperty('allowed')) { - obj['allowed'] = ApiClient.convertToType(data['allowed'], 'Boolean'); + obj['allowed'] = ApiClient.convertToType(data['allowed'], 'Boolean') } if (data.hasOwnProperty('clientId')) { - obj['clientId'] = ApiClient.convertToType(data['clientId'], 'String'); + obj['clientId'] = ApiClient.convertToType(data['clientId'], 'String') } if (data.hasOwnProperty('expiresAt')) { - obj['expiresAt'] = ApiClient.convertToType(data['expiresAt'], 'String'); + obj['expiresAt'] = ApiClient.convertToType(data['expiresAt'], 'String') } if (data.hasOwnProperty('grantedScopes')) { - obj['grantedScopes'] = ApiClient.convertToType(data['grantedScopes'], ['String']); + obj['grantedScopes'] = ApiClient.convertToType(data['grantedScopes'], [ + 'String' + ]) } if (data.hasOwnProperty('issuedAt')) { - obj['issuedAt'] = ApiClient.convertToType(data['issuedAt'], 'String'); + obj['issuedAt'] = ApiClient.convertToType(data['issuedAt'], 'String') } if (data.hasOwnProperty('issuer')) { - obj['issuer'] = ApiClient.convertToType(data['issuer'], 'String'); + obj['issuer'] = ApiClient.convertToType(data['issuer'], 'String') } if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); + obj['subject'] = ApiClient.convertToType(data['subject'], 'String') } } - return obj; + return obj } /** * Extra represents arbitrary session data. * @member {Object.} accessTokenExtra */ - exports.prototype['accessTokenExtra'] = undefined; + exports.prototype['accessTokenExtra'] = undefined /** * Allowed is true if the request is allowed and false otherwise. * @member {Boolean} allowed */ - exports.prototype['allowed'] = undefined; + exports.prototype['allowed'] = undefined /** * ClientID is the id of the OAuth2 client that requested the token. * @member {String} clientId */ - exports.prototype['clientId'] = undefined; + exports.prototype['clientId'] = undefined /** * ExpiresAt is the expiry timestamp. * @member {String} expiresAt */ - exports.prototype['expiresAt'] = undefined; + exports.prototype['expiresAt'] = undefined /** * GrantedScopes is a list of scopes that the subject authorized when asked for consent. * @member {Array.} grantedScopes */ - exports.prototype['grantedScopes'] = undefined; + exports.prototype['grantedScopes'] = undefined /** * IssuedAt is the token creation time stamp. * @member {String} issuedAt */ - exports.prototype['issuedAt'] = undefined; + exports.prototype['issuedAt'] = undefined /** * Issuer is the id of the issuer, typically an hydra instance. * @member {String} issuer */ - exports.prototype['issuer'] = undefined; + exports.prototype['issuer'] = 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} subject */ - exports.prototype['subject'] = undefined; - - - - return exports; -})); - + exports.prototype['subject'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/WellKnown.js b/sdk/js/swagger/src/model/WellKnown.js index 1280207d86..a7c9f5624a 100644 --- a/sdk/js/swagger/src/model/WellKnown.js +++ b/sdk/js/swagger/src/model/WellKnown.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.WellKnown = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.WellKnown = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The WellKnown model module. @@ -52,17 +51,27 @@ * @param subjectTypesSupported {Array.} JSON array containing a list of the Subject Identifier types that this OP supports. Valid types include pairwise and public. * @param tokenEndpoint {String} URL of the OP's OAuth 2.0 Token Endpoint */ - var exports = function(authorizationEndpoint, idTokenSigningAlgValuesSupported, issuer, jwksUri, responseTypesSupported, subjectTypesSupported, tokenEndpoint) { - var _this = this; + var exports = function( + authorizationEndpoint, + idTokenSigningAlgValuesSupported, + issuer, + jwksUri, + responseTypesSupported, + subjectTypesSupported, + tokenEndpoint + ) { + var _this = this - _this['authorization_endpoint'] = authorizationEndpoint; - _this['id_token_signing_alg_values_supported'] = idTokenSigningAlgValuesSupported; - _this['issuer'] = issuer; - _this['jwks_uri'] = jwksUri; - _this['response_types_supported'] = responseTypesSupported; - _this['subject_types_supported'] = subjectTypesSupported; - _this['token_endpoint'] = tokenEndpoint; - }; + _this['authorization_endpoint'] = authorizationEndpoint + _this[ + 'id_token_signing_alg_values_supported' + ] = idTokenSigningAlgValuesSupported + _this['issuer'] = issuer + _this['jwks_uri'] = jwksUri + _this['response_types_supported'] = responseTypesSupported + _this['subject_types_supported'] = subjectTypesSupported + _this['token_endpoint'] = tokenEndpoint + } /** * Constructs a WellKnown from a plain JavaScript object, optionally creating a new instance. @@ -73,72 +82,85 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); + obj = obj || new exports() if (data.hasOwnProperty('authorization_endpoint')) { - obj['authorization_endpoint'] = ApiClient.convertToType(data['authorization_endpoint'], 'String'); + obj['authorization_endpoint'] = ApiClient.convertToType( + data['authorization_endpoint'], + 'String' + ) } if (data.hasOwnProperty('id_token_signing_alg_values_supported')) { - obj['id_token_signing_alg_values_supported'] = ApiClient.convertToType(data['id_token_signing_alg_values_supported'], ['String']); + obj[ + 'id_token_signing_alg_values_supported' + ] = ApiClient.convertToType( + data['id_token_signing_alg_values_supported'], + ['String'] + ) } if (data.hasOwnProperty('issuer')) { - obj['issuer'] = ApiClient.convertToType(data['issuer'], 'String'); + obj['issuer'] = ApiClient.convertToType(data['issuer'], 'String') } if (data.hasOwnProperty('jwks_uri')) { - obj['jwks_uri'] = ApiClient.convertToType(data['jwks_uri'], 'String'); + obj['jwks_uri'] = ApiClient.convertToType(data['jwks_uri'], 'String') } if (data.hasOwnProperty('response_types_supported')) { - obj['response_types_supported'] = ApiClient.convertToType(data['response_types_supported'], ['String']); + obj['response_types_supported'] = ApiClient.convertToType( + data['response_types_supported'], + ['String'] + ) } if (data.hasOwnProperty('subject_types_supported')) { - obj['subject_types_supported'] = ApiClient.convertToType(data['subject_types_supported'], ['String']); + obj['subject_types_supported'] = ApiClient.convertToType( + data['subject_types_supported'], + ['String'] + ) } if (data.hasOwnProperty('token_endpoint')) { - obj['token_endpoint'] = ApiClient.convertToType(data['token_endpoint'], 'String'); + obj['token_endpoint'] = ApiClient.convertToType( + data['token_endpoint'], + 'String' + ) } } - return obj; + return obj } /** * URL of the OP's OAuth 2.0 Authorization Endpoint * @member {String} authorization_endpoint */ - exports.prototype['authorization_endpoint'] = undefined; + exports.prototype['authorization_endpoint'] = undefined /** * JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). * @member {Array.} id_token_signing_alg_values_supported */ - exports.prototype['id_token_signing_alg_values_supported'] = undefined; + exports.prototype['id_token_signing_alg_values_supported'] = undefined /** * URL using the https scheme with no query or fragment component that the OP asserts as its Issuer Identifier. If Issuer discovery is supported , this value MUST be identical to the issuer value returned by WebFinger. This also MUST be identical to the iss Claim value in ID Tokens issued from this Issuer. * @member {String} issuer */ - exports.prototype['issuer'] = undefined; + exports.prototype['issuer'] = undefined /** * URL of the OP's JSON Web Key Set [JWK] document. This contains the signing key(s) the RP uses to validate signatures from the OP. The JWK Set MAY also contain the Server's encryption key(s), which are used by RPs to encrypt requests to the Server. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate. * @member {String} jwks_uri */ - exports.prototype['jwks_uri'] = undefined; + exports.prototype['jwks_uri'] = undefined /** * JSON array containing a list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values. * @member {Array.} response_types_supported */ - exports.prototype['response_types_supported'] = undefined; + exports.prototype['response_types_supported'] = undefined /** * JSON array containing a list of the Subject Identifier types that this OP supports. Valid types include pairwise and public. * @member {Array.} subject_types_supported */ - exports.prototype['subject_types_supported'] = undefined; + exports.prototype['subject_types_supported'] = undefined /** * URL of the OP's OAuth 2.0 Token Endpoint * @member {String} token_endpoint */ - exports.prototype['token_endpoint'] = undefined; - - - - return exports; -})); - + exports.prototype['token_endpoint'] = undefined + return exports +}) diff --git a/sdk/js/swagger/src/model/Writer.js b/sdk/js/swagger/src/model/Writer.js index cdedaddca3..eb241fa9e8 100644 --- a/sdk/js/swagger/src/model/Writer.js +++ b/sdk/js/swagger/src/model/Writer.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.HydraOAuth2OpenIdConnectServer) { - root.HydraOAuth2OpenIdConnectServer = {}; + root.HydraOAuth2OpenIdConnectServer = {} } - root.HydraOAuth2OpenIdConnectServer.Writer = factory(root.HydraOAuth2OpenIdConnectServer.ApiClient); + root.HydraOAuth2OpenIdConnectServer.Writer = factory( + root.HydraOAuth2OpenIdConnectServer.ApiClient + ) } -}(this, function(ApiClient) { - 'use strict'; - - - +})(this, function(ApiClient) { + 'use strict' /** * The Writer model module. @@ -47,9 +46,8 @@ * @class */ var exports = function() { - var _this = this; - - }; + var _this = this + } /** * Constructs a Writer from a plain JavaScript object, optionally creating a new instance. @@ -60,16 +58,10 @@ */ exports.constructFromObject = function(data, obj) { if (data) { - obj = obj || new exports(); - + obj = obj || new exports() } - return obj; + return obj } - - - - return exports; -})); - - + return exports +}) 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 808944773c..0000000000 --- a/sdk/js/swagger/test/api/HealthApi.spec.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.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('getInstanceMetrics', function() { - it('should call getInstanceMetrics successfully', function(done) { - //uncomment below and update the code to test getInstanceMetrics - //instance.getInstanceMetrics(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getInstanceStatus', function() { - it('should call getInstanceStatus successfully', function(done) { - //uncomment below and update the code to test getInstanceStatus - //instance.getInstanceStatus(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/sdk/js/swagger/test/api/JsonWebKeyApi.spec.js b/sdk/js/swagger/test/api/JsonWebKeyApi.spec.js deleted file mode 100644 index 93b470be9b..0000000000 --- a/sdk/js/swagger/test/api/JsonWebKeyApi.spec.js +++ /dev/null @@ -1,126 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.JsonWebKeyApi(); - }); - - 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('JsonWebKeyApi', function() { - describe('createJsonWebKeySet', function() { - it('should call createJsonWebKeySet successfully', function(done) { - //uncomment below and update the code to test createJsonWebKeySet - //instance.createJsonWebKeySet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteJsonWebKey', function() { - it('should call deleteJsonWebKey successfully', function(done) { - //uncomment below and update the code to test deleteJsonWebKey - //instance.deleteJsonWebKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteJsonWebKeySet', function() { - it('should call deleteJsonWebKeySet successfully', function(done) { - //uncomment below and update the code to test deleteJsonWebKeySet - //instance.deleteJsonWebKeySet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getJsonWebKey', function() { - it('should call getJsonWebKey successfully', function(done) { - //uncomment below and update the code to test getJsonWebKey - //instance.getJsonWebKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getJsonWebKeySet', function() { - it('should call getJsonWebKeySet successfully', function(done) { - //uncomment below and update the code to test getJsonWebKeySet - //instance.getJsonWebKeySet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateJsonWebKey', function() { - it('should call updateJsonWebKey successfully', function(done) { - //uncomment below and update the code to test updateJsonWebKey - //instance.updateJsonWebKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateJsonWebKeySet', function() { - it('should call updateJsonWebKeySet successfully', function(done) { - //uncomment below and update the code to test updateJsonWebKeySet - //instance.updateJsonWebKeySet(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/sdk/js/swagger/test/api/OAuth2Api.spec.js b/sdk/js/swagger/test/api/OAuth2Api.spec.js deleted file mode 100644 index a779b1c2b6..0000000000 --- a/sdk/js/swagger/test/api/OAuth2Api.spec.js +++ /dev/null @@ -1,196 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.OAuth2Api(); - }); - - 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('OAuth2Api', function() { - describe('acceptOAuth2ConsentRequest', function() { - it('should call acceptOAuth2ConsentRequest successfully', function(done) { - //uncomment below and update the code to test acceptOAuth2ConsentRequest - //instance.acceptOAuth2ConsentRequest(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createOAuth2Client', function() { - it('should call createOAuth2Client successfully', function(done) { - //uncomment below and update the code to test createOAuth2Client - //instance.createOAuth2Client(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteOAuth2Client', function() { - it('should call deleteOAuth2Client successfully', function(done) { - //uncomment below and update the code to test deleteOAuth2Client - //instance.deleteOAuth2Client(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getOAuth2Client', function() { - it('should call getOAuth2Client successfully', function(done) { - //uncomment below and update the code to test getOAuth2Client - //instance.getOAuth2Client(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getOAuth2ConsentRequest', function() { - it('should call getOAuth2ConsentRequest successfully', function(done) { - //uncomment below and update the code to test getOAuth2ConsentRequest - //instance.getOAuth2ConsentRequest(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - 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(); - }); - }); - describe('introspectOAuth2Token', function() { - it('should call introspectOAuth2Token successfully', function(done) { - //uncomment below and update the code to test introspectOAuth2Token - //instance.introspectOAuth2Token(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listOAuth2Clients', function() { - it('should call listOAuth2Clients successfully', function(done) { - //uncomment below and update the code to test listOAuth2Clients - //instance.listOAuth2Clients(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('oauthAuth', function() { - it('should call oauthAuth successfully', function(done) { - //uncomment below and update the code to test oauthAuth - //instance.oauthAuth(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('oauthToken', function() { - it('should call oauthToken successfully', function(done) { - //uncomment below and update the code to test oauthToken - //instance.oauthToken(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('rejectOAuth2ConsentRequest', function() { - it('should call rejectOAuth2ConsentRequest successfully', function(done) { - //uncomment below and update the code to test rejectOAuth2ConsentRequest - //instance.rejectOAuth2ConsentRequest(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('revokeOAuth2Token', function() { - it('should call revokeOAuth2Token successfully', function(done) { - //uncomment below and update the code to test revokeOAuth2Token - //instance.revokeOAuth2Token(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateOAuth2Client', function() { - it('should call updateOAuth2Client successfully', function(done) { - //uncomment below and update the code to test updateOAuth2Client - //instance.updateOAuth2Client(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('wellKnown', function() { - it('should call wellKnown successfully', function(done) { - //uncomment below and update the code to test wellKnown - //instance.wellKnown(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/sdk/js/swagger/test/api/PolicyApi.spec.js b/sdk/js/swagger/test/api/PolicyApi.spec.js deleted file mode 100644 index 23fc1ba6d1..0000000000 --- a/sdk/js/swagger/test/api/PolicyApi.spec.js +++ /dev/null @@ -1,106 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.PolicyApi(); - }); - - 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('PolicyApi', function() { - describe('createPolicy', function() { - it('should call createPolicy successfully', function(done) { - //uncomment below and update the code to test createPolicy - //instance.createPolicy(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deletePolicy', function() { - it('should call deletePolicy successfully', function(done) { - //uncomment below and update the code to test deletePolicy - //instance.deletePolicy(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getPolicy', function() { - it('should call getPolicy successfully', function(done) { - //uncomment below and update the code to test getPolicy - //instance.getPolicy(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listPolicies', function() { - it('should call listPolicies successfully', function(done) { - //uncomment below and update the code to test listPolicies - //instance.listPolicies(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updatePolicy', function() { - it('should call updatePolicy successfully', function(done) { - //uncomment below and update the code to test updatePolicy - //instance.updatePolicy(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/sdk/js/swagger/test/api/WardenApi.spec.js b/sdk/js/swagger/test/api/WardenApi.spec.js deleted file mode 100644 index a460ea5e4e..0000000000 --- a/sdk/js/swagger/test/api/WardenApi.spec.js +++ /dev/null @@ -1,136 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.WardenApi(); - }); - - 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('WardenApi', function() { - describe('addMembersToGroup', function() { - it('should call addMembersToGroup successfully', function(done) { - //uncomment below and update the code to test addMembersToGroup - //instance.addMembersToGroup(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('createGroup', function() { - it('should call createGroup successfully', function(done) { - //uncomment below and update the code to test createGroup - //instance.createGroup(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteGroup', function() { - it('should call deleteGroup successfully', function(done) { - //uncomment below and update the code to test deleteGroup - //instance.deleteGroup(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('doesWardenAllowAccessRequest', function() { - it('should call doesWardenAllowAccessRequest successfully', function(done) { - //uncomment below and update the code to test doesWardenAllowAccessRequest - //instance.doesWardenAllowAccessRequest(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('doesWardenAllowTokenAccessRequest', function() { - it('should call doesWardenAllowTokenAccessRequest successfully', function(done) { - //uncomment below and update the code to test doesWardenAllowTokenAccessRequest - //instance.doesWardenAllowTokenAccessRequest(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('findGroupsByMember', function() { - it('should call findGroupsByMember successfully', function(done) { - //uncomment below and update the code to test findGroupsByMember - //instance.findGroupsByMember(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getGroup', function() { - it('should call getGroup successfully', function(done) { - //uncomment below and update the code to test getGroup - //instance.getGroup(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('removeMembersFromGroup', function() { - it('should call removeMembersFromGroup successfully', function(done) { - //uncomment below and update the code to test removeMembersFromGroup - //instance.removeMembersFromGroup(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/sdk/js/swagger/test/model/ConsentRequest.spec.js b/sdk/js/swagger/test/model/ConsentRequest.spec.js deleted file mode 100644 index 89f93aae1d..0000000000 --- a/sdk/js/swagger/test/model/ConsentRequest.spec.js +++ /dev/null @@ -1,86 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.ConsentRequest(); - }); - - 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('ConsentRequest', function() { - it('should create an instance of ConsentRequest', function() { - // uncomment below and update the code to test ConsentRequest - //var instane = new HydraOAuth2OpenIdConnectServer.ConsentRequest(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.ConsentRequest); - }); - - it('should have the property clientId (base name: "clientId")', function() { - // uncomment below and update the code to test the property clientId - //var instane = new HydraOAuth2OpenIdConnectServer.ConsentRequest(); - //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 HydraOAuth2OpenIdConnectServer.ConsentRequest(); - //expect(instance).to.be(); - }); - - it('should have the property redirectUrl (base name: "redirectUrl")', function() { - // uncomment below and update the code to test the property redirectUrl - //var instane = new HydraOAuth2OpenIdConnectServer.ConsentRequest(); - //expect(instance).to.be(); - }); - - it('should have the property requestedScopes (base name: "requestedScopes")', function() { - // uncomment below and update the code to test the property requestedScopes - //var instane = new HydraOAuth2OpenIdConnectServer.ConsentRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/ConsentRequestAcceptance.spec.js b/sdk/js/swagger/test/model/ConsentRequestAcceptance.spec.js deleted file mode 100644 index 5d68538482..0000000000 --- a/sdk/js/swagger/test/model/ConsentRequestAcceptance.spec.js +++ /dev/null @@ -1,86 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance(); - }); - - 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('ConsentRequestAcceptance', function() { - it('should create an instance of ConsentRequestAcceptance', function() { - // uncomment below and update the code to test ConsentRequestAcceptance - //var instane = new HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance); - }); - - it('should have the property accessTokenExtra (base name: "accessTokenExtra")', function() { - // uncomment below and update the code to test the property accessTokenExtra - //var instane = new HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance(); - //expect(instance).to.be(); - }); - - it('should have the property grantScopes (base name: "grantScopes")', function() { - // uncomment below and update the code to test the property grantScopes - //var instane = new HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance(); - //expect(instance).to.be(); - }); - - it('should have the property idTokenExtra (base name: "idTokenExtra")', function() { - // uncomment below and update the code to test the property idTokenExtra - //var instane = new HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance(); - //expect(instance).to.be(); - }); - - it('should have the property subject (base name: "subject")', function() { - // uncomment below and update the code to test the property subject - //var instane = new HydraOAuth2OpenIdConnectServer.ConsentRequestAcceptance(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/ConsentRequestManager.spec.js b/sdk/js/swagger/test/model/ConsentRequestManager.spec.js deleted file mode 100644 index b33ffff86b..0000000000 --- a/sdk/js/swagger/test/model/ConsentRequestManager.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.ConsentRequestManager(); - }); - - 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('ConsentRequestManager', function() { - it('should create an instance of ConsentRequestManager', function() { - // uncomment below and update the code to test ConsentRequestManager - //var instane = new HydraOAuth2OpenIdConnectServer.ConsentRequestManager(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.ConsentRequestManager); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/ConsentRequestRejection.spec.js b/sdk/js/swagger/test/model/ConsentRequestRejection.spec.js deleted file mode 100644 index ae8d13ac0d..0000000000 --- a/sdk/js/swagger/test/model/ConsentRequestRejection.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.ConsentRequestRejection(); - }); - - 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('ConsentRequestRejection', function() { - it('should create an instance of ConsentRequestRejection', function() { - // uncomment below and update the code to test ConsentRequestRejection - //var instane = new HydraOAuth2OpenIdConnectServer.ConsentRequestRejection(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.ConsentRequestRejection); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instane = new HydraOAuth2OpenIdConnectServer.ConsentRequestRejection(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/Context.spec.js b/sdk/js/swagger/test/model/Context.spec.js deleted file mode 100644 index 69c6202876..0000000000 --- a/sdk/js/swagger/test/model/Context.spec.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.Context(); - }); - - 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('Context', function() { - it('should create an instance of Context', function() { - // uncomment below and update the code to test Context - //var instane = new HydraOAuth2OpenIdConnectServer.Context(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.Context); - }); - - it('should have the property accessTokenExtra (base name: "accessTokenExtra")', function() { - // uncomment below and update the code to test the property accessTokenExtra - //var instane = new HydraOAuth2OpenIdConnectServer.Context(); - //expect(instance).to.be(); - }); - - it('should have the property clientId (base name: "clientId")', function() { - // uncomment below and update the code to test the property clientId - //var instane = new HydraOAuth2OpenIdConnectServer.Context(); - //expect(instance).to.be(); - }); - - it('should have the property grantedScopes (base name: "grantedScopes")', function() { - // uncomment below and update the code to test the property grantedScopes - //var instane = new HydraOAuth2OpenIdConnectServer.Context(); - //expect(instance).to.be(); - }); - - it('should have the property issuer (base name: "issuer")', function() { - // uncomment below and update the code to test the property issuer - //var instane = new HydraOAuth2OpenIdConnectServer.Context(); - //expect(instance).to.be(); - }); - - it('should have the property subject (base name: "subject")', function() { - // uncomment below and update the code to test the property subject - //var instane = new HydraOAuth2OpenIdConnectServer.Context(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/Firewall.spec.js b/sdk/js/swagger/test/model/Firewall.spec.js deleted file mode 100644 index 54158ba910..0000000000 --- a/sdk/js/swagger/test/model/Firewall.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.Firewall(); - }); - - 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('Firewall', function() { - it('should create an instance of Firewall', function() { - // uncomment below and update the code to test Firewall - //var instane = new HydraOAuth2OpenIdConnectServer.Firewall(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.Firewall); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/Group.spec.js b/sdk/js/swagger/test/model/Group.spec.js deleted file mode 100644 index 647b77023d..0000000000 --- a/sdk/js/swagger/test/model/Group.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.Group(); - }); - - 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('Group', function() { - it('should create an instance of Group', function() { - // uncomment below and update the code to test Group - //var instane = new HydraOAuth2OpenIdConnectServer.Group(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.Group); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new HydraOAuth2OpenIdConnectServer.Group(); - //expect(instance).to.be(); - }); - - it('should have the property members (base name: "members")', function() { - // uncomment below and update the code to test the property members - //var instane = new HydraOAuth2OpenIdConnectServer.Group(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/GroupMembers.spec.js b/sdk/js/swagger/test/model/GroupMembers.spec.js deleted file mode 100644 index 497b6e421f..0000000000 --- a/sdk/js/swagger/test/model/GroupMembers.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.GroupMembers(); - }); - - 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('GroupMembers', function() { - it('should create an instance of GroupMembers', function() { - // uncomment below and update the code to test GroupMembers - //var instane = new HydraOAuth2OpenIdConnectServer.GroupMembers(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.GroupMembers); - }); - - it('should have the property members (base name: "members")', function() { - // uncomment below and update the code to test the property members - //var instane = new HydraOAuth2OpenIdConnectServer.GroupMembers(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/Handler.spec.js b/sdk/js/swagger/test/model/Handler.spec.js deleted file mode 100644 index c5890c3f75..0000000000 --- a/sdk/js/swagger/test/model/Handler.spec.js +++ /dev/null @@ -1,86 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.Handler(); - }); - - 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('Handler', function() { - it('should create an instance of Handler', function() { - // uncomment below and update the code to test Handler - //var instane = new HydraOAuth2OpenIdConnectServer.Handler(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.Handler); - }); - - it('should have the property generators (base name: "Generators")', function() { - // uncomment below and update the code to test the property generators - //var instane = new HydraOAuth2OpenIdConnectServer.Handler(); - //expect(instance).to.be(); - }); - - it('should have the property H (base name: "H")', function() { - // uncomment below and update the code to test the property H - //var instane = new HydraOAuth2OpenIdConnectServer.Handler(); - //expect(instance).to.be(); - }); - - it('should have the property manager (base name: "Manager")', function() { - // uncomment below and update the code to test the property manager - //var instane = new HydraOAuth2OpenIdConnectServer.Handler(); - //expect(instance).to.be(); - }); - - it('should have the property W (base name: "W")', function() { - // uncomment below and update the code to test the property W - //var instane = new HydraOAuth2OpenIdConnectServer.Handler(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/InlineResponse200.spec.js b/sdk/js/swagger/test/model/InlineResponse200.spec.js deleted file mode 100644 index 2a18f95848..0000000000 --- a/sdk/js/swagger/test/model/InlineResponse200.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.InlineResponse200(); - }); - - 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('InlineResponse200', function() { - it('should create an instance of InlineResponse200', function() { - // uncomment below and update the code to test InlineResponse200 - //var instane = new HydraOAuth2OpenIdConnectServer.InlineResponse200(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.InlineResponse200); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instane = new HydraOAuth2OpenIdConnectServer.InlineResponse200(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/InlineResponse2001.spec.js b/sdk/js/swagger/test/model/InlineResponse2001.spec.js deleted file mode 100644 index 5daadd3321..0000000000 --- a/sdk/js/swagger/test/model/InlineResponse2001.spec.js +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.InlineResponse2001(); - }); - - 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('InlineResponse2001', function() { - it('should create an instance of InlineResponse2001', function() { - // uncomment below and update the code to test InlineResponse2001 - //var instane = new HydraOAuth2OpenIdConnectServer.InlineResponse2001(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.InlineResponse2001); - }); - - it('should have the property accessToken (base name: "access_token")', function() { - // uncomment below and update the code to test the property accessToken - //var instane = new HydraOAuth2OpenIdConnectServer.InlineResponse2001(); - //expect(instance).to.be(); - }); - - it('should have the property expiresIn (base name: "expires_in")', function() { - // uncomment below and update the code to test the property expiresIn - //var instane = new HydraOAuth2OpenIdConnectServer.InlineResponse2001(); - //expect(instance).to.be(); - }); - - it('should have the property idToken (base name: "id_token")', function() { - // uncomment below and update the code to test the property idToken - //var instane = new HydraOAuth2OpenIdConnectServer.InlineResponse2001(); - //expect(instance).to.be(); - }); - - it('should have the property refreshToken (base name: "refresh_token")', function() { - // uncomment below and update the code to test the property refreshToken - //var instane = new HydraOAuth2OpenIdConnectServer.InlineResponse2001(); - //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 HydraOAuth2OpenIdConnectServer.InlineResponse2001(); - //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 HydraOAuth2OpenIdConnectServer.InlineResponse2001(); - //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 f9d00fea10..0000000000 --- a/sdk/js/swagger/test/model/InlineResponse401.spec.js +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.InlineResponse401(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.InlineResponse401(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/JoseWebKeySetRequest.spec.js b/sdk/js/swagger/test/model/JoseWebKeySetRequest.spec.js deleted file mode 100644 index 01107845e4..0000000000 --- a/sdk/js/swagger/test/model/JoseWebKeySetRequest.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.JoseWebKeySetRequest(); - }); - - 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('JoseWebKeySetRequest', function() { - it('should create an instance of JoseWebKeySetRequest', function() { - // uncomment below and update the code to test JoseWebKeySetRequest - //var instane = new HydraOAuth2OpenIdConnectServer.JoseWebKeySetRequest(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.JoseWebKeySetRequest); - }); - - it('should have the property keys (base name: "keys")', function() { - // uncomment below and update the code to test the property keys - //var instane = new HydraOAuth2OpenIdConnectServer.JoseWebKeySetRequest(); - //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 8de500210b..0000000000 --- a/sdk/js/swagger/test/model/JsonWebKey.spec.js +++ /dev/null @@ -1,164 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.JsonWebKey(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.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 a32fb62db5..0000000000 --- a/sdk/js/swagger/test/model/JsonWebKeySet.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.JsonWebKeySet(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.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 HydraOAuth2OpenIdConnectServer.JsonWebKeySet(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/JsonWebKeySetGeneratorRequest.spec.js b/sdk/js/swagger/test/model/JsonWebKeySetGeneratorRequest.spec.js deleted file mode 100644 index 7be64492e3..0000000000 --- a/sdk/js/swagger/test/model/JsonWebKeySetGeneratorRequest.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.JsonWebKeySetGeneratorRequest(); - }); - - 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('JsonWebKeySetGeneratorRequest', function() { - it('should create an instance of JsonWebKeySetGeneratorRequest', function() { - // uncomment below and update the code to test JsonWebKeySetGeneratorRequest - //var instane = new HydraOAuth2OpenIdConnectServer.JsonWebKeySetGeneratorRequest(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.JsonWebKeySetGeneratorRequest); - }); - - it('should have the property alg (base name: "alg")', function() { - // uncomment below and update the code to test the property alg - //var instane = new HydraOAuth2OpenIdConnectServer.JsonWebKeySetGeneratorRequest(); - //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 HydraOAuth2OpenIdConnectServer.JsonWebKeySetGeneratorRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/KeyGenerator.spec.js b/sdk/js/swagger/test/model/KeyGenerator.spec.js deleted file mode 100644 index 048d6c6be6..0000000000 --- a/sdk/js/swagger/test/model/KeyGenerator.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.KeyGenerator(); - }); - - 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('KeyGenerator', function() { - it('should create an instance of KeyGenerator', function() { - // uncomment below and update the code to test KeyGenerator - //var instane = new HydraOAuth2OpenIdConnectServer.KeyGenerator(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.KeyGenerator); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/Manager.spec.js b/sdk/js/swagger/test/model/Manager.spec.js deleted file mode 100644 index 5550416a96..0000000000 --- a/sdk/js/swagger/test/model/Manager.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.Manager(); - }); - - 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('Manager', function() { - it('should create an instance of Manager', function() { - // uncomment below and update the code to test Manager - //var instane = new HydraOAuth2OpenIdConnectServer.Manager(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.Manager); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/OAuth2Client.spec.js b/sdk/js/swagger/test/model/OAuth2Client.spec.js deleted file mode 100644 index 4f29614f37..0000000000 --- a/sdk/js/swagger/test/model/OAuth2Client.spec.js +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - }); - - 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('OAuth2Client', function() { - it('should create an instance of OAuth2Client', function() { - // uncomment below and update the code to test OAuth2Client - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.OAuth2Client); - }); - - it('should have the property clientName (base name: "client_name")', function() { - // uncomment below and update the code to test the property clientName - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be(); - }); - - it('should have the property clientSecret (base name: "client_secret")', function() { - // uncomment below and update the code to test the property clientSecret - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be(); - }); - - it('should have the property clientUri (base name: "client_uri")', function() { - // uncomment below and update the code to test the property clientUri - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be(); - }); - - it('should have the property contacts (base name: "contacts")', function() { - // uncomment below and update the code to test the property contacts - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be(); - }); - - it('should have the property grantTypes (base name: "grant_types")', function() { - // uncomment below and update the code to test the property grantTypes - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be(); - }); - - it('should have the property logoUri (base name: "logo_uri")', function() { - // uncomment below and update the code to test the property logoUri - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be(); - }); - - it('should have the property owner (base name: "owner")', function() { - // uncomment below and update the code to test the property owner - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be(); - }); - - it('should have the property policyUri (base name: "policy_uri")', function() { - // uncomment below and update the code to test the property policyUri - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be(); - }); - - it('should have the property _public (base name: "public")', function() { - // uncomment below and update the code to test the property _public - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be(); - }); - - it('should have the property redirectUris (base name: "redirect_uris")', function() { - // uncomment below and update the code to test the property redirectUris - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be(); - }); - - it('should have the property responseTypes (base name: "response_types")', function() { - // uncomment below and update the code to test the property responseTypes - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be(); - }); - - it('should have the property tosUri (base name: "tos_uri")', function() { - // uncomment below and update the code to test the property tosUri - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2Client(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/OAuth2TokenIntrospection.spec.js b/sdk/js/swagger/test/model/OAuth2TokenIntrospection.spec.js deleted file mode 100644 index 12d45305b4..0000000000 --- a/sdk/js/swagger/test/model/OAuth2TokenIntrospection.spec.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - }); - - 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('OAuth2TokenIntrospection', function() { - it('should create an instance of OAuth2TokenIntrospection', function() { - // uncomment below and update the code to test OAuth2TokenIntrospection - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection); - }); - - it('should have the property active (base name: "active")', function() { - // uncomment below and update the code to test the property active - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2TokenIntrospection(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/OAuth2consentRequest.spec.js b/sdk/js/swagger/test/model/OAuth2consentRequest.spec.js deleted file mode 100644 index 3fdb97564c..0000000000 --- a/sdk/js/swagger/test/model/OAuth2consentRequest.spec.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest(); - }); - - 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('OAuth2ConsentRequest', function() { - it('should create an instance of OAuth2ConsentRequest', function() { - // uncomment below and update the code to test OAuth2ConsentRequest - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest); - }); - - it('should have the property clientId (base name: "clientId")', function() { - // uncomment below and update the code to test the property clientId - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest(); - //expect(instance).to.be(); - }); - - it('should have the property expiresAt (base name: "expiresAt")', function() { - // uncomment below and update the code to test the property expiresAt - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest(); - //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 HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest(); - //expect(instance).to.be(); - }); - - it('should have the property redirectUrl (base name: "redirectUrl")', function() { - // uncomment below and update the code to test the property redirectUrl - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest(); - //expect(instance).to.be(); - }); - - it('should have the property requestedScopes (base name: "requestedScopes")', function() { - // uncomment below and update the code to test the property requestedScopes - //var instane = new HydraOAuth2OpenIdConnectServer.OAuth2ConsentRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/Policy.spec.js b/sdk/js/swagger/test/model/Policy.spec.js deleted file mode 100644 index 588af35d4e..0000000000 --- a/sdk/js/swagger/test/model/Policy.spec.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.Policy(); - }); - - 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('Policy', function() { - it('should create an instance of Policy', function() { - // uncomment below and update the code to test Policy - //var instane = new HydraOAuth2OpenIdConnectServer.Policy(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.Policy); - }); - - it('should have the property actions (base name: "actions")', function() { - // uncomment below and update the code to test the property actions - //var instane = new HydraOAuth2OpenIdConnectServer.Policy(); - //expect(instance).to.be(); - }); - - it('should have the property conditions (base name: "conditions")', function() { - // uncomment below and update the code to test the property conditions - //var instane = new HydraOAuth2OpenIdConnectServer.Policy(); - //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 HydraOAuth2OpenIdConnectServer.Policy(); - //expect(instance).to.be(); - }); - - it('should have the property effect (base name: "effect")', function() { - // uncomment below and update the code to test the property effect - //var instane = new HydraOAuth2OpenIdConnectServer.Policy(); - //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 HydraOAuth2OpenIdConnectServer.Policy(); - //expect(instance).to.be(); - }); - - it('should have the property resources (base name: "resources")', function() { - // uncomment below and update the code to test the property resources - //var instane = new HydraOAuth2OpenIdConnectServer.Policy(); - //expect(instance).to.be(); - }); - - it('should have the property subjects (base name: "subjects")', function() { - // uncomment below and update the code to test the property subjects - //var instane = new HydraOAuth2OpenIdConnectServer.Policy(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/PolicyConditions.spec.js b/sdk/js/swagger/test/model/PolicyConditions.spec.js deleted file mode 100644 index 9a0d2ab546..0000000000 --- a/sdk/js/swagger/test/model/PolicyConditions.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.PolicyConditions(); - }); - - 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('PolicyConditions', function() { - it('should create an instance of PolicyConditions', function() { - // uncomment below and update the code to test PolicyConditions - //var instane = new HydraOAuth2OpenIdConnectServer.PolicyConditions(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.PolicyConditions); - }); - - it('should have the property options (base name: "options")', function() { - // uncomment below and update the code to test the property options - //var instane = new HydraOAuth2OpenIdConnectServer.PolicyConditions(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instane = new HydraOAuth2OpenIdConnectServer.PolicyConditions(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/RawMessage.spec.js b/sdk/js/swagger/test/model/RawMessage.spec.js deleted file mode 100644 index e89613cb20..0000000000 --- a/sdk/js/swagger/test/model/RawMessage.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.RawMessage(); - }); - - 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('RawMessage', function() { - it('should create an instance of RawMessage', function() { - // uncomment below and update the code to test RawMessage - //var instane = new HydraOAuth2OpenIdConnectServer.RawMessage(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.RawMessage); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerAcceptConsentRequest.spec.js b/sdk/js/swagger/test/model/SwaggerAcceptConsentRequest.spec.js deleted file mode 100644 index 1058630602..0000000000 --- a/sdk/js/swagger/test/model/SwaggerAcceptConsentRequest.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerAcceptConsentRequest(); - }); - - 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('SwaggerAcceptConsentRequest', function() { - it('should create an instance of SwaggerAcceptConsentRequest', function() { - // uncomment below and update the code to test SwaggerAcceptConsentRequest - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerAcceptConsentRequest(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerAcceptConsentRequest); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerAcceptConsentRequest(); - //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 HydraOAuth2OpenIdConnectServer.SwaggerAcceptConsentRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerCreatePolicyParameters.spec.js b/sdk/js/swagger/test/model/SwaggerCreatePolicyParameters.spec.js deleted file mode 100644 index 7ba01e6088..0000000000 --- a/sdk/js/swagger/test/model/SwaggerCreatePolicyParameters.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerCreatePolicyParameters(); - }); - - 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('SwaggerCreatePolicyParameters', function() { - it('should create an instance of SwaggerCreatePolicyParameters', function() { - // uncomment below and update the code to test SwaggerCreatePolicyParameters - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerCreatePolicyParameters(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerCreatePolicyParameters); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerCreatePolicyParameters(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerDoesWardenAllowAccessRequestParameters.spec.js b/sdk/js/swagger/test/model/SwaggerDoesWardenAllowAccessRequestParameters.spec.js deleted file mode 100644 index 15da6fc230..0000000000 --- a/sdk/js/swagger/test/model/SwaggerDoesWardenAllowAccessRequestParameters.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerDoesWardenAllowAccessRequestParameters(); - }); - - 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('SwaggerDoesWardenAllowAccessRequestParameters', function() { - it('should create an instance of SwaggerDoesWardenAllowAccessRequestParameters', function() { - // uncomment below and update the code to test SwaggerDoesWardenAllowAccessRequestParameters - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerDoesWardenAllowAccessRequestParameters(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerDoesWardenAllowAccessRequestParameters); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerDoesWardenAllowAccessRequestParameters(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerDoesWardenAllowTokenAccessRequestParameters.spec.js b/sdk/js/swagger/test/model/SwaggerDoesWardenAllowTokenAccessRequestParameters.spec.js deleted file mode 100644 index 4dcbe6a88a..0000000000 --- a/sdk/js/swagger/test/model/SwaggerDoesWardenAllowTokenAccessRequestParameters.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerDoesWardenAllowTokenAccessRequestParameters(); - }); - - 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('SwaggerDoesWardenAllowTokenAccessRequestParameters', function() { - it('should create an instance of SwaggerDoesWardenAllowTokenAccessRequestParameters', function() { - // uncomment below and update the code to test SwaggerDoesWardenAllowTokenAccessRequestParameters - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerDoesWardenAllowTokenAccessRequestParameters(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerDoesWardenAllowTokenAccessRequestParameters); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerDoesWardenAllowTokenAccessRequestParameters(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerGetPolicyParameters.spec.js b/sdk/js/swagger/test/model/SwaggerGetPolicyParameters.spec.js deleted file mode 100644 index 870778b761..0000000000 --- a/sdk/js/swagger/test/model/SwaggerGetPolicyParameters.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerGetPolicyParameters(); - }); - - 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('SwaggerGetPolicyParameters', function() { - it('should create an instance of SwaggerGetPolicyParameters', function() { - // uncomment below and update the code to test SwaggerGetPolicyParameters - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerGetPolicyParameters(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerGetPolicyParameters); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerGetPolicyParameters(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerJsonWebKeyQuery.spec.js b/sdk/js/swagger/test/model/SwaggerJsonWebKeyQuery.spec.js deleted file mode 100644 index 7e0f2a2d9f..0000000000 --- a/sdk/js/swagger/test/model/SwaggerJsonWebKeyQuery.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerJsonWebKeyQuery(); - }); - - 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('SwaggerJsonWebKeyQuery', function() { - it('should create an instance of SwaggerJsonWebKeyQuery', function() { - // uncomment below and update the code to test SwaggerJsonWebKeyQuery - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJsonWebKeyQuery(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerJsonWebKeyQuery); - }); - - it('should have the property kid (base name: "kid")', function() { - // uncomment below and update the code to test the property kid - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJsonWebKeyQuery(); - //expect(instance).to.be(); - }); - - it('should have the property set (base name: "set")', function() { - // uncomment below and update the code to test the property set - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJsonWebKeyQuery(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerJwkCreateSet.spec.js b/sdk/js/swagger/test/model/SwaggerJwkCreateSet.spec.js deleted file mode 100644 index 5f3254418a..0000000000 --- a/sdk/js/swagger/test/model/SwaggerJwkCreateSet.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerJwkCreateSet(); - }); - - 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('SwaggerJwkCreateSet', function() { - it('should create an instance of SwaggerJwkCreateSet', function() { - // uncomment below and update the code to test SwaggerJwkCreateSet - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJwkCreateSet(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerJwkCreateSet); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJwkCreateSet(); - //expect(instance).to.be(); - }); - - it('should have the property set (base name: "set")', function() { - // uncomment below and update the code to test the property set - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJwkCreateSet(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerJwkSetQuery.spec.js b/sdk/js/swagger/test/model/SwaggerJwkSetQuery.spec.js deleted file mode 100644 index 33c11c0abf..0000000000 --- a/sdk/js/swagger/test/model/SwaggerJwkSetQuery.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerJwkSetQuery(); - }); - - 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('SwaggerJwkSetQuery', function() { - it('should create an instance of SwaggerJwkSetQuery', function() { - // uncomment below and update the code to test SwaggerJwkSetQuery - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJwkSetQuery(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerJwkSetQuery); - }); - - it('should have the property set (base name: "set")', function() { - // uncomment below and update the code to test the property set - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJwkSetQuery(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerJwkUpdateSet.spec.js b/sdk/js/swagger/test/model/SwaggerJwkUpdateSet.spec.js deleted file mode 100644 index c8adab1323..0000000000 --- a/sdk/js/swagger/test/model/SwaggerJwkUpdateSet.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSet(); - }); - - 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('SwaggerJwkUpdateSet', function() { - it('should create an instance of SwaggerJwkUpdateSet', function() { - // uncomment below and update the code to test SwaggerJwkUpdateSet - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSet(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSet); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSet(); - //expect(instance).to.be(); - }); - - it('should have the property set (base name: "set")', function() { - // uncomment below and update the code to test the property set - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSet(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerJwkUpdateSetKey.spec.js b/sdk/js/swagger/test/model/SwaggerJwkUpdateSetKey.spec.js deleted file mode 100644 index e6bf790108..0000000000 --- a/sdk/js/swagger/test/model/SwaggerJwkUpdateSetKey.spec.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSetKey(); - }); - - 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('SwaggerJwkUpdateSetKey', function() { - it('should create an instance of SwaggerJwkUpdateSetKey', function() { - // uncomment below and update the code to test SwaggerJwkUpdateSetKey - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSetKey(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSetKey); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSetKey(); - //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 HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSetKey(); - //expect(instance).to.be(); - }); - - it('should have the property set (base name: "set")', function() { - // uncomment below and update the code to test the property set - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerJwkUpdateSetKey(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerListPolicyParameters.spec.js b/sdk/js/swagger/test/model/SwaggerListPolicyParameters.spec.js deleted file mode 100644 index d5ccb3d8f6..0000000000 --- a/sdk/js/swagger/test/model/SwaggerListPolicyParameters.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerListPolicyParameters(); - }); - - 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('SwaggerListPolicyParameters', function() { - it('should create an instance of SwaggerListPolicyParameters', function() { - // uncomment below and update the code to test SwaggerListPolicyParameters - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerListPolicyParameters(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerListPolicyParameters); - }); - - it('should have the property limit (base name: "limit")', function() { - // uncomment below and update the code to test the property limit - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerListPolicyParameters(); - //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 HydraOAuth2OpenIdConnectServer.SwaggerListPolicyParameters(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerListPolicyResponse.spec.js b/sdk/js/swagger/test/model/SwaggerListPolicyResponse.spec.js deleted file mode 100644 index dd78e8be17..0000000000 --- a/sdk/js/swagger/test/model/SwaggerListPolicyResponse.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerListPolicyResponse(); - }); - - 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('SwaggerListPolicyResponse', function() { - it('should create an instance of SwaggerListPolicyResponse', function() { - // uncomment below and update the code to test SwaggerListPolicyResponse - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerListPolicyResponse(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerListPolicyResponse); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerListPolicyResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerOAuthConsentRequest.spec.js b/sdk/js/swagger/test/model/SwaggerOAuthConsentRequest.spec.js deleted file mode 100644 index 46b2105dc5..0000000000 --- a/sdk/js/swagger/test/model/SwaggerOAuthConsentRequest.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthConsentRequest(); - }); - - 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('SwaggerOAuthConsentRequest', function() { - it('should create an instance of SwaggerOAuthConsentRequest', function() { - // uncomment below and update the code to test SwaggerOAuthConsentRequest - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthConsentRequest(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerOAuthConsentRequest); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthConsentRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerOAuthConsentRequestPayload.spec.js b/sdk/js/swagger/test/model/SwaggerOAuthConsentRequestPayload.spec.js deleted file mode 100644 index cb8a206ba5..0000000000 --- a/sdk/js/swagger/test/model/SwaggerOAuthConsentRequestPayload.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthConsentRequestPayload(); - }); - - 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('SwaggerOAuthConsentRequestPayload', function() { - it('should create an instance of SwaggerOAuthConsentRequestPayload', function() { - // uncomment below and update the code to test SwaggerOAuthConsentRequestPayload - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthConsentRequestPayload(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerOAuthConsentRequestPayload); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthConsentRequestPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerOAuthIntrospectionRequest.spec.js b/sdk/js/swagger/test/model/SwaggerOAuthIntrospectionRequest.spec.js deleted file mode 100644 index c52aabe49a..0000000000 --- a/sdk/js/swagger/test/model/SwaggerOAuthIntrospectionRequest.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionRequest(); - }); - - 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('SwaggerOAuthIntrospectionRequest', function() { - it('should create an instance of SwaggerOAuthIntrospectionRequest', function() { - // uncomment below and update the code to test SwaggerOAuthIntrospectionRequest - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionRequest(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionRequest); - }); - - it('should have the property scope (base name: "scope")', function() { - // uncomment below and update the code to test the property scope - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionRequest(); - //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 HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerOAuthIntrospectionResponse.spec.js b/sdk/js/swagger/test/model/SwaggerOAuthIntrospectionResponse.spec.js deleted file mode 100644 index d6d9d3ad1a..0000000000 --- a/sdk/js/swagger/test/model/SwaggerOAuthIntrospectionResponse.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionResponse(); - }); - - 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('SwaggerOAuthIntrospectionResponse', function() { - it('should create an instance of SwaggerOAuthIntrospectionResponse', function() { - // uncomment below and update the code to test SwaggerOAuthIntrospectionResponse - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionResponse(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionResponse); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthIntrospectionResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerOAuthTokenResponse.spec.js b/sdk/js/swagger/test/model/SwaggerOAuthTokenResponse.spec.js deleted file mode 100644 index 8986f3fa9b..0000000000 --- a/sdk/js/swagger/test/model/SwaggerOAuthTokenResponse.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponse(); - }); - - 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('SwaggerOAuthTokenResponse', function() { - it('should create an instance of SwaggerOAuthTokenResponse', function() { - // uncomment below and update the code to test SwaggerOAuthTokenResponse - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponse(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponse); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerOAuthTokenResponseBody.spec.js b/sdk/js/swagger/test/model/SwaggerOAuthTokenResponseBody.spec.js deleted file mode 100644 index 7955cf4440..0000000000 --- a/sdk/js/swagger/test/model/SwaggerOAuthTokenResponseBody.spec.js +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody(); - }); - - 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('SwaggerOAuthTokenResponseBody', function() { - it('should create an instance of SwaggerOAuthTokenResponseBody', function() { - // uncomment below and update the code to test SwaggerOAuthTokenResponseBody - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody); - }); - - it('should have the property accessToken (base name: "access_token")', function() { - // uncomment below and update the code to test the property accessToken - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody(); - //expect(instance).to.be(); - }); - - it('should have the property expiresIn (base name: "expires_in")', function() { - // uncomment below and update the code to test the property expiresIn - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody(); - //expect(instance).to.be(); - }); - - it('should have the property idToken (base name: "id_token")', function() { - // uncomment below and update the code to test the property idToken - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody(); - //expect(instance).to.be(); - }); - - it('should have the property refreshToken (base name: "refresh_token")', function() { - // uncomment below and update the code to test the property refreshToken - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody(); - //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 HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody(); - //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 HydraOAuth2OpenIdConnectServer.SwaggerOAuthTokenResponseBody(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerRejectConsentRequest.spec.js b/sdk/js/swagger/test/model/SwaggerRejectConsentRequest.spec.js deleted file mode 100644 index f91483ee66..0000000000 --- a/sdk/js/swagger/test/model/SwaggerRejectConsentRequest.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerRejectConsentRequest(); - }); - - 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('SwaggerRejectConsentRequest', function() { - it('should create an instance of SwaggerRejectConsentRequest', function() { - // uncomment below and update the code to test SwaggerRejectConsentRequest - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerRejectConsentRequest(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerRejectConsentRequest); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerRejectConsentRequest(); - //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 HydraOAuth2OpenIdConnectServer.SwaggerRejectConsentRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerRevokeOAuth2TokenParameters.spec.js b/sdk/js/swagger/test/model/SwaggerRevokeOAuth2TokenParameters.spec.js deleted file mode 100644 index 836ac6d840..0000000000 --- a/sdk/js/swagger/test/model/SwaggerRevokeOAuth2TokenParameters.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerRevokeOAuth2TokenParameters(); - }); - - 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('SwaggerRevokeOAuth2TokenParameters', function() { - it('should create an instance of SwaggerRevokeOAuth2TokenParameters', function() { - // uncomment below and update the code to test SwaggerRevokeOAuth2TokenParameters - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerRevokeOAuth2TokenParameters(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerRevokeOAuth2TokenParameters); - }); - - it('should have the property token (base name: "token")', function() { - // uncomment below and update the code to test the property token - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerRevokeOAuth2TokenParameters(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerUpdatePolicyParameters.spec.js b/sdk/js/swagger/test/model/SwaggerUpdatePolicyParameters.spec.js deleted file mode 100644 index 8a58e13838..0000000000 --- a/sdk/js/swagger/test/model/SwaggerUpdatePolicyParameters.spec.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerUpdatePolicyParameters(); - }); - - 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('SwaggerUpdatePolicyParameters', function() { - it('should create an instance of SwaggerUpdatePolicyParameters', function() { - // uncomment below and update the code to test SwaggerUpdatePolicyParameters - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerUpdatePolicyParameters(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerUpdatePolicyParameters); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerUpdatePolicyParameters(); - //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 HydraOAuth2OpenIdConnectServer.SwaggerUpdatePolicyParameters(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerWardenAccessRequestResponseParameters.spec.js b/sdk/js/swagger/test/model/SwaggerWardenAccessRequestResponseParameters.spec.js deleted file mode 100644 index 5717f6ec06..0000000000 --- a/sdk/js/swagger/test/model/SwaggerWardenAccessRequestResponseParameters.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerWardenAccessRequestResponseParameters(); - }); - - 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('SwaggerWardenAccessRequestResponseParameters', function() { - it('should create an instance of SwaggerWardenAccessRequestResponseParameters', function() { - // uncomment below and update the code to test SwaggerWardenAccessRequestResponseParameters - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerWardenAccessRequestResponseParameters(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerWardenAccessRequestResponseParameters); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerWardenAccessRequestResponseParameters(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/SwaggerWardenTokenAccessRequestResponse.spec.js b/sdk/js/swagger/test/model/SwaggerWardenTokenAccessRequestResponse.spec.js deleted file mode 100644 index bdbc408765..0000000000 --- a/sdk/js/swagger/test/model/SwaggerWardenTokenAccessRequestResponse.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.SwaggerWardenTokenAccessRequestResponse(); - }); - - 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('SwaggerWardenTokenAccessRequestResponse', function() { - it('should create an instance of SwaggerWardenTokenAccessRequestResponse', function() { - // uncomment below and update the code to test SwaggerWardenTokenAccessRequestResponse - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerWardenTokenAccessRequestResponse(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.SwaggerWardenTokenAccessRequestResponse); - }); - - it('should have the property body (base name: "Body")', function() { - // uncomment below and update the code to test the property body - //var instane = new HydraOAuth2OpenIdConnectServer.SwaggerWardenTokenAccessRequestResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/TokenAllowedRequest.spec.js b/sdk/js/swagger/test/model/TokenAllowedRequest.spec.js deleted file mode 100644 index 0fb3e14fa7..0000000000 --- a/sdk/js/swagger/test/model/TokenAllowedRequest.spec.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.TokenAllowedRequest(); - }); - - 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('TokenAllowedRequest', function() { - it('should create an instance of TokenAllowedRequest', function() { - // uncomment below and update the code to test TokenAllowedRequest - //var instane = new HydraOAuth2OpenIdConnectServer.TokenAllowedRequest(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.TokenAllowedRequest); - }); - - it('should have the property action (base name: "action")', function() { - // uncomment below and update the code to test the property action - //var instane = new HydraOAuth2OpenIdConnectServer.TokenAllowedRequest(); - //expect(instance).to.be(); - }); - - it('should have the property context (base name: "context")', function() { - // uncomment below and update the code to test the property context - //var instane = new HydraOAuth2OpenIdConnectServer.TokenAllowedRequest(); - //expect(instance).to.be(); - }); - - it('should have the property resource (base name: "resource")', function() { - // uncomment below and update the code to test the property resource - //var instane = new HydraOAuth2OpenIdConnectServer.TokenAllowedRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/WardenAccessRequest.spec.js b/sdk/js/swagger/test/model/WardenAccessRequest.spec.js deleted file mode 100644 index 705b2cc44c..0000000000 --- a/sdk/js/swagger/test/model/WardenAccessRequest.spec.js +++ /dev/null @@ -1,86 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.WardenAccessRequest(); - }); - - 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('WardenAccessRequest', function() { - it('should create an instance of WardenAccessRequest', function() { - // uncomment below and update the code to test WardenAccessRequest - //var instane = new HydraOAuth2OpenIdConnectServer.WardenAccessRequest(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.WardenAccessRequest); - }); - - it('should have the property action (base name: "action")', function() { - // uncomment below and update the code to test the property action - //var instane = new HydraOAuth2OpenIdConnectServer.WardenAccessRequest(); - //expect(instance).to.be(); - }); - - it('should have the property context (base name: "context")', function() { - // uncomment below and update the code to test the property context - //var instane = new HydraOAuth2OpenIdConnectServer.WardenAccessRequest(); - //expect(instance).to.be(); - }); - - it('should have the property resource (base name: "resource")', function() { - // uncomment below and update the code to test the property resource - //var instane = new HydraOAuth2OpenIdConnectServer.WardenAccessRequest(); - //expect(instance).to.be(); - }); - - it('should have the property subject (base name: "subject")', function() { - // uncomment below and update the code to test the property subject - //var instane = new HydraOAuth2OpenIdConnectServer.WardenAccessRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/WardenAccessRequestResponse.spec.js b/sdk/js/swagger/test/model/WardenAccessRequestResponse.spec.js deleted file mode 100644 index 46d5a66dca..0000000000 --- a/sdk/js/swagger/test/model/WardenAccessRequestResponse.spec.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.WardenAccessRequestResponse(); - }); - - 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('WardenAccessRequestResponse', function() { - it('should create an instance of WardenAccessRequestResponse', function() { - // uncomment below and update the code to test WardenAccessRequestResponse - //var instane = new HydraOAuth2OpenIdConnectServer.WardenAccessRequestResponse(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.WardenAccessRequestResponse); - }); - - it('should have the property allowed (base name: "allowed")', function() { - // uncomment below and update the code to test the property allowed - //var instane = new HydraOAuth2OpenIdConnectServer.WardenAccessRequestResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/WardenTokenAccessRequest.spec.js b/sdk/js/swagger/test/model/WardenTokenAccessRequest.spec.js deleted file mode 100644 index 5d28f12845..0000000000 --- a/sdk/js/swagger/test/model/WardenTokenAccessRequest.spec.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest(); - }); - - 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('WardenTokenAccessRequest', function() { - it('should create an instance of WardenTokenAccessRequest', function() { - // uncomment below and update the code to test WardenTokenAccessRequest - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest); - }); - - it('should have the property action (base name: "action")', function() { - // uncomment below and update the code to test the property action - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest(); - //expect(instance).to.be(); - }); - - it('should have the property context (base name: "context")', function() { - // uncomment below and update the code to test the property context - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest(); - //expect(instance).to.be(); - }); - - it('should have the property resource (base name: "resource")', function() { - // uncomment below and update the code to test the property resource - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest(); - //expect(instance).to.be(); - }); - - it('should have the property scopes (base name: "scopes")', function() { - // uncomment below and update the code to test the property scopes - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest(); - //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 HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/WardenTokenAccessRequestResponse.spec.js b/sdk/js/swagger/test/model/WardenTokenAccessRequestResponse.spec.js deleted file mode 100644 index b9c7d4327e..0000000000 --- a/sdk/js/swagger/test/model/WardenTokenAccessRequestResponse.spec.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse(); - }); - - 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('WardenTokenAccessRequestResponse', function() { - it('should create an instance of WardenTokenAccessRequestResponse', function() { - // uncomment below and update the code to test WardenTokenAccessRequestResponse - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse); - }); - - it('should have the property accessTokenExtra (base name: "accessTokenExtra")', function() { - // uncomment below and update the code to test the property accessTokenExtra - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property allowed (base name: "allowed")', function() { - // uncomment below and update the code to test the property allowed - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property clientId (base name: "clientId")', function() { - // uncomment below and update the code to test the property clientId - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property expiresAt (base name: "expiresAt")', function() { - // uncomment below and update the code to test the property expiresAt - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property grantedScopes (base name: "grantedScopes")', function() { - // uncomment below and update the code to test the property grantedScopes - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property issuedAt (base name: "issuedAt")', function() { - // uncomment below and update the code to test the property issuedAt - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property issuer (base name: "issuer")', function() { - // uncomment below and update the code to test the property issuer - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property subject (base name: "subject")', function() { - // uncomment below and update the code to test the property subject - //var instane = new HydraOAuth2OpenIdConnectServer.WardenTokenAccessRequestResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/WellKnown.spec.js b/sdk/js/swagger/test/model/WellKnown.spec.js deleted file mode 100644 index 0a5528a50a..0000000000 --- a/sdk/js/swagger/test/model/WellKnown.spec.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.WellKnown(); - }); - - 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('WellKnown', function() { - it('should create an instance of WellKnown', function() { - // uncomment below and update the code to test WellKnown - //var instane = new HydraOAuth2OpenIdConnectServer.WellKnown(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.WellKnown); - }); - - it('should have the property authorizationEndpoint (base name: "authorization_endpoint")', function() { - // uncomment below and update the code to test the property authorizationEndpoint - //var instane = new HydraOAuth2OpenIdConnectServer.WellKnown(); - //expect(instance).to.be(); - }); - - it('should have the property idTokenSigningAlgValuesSupported (base name: "id_token_signing_alg_values_supported")', function() { - // uncomment below and update the code to test the property idTokenSigningAlgValuesSupported - //var instane = new HydraOAuth2OpenIdConnectServer.WellKnown(); - //expect(instance).to.be(); - }); - - it('should have the property issuer (base name: "issuer")', function() { - // uncomment below and update the code to test the property issuer - //var instane = new HydraOAuth2OpenIdConnectServer.WellKnown(); - //expect(instance).to.be(); - }); - - it('should have the property jwksUri (base name: "jwks_uri")', function() { - // uncomment below and update the code to test the property jwksUri - //var instane = new HydraOAuth2OpenIdConnectServer.WellKnown(); - //expect(instance).to.be(); - }); - - it('should have the property responseTypesSupported (base name: "response_types_supported")', function() { - // uncomment below and update the code to test the property responseTypesSupported - //var instane = new HydraOAuth2OpenIdConnectServer.WellKnown(); - //expect(instance).to.be(); - }); - - it('should have the property subjectTypesSupported (base name: "subject_types_supported")', function() { - // uncomment below and update the code to test the property subjectTypesSupported - //var instane = new HydraOAuth2OpenIdConnectServer.WellKnown(); - //expect(instance).to.be(); - }); - - it('should have the property tokenEndpoint (base name: "token_endpoint")', function() { - // uncomment below and update the code to test the property tokenEndpoint - //var instane = new HydraOAuth2OpenIdConnectServer.WellKnown(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/sdk/js/swagger/test/model/Writer.spec.js b/sdk/js/swagger/test/model/Writer.spec.js deleted file mode 100644 index d4744cb0df..0000000000 --- a/sdk/js/swagger/test/model/Writer.spec.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Hydra OAuth2 & OpenID Connect Server - * Please refer to the user guide for in-depth documentation: https://ory.gitbooks.io/hydra/content/ Hydra offers OAuth 2.0 and OpenID Connect Core 1.0 capabilities as a service. Hydra is different, because it works with any existing authentication infrastructure, not just LDAP or SAML. By implementing a consent app (works with any programming language) you build a bridge between Hydra and your authentication infrastructure. Hydra is able to securely manage JSON Web Keys, and has a sophisticated policy-based access control you can use if you want to. Hydra is suitable for green- (new) and brownfield (existing) projects. If you are not familiar with OAuth 2.0 and are working on a greenfield project, we recommend evaluating if OAuth 2.0 really serves your purpose. Knowledge of OAuth 2.0 is imperative in understanding what Hydra does and how it works. The official repository is located at https://github.com/ory/hydra ### Important REST API Documentation Notes The swagger generator used to create this documentation does currently not support example responses. To see request and response payloads click on **\"Show JSON schema\"**: ![Enable JSON Schema on Apiary](https://storage.googleapis.com/ory.am/hydra/json-schema.png) The API documentation always refers to the latest tagged version of ORY Hydra. For previous API documentations, please refer to https://github.com/ory/hydra/blob//docs/api.swagger.yaml - for example: 0.9.13: https://github.com/ory/hydra/blob/v0.9.13/docs/api.swagger.yaml 0.8.1: https://github.com/ory/hydra/blob/v0.8.1/docs/api.swagger.yaml - * - * 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.HydraOAuth2OpenIdConnectServer); - } -}(this, function(expect, HydraOAuth2OpenIdConnectServer) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HydraOAuth2OpenIdConnectServer.Writer(); - }); - - 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('Writer', function() { - it('should create an instance of Writer', function() { - // uncomment below and update the code to test Writer - //var instane = new HydraOAuth2OpenIdConnectServer.Writer(); - //expect(instance).to.be.a(HydraOAuth2OpenIdConnectServer.Writer); - }); - - }); - -})); diff --git a/yarn.lock b/yarn.lock index 7cc092d652..40b8a7c829 100644 --- a/yarn.lock +++ b/yarn.lock @@ -186,6 +186,10 @@ ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" +prettier@^1.7.4: + version "1.7.4" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.7.4.tgz#5e8624ae9363c80f95ec644584ecdf55d74f93fa" + process-nextick-args@~1.0.6: version "1.0.7" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3"