@itwin/map-layers-auth 4.0.0-dev.8 → 4.0.0-dev.80

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +43 -1
  2. package/lib/cjs/ArcGis/ArcGisAccessClient.d.ts +72 -72
  3. package/lib/cjs/ArcGis/ArcGisAccessClient.js +286 -291
  4. package/lib/cjs/ArcGis/ArcGisAccessClient.js.map +1 -1
  5. package/lib/cjs/ArcGis/ArcGisOAuth2Endpoint.d.ts +22 -22
  6. package/lib/cjs/ArcGis/ArcGisOAuth2Endpoint.js +46 -46
  7. package/lib/cjs/ArcGis/ArcGisTokenGenerator.d.ts +41 -41
  8. package/lib/cjs/ArcGis/ArcGisTokenGenerator.js +109 -110
  9. package/lib/cjs/ArcGis/ArcGisTokenGenerator.js.map +1 -1
  10. package/lib/cjs/ArcGis/ArcGisTokenManager.d.ts +20 -20
  11. package/lib/cjs/ArcGis/ArcGisTokenManager.js +111 -112
  12. package/lib/cjs/ArcGis/ArcGisTokenManager.js.map +1 -1
  13. package/lib/cjs/ArcGis/ArcGisUrl.d.ts +6 -6
  14. package/lib/cjs/ArcGis/ArcGisUrl.js +48 -49
  15. package/lib/cjs/ArcGis/ArcGisUrl.js.map +1 -1
  16. package/lib/cjs/map-layers-auth.d.ts +5 -5
  17. package/lib/cjs/map-layers-auth.js +25 -21
  18. package/lib/cjs/map-layers-auth.js.map +1 -1
  19. package/lib/esm/ArcGis/ArcGisAccessClient.d.ts +72 -72
  20. package/lib/esm/ArcGis/ArcGisAccessClient.js +282 -287
  21. package/lib/esm/ArcGis/ArcGisAccessClient.js.map +1 -1
  22. package/lib/esm/ArcGis/ArcGisOAuth2Endpoint.d.ts +22 -22
  23. package/lib/esm/ArcGis/ArcGisOAuth2Endpoint.js +42 -42
  24. package/lib/esm/ArcGis/ArcGisTokenGenerator.d.ts +41 -41
  25. package/lib/esm/ArcGis/ArcGisTokenGenerator.js +106 -106
  26. package/lib/esm/ArcGis/ArcGisTokenGenerator.js.map +1 -1
  27. package/lib/esm/ArcGis/ArcGisTokenManager.d.ts +20 -20
  28. package/lib/esm/ArcGis/ArcGisTokenManager.js +108 -108
  29. package/lib/esm/ArcGis/ArcGisTokenManager.js.map +1 -1
  30. package/lib/esm/ArcGis/ArcGisUrl.d.ts +6 -6
  31. package/lib/esm/ArcGis/ArcGisUrl.js +44 -45
  32. package/lib/esm/ArcGis/ArcGisUrl.js.map +1 -1
  33. package/lib/esm/map-layers-auth.d.ts +5 -5
  34. package/lib/esm/map-layers-auth.js +9 -9
  35. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -1,6 +1,48 @@
1
1
  # Change Log - @itwin/map-layers-auth
2
2
 
3
- This log was last generated on Thu, 26 Jan 2023 22:53:27 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 12 Apr 2023 13:12:42 GMT and should not be manually modified.
4
+
5
+ ## 3.7.2
6
+ Wed, 12 Apr 2023 13:12:42 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.7.1
11
+ Mon, 03 Apr 2023 15:15:37 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 3.7.0
16
+ Wed, 29 Mar 2023 15:02:27 GMT
17
+
18
+ _Version update only_
19
+
20
+ ## 3.6.3
21
+ Mon, 27 Mar 2023 16:26:47 GMT
22
+
23
+ _Version update only_
24
+
25
+ ## 3.6.2
26
+ Fri, 17 Mar 2023 17:52:32 GMT
27
+
28
+ _Version update only_
29
+
30
+ ## 3.6.1
31
+ Fri, 24 Feb 2023 22:00:48 GMT
32
+
33
+ _Version update only_
34
+
35
+ ## 3.6.0
36
+ Wed, 08 Feb 2023 14:58:40 GMT
37
+
38
+ ### Updates
39
+
40
+ - Map-layers oauth2 requests optimization and improvements
41
+
42
+ ## 3.5.6
43
+ Fri, 24 Feb 2023 16:02:47 GMT
44
+
45
+ _Version update only_
4
46
 
5
47
  ## 3.5.5
6
48
  Thu, 26 Jan 2023 22:53:27 GMT
@@ -1,73 +1,73 @@
1
- /** @packageDocumentation
2
- * @module Tiles
3
- */
4
- import { BeEvent } from "@itwin/core-bentley";
5
- import { MapLayerAccessClient, MapLayerAccessToken, MapLayerAccessTokenParams, MapLayerTokenEndpoint } from "@itwin/core-frontend";
6
- /** @beta */
7
- export interface ArcGisEnterpriseClientId {
8
- serviceBaseUrl: string;
9
- clientId: string;
10
- }
11
- /** @beta */
12
- export interface ArcGisOAuthClientIds {
13
- arcgisOnlineClientId?: string;
14
- enterpriseClientIds?: ArcGisEnterpriseClientId[];
15
- }
16
- /** @beta
17
- * ArcGIS OAuth configurations parameters.
18
- * See https://developers.arcgis.com/documentation/mapping-apis-and-services/security/arcgis-identity/serverless-web-apps/
19
- * more details.
20
- */
21
- export interface ArcGisOAuthConfig {
22
- redirectUri: string;
23
- tokenExpiration?: number;
24
- clientIds: ArcGisOAuthClientIds;
25
- }
26
- /** @beta */
27
- export declare class ArcGisAccessClient implements MapLayerAccessClient {
28
- readonly onOAuthProcessEnd: BeEvent<import("@itwin/core-bentley").Listener>;
29
- private _redirectUri;
30
- private _expiration;
31
- private _clientIds;
32
- private _forceLegacyToken;
33
- constructor();
34
- initialize(oAuthConfig?: ArcGisOAuthConfig): boolean;
35
- private initOauthCallbackFunction;
36
- unInitialize(): void;
37
- getAccessToken(params: MapLayerAccessTokenParams): Promise<MapLayerAccessToken | undefined>;
38
- getTokenServiceEndPoint(mapLayerUrl: string): Promise<MapLayerTokenEndpoint | undefined>;
39
- invalidateToken(token: MapLayerAccessToken): boolean;
40
- get redirectUri(): string | undefined;
41
- getMatchingEnterpriseClientId(url: string): string | undefined;
42
- get expiration(): number | undefined;
43
- get arcGisOnlineClientId(): string | undefined;
44
- set arcGisOnlineClientId(clientId: string | undefined);
45
- get arcGisEnterpriseClientIds(): ArcGisEnterpriseClientId[] | undefined;
46
- setEnterpriseClientId(serviceBaseUrl: string, clientId: string): void;
47
- removeEnterpriseClientId(clientId: ArcGisEnterpriseClientId): void;
48
- /** @internal */
49
- private getOAuthTokenForMapLayerUrl;
50
- private _oauthAuthorizeEndPointsCache;
51
- private _oauthTokenEndPointsCache;
52
- /**
53
- * Get OAuth2 endpoint that must be cause to get the Oauth2 token
54
- * @internal
55
- */
56
- private cacheEndpoint;
57
- /**
58
- * Get OAuth2 endpoint that must be cause to get the Oauth2 token
59
- * @internal
60
- */
61
- private createEndpoint;
62
- /**
63
- * Get OAuth2 endpoint that must be cause to get the Oauth2 token
64
- * @internal
65
- */
66
- private getOAuth2Endpoint;
67
- /**
68
- * Construct the complete Authorize url to starts the Oauth process
69
- * @internal
70
- */
71
- private constructLoginUrl;
72
- }
1
+ /** @packageDocumentation
2
+ * @module Tiles
3
+ */
4
+ import { BeEvent } from "@itwin/core-bentley";
5
+ import { MapLayerAccessClient, MapLayerAccessToken, MapLayerAccessTokenParams, MapLayerTokenEndpoint } from "@itwin/core-frontend";
6
+ /** @beta */
7
+ export interface ArcGisEnterpriseClientId {
8
+ serviceBaseUrl: string;
9
+ clientId: string;
10
+ }
11
+ /** @beta */
12
+ export interface ArcGisOAuthClientIds {
13
+ arcgisOnlineClientId?: string;
14
+ enterpriseClientIds?: ArcGisEnterpriseClientId[];
15
+ }
16
+ /** @beta
17
+ * ArcGIS OAuth configurations parameters.
18
+ * See https://developers.arcgis.com/documentation/mapping-apis-and-services/security/arcgis-identity/serverless-web-apps/
19
+ * more details.
20
+ */
21
+ export interface ArcGisOAuthConfig {
22
+ redirectUri: string;
23
+ tokenExpiration?: number;
24
+ clientIds: ArcGisOAuthClientIds;
25
+ }
26
+ /** @beta */
27
+ export declare class ArcGisAccessClient implements MapLayerAccessClient {
28
+ readonly onOAuthProcessEnd: BeEvent<import("@itwin/core-bentley").Listener>;
29
+ private _redirectUri;
30
+ private _expiration;
31
+ private _clientIds;
32
+ private _forceLegacyToken;
33
+ constructor();
34
+ initialize(oAuthConfig?: ArcGisOAuthConfig): boolean;
35
+ private initOauthCallbackFunction;
36
+ unInitialize(): void;
37
+ getAccessToken(params: MapLayerAccessTokenParams): Promise<MapLayerAccessToken | undefined>;
38
+ getTokenServiceEndPoint(mapLayerUrl: string): Promise<MapLayerTokenEndpoint | undefined>;
39
+ invalidateToken(token: MapLayerAccessToken): boolean;
40
+ get redirectUri(): string | undefined;
41
+ getMatchingEnterpriseClientId(url: string): string | undefined;
42
+ get expiration(): number | undefined;
43
+ get arcGisOnlineClientId(): string | undefined;
44
+ set arcGisOnlineClientId(clientId: string | undefined);
45
+ get arcGisEnterpriseClientIds(): ArcGisEnterpriseClientId[] | undefined;
46
+ setEnterpriseClientId(serviceBaseUrl: string, clientId: string): void;
47
+ removeEnterpriseClientId(clientId: ArcGisEnterpriseClientId): void;
48
+ /** @internal */
49
+ private getOAuthTokenForMapLayerUrl;
50
+ private _oauthAuthorizeEndPointsCache;
51
+ private _oauthTokenEndPointsCache;
52
+ /**
53
+ * Get OAuth2 endpoint that must be cause to get the Oauth2 token
54
+ * @internal
55
+ */
56
+ private cacheEndpoint;
57
+ /**
58
+ * Get OAuth2 endpoint that must be cause to get the Oauth2 token
59
+ * @internal
60
+ */
61
+ private createEndpoint;
62
+ /**
63
+ * Get OAuth2 endpoint that must be cause to get the Oauth2 token
64
+ * @internal
65
+ */
66
+ private getOAuth2Endpoint;
67
+ /**
68
+ * Construct the complete Authorize url to starts the Oauth process
69
+ * @internal
70
+ */
71
+ private constructLoginUrl;
72
+ }
73
73
  //# sourceMappingURL=ArcGisAccessClient.d.ts.map