@esri/arcgis-rest-auth 4.0.0-beta.2 → 4.0.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/.ultra.cache.json +1 -1
- package/CHANGELOG.md +57 -0
- package/README.md +2 -52
- package/dist/bundled/auth.esm.js +3 -3
- package/dist/bundled/auth.esm.min.js +3 -3
- package/dist/bundled/auth.umd.js +2 -10
- package/dist/bundled/auth.umd.js.map +1 -1
- package/dist/bundled/auth.umd.min.js +3 -3
- package/dist/cjs/index.js +1 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/package.json +3 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/package.json +3 -0
- package/package.json +4 -2
- package/src/index.ts +0 -2
package/.ultra.cache.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"files":{"dist":"
|
|
1
|
+
{"files":{"dist":"1650300123798.0598","CHANGELOG.md":"eaa49892327876fd6aa65bb08ecd17145ae32f8e","README.md":"f2088f99a15c639f1aa5e0806594901bc9c1d212","package.json":"dd38dfa182b4a1cf9006e2509bfa71f805241381","src/index.ts":"de3c4a3ed52582e32db55bd6043d47a10f43a490","tsconfig.json":"90cbf37afa22bf149841064433be84fbb7e8f5e8"},"deps":{"@esri/arcgis-rest-request":1650300122894.0496}}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,60 @@
|
|
|
1
|
+
# @esri/arcgis-rest-auth [4.0.0](https://github.com/Esri/arcgis-rest-js/compare/@esri/arcgis-rest-auth@3.4.3...@esri/arcgis-rest-auth@4.0.0) (2022-04-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **arcgis-rest-request:** add support for server credentials ([#965](https://github.com/Esri/arcgis-rest-js/issues/965)) ([b063bcc](https://github.com/Esri/arcgis-rest-js/commit/b063bcca1780cd671e6b4f25532e4122903dc8b2))
|
|
7
|
+
* add package.json files to builds for individual build types ([#955](https://github.com/Esri/arcgis-rest-js/issues/955)) ([c162125](https://github.com/Esri/arcgis-rest-js/commit/c16212594f0b914425548be5d61d7435d54a2718))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* add breaking change ([8205840](https://github.com/Esri/arcgis-rest-js/commit/8205840d81106173fdb1fe3750822e1754611c3b))
|
|
13
|
+
* **arcgis-rest-request:** rewrite oauth 2 functions to use PKCE ([e49f88c](https://github.com/Esri/arcgis-rest-js/commit/e49f88c700694aed472733527124c4d0d54e45d6))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
* force 4.x release
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
* **@esri/arcgis-rest-request:** upgraded to 4.0.0
|
|
27
|
+
|
|
28
|
+
# @esri/arcgis-rest-auth [4.0.0-beta.4](https://github.com/Esri/arcgis-rest-js/compare/@esri/arcgis-rest-auth@4.0.0-beta.3...@esri/arcgis-rest-auth@4.0.0-beta.4) (2022-03-22)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* **arcgis-rest-request:** add support for server credentials ([#965](https://github.com/Esri/arcgis-rest-js/issues/965)) ([b063bcc](https://github.com/Esri/arcgis-rest-js/commit/b063bcca1780cd671e6b4f25532e4122903dc8b2))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Dependencies
|
|
40
|
+
|
|
41
|
+
* **@esri/arcgis-rest-request:** upgraded to 4.0.0-beta.6
|
|
42
|
+
|
|
43
|
+
# @esri/arcgis-rest-auth [4.0.0-beta.3](https://github.com/Esri/arcgis-rest-js/compare/@esri/arcgis-rest-auth@4.0.0-beta.2...@esri/arcgis-rest-auth@4.0.0-beta.3) (2022-03-10)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* add package.json files to builds for individual build types ([#955](https://github.com/Esri/arcgis-rest-js/issues/955)) ([c162125](https://github.com/Esri/arcgis-rest-js/commit/c16212594f0b914425548be5d61d7435d54a2718))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Dependencies
|
|
55
|
+
|
|
56
|
+
* **@esri/arcgis-rest-request:** upgraded to 4.0.0-beta.3
|
|
57
|
+
|
|
1
58
|
# @esri/arcgis-rest-auth [4.0.0-beta.2](https://github.com/Esri/arcgis-rest-js/compare/@esri/arcgis-rest-auth@4.0.0-beta.1...@esri/arcgis-rest-auth@4.0.0-beta.2) (2022-03-02)
|
|
2
59
|
|
|
3
60
|
|
package/README.md
CHANGED
|
@@ -1,60 +1,10 @@
|
|
|
1
|
-
[![npm version][npm-img]][npm-url]
|
|
2
|
-
[![build status][travis-img]][travis-url]
|
|
3
|
-
[![gzip bundle size][gzip-image]][npm-url]
|
|
4
|
-
[![Coverage Status][coverage-img]][coverage-url]
|
|
5
|
-
[](https://raw.githubusercontent.com/Esri/arcgis-rest-js/master/LICENSE)
|
|
6
|
-
|
|
7
|
-
[npm-img]: https://img.shields.io/npm/v/@esri/arcgis-rest-auth.svg?style=flat-square
|
|
8
|
-
[npm-url]: https://www.npmjs.com/package/@esri/arcgis-rest-auth
|
|
9
|
-
[travis-img]: https://img.shields.io/travis/Esri/arcgis-rest-js/master.svg?style=flat-square
|
|
10
|
-
[travis-url]: https://travis-ci.org/Esri/arcgis-rest-js
|
|
11
|
-
[gzip-image]: https://img.badgesize.io/https://unpkg.com/@esri/arcgis-rest-auth/dist/bundled/auth.umd.min.js?compression=gzip
|
|
12
|
-
[coverage-img]: https://codecov.io/gh/Esri/arcgis-rest-js/branch/master/graph/badge.svg
|
|
13
|
-
[coverage-url]: https://codecov.io/gh/Esri/arcgis-rest-js
|
|
14
|
-
|
|
15
1
|
# @esri/arcgis-rest-auth
|
|
16
2
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
### Example
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npm install @esri/arcgis-rest-request
|
|
23
|
-
npm install @esri/arcgis-rest-auth
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
```js
|
|
27
|
-
import { UserSession } from "@esri/arcgis-rest-auth";
|
|
28
|
-
|
|
29
|
-
const session = new UserSession({
|
|
30
|
-
username: "casey",
|
|
31
|
-
password: "123456"
|
|
32
|
-
});
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### [API Reference](https://esri.github.io/arcgis-rest-js/api/auth/)
|
|
36
|
-
|
|
37
|
-
### Issues
|
|
38
|
-
|
|
39
|
-
If something isn't working the way you expected, please take a look at [previously logged issues](https://github.com/Esri/arcgis-rest-js/issues) first. Have you found a new bug? Want to request a new feature? We'd [**love**](https://github.com/Esri/arcgis-rest-js/issues/new) to hear from you.
|
|
40
|
-
|
|
41
|
-
If you're looking for help you can also post issues on [GIS Stackexchange](http://gis.stackexchange.com/questions/ask?tags=esri-oss).
|
|
42
|
-
|
|
43
|
-
### Versioning
|
|
44
|
-
|
|
45
|
-
For transparency into the release cycle and in striving to maintain backward compatibility, @esri/arcgis-rest-js is maintained under Semantic Versioning guidelines and will adhere to these rules whenever possible.
|
|
46
|
-
|
|
47
|
-
For more information on SemVer, please visit <http://semver.org/>.
|
|
48
|
-
|
|
49
|
-
### Contributing
|
|
50
|
-
|
|
51
|
-
Esri welcomes contributions from anyone and everyone. Please see our [guidelines for contributing](CONTRIBUTING.md).
|
|
52
|
-
|
|
53
|
-
### [Changelog](https://github.com/Esri/arcgis-rest-js/blob/master/CHANGELOG.md)
|
|
3
|
+
`@esri/arcgis-rest-auth` is deprecated at v4.0.0 of ArcGIS REST JS. Authentication helpers are now part of `@esri/arcgis-rest-request`.
|
|
54
4
|
|
|
55
5
|
### License
|
|
56
6
|
|
|
57
|
-
Copyright © 2017-
|
|
7
|
+
Copyright © 2017-2022 Esri
|
|
58
8
|
|
|
59
9
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
60
10
|
you may not use this file except in compliance with the License.
|
package/dist/bundled/auth.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @preserve
|
|
2
|
-
* @esri/arcgis-rest-auth -
|
|
2
|
+
* @esri/arcgis-rest-auth - v4.0.0-beta.4 - Apache-2.0
|
|
3
3
|
* Copyright (c) 2017-2022 Esri, Inc.
|
|
4
|
-
*
|
|
4
|
+
* Mon Apr 18 2022 16:42:03 GMT+0000 (Coordinated Universal Time)
|
|
5
5
|
*/
|
|
6
|
-
export { ApiKey, ApplicationSession, AuthenticationProvider, IApiKeyOptions, IAppAccess, IAuthenticatedRequestOptions, ICredential, IFetchTokenResponse,
|
|
6
|
+
export { ApiKey, ApplicationSession, AuthenticationProvider, IApiKeyOptions, IAppAccess, IAuthenticatedRequestOptions, ICredential, IFetchTokenResponse, IOAuth2Options, IPlatformSelfResponse, IUser, IUserRequestOptions, UserSession, canUseOnlineToken, exchangeToken, fetchToken, getOnlineEnvironment, isFederated, isOnline, normalizeOnlinePortalUrl, platformSelf, validateAppAccess } from '@esri/arcgis-rest-request';
|
|
7
7
|
//# sourceMappingURL=auth.esm.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @preserve
|
|
2
|
-
* @esri/arcgis-rest-auth -
|
|
2
|
+
* @esri/arcgis-rest-auth - v4.0.0-beta.4 - Apache-2.0
|
|
3
3
|
* Copyright (c) 2017-2022 Esri, Inc.
|
|
4
|
-
*
|
|
4
|
+
* Mon Apr 18 2022 16:42:03 GMT+0000 (Coordinated Universal Time)
|
|
5
5
|
*/
|
|
6
|
-
export{ApiKey,ApplicationSession,AuthenticationProvider,IApiKeyOptions,IAppAccess,IAuthenticatedRequestOptions,ICredential,IFetchTokenResponse,
|
|
6
|
+
export{ApiKey,ApplicationSession,AuthenticationProvider,IApiKeyOptions,IAppAccess,IAuthenticatedRequestOptions,ICredential,IFetchTokenResponse,IOAuth2Options,IPlatformSelfResponse,IUser,IUserRequestOptions,UserSession,canUseOnlineToken,exchangeToken,fetchToken,getOnlineEnvironment,isFederated,isOnline,normalizeOnlinePortalUrl,platformSelf,validateAppAccess}from"@esri/arcgis-rest-request";
|
|
7
7
|
//# sourceMappingURL=auth.esm.min.js.map
|
package/dist/bundled/auth.umd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @preserve
|
|
2
|
-
* @esri/arcgis-rest-auth -
|
|
2
|
+
* @esri/arcgis-rest-auth - v4.0.0-beta.4 - Apache-2.0
|
|
3
3
|
* Copyright (c) 2017-2022 Esri, Inc.
|
|
4
|
-
*
|
|
4
|
+
* Mon Apr 18 2022 16:42:03 GMT+0000 (Coordinated Universal Time)
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
7
7
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@esri/arcgis-rest-request')) :
|
|
@@ -41,10 +41,6 @@
|
|
|
41
41
|
enumerable: true,
|
|
42
42
|
get: function () { return arcgisRestRequest.IFetchTokenResponse; }
|
|
43
43
|
});
|
|
44
|
-
Object.defineProperty(exports, 'IGenerateTokenResponse', {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function () { return arcgisRestRequest.IGenerateTokenResponse; }
|
|
47
|
-
});
|
|
48
44
|
Object.defineProperty(exports, 'IOAuth2Options', {
|
|
49
45
|
enumerable: true,
|
|
50
46
|
get: function () { return arcgisRestRequest.IOAuth2Options; }
|
|
@@ -77,10 +73,6 @@
|
|
|
77
73
|
enumerable: true,
|
|
78
74
|
get: function () { return arcgisRestRequest.fetchToken; }
|
|
79
75
|
});
|
|
80
|
-
Object.defineProperty(exports, 'generateToken', {
|
|
81
|
-
enumerable: true,
|
|
82
|
-
get: function () { return arcgisRestRequest.generateToken; }
|
|
83
|
-
});
|
|
84
76
|
Object.defineProperty(exports, 'getOnlineEnvironment', {
|
|
85
77
|
enumerable: true,
|
|
86
78
|
get: function () { return arcgisRestRequest.getOnlineEnvironment; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @preserve
|
|
2
|
-
* @esri/arcgis-rest-auth -
|
|
2
|
+
* @esri/arcgis-rest-auth - v4.0.0-beta.4 - Apache-2.0
|
|
3
3
|
* Copyright (c) 2017-2022 Esri, Inc.
|
|
4
|
-
*
|
|
4
|
+
* Mon Apr 18 2022 16:42:03 GMT+0000 (Coordinated Universal Time)
|
|
5
5
|
*/
|
|
6
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@esri/arcgis-rest-request")):"function"==typeof define&&define.amd?define(["exports","@esri/arcgis-rest-request"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).arcgisRest=e.arcgisRest||{},e.arcgisRest)}(this,(function(e,n){"use strict";Object.defineProperty(e,"ApiKey",{enumerable:!0,get:function(){return n.ApiKey}}),Object.defineProperty(e,"ApplicationSession",{enumerable:!0,get:function(){return n.ApplicationSession}}),Object.defineProperty(e,"AuthenticationProvider",{enumerable:!0,get:function(){return n.AuthenticationProvider}}),Object.defineProperty(e,"IApiKeyOptions",{enumerable:!0,get:function(){return n.IApiKeyOptions}}),Object.defineProperty(e,"IAppAccess",{enumerable:!0,get:function(){return n.IAppAccess}}),Object.defineProperty(e,"IAuthenticatedRequestOptions",{enumerable:!0,get:function(){return n.IAuthenticatedRequestOptions}}),Object.defineProperty(e,"ICredential",{enumerable:!0,get:function(){return n.ICredential}}),Object.defineProperty(e,"IFetchTokenResponse",{enumerable:!0,get:function(){return n.IFetchTokenResponse}}),Object.defineProperty(e,"
|
|
6
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@esri/arcgis-rest-request")):"function"==typeof define&&define.amd?define(["exports","@esri/arcgis-rest-request"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).arcgisRest=e.arcgisRest||{},e.arcgisRest)}(this,(function(e,n){"use strict";Object.defineProperty(e,"ApiKey",{enumerable:!0,get:function(){return n.ApiKey}}),Object.defineProperty(e,"ApplicationSession",{enumerable:!0,get:function(){return n.ApplicationSession}}),Object.defineProperty(e,"AuthenticationProvider",{enumerable:!0,get:function(){return n.AuthenticationProvider}}),Object.defineProperty(e,"IApiKeyOptions",{enumerable:!0,get:function(){return n.IApiKeyOptions}}),Object.defineProperty(e,"IAppAccess",{enumerable:!0,get:function(){return n.IAppAccess}}),Object.defineProperty(e,"IAuthenticatedRequestOptions",{enumerable:!0,get:function(){return n.IAuthenticatedRequestOptions}}),Object.defineProperty(e,"ICredential",{enumerable:!0,get:function(){return n.ICredential}}),Object.defineProperty(e,"IFetchTokenResponse",{enumerable:!0,get:function(){return n.IFetchTokenResponse}}),Object.defineProperty(e,"IOAuth2Options",{enumerable:!0,get:function(){return n.IOAuth2Options}}),Object.defineProperty(e,"IPlatformSelfResponse",{enumerable:!0,get:function(){return n.IPlatformSelfResponse}}),Object.defineProperty(e,"IUser",{enumerable:!0,get:function(){return n.IUser}}),Object.defineProperty(e,"IUserRequestOptions",{enumerable:!0,get:function(){return n.IUserRequestOptions}}),Object.defineProperty(e,"UserSession",{enumerable:!0,get:function(){return n.UserSession}}),Object.defineProperty(e,"canUseOnlineToken",{enumerable:!0,get:function(){return n.canUseOnlineToken}}),Object.defineProperty(e,"exchangeToken",{enumerable:!0,get:function(){return n.exchangeToken}}),Object.defineProperty(e,"fetchToken",{enumerable:!0,get:function(){return n.fetchToken}}),Object.defineProperty(e,"getOnlineEnvironment",{enumerable:!0,get:function(){return n.getOnlineEnvironment}}),Object.defineProperty(e,"isFederated",{enumerable:!0,get:function(){return n.isFederated}}),Object.defineProperty(e,"isOnline",{enumerable:!0,get:function(){return n.isOnline}}),Object.defineProperty(e,"normalizeOnlinePortalUrl",{enumerable:!0,get:function(){return n.normalizeOnlinePortalUrl}}),Object.defineProperty(e,"platformSelf",{enumerable:!0,get:function(){return n.platformSelf}}),Object.defineProperty(e,"validateAppAccess",{enumerable:!0,get:function(){return n.validateAppAccess}}),Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
7
7
|
//# sourceMappingURL=auth.umd.min.js.map
|
package/dist/cjs/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.
|
|
3
3
|
* Apache-2.0 */
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.validateAppAccess = exports.
|
|
5
|
+
exports.validateAppAccess = exports.fetchToken = exports.normalizeOnlinePortalUrl = exports.isOnline = exports.isFederated = exports.getOnlineEnvironment = exports.canUseOnlineToken = exports.platformSelf = exports.exchangeToken = exports.UserSession = exports.ApplicationSession = exports.ApiKey = void 0;
|
|
6
6
|
var arcgis_rest_request_1 = require("@esri/arcgis-rest-request");
|
|
7
7
|
Object.defineProperty(exports, "ApiKey", { enumerable: true, get: function () { return arcgis_rest_request_1.ApiKey; } });
|
|
8
8
|
Object.defineProperty(exports, "ApplicationSession", { enumerable: true, get: function () { return arcgis_rest_request_1.ApplicationSession; } });
|
|
@@ -15,6 +15,5 @@ Object.defineProperty(exports, "isFederated", { enumerable: true, get: function
|
|
|
15
15
|
Object.defineProperty(exports, "isOnline", { enumerable: true, get: function () { return arcgis_rest_request_1.isOnline; } });
|
|
16
16
|
Object.defineProperty(exports, "normalizeOnlinePortalUrl", { enumerable: true, get: function () { return arcgis_rest_request_1.normalizeOnlinePortalUrl; } });
|
|
17
17
|
Object.defineProperty(exports, "fetchToken", { enumerable: true, get: function () { return arcgis_rest_request_1.fetchToken; } });
|
|
18
|
-
Object.defineProperty(exports, "generateToken", { enumerable: true, get: function () { return arcgis_rest_request_1.generateToken; } });
|
|
19
18
|
Object.defineProperty(exports, "validateAppAccess", { enumerable: true, get: function () { return arcgis_rest_request_1.validateAppAccess; } });
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;gBACgB;;;AAEhB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;gBACgB;;;AAEhB,iEAuBmC;AAtBjC,6GAAA,MAAM,OAAA;AACN,yHAAA,kBAAkB,OAAA;AAClB,kHAAA,WAAW,OAAA;AACX,oHAAA,aAAa,OAAA;AACb,mHAAA,YAAY,OAAA;AACZ,wHAAA,iBAAiB,OAAA;AACjB,2HAAA,oBAAoB,OAAA;AACpB,kHAAA,WAAW,OAAA;AACX,+GAAA,QAAQ,OAAA;AACR,+HAAA,wBAAwB,OAAA;AACxB,iHAAA,UAAU,OAAA;AACV,wHAAA,iBAAiB,OAAA","sourcesContent":["/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.\n * Apache-2.0 */\n\nexport {\n ApiKey,\n ApplicationSession,\n UserSession,\n exchangeToken,\n platformSelf,\n canUseOnlineToken,\n getOnlineEnvironment,\n isFederated,\n isOnline,\n normalizeOnlinePortalUrl,\n fetchToken,\n validateAppAccess,\n AuthenticationProvider,\n IApiKeyOptions,\n ICredential,\n IOAuth2Options,\n IPlatformSelfResponse,\n IAuthenticatedRequestOptions,\n IUserRequestOptions,\n IFetchTokenResponse,\n IAppAccess,\n IUser\n} from \"@esri/arcgis-rest-request\";\n\nimport { IArcGISIdentityManagerOptions } from \"@esri/arcgis-rest-request\";\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface IUserSessionOptions extends IArcGISIdentityManagerOptions {}\n"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ApiKey, ApplicationSession, UserSession, exchangeToken, platformSelf, canUseOnlineToken, getOnlineEnvironment, isFederated, isOnline, normalizeOnlinePortalUrl, fetchToken,
|
|
1
|
+
export { ApiKey, ApplicationSession, UserSession, exchangeToken, platformSelf, canUseOnlineToken, getOnlineEnvironment, isFederated, isOnline, normalizeOnlinePortalUrl, fetchToken, validateAppAccess, AuthenticationProvider, IApiKeyOptions, ICredential, IOAuth2Options, IPlatformSelfResponse, IAuthenticatedRequestOptions, IUserRequestOptions, IFetchTokenResponse, IAppAccess, IUser } from "@esri/arcgis-rest-request";
|
|
2
2
|
import { IArcGISIdentityManagerOptions } from "@esri/arcgis-rest-request";
|
|
3
3
|
export interface IUserSessionOptions extends IArcGISIdentityManagerOptions {
|
|
4
4
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.
|
|
2
2
|
* Apache-2.0 */
|
|
3
|
-
export { ApiKey, ApplicationSession, UserSession, exchangeToken, platformSelf, canUseOnlineToken, getOnlineEnvironment, isFederated, isOnline, normalizeOnlinePortalUrl, fetchToken,
|
|
3
|
+
export { ApiKey, ApplicationSession, UserSession, exchangeToken, platformSelf, canUseOnlineToken, getOnlineEnvironment, isFederated, isOnline, normalizeOnlinePortalUrl, fetchToken, validateAppAccess } from "@esri/arcgis-rest-request";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;gBACgB;AAEhB,OAAO,EACL,MAAM,EACN,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,WAAW,EACX,QAAQ,EACR,wBAAwB,EACxB,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;gBACgB;AAEhB,OAAO,EACL,MAAM,EACN,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,WAAW,EACX,QAAQ,EACR,wBAAwB,EACxB,UAAU,EACV,iBAAiB,EAWlB,MAAM,2BAA2B,CAAC","sourcesContent":["/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.\n * Apache-2.0 */\n\nexport {\n ApiKey,\n ApplicationSession,\n UserSession,\n exchangeToken,\n platformSelf,\n canUseOnlineToken,\n getOnlineEnvironment,\n isFederated,\n isOnline,\n normalizeOnlinePortalUrl,\n fetchToken,\n validateAppAccess,\n AuthenticationProvider,\n IApiKeyOptions,\n ICredential,\n IOAuth2Options,\n IPlatformSelfResponse,\n IAuthenticatedRequestOptions,\n IUserRequestOptions,\n IFetchTokenResponse,\n IAppAccess,\n IUser\n} from \"@esri/arcgis-rest-request\";\n\nimport { IArcGISIdentityManagerOptions } from \"@esri/arcgis-rest-request\";\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface IUserSessionOptions extends IArcGISIdentityManagerOptions {}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/arcgis-rest-auth",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Authentication helpers for @esri/arcgis-rest-js.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -29,7 +29,9 @@
|
|
|
29
29
|
"postbuild": "node ../../scripts/create-dist-package-jsons.js",
|
|
30
30
|
"build:bundled": "rollup -c ../../rollup.js",
|
|
31
31
|
"build:cjs": "tsc --outDir ./dist/cjs -m commonjs",
|
|
32
|
+
"postbuild:cjs": "node ../../scripts/create-dist-package-jsons.js",
|
|
32
33
|
"build:esm": "tsc --outDir ./dist/esm --declaration",
|
|
34
|
+
"postbuild:esm": "node ../../scripts/create-dist-package-jsons.js",
|
|
33
35
|
"dev": "npm-run-all --parallel dev:*",
|
|
34
36
|
"dev:bundled": "rollup -w -c ../../rollup.js",
|
|
35
37
|
"dev:cjs": "tsc -w --outDir ./dist/cjs -m commonjs",
|
|
@@ -39,7 +41,7 @@
|
|
|
39
41
|
"node": ">=12.20.0"
|
|
40
42
|
},
|
|
41
43
|
"dependencies": {
|
|
42
|
-
"@esri/arcgis-rest-request": "4.0.0
|
|
44
|
+
"@esri/arcgis-rest-request": "4.0.0",
|
|
43
45
|
"tslib": "^2.3.0"
|
|
44
46
|
},
|
|
45
47
|
"contributors": [
|
package/src/index.ts
CHANGED
|
@@ -13,7 +13,6 @@ export {
|
|
|
13
13
|
isOnline,
|
|
14
14
|
normalizeOnlinePortalUrl,
|
|
15
15
|
fetchToken,
|
|
16
|
-
generateToken,
|
|
17
16
|
validateAppAccess,
|
|
18
17
|
AuthenticationProvider,
|
|
19
18
|
IApiKeyOptions,
|
|
@@ -23,7 +22,6 @@ export {
|
|
|
23
22
|
IAuthenticatedRequestOptions,
|
|
24
23
|
IUserRequestOptions,
|
|
25
24
|
IFetchTokenResponse,
|
|
26
|
-
IGenerateTokenResponse,
|
|
27
25
|
IAppAccess,
|
|
28
26
|
IUser
|
|
29
27
|
} from "@esri/arcgis-rest-request";
|