@itwin/map-layers-auth 3.4.0-dev.61 → 3.4.0-dev.63

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 (38) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/lib/cjs/ArcGis/ArcGisAccessClient.d.ts +66 -66
  3. package/lib/cjs/ArcGis/ArcGisAccessClient.js +294 -294
  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/ArcGisOAuth2Endpoint.js.map +1 -1
  8. package/lib/cjs/ArcGis/ArcGisTokenGenerator.d.ts +41 -41
  9. package/lib/cjs/ArcGis/ArcGisTokenGenerator.js +110 -110
  10. package/lib/cjs/ArcGis/ArcGisTokenGenerator.js.map +1 -1
  11. package/lib/cjs/ArcGis/ArcGisTokenManager.d.ts +20 -20
  12. package/lib/cjs/ArcGis/ArcGisTokenManager.js +109 -109
  13. package/lib/cjs/ArcGis/ArcGisTokenManager.js.map +1 -1
  14. package/lib/cjs/ArcGis/ArcGisUrl.d.ts +6 -6
  15. package/lib/cjs/ArcGis/ArcGisUrl.js +49 -49
  16. package/lib/cjs/ArcGis/ArcGisUrl.js.map +1 -1
  17. package/lib/cjs/map-layers-auth.d.ts +5 -5
  18. package/lib/cjs/map-layers-auth.js +21 -21
  19. package/lib/cjs/map-layers-auth.js.map +1 -1
  20. package/lib/esm/ArcGis/ArcGisAccessClient.d.ts +66 -66
  21. package/lib/esm/ArcGis/ArcGisAccessClient.js +290 -290
  22. package/lib/esm/ArcGis/ArcGisAccessClient.js.map +1 -1
  23. package/lib/esm/ArcGis/ArcGisOAuth2Endpoint.d.ts +22 -22
  24. package/lib/esm/ArcGis/ArcGisOAuth2Endpoint.js +42 -42
  25. package/lib/esm/ArcGis/ArcGisOAuth2Endpoint.js.map +1 -1
  26. package/lib/esm/ArcGis/ArcGisTokenGenerator.d.ts +41 -41
  27. package/lib/esm/ArcGis/ArcGisTokenGenerator.js +106 -106
  28. package/lib/esm/ArcGis/ArcGisTokenGenerator.js.map +1 -1
  29. package/lib/esm/ArcGis/ArcGisTokenManager.d.ts +20 -20
  30. package/lib/esm/ArcGis/ArcGisTokenManager.js +105 -105
  31. package/lib/esm/ArcGis/ArcGisTokenManager.js.map +1 -1
  32. package/lib/esm/ArcGis/ArcGisUrl.d.ts +6 -6
  33. package/lib/esm/ArcGis/ArcGisUrl.js +45 -45
  34. package/lib/esm/ArcGis/ArcGisUrl.js.map +1 -1
  35. package/lib/esm/map-layers-auth.d.ts +5 -5
  36. package/lib/esm/map-layers-auth.js +9 -9
  37. package/lib/esm/map-layers-auth.js.map +1 -1
  38. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  # Change Log - @itwin/map-layers-auth
2
2
 
3
- This log was last generated on Thu, 01 Sep 2022 14:37:22 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 27 Sep 2022 11:50:59 GMT and should not be manually modified.
4
+
5
+ ## 3.3.5
6
+ Tue, 27 Sep 2022 11:50:59 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.3.4
11
+ Thu, 08 Sep 2022 19:00:05 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 3.3.3
16
+ Tue, 06 Sep 2022 20:54:19 GMT
17
+
18
+ _Version update only_
4
19
 
5
20
  ## 3.3.2
6
21
  Thu, 01 Sep 2022 14:37:22 GMT
@@ -1,67 +1,67 @@
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
- constructor();
33
- initialize(oAuthConfig?: ArcGisOAuthConfig): boolean;
34
- private initOauthCallbackFunction;
35
- unInitialize(): void;
36
- getAccessToken(params: MapLayerAccessTokenParams): Promise<MapLayerAccessToken | undefined>;
37
- getTokenServiceEndPoint(mapLayerUrl: string): Promise<MapLayerTokenEndpoint | undefined>;
38
- invalidateToken(token: MapLayerAccessToken): boolean;
39
- get redirectUri(): string | undefined;
40
- getMatchingEnterpriseClientId(url: string): string | undefined;
41
- get expiration(): number | undefined;
42
- get arcGisOnlineClientId(): string | undefined;
43
- set arcGisOnlineClientId(clientId: string | undefined);
44
- get arcGisEnterpriseClientIds(): ArcGisEnterpriseClientId[] | undefined;
45
- setEnterpriseClientId(serviceBaseUrl: string, clientId: string): void;
46
- removeEnterpriseClientId(clientId: ArcGisEnterpriseClientId): void;
47
- /** @internal */
48
- private getOAuthTokenForMapLayerUrl;
49
- /**
50
- * Test if Oauth2 endpoint is accessible and has an associated appId
51
- * @internal
52
- */
53
- private validateOAuth2Endpoint;
54
- private _oauthAuthorizeEndPointsCache;
55
- private _oauthTokenEndPointsCache;
56
- /**
57
- * Get OAuth2 endpoint that must be cause to get the Oauth2 token
58
- * @internal
59
- */
60
- private getOAuth2Endpoint;
61
- /**
62
- * Construct the complete Authorize url to starts the Oauth process
63
- * @internal
64
- */
65
- private constructLoginUrl;
66
- }
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
+ constructor();
33
+ initialize(oAuthConfig?: ArcGisOAuthConfig): boolean;
34
+ private initOauthCallbackFunction;
35
+ unInitialize(): void;
36
+ getAccessToken(params: MapLayerAccessTokenParams): Promise<MapLayerAccessToken | undefined>;
37
+ getTokenServiceEndPoint(mapLayerUrl: string): Promise<MapLayerTokenEndpoint | undefined>;
38
+ invalidateToken(token: MapLayerAccessToken): boolean;
39
+ get redirectUri(): string | undefined;
40
+ getMatchingEnterpriseClientId(url: string): string | undefined;
41
+ get expiration(): number | undefined;
42
+ get arcGisOnlineClientId(): string | undefined;
43
+ set arcGisOnlineClientId(clientId: string | undefined);
44
+ get arcGisEnterpriseClientIds(): ArcGisEnterpriseClientId[] | undefined;
45
+ setEnterpriseClientId(serviceBaseUrl: string, clientId: string): void;
46
+ removeEnterpriseClientId(clientId: ArcGisEnterpriseClientId): void;
47
+ /** @internal */
48
+ private getOAuthTokenForMapLayerUrl;
49
+ /**
50
+ * Test if Oauth2 endpoint is accessible and has an associated appId
51
+ * @internal
52
+ */
53
+ private validateOAuth2Endpoint;
54
+ private _oauthAuthorizeEndPointsCache;
55
+ private _oauthTokenEndPointsCache;
56
+ /**
57
+ * Get OAuth2 endpoint that must be cause to get the Oauth2 token
58
+ * @internal
59
+ */
60
+ private getOAuth2Endpoint;
61
+ /**
62
+ * Construct the complete Authorize url to starts the Oauth process
63
+ * @internal
64
+ */
65
+ private constructLoginUrl;
66
+ }
67
67
  //# sourceMappingURL=ArcGisAccessClient.d.ts.map