..
This commit is contained in:
306
backend/node_modules/googleapis/apis/oauth2/v1.js
generated
vendored
Normal file
306
backend/node_modules/googleapis/apis/oauth2/v1.js
generated
vendored
Normal file
@@ -0,0 +1,306 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Google OAuth2 API
|
||||
*
|
||||
* Obtains end-user authorization grants for use with other Google APIs.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const oauth2 = google.oauth2('v1');
|
||||
*
|
||||
* @namespace oauth2
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Oauth2
|
||||
*/
|
||||
function Oauth2(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
/**
|
||||
* oauth2.getCertForOpenIdConnect
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.getCertForOpenIdConnect
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.getCertForOpenIdConnect = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v1/certs').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
};
|
||||
/**
|
||||
* oauth2.getCertForOpenIdConnectRaw
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.getCertForOpenIdConnectRaw
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.getCertForOpenIdConnectRaw = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v1/raw_public_keys').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
};
|
||||
/**
|
||||
* oauth2.getRobotJwk
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.getRobotJwk
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.robotEmail The email of robot account.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.getRobotJwk = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/service_accounts/v1/jwk/{robotEmail}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['robotEmail'],
|
||||
pathParams: ['robotEmail'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
};
|
||||
/**
|
||||
* oauth2.getRobotMetadataRaw
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.getRobotMetadataRaw
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.robotEmail The email of robot account.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.getRobotMetadataRaw = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/service_accounts/v1/metadata/raw/{robotEmail}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['robotEmail'],
|
||||
pathParams: ['robotEmail'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
};
|
||||
/**
|
||||
* oauth2.getRobotMetadataX509
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.getRobotMetadataX509
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.robotEmail The email of robot account.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.getRobotMetadataX509 = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/service_accounts/v1/metadata/x509/{robotEmail}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['robotEmail'],
|
||||
pathParams: ['robotEmail'],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
};
|
||||
/**
|
||||
* oauth2.tokeninfo
|
||||
*
|
||||
* @desc Get token info
|
||||
*
|
||||
* @alias oauth2.tokeninfo
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.access_token The oauth2 access token
|
||||
* @param {string=} params.id_token The ID token
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.tokeninfo = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v1/tokeninfo').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
};
|
||||
self.userinfo = {
|
||||
/**
|
||||
* oauth2.userinfo.get
|
||||
*
|
||||
* @desc Get user info
|
||||
*
|
||||
* @alias oauth2.userinfo.get
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v1/userinfo').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
v2: {
|
||||
me: {
|
||||
/**
|
||||
* oauth2.userinfo.v2.me.get
|
||||
*
|
||||
* @desc Get user info
|
||||
*
|
||||
* @alias oauth2.userinfo.v2.me.get
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/userinfo/v2/me').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Oauth2;
|
||||
//# sourceMappingURL=v1.js.map
|
||||
1
backend/node_modules/googleapis/apis/oauth2/v1.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/oauth2/v1.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
395
backend/node_modules/googleapis/apis/oauth2/v1.ts
generated
vendored
Normal file
395
backend/node_modules/googleapis/apis/oauth2/v1.ts
generated
vendored
Normal file
@@ -0,0 +1,395 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Google OAuth2 API
|
||||
*
|
||||
* Obtains end-user authorization grants for use with other Google APIs.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const oauth2 = google.oauth2('v1');
|
||||
*
|
||||
* @namespace oauth2
|
||||
* @type {Function}
|
||||
* @version v1
|
||||
* @variation v1
|
||||
* @param {object=} options Options for Oauth2
|
||||
*/
|
||||
function Oauth2(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
/**
|
||||
* oauth2.getCertForOpenIdConnect
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.getCertForOpenIdConnect
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.getCertForOpenIdConnect = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v1/certs').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
};
|
||||
|
||||
/**
|
||||
* oauth2.getCertForOpenIdConnectRaw
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.getCertForOpenIdConnectRaw
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.getCertForOpenIdConnectRaw = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v1/raw_public_keys').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
};
|
||||
|
||||
/**
|
||||
* oauth2.getRobotJwk
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.getRobotJwk
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.robotEmail The email of robot account.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.getRobotJwk = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/service_accounts/v1/jwk/{robotEmail}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['robotEmail'],
|
||||
pathParams: ['robotEmail'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
};
|
||||
|
||||
/**
|
||||
* oauth2.getRobotMetadataRaw
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.getRobotMetadataRaw
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.robotEmail The email of robot account.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.getRobotMetadataRaw = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/service_accounts/v1/metadata/raw/{robotEmail}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['robotEmail'],
|
||||
pathParams: ['robotEmail'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
};
|
||||
|
||||
/**
|
||||
* oauth2.getRobotMetadataX509
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.getRobotMetadataX509
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object} params Parameters for request
|
||||
* @param {string} params.robotEmail The email of robot account.
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.getRobotMetadataX509 = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/service_accounts/v1/metadata/x509/{robotEmail}').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: ['robotEmail'],
|
||||
pathParams: ['robotEmail'],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
};
|
||||
|
||||
/**
|
||||
* oauth2.tokeninfo
|
||||
*
|
||||
* @desc Get token info
|
||||
*
|
||||
* @alias oauth2.tokeninfo
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.access_token The oauth2 access token
|
||||
* @param {string=} params.id_token The ID token
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.tokeninfo = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v1/tokeninfo').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
};
|
||||
|
||||
self.userinfo = {
|
||||
|
||||
/**
|
||||
* oauth2.userinfo.get
|
||||
*
|
||||
* @desc Get user info
|
||||
*
|
||||
* @alias oauth2.userinfo.get
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v1/userinfo').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
v2: {
|
||||
me: {
|
||||
|
||||
/**
|
||||
* oauth2.userinfo.v2.me.get
|
||||
*
|
||||
* @desc Get user info
|
||||
*
|
||||
* @alias oauth2.userinfo.v2.me.get
|
||||
* @memberOf! oauth2(v1)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/userinfo/v2/me').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Jwk
|
||||
* @memberOf! oauth2(v1)
|
||||
* @type object
|
||||
* @property {object[]} keys
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Raw
|
||||
* @memberOf! oauth2(v1)
|
||||
* @type object
|
||||
* @property {object[]} keyvalues
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Tokeninfo
|
||||
* @memberOf! oauth2(v1)
|
||||
* @type object
|
||||
* @property {string} access_type The access type granted with this token. It can be offline or online.
|
||||
* @property {string} audience Who is the intended audience for this token. In general the same as issued_to.
|
||||
* @property {string} email The email address of the user. Present only if the email scope is present in the request.
|
||||
* @property {boolean} email_verified Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request.
|
||||
* @property {integer} expires_in The expiry time of the token, as number of seconds left until expiry.
|
||||
* @property {integer} issued_at The issue time of the token, as number of seconds.
|
||||
* @property {string} issued_to To whom was the token issued to. In general the same as audience.
|
||||
* @property {string} issuer Who issued the token.
|
||||
* @property {string} nonce Nonce of the id token.
|
||||
* @property {string} scope The space separated list of scopes granted to this token.
|
||||
* @property {string} user_id The obfuscated user id.
|
||||
* @property {boolean} verified_email Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Userinfoplus
|
||||
* @memberOf! oauth2(v1)
|
||||
* @type object
|
||||
* @property {string} email The user's email address.
|
||||
* @property {string} family_name The user's last name.
|
||||
* @property {string} gender The user's gender.
|
||||
* @property {string} given_name The user's first name.
|
||||
* @property {string} hd The hosted domain e.g. example.com if the user is Google apps user.
|
||||
* @property {string} id The obfuscated ID of the user.
|
||||
* @property {string} link URL of the profile page.
|
||||
* @property {string} locale The user's preferred locale.
|
||||
* @property {string} name The user's full name.
|
||||
* @property {string} picture URL of the user's picture image.
|
||||
* @property {boolean} verified_email Boolean flag which is true if the email address is verified. Always verified because we only return the user's primary email address.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef X509
|
||||
* @memberOf! oauth2(v1)
|
||||
* @type object
|
||||
*/
|
||||
export = Oauth2;
|
||||
176
backend/node_modules/googleapis/apis/oauth2/v2.js
generated
vendored
Normal file
176
backend/node_modules/googleapis/apis/oauth2/v2.js
generated
vendored
Normal file
@@ -0,0 +1,176 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* jshint maxlen: false */
|
||||
const apirequest_1 = require("../../lib/apirequest");
|
||||
/**
|
||||
* Google OAuth2 API
|
||||
*
|
||||
* Obtains end-user authorization grants for use with other Google APIs.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const oauth2 = google.oauth2('v2');
|
||||
*
|
||||
* @namespace oauth2
|
||||
* @type {Function}
|
||||
* @version v2
|
||||
* @variation v2
|
||||
* @param {object=} options Options for Oauth2
|
||||
*/
|
||||
function Oauth2(options) {
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
/**
|
||||
* oauth2.getCertForOpenIdConnect
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.getCertForOpenIdConnect
|
||||
* @memberOf! oauth2(v2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.getCertForOpenIdConnect = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v2/certs').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
};
|
||||
/**
|
||||
* oauth2.tokeninfo
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.tokeninfo
|
||||
* @memberOf! oauth2(v2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.access_token
|
||||
* @param {string=} params.id_token
|
||||
* @param {string=} params.token_handle
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.tokeninfo = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v2/tokeninfo').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
};
|
||||
self.userinfo = {
|
||||
/**
|
||||
* oauth2.userinfo.get
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.userinfo.get
|
||||
* @memberOf! oauth2(v2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v2/userinfo').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
},
|
||||
v2: {
|
||||
me: {
|
||||
/**
|
||||
* oauth2.userinfo.v2.me.get
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.userinfo.v2.me.get
|
||||
* @memberOf! oauth2(v2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/userinfo/v2/me').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
return apirequest_1.default(parameters, callback);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
module.exports = Oauth2;
|
||||
//# sourceMappingURL=v2.js.map
|
||||
1
backend/node_modules/googleapis/apis/oauth2/v2.js.map
generated
vendored
Normal file
1
backend/node_modules/googleapis/apis/oauth2/v2.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"v2.js","sourceRoot":"","sources":["v2.ts"],"names":[],"mappings":"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"}
|
||||
233
backend/node_modules/googleapis/apis/oauth2/v2.ts
generated
vendored
Normal file
233
backend/node_modules/googleapis/apis/oauth2/v2.ts
generated
vendored
Normal file
@@ -0,0 +1,233 @@
|
||||
/**
|
||||
* Copyright 2015 Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: false */
|
||||
|
||||
import createAPIRequest from '../../lib/apirequest';
|
||||
|
||||
/**
|
||||
* Google OAuth2 API
|
||||
*
|
||||
* Obtains end-user authorization grants for use with other Google APIs.
|
||||
*
|
||||
* @example
|
||||
* const google = require('googleapis');
|
||||
* const oauth2 = google.oauth2('v2');
|
||||
*
|
||||
* @namespace oauth2
|
||||
* @type {Function}
|
||||
* @version v2
|
||||
* @variation v2
|
||||
* @param {object=} options Options for Oauth2
|
||||
*/
|
||||
function Oauth2(options) { // eslint-disable-line
|
||||
const self = this;
|
||||
self._options = options || {};
|
||||
|
||||
/**
|
||||
* oauth2.getCertForOpenIdConnect
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.getCertForOpenIdConnect
|
||||
* @memberOf! oauth2(v2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.getCertForOpenIdConnect = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v2/certs').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
};
|
||||
|
||||
/**
|
||||
* oauth2.tokeninfo
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.tokeninfo
|
||||
* @memberOf! oauth2(v2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {string=} params.access_token
|
||||
* @param {string=} params.id_token
|
||||
* @param {string=} params.token_handle
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
this.tokeninfo = function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v2/tokeninfo').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'POST'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
};
|
||||
|
||||
self.userinfo = {
|
||||
|
||||
/**
|
||||
* oauth2.userinfo.get
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.userinfo.get
|
||||
* @memberOf! oauth2(v2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/oauth2/v2/userinfo').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
},
|
||||
v2: {
|
||||
me: {
|
||||
|
||||
/**
|
||||
* oauth2.userinfo.v2.me.get
|
||||
*
|
||||
*
|
||||
*
|
||||
* @alias oauth2.userinfo.v2.me.get
|
||||
* @memberOf! oauth2(v2)
|
||||
*
|
||||
* @param {object=} params Parameters for request
|
||||
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
|
||||
* @param {callback} callback The callback that handles the response.
|
||||
* @return {object} Request object
|
||||
*/
|
||||
get: function (params, options, callback) {
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = {};
|
||||
}
|
||||
options || (options = {});
|
||||
|
||||
const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
|
||||
|
||||
const parameters = {
|
||||
options: Object.assign({
|
||||
url: (rootUrl + '/userinfo/v2/me').replace(/([^:]\/)\/+/g, '$1'),
|
||||
method: 'GET'
|
||||
}, options),
|
||||
params: params,
|
||||
requiredParams: [],
|
||||
pathParams: [],
|
||||
context: self
|
||||
};
|
||||
|
||||
return createAPIRequest(parameters, callback);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef Jwk
|
||||
* @memberOf! oauth2(v2)
|
||||
* @type object
|
||||
* @property {object[]} keys
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Tokeninfo
|
||||
* @memberOf! oauth2(v2)
|
||||
* @type object
|
||||
* @property {string} access_type The access type granted with this token. It can be offline or online.
|
||||
* @property {string} audience Who is the intended audience for this token. In general the same as issued_to.
|
||||
* @property {string} email The email address of the user. Present only if the email scope is present in the request.
|
||||
* @property {integer} expires_in The expiry time of the token, as number of seconds left until expiry.
|
||||
* @property {string} issued_to To whom was the token issued to. In general the same as audience.
|
||||
* @property {string} scope The space separated list of scopes granted to this token.
|
||||
* @property {string} token_handle The token handle associated with this token.
|
||||
* @property {string} user_id The obfuscated user id.
|
||||
* @property {boolean} verified_email Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef Userinfoplus
|
||||
* @memberOf! oauth2(v2)
|
||||
* @type object
|
||||
* @property {string} email The user's email address.
|
||||
* @property {string} family_name The user's last name.
|
||||
* @property {string} gender The user's gender.
|
||||
* @property {string} given_name The user's first name.
|
||||
* @property {string} hd The hosted domain e.g. example.com if the user is Google apps user.
|
||||
* @property {string} id The obfuscated ID of the user.
|
||||
* @property {string} link URL of the profile page.
|
||||
* @property {string} locale The user's preferred locale.
|
||||
* @property {string} name The user's full name.
|
||||
* @property {string} picture URL of the user's picture image.
|
||||
* @property {boolean} verified_email Boolean flag which is true if the email address is verified. Always verified because we only return the user's primary email address.
|
||||
*/
|
||||
export = Oauth2;
|
||||
Reference in New Issue
Block a user