@openfort/openfort-js 0.4.6 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -59
- package/dist/{utils → clients}/iframe-client.d.ts +2 -1
- package/dist/{utils → clients}/iframe-client.js +39 -10
- package/dist/clients/iframe-client.js.map +1 -0
- package/dist/{key-pair.d.ts → crypto/key-pair.d.ts} +3 -11
- package/dist/{key-pair.js → crypto/key-pair.js} +5 -18
- package/dist/crypto/key-pair.js.map +1 -0
- package/dist/generated/api.d.ts +160 -67
- package/dist/generated/api.js +251 -116
- package/dist/generated/api.js.map +1 -1
- package/dist/index.d.ts +2 -5
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/openfort.d.ts +27 -8
- package/dist/openfort.js +153 -18
- package/dist/openfort.js.map +1 -1
- package/dist/openfortAuth.d.ts +15 -2
- package/dist/openfortAuth.js +50 -4
- package/dist/openfortAuth.js.map +1 -1
- package/dist/recovery/passwordRecovery.d.ts +6 -0
- package/dist/recovery/passwordRecovery.js +13 -0
- package/dist/recovery/passwordRecovery.js.map +1 -0
- package/dist/recovery/recovery.d.ts +3 -0
- package/dist/{storage/base-storage.js → recovery/recovery.js} +1 -1
- package/dist/recovery/recovery.js.map +1 -0
- package/dist/signer/embedded.signer.d.ts +20 -6
- package/dist/signer/embedded.signer.js +42 -9
- package/dist/signer/embedded.signer.js.map +1 -1
- package/dist/signer/session.signer.d.ts +12 -4
- package/dist/signer/session.signer.js +35 -7
- package/dist/signer/session.signer.js.map +1 -1
- package/dist/signer/signer.d.ts +9 -1
- package/dist/signer/signer.js +6 -0
- package/dist/signer/signer.js.map +1 -1
- package/dist/storage/local-storage.d.ts +6 -13
- package/dist/storage/local-storage.js +9 -18
- package/dist/storage/local-storage.js.map +1 -1
- package/dist/storage/storage.d.ts +9 -0
- package/dist/storage/storage.js +8 -0
- package/dist/storage/storage.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/key-pair.js.map +0 -1
- package/dist/storage/base-storage.d.ts +0 -6
- package/dist/storage/base-storage.js.map +0 -1
- package/dist/storage/storage-keys.d.ts +0 -4
- package/dist/storage/storage-keys.js +0 -9
- package/dist/storage/storage-keys.js.map +0 -1
- package/dist/utils/iframe-client.js.map +0 -1
package/dist/generated/api.js
CHANGED
|
@@ -1580,6 +1580,111 @@ const AdminAuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
1580
1580
|
options: localVarRequestOptions,
|
|
1581
1581
|
};
|
|
1582
1582
|
},
|
|
1583
|
+
/**
|
|
1584
|
+
* Verifies the token generated by Openfort Auth.
|
|
1585
|
+
* @summary Verify auth token.
|
|
1586
|
+
* @param {string} token Specifies the auth token.
|
|
1587
|
+
* @param {*} [options] Override http request option.
|
|
1588
|
+
* @throws {RequiredError}
|
|
1589
|
+
*/
|
|
1590
|
+
verifyAuthToken: async (token, options = {}) => {
|
|
1591
|
+
// verify required parameter 'token' is not null or undefined
|
|
1592
|
+
(0, common_1.assertParamExists)('verifyAuthToken', 'token', token);
|
|
1593
|
+
const localVarPath = `/iam/v1/verify`;
|
|
1594
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1595
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1596
|
+
let baseOptions;
|
|
1597
|
+
if (configuration) {
|
|
1598
|
+
baseOptions = configuration.baseOptions;
|
|
1599
|
+
}
|
|
1600
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1601
|
+
const localVarHeaderParameter = {};
|
|
1602
|
+
const localVarQueryParameter = {};
|
|
1603
|
+
// authentication sk required
|
|
1604
|
+
// http bearer authentication required
|
|
1605
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1606
|
+
if (token !== undefined) {
|
|
1607
|
+
localVarQueryParameter['token'] = token;
|
|
1608
|
+
}
|
|
1609
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1610
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1611
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1612
|
+
return {
|
|
1613
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1614
|
+
options: localVarRequestOptions,
|
|
1615
|
+
};
|
|
1616
|
+
},
|
|
1617
|
+
/**
|
|
1618
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
1619
|
+
* @summary Retrieve player by token.
|
|
1620
|
+
* @param {OAuthProvider} provider OAuth provider
|
|
1621
|
+
* @param {OAuthRequest} oAuthRequest
|
|
1622
|
+
* @param {*} [options] Override http request option.
|
|
1623
|
+
* @deprecated
|
|
1624
|
+
* @throws {RequiredError}
|
|
1625
|
+
*/
|
|
1626
|
+
verifyOAuth: async (provider, oAuthRequest, options = {}) => {
|
|
1627
|
+
// verify required parameter 'provider' is not null or undefined
|
|
1628
|
+
(0, common_1.assertParamExists)('verifyOAuth', 'provider', provider);
|
|
1629
|
+
// verify required parameter 'oAuthRequest' is not null or undefined
|
|
1630
|
+
(0, common_1.assertParamExists)('verifyOAuth', 'oAuthRequest', oAuthRequest);
|
|
1631
|
+
const localVarPath = `/iam/v1/oauth/{provider}/verify`
|
|
1632
|
+
.replace(`{${"provider"}}`, encodeURIComponent(String(provider)));
|
|
1633
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1634
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1635
|
+
let baseOptions;
|
|
1636
|
+
if (configuration) {
|
|
1637
|
+
baseOptions = configuration.baseOptions;
|
|
1638
|
+
}
|
|
1639
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1640
|
+
const localVarHeaderParameter = {};
|
|
1641
|
+
const localVarQueryParameter = {};
|
|
1642
|
+
// authentication sk required
|
|
1643
|
+
// http bearer authentication required
|
|
1644
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1645
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1646
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1647
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1648
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1649
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(oAuthRequest, localVarRequestOptions, configuration);
|
|
1650
|
+
return {
|
|
1651
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1652
|
+
options: localVarRequestOptions,
|
|
1653
|
+
};
|
|
1654
|
+
},
|
|
1655
|
+
/**
|
|
1656
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
1657
|
+
* @summary Retrieve player by oauth token.
|
|
1658
|
+
* @param {AuthenticateOAuthRequest} authenticateOAuthRequest
|
|
1659
|
+
* @param {*} [options] Override http request option.
|
|
1660
|
+
* @throws {RequiredError}
|
|
1661
|
+
*/
|
|
1662
|
+
verifyOAuthToken: async (authenticateOAuthRequest, options = {}) => {
|
|
1663
|
+
// verify required parameter 'authenticateOAuthRequest' is not null or undefined
|
|
1664
|
+
(0, common_1.assertParamExists)('verifyOAuthToken', 'authenticateOAuthRequest', authenticateOAuthRequest);
|
|
1665
|
+
const localVarPath = `/iam/v1/oauth/verify`;
|
|
1666
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1667
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1668
|
+
let baseOptions;
|
|
1669
|
+
if (configuration) {
|
|
1670
|
+
baseOptions = configuration.baseOptions;
|
|
1671
|
+
}
|
|
1672
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1673
|
+
const localVarHeaderParameter = {};
|
|
1674
|
+
const localVarQueryParameter = {};
|
|
1675
|
+
// authentication sk required
|
|
1676
|
+
// http bearer authentication required
|
|
1677
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1678
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1679
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1680
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1681
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1682
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authenticateOAuthRequest, localVarRequestOptions, configuration);
|
|
1683
|
+
return {
|
|
1684
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1685
|
+
options: localVarRequestOptions,
|
|
1686
|
+
};
|
|
1687
|
+
},
|
|
1583
1688
|
};
|
|
1584
1689
|
};
|
|
1585
1690
|
exports.AdminAuthenticationApiAxiosParamCreator = AdminAuthenticationApiAxiosParamCreator;
|
|
@@ -1658,6 +1763,41 @@ const AdminAuthenticationApiFp = function (configuration) {
|
|
|
1658
1763
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listOAuthConfig(options);
|
|
1659
1764
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1660
1765
|
},
|
|
1766
|
+
/**
|
|
1767
|
+
* Verifies the token generated by Openfort Auth.
|
|
1768
|
+
* @summary Verify auth token.
|
|
1769
|
+
* @param {string} token Specifies the auth token.
|
|
1770
|
+
* @param {*} [options] Override http request option.
|
|
1771
|
+
* @throws {RequiredError}
|
|
1772
|
+
*/
|
|
1773
|
+
async verifyAuthToken(token, options) {
|
|
1774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyAuthToken(token, options);
|
|
1775
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1776
|
+
},
|
|
1777
|
+
/**
|
|
1778
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
1779
|
+
* @summary Retrieve player by token.
|
|
1780
|
+
* @param {OAuthProvider} provider OAuth provider
|
|
1781
|
+
* @param {OAuthRequest} oAuthRequest
|
|
1782
|
+
* @param {*} [options] Override http request option.
|
|
1783
|
+
* @deprecated
|
|
1784
|
+
* @throws {RequiredError}
|
|
1785
|
+
*/
|
|
1786
|
+
async verifyOAuth(provider, oAuthRequest, options) {
|
|
1787
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOAuth(provider, oAuthRequest, options);
|
|
1788
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1789
|
+
},
|
|
1790
|
+
/**
|
|
1791
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
1792
|
+
* @summary Retrieve player by oauth token.
|
|
1793
|
+
* @param {AuthenticateOAuthRequest} authenticateOAuthRequest
|
|
1794
|
+
* @param {*} [options] Override http request option.
|
|
1795
|
+
* @throws {RequiredError}
|
|
1796
|
+
*/
|
|
1797
|
+
async verifyOAuthToken(authenticateOAuthRequest, options) {
|
|
1798
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOAuthToken(authenticateOAuthRequest, options);
|
|
1799
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1800
|
+
},
|
|
1661
1801
|
};
|
|
1662
1802
|
};
|
|
1663
1803
|
exports.AdminAuthenticationApiFp = AdminAuthenticationApiFp;
|
|
@@ -1730,6 +1870,38 @@ const AdminAuthenticationApiFactory = function (configuration, basePath, axios)
|
|
|
1730
1870
|
listOAuthConfig(options) {
|
|
1731
1871
|
return localVarFp.listOAuthConfig(options).then((request) => request(axios, basePath));
|
|
1732
1872
|
},
|
|
1873
|
+
/**
|
|
1874
|
+
* Verifies the token generated by Openfort Auth.
|
|
1875
|
+
* @summary Verify auth token.
|
|
1876
|
+
* @param {string} token Specifies the auth token.
|
|
1877
|
+
* @param {*} [options] Override http request option.
|
|
1878
|
+
* @throws {RequiredError}
|
|
1879
|
+
*/
|
|
1880
|
+
verifyAuthToken(token, options) {
|
|
1881
|
+
return localVarFp.verifyAuthToken(token, options).then((request) => request(axios, basePath));
|
|
1882
|
+
},
|
|
1883
|
+
/**
|
|
1884
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
1885
|
+
* @summary Retrieve player by token.
|
|
1886
|
+
* @param {OAuthProvider} provider OAuth provider
|
|
1887
|
+
* @param {OAuthRequest} oAuthRequest
|
|
1888
|
+
* @param {*} [options] Override http request option.
|
|
1889
|
+
* @deprecated
|
|
1890
|
+
* @throws {RequiredError}
|
|
1891
|
+
*/
|
|
1892
|
+
verifyOAuth(provider, oAuthRequest, options) {
|
|
1893
|
+
return localVarFp.verifyOAuth(provider, oAuthRequest, options).then((request) => request(axios, basePath));
|
|
1894
|
+
},
|
|
1895
|
+
/**
|
|
1896
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
1897
|
+
* @summary Retrieve player by oauth token.
|
|
1898
|
+
* @param {AuthenticateOAuthRequest} authenticateOAuthRequest
|
|
1899
|
+
* @param {*} [options] Override http request option.
|
|
1900
|
+
* @throws {RequiredError}
|
|
1901
|
+
*/
|
|
1902
|
+
verifyOAuthToken(authenticateOAuthRequest, options) {
|
|
1903
|
+
return localVarFp.verifyOAuthToken(authenticateOAuthRequest, options).then((request) => request(axios, basePath));
|
|
1904
|
+
},
|
|
1733
1905
|
};
|
|
1734
1906
|
};
|
|
1735
1907
|
exports.AdminAuthenticationApiFactory = AdminAuthenticationApiFactory;
|
|
@@ -1808,6 +1980,41 @@ class AdminAuthenticationApi extends base_1.BaseAPI {
|
|
|
1808
1980
|
listOAuthConfig(options) {
|
|
1809
1981
|
return (0, exports.AdminAuthenticationApiFp)(this.configuration).listOAuthConfig(options).then((request) => request(this.axios, this.basePath));
|
|
1810
1982
|
}
|
|
1983
|
+
/**
|
|
1984
|
+
* Verifies the token generated by Openfort Auth.
|
|
1985
|
+
* @summary Verify auth token.
|
|
1986
|
+
* @param {string} token Specifies the auth token.
|
|
1987
|
+
* @param {*} [options] Override http request option.
|
|
1988
|
+
* @throws {RequiredError}
|
|
1989
|
+
* @memberof AdminAuthenticationApi
|
|
1990
|
+
*/
|
|
1991
|
+
verifyAuthToken(token, options) {
|
|
1992
|
+
return (0, exports.AdminAuthenticationApiFp)(this.configuration).verifyAuthToken(token, options).then((request) => request(this.axios, this.basePath));
|
|
1993
|
+
}
|
|
1994
|
+
/**
|
|
1995
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
1996
|
+
* @summary Retrieve player by token.
|
|
1997
|
+
* @param {OAuthProvider} provider OAuth provider
|
|
1998
|
+
* @param {OAuthRequest} oAuthRequest
|
|
1999
|
+
* @param {*} [options] Override http request option.
|
|
2000
|
+
* @deprecated
|
|
2001
|
+
* @throws {RequiredError}
|
|
2002
|
+
* @memberof AdminAuthenticationApi
|
|
2003
|
+
*/
|
|
2004
|
+
verifyOAuth(provider, oAuthRequest, options) {
|
|
2005
|
+
return (0, exports.AdminAuthenticationApiFp)(this.configuration).verifyOAuth(provider, oAuthRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2006
|
+
}
|
|
2007
|
+
/**
|
|
2008
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
2009
|
+
* @summary Retrieve player by oauth token.
|
|
2010
|
+
* @param {AuthenticateOAuthRequest} authenticateOAuthRequest
|
|
2011
|
+
* @param {*} [options] Override http request option.
|
|
2012
|
+
* @throws {RequiredError}
|
|
2013
|
+
* @memberof AdminAuthenticationApi
|
|
2014
|
+
*/
|
|
2015
|
+
verifyOAuthToken(authenticateOAuthRequest, options) {
|
|
2016
|
+
return (0, exports.AdminAuthenticationApiFp)(this.configuration).verifyOAuthToken(authenticateOAuthRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2017
|
+
}
|
|
1811
2018
|
}
|
|
1812
2019
|
exports.AdminAuthenticationApi = AdminAuthenticationApi;
|
|
1813
2020
|
/**
|
|
@@ -2235,34 +2442,38 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
2235
2442
|
};
|
|
2236
2443
|
},
|
|
2237
2444
|
/**
|
|
2238
|
-
*
|
|
2239
|
-
* @summary
|
|
2240
|
-
* @param {
|
|
2445
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
2446
|
+
* @summary Retrieve player by token.
|
|
2447
|
+
* @param {OAuthProvider} provider OAuth provider
|
|
2448
|
+
* @param {OAuthRequest} oAuthRequest
|
|
2241
2449
|
* @param {*} [options] Override http request option.
|
|
2450
|
+
* @deprecated
|
|
2242
2451
|
* @throws {RequiredError}
|
|
2243
2452
|
*/
|
|
2244
|
-
|
|
2245
|
-
// verify required parameter '
|
|
2246
|
-
(0, common_1.assertParamExists)('
|
|
2247
|
-
|
|
2453
|
+
verifyOAuth: async (provider, oAuthRequest, options = {}) => {
|
|
2454
|
+
// verify required parameter 'provider' is not null or undefined
|
|
2455
|
+
(0, common_1.assertParamExists)('verifyOAuth', 'provider', provider);
|
|
2456
|
+
// verify required parameter 'oAuthRequest' is not null or undefined
|
|
2457
|
+
(0, common_1.assertParamExists)('verifyOAuth', 'oAuthRequest', oAuthRequest);
|
|
2458
|
+
const localVarPath = `/iam/v1/oauth/{provider}/verify`
|
|
2459
|
+
.replace(`{${"provider"}}`, encodeURIComponent(String(provider)));
|
|
2248
2460
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2249
2461
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2250
2462
|
let baseOptions;
|
|
2251
2463
|
if (configuration) {
|
|
2252
2464
|
baseOptions = configuration.baseOptions;
|
|
2253
2465
|
}
|
|
2254
|
-
const localVarRequestOptions = { method: '
|
|
2466
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2255
2467
|
const localVarHeaderParameter = {};
|
|
2256
2468
|
const localVarQueryParameter = {};
|
|
2257
2469
|
// authentication sk required
|
|
2258
2470
|
// http bearer authentication required
|
|
2259
2471
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2260
|
-
|
|
2261
|
-
localVarQueryParameter['token'] = token;
|
|
2262
|
-
}
|
|
2472
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2263
2473
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2264
2474
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2265
2475
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2476
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(oAuthRequest, localVarRequestOptions, configuration);
|
|
2266
2477
|
return {
|
|
2267
2478
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2268
2479
|
options: localVarRequestOptions,
|
|
@@ -2275,9 +2486,9 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
2275
2486
|
* @param {*} [options] Override http request option.
|
|
2276
2487
|
* @throws {RequiredError}
|
|
2277
2488
|
*/
|
|
2278
|
-
|
|
2489
|
+
verifyOAuthToken: async (authenticateOAuthRequest, options = {}) => {
|
|
2279
2490
|
// verify required parameter 'authenticateOAuthRequest' is not null or undefined
|
|
2280
|
-
(0, common_1.assertParamExists)('
|
|
2491
|
+
(0, common_1.assertParamExists)('verifyOAuthToken', 'authenticateOAuthRequest', authenticateOAuthRequest);
|
|
2281
2492
|
const localVarPath = `/iam/v1/oauth/verify`;
|
|
2282
2493
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2283
2494
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2291,9 +2502,6 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
2291
2502
|
// authentication sk required
|
|
2292
2503
|
// http bearer authentication required
|
|
2293
2504
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2294
|
-
// authentication pk required
|
|
2295
|
-
// http bearer authentication required
|
|
2296
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2297
2505
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2298
2506
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2299
2507
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2304,47 +2512,6 @@ const AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
2304
2512
|
options: localVarRequestOptions,
|
|
2305
2513
|
};
|
|
2306
2514
|
},
|
|
2307
|
-
/**
|
|
2308
|
-
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
2309
|
-
* @summary Retrieve player by token.
|
|
2310
|
-
* @param {OAuthProvider} provider OAuth provider
|
|
2311
|
-
* @param {OAuthRequest} oAuthRequest
|
|
2312
|
-
* @param {*} [options] Override http request option.
|
|
2313
|
-
* @deprecated
|
|
2314
|
-
* @throws {RequiredError}
|
|
2315
|
-
*/
|
|
2316
|
-
verifyOAuthToken: async (provider, oAuthRequest, options = {}) => {
|
|
2317
|
-
// verify required parameter 'provider' is not null or undefined
|
|
2318
|
-
(0, common_1.assertParamExists)('verifyOAuthToken', 'provider', provider);
|
|
2319
|
-
// verify required parameter 'oAuthRequest' is not null or undefined
|
|
2320
|
-
(0, common_1.assertParamExists)('verifyOAuthToken', 'oAuthRequest', oAuthRequest);
|
|
2321
|
-
const localVarPath = `/iam/v1/oauth/{provider}/verify`
|
|
2322
|
-
.replace(`{${"provider"}}`, encodeURIComponent(String(provider)));
|
|
2323
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2324
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2325
|
-
let baseOptions;
|
|
2326
|
-
if (configuration) {
|
|
2327
|
-
baseOptions = configuration.baseOptions;
|
|
2328
|
-
}
|
|
2329
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2330
|
-
const localVarHeaderParameter = {};
|
|
2331
|
-
const localVarQueryParameter = {};
|
|
2332
|
-
// authentication sk required
|
|
2333
|
-
// http bearer authentication required
|
|
2334
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2335
|
-
// authentication pk required
|
|
2336
|
-
// http bearer authentication required
|
|
2337
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2338
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2339
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2340
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2341
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2342
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(oAuthRequest, localVarRequestOptions, configuration);
|
|
2343
|
-
return {
|
|
2344
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2345
|
-
options: localVarRequestOptions,
|
|
2346
|
-
};
|
|
2347
|
-
},
|
|
2348
2515
|
};
|
|
2349
2516
|
};
|
|
2350
2517
|
exports.AuthenticationApiAxiosParamCreator = AuthenticationApiAxiosParamCreator;
|
|
@@ -2501,14 +2668,16 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
2501
2668
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2502
2669
|
},
|
|
2503
2670
|
/**
|
|
2504
|
-
*
|
|
2505
|
-
* @summary
|
|
2506
|
-
* @param {
|
|
2671
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
2672
|
+
* @summary Retrieve player by token.
|
|
2673
|
+
* @param {OAuthProvider} provider OAuth provider
|
|
2674
|
+
* @param {OAuthRequest} oAuthRequest
|
|
2507
2675
|
* @param {*} [options] Override http request option.
|
|
2676
|
+
* @deprecated
|
|
2508
2677
|
* @throws {RequiredError}
|
|
2509
2678
|
*/
|
|
2510
|
-
async
|
|
2511
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2679
|
+
async verifyOAuth(provider, oAuthRequest, options) {
|
|
2680
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOAuth(provider, oAuthRequest, options);
|
|
2512
2681
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2513
2682
|
},
|
|
2514
2683
|
/**
|
|
@@ -2518,21 +2687,8 @@ const AuthenticationApiFp = function (configuration) {
|
|
|
2518
2687
|
* @param {*} [options] Override http request option.
|
|
2519
2688
|
* @throws {RequiredError}
|
|
2520
2689
|
*/
|
|
2521
|
-
async
|
|
2522
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2523
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2524
|
-
},
|
|
2525
|
-
/**
|
|
2526
|
-
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
2527
|
-
* @summary Retrieve player by token.
|
|
2528
|
-
* @param {OAuthProvider} provider OAuth provider
|
|
2529
|
-
* @param {OAuthRequest} oAuthRequest
|
|
2530
|
-
* @param {*} [options] Override http request option.
|
|
2531
|
-
* @deprecated
|
|
2532
|
-
* @throws {RequiredError}
|
|
2533
|
-
*/
|
|
2534
|
-
async verifyOAuthToken(provider, oAuthRequest, options) {
|
|
2535
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOAuthToken(provider, oAuthRequest, options);
|
|
2690
|
+
async verifyOAuthToken(authenticateOAuthRequest, options) {
|
|
2691
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOAuthToken(authenticateOAuthRequest, options);
|
|
2536
2692
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2537
2693
|
},
|
|
2538
2694
|
};
|
|
@@ -2678,14 +2834,16 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
2678
2834
|
return localVarFp.unlinkSIWE(sIWERequest, options).then((request) => request(axios, basePath));
|
|
2679
2835
|
},
|
|
2680
2836
|
/**
|
|
2681
|
-
*
|
|
2682
|
-
* @summary
|
|
2683
|
-
* @param {
|
|
2837
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
2838
|
+
* @summary Retrieve player by token.
|
|
2839
|
+
* @param {OAuthProvider} provider OAuth provider
|
|
2840
|
+
* @param {OAuthRequest} oAuthRequest
|
|
2684
2841
|
* @param {*} [options] Override http request option.
|
|
2842
|
+
* @deprecated
|
|
2685
2843
|
* @throws {RequiredError}
|
|
2686
2844
|
*/
|
|
2687
|
-
|
|
2688
|
-
return localVarFp.
|
|
2845
|
+
verifyOAuth(provider, oAuthRequest, options) {
|
|
2846
|
+
return localVarFp.verifyOAuth(provider, oAuthRequest, options).then((request) => request(axios, basePath));
|
|
2689
2847
|
},
|
|
2690
2848
|
/**
|
|
2691
2849
|
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
@@ -2694,20 +2852,8 @@ const AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
2694
2852
|
* @param {*} [options] Override http request option.
|
|
2695
2853
|
* @throws {RequiredError}
|
|
2696
2854
|
*/
|
|
2697
|
-
|
|
2698
|
-
return localVarFp.
|
|
2699
|
-
},
|
|
2700
|
-
/**
|
|
2701
|
-
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
2702
|
-
* @summary Retrieve player by token.
|
|
2703
|
-
* @param {OAuthProvider} provider OAuth provider
|
|
2704
|
-
* @param {OAuthRequest} oAuthRequest
|
|
2705
|
-
* @param {*} [options] Override http request option.
|
|
2706
|
-
* @deprecated
|
|
2707
|
-
* @throws {RequiredError}
|
|
2708
|
-
*/
|
|
2709
|
-
verifyOAuthToken(provider, oAuthRequest, options) {
|
|
2710
|
-
return localVarFp.verifyOAuthToken(provider, oAuthRequest, options).then((request) => request(axios, basePath));
|
|
2855
|
+
verifyOAuthToken(authenticateOAuthRequest, options) {
|
|
2856
|
+
return localVarFp.verifyOAuthToken(authenticateOAuthRequest, options).then((request) => request(axios, basePath));
|
|
2711
2857
|
},
|
|
2712
2858
|
};
|
|
2713
2859
|
};
|
|
@@ -2865,15 +3011,17 @@ class AuthenticationApi extends base_1.BaseAPI {
|
|
|
2865
3011
|
return (0, exports.AuthenticationApiFp)(this.configuration).unlinkSIWE(sIWERequest, options).then((request) => request(this.axios, this.basePath));
|
|
2866
3012
|
}
|
|
2867
3013
|
/**
|
|
2868
|
-
*
|
|
2869
|
-
* @summary
|
|
2870
|
-
* @param {
|
|
3014
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
3015
|
+
* @summary Retrieve player by token.
|
|
3016
|
+
* @param {OAuthProvider} provider OAuth provider
|
|
3017
|
+
* @param {OAuthRequest} oAuthRequest
|
|
2871
3018
|
* @param {*} [options] Override http request option.
|
|
3019
|
+
* @deprecated
|
|
2872
3020
|
* @throws {RequiredError}
|
|
2873
3021
|
* @memberof AuthenticationApi
|
|
2874
3022
|
*/
|
|
2875
|
-
|
|
2876
|
-
return (0, exports.AuthenticationApiFp)(this.configuration).
|
|
3023
|
+
verifyOAuth(provider, oAuthRequest, options) {
|
|
3024
|
+
return (0, exports.AuthenticationApiFp)(this.configuration).verifyOAuth(provider, oAuthRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2877
3025
|
}
|
|
2878
3026
|
/**
|
|
2879
3027
|
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
@@ -2883,21 +3031,8 @@ class AuthenticationApi extends base_1.BaseAPI {
|
|
|
2883
3031
|
* @throws {RequiredError}
|
|
2884
3032
|
* @memberof AuthenticationApi
|
|
2885
3033
|
*/
|
|
2886
|
-
|
|
2887
|
-
return (0, exports.AuthenticationApiFp)(this.configuration).
|
|
2888
|
-
}
|
|
2889
|
-
/**
|
|
2890
|
-
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
2891
|
-
* @summary Retrieve player by token.
|
|
2892
|
-
* @param {OAuthProvider} provider OAuth provider
|
|
2893
|
-
* @param {OAuthRequest} oAuthRequest
|
|
2894
|
-
* @param {*} [options] Override http request option.
|
|
2895
|
-
* @deprecated
|
|
2896
|
-
* @throws {RequiredError}
|
|
2897
|
-
* @memberof AuthenticationApi
|
|
2898
|
-
*/
|
|
2899
|
-
verifyOAuthToken(provider, oAuthRequest, options) {
|
|
2900
|
-
return (0, exports.AuthenticationApiFp)(this.configuration).verifyOAuthToken(provider, oAuthRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3034
|
+
verifyOAuthToken(authenticateOAuthRequest, options) {
|
|
3035
|
+
return (0, exports.AuthenticationApiFp)(this.configuration).verifyOAuthToken(authenticateOAuthRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2901
3036
|
}
|
|
2902
3037
|
}
|
|
2903
3038
|
exports.AuthenticationApi = AuthenticationApi;
|