@esri/arcgis-rest-auth 4.0.0-beta.4 → 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 CHANGED
@@ -1 +1 @@
1
- {"files":{"dist":"1647976333249.6528","CHANGELOG.md":"71552aef7a6e09246eb4ed0930715c06fdb015f1","README.md":"9a12530bdf570733e0133530d2c2bb2eb99c316b","package.json":"403dfcf6a5da3ef988c545d5847840e8252f331d","src/index.ts":"de3c4a3ed52582e32db55bd6043d47a10f43a490","tsconfig.json":"90cbf37afa22bf149841064433be84fbb7e8f5e8"},"deps":{"@esri/arcgis-rest-request":1647976332585.6575}}
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,30 @@
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
+
1
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)
2
29
 
3
30
 
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
- [![apache licensed](https://img.shields.io/badge/license-Apache-green.svg?style=flat-square)](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
- > Authentication helpers for [`@esri/arcgis-rest-*`](https://github.com/Esri/arcgis-rest-js).
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 &copy; 2017-2019 Esri
7
+ Copyright &copy; 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.
@@ -1,7 +1,7 @@
1
1
  /* @preserve
2
- * @esri/arcgis-rest-auth - v4.0.0-beta.5 - Apache-2.0
2
+ * @esri/arcgis-rest-auth - v4.0.0-beta.4 - Apache-2.0
3
3
  * Copyright (c) 2017-2022 Esri, Inc.
4
- * Tue Mar 22 2022 19:12:13 GMT+0000 (Coordinated Universal Time)
4
+ * Mon Apr 18 2022 16:42:03 GMT+0000 (Coordinated Universal Time)
5
5
  */
6
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 - v4.0.0-beta.5 - Apache-2.0
2
+ * @esri/arcgis-rest-auth - v4.0.0-beta.4 - Apache-2.0
3
3
  * Copyright (c) 2017-2022 Esri, Inc.
4
- * Tue Mar 22 2022 19:12:13 GMT+0000 (Coordinated Universal Time)
4
+ * Mon Apr 18 2022 16:42:03 GMT+0000 (Coordinated Universal Time)
5
5
  */
6
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
@@ -1,7 +1,7 @@
1
1
  /* @preserve
2
- * @esri/arcgis-rest-auth - v4.0.0-beta.5 - Apache-2.0
2
+ * @esri/arcgis-rest-auth - v4.0.0-beta.4 - Apache-2.0
3
3
  * Copyright (c) 2017-2022 Esri, Inc.
4
- * Tue Mar 22 2022 19:12:13 GMT+0000 (Coordinated Universal Time)
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')) :
@@ -1,7 +1,7 @@
1
1
  /* @preserve
2
- * @esri/arcgis-rest-auth - v4.0.0-beta.5 - Apache-2.0
2
+ * @esri/arcgis-rest-auth - v4.0.0-beta.4 - Apache-2.0
3
3
  * Copyright (c) 2017-2022 Esri, Inc.
4
- * Tue Mar 22 2022 19:12:13 GMT+0000 (Coordinated Universal Time)
4
+ * Mon Apr 18 2022 16:42:03 GMT+0000 (Coordinated Universal Time)
5
5
  */
6
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/arcgis-rest-auth",
3
- "version": "4.0.0-beta.4",
3
+ "version": "4.0.0",
4
4
  "description": "Authentication helpers for @esri/arcgis-rest-js.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -41,7 +41,7 @@
41
41
  "node": ">=12.20.0"
42
42
  },
43
43
  "dependencies": {
44
- "@esri/arcgis-rest-request": "4.0.0-beta.6",
44
+ "@esri/arcgis-rest-request": "4.0.0",
45
45
  "tslib": "^2.3.0"
46
46
  },
47
47
  "contributors": [