piral-adal 1.6.0-beta.7240 → 1.6.0-beta.7243

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/lib/create.js CHANGED
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createAdalApi = void 0;
4
1
  /**
5
2
  * Creates new Pilet API extensions for the integration of MSAL.
6
3
  */
7
- function createAdalApi(client) {
4
+ export function createAdalApi(client) {
8
5
  return (context) => {
9
6
  context.on('before-fetch', client.extendHeaders);
10
7
  return {
@@ -14,5 +11,4 @@ function createAdalApi(client) {
14
11
  };
15
12
  };
16
13
  }
17
- exports.createAdalApi = createAdalApi;
18
14
  //# sourceMappingURL=create.js.map
package/lib/create.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACH,SAAgB,aAAa,CAAC,MAAkB;IAC9C,OAAO,CAAC,OAAO,EAAE,EAAE;QACjB,OAAO,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;QAEjD,OAAO;YACL,cAAc;gBACZ,OAAO,MAAM,CAAC,KAAK,EAAE,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAVD,sCAUC"}
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,MAAkB;IAC9C,OAAO,CAAC,OAAO,EAAE,EAAE;QACjB,OAAO,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;QAEjD,OAAO;YACL,cAAc;gBACZ,OAAO,MAAM,CAAC,KAAK,EAAE,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
package/lib/index.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./create"), exports);
5
- tslib_1.__exportStar(require("./setup"), exports);
6
- tslib_1.__exportStar(require("./types"), exports);
1
+ export * from './create';
2
+ export * from './setup';
3
+ export * from './types';
7
4
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,kDAAwB;AACxB,kDAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
package/lib/setup.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setupAdalClient = void 0;
4
- const msal_1 = require("msal");
1
+ import { UserAgentApplication } from 'msal';
5
2
  function retrieveToken(msalInstance, auth) {
6
3
  if (msalInstance.getAccount()) {
7
4
  return msalInstance
@@ -24,9 +21,9 @@ function retrieveToken(msalInstance, auth) {
24
21
  * Sets up a new client wrapping the MSAL API.
25
22
  * @param config The configuration for the client.
26
23
  */
27
- function setupAdalClient(config) {
24
+ export function setupAdalClient(config) {
28
25
  const { redirectUri = `${location.origin}/auth`, restrict = false, scopes = ['User.Read'], storeAuthStateInCookie, cacheLocation = 'sessionStorage', framework, system, ...remainingOptions } = config;
29
- const msalInstance = new msal_1.UserAgentApplication({
26
+ const msalInstance = new UserAgentApplication({
30
27
  auth: {
31
28
  redirectUri,
32
29
  ...remainingOptions,
@@ -62,5 +59,4 @@ function setupAdalClient(config) {
62
59
  },
63
60
  };
64
61
  }
65
- exports.setupAdalClient = setupAdalClient;
66
62
  //# sourceMappingURL=setup.js.map
package/lib/setup.js.map CHANGED
@@ -1 +1 @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aAAa,CAAC,GAAG;YACf,IAAI,CAAC,QAAQ,EAAE;gBACb,GAAG,CAAC,UAAU,CACZ,aAAa,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,IAAI,CAC5C,CAAC,KAAK,EAAE,EAAE,CACR,KAAK,IAAI;oBACP,aAAa,EAAE,UAAU,KAAK,EAAE;iBACjC,EACH,GAAG,EAAE,CAAC,SAAS,CAChB,CACF,CAAC;aACH;QACH,CAAC;QACD,KAAK;YACH,OAAO,aAAa,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QACnD,CAAC;KACF,CAAC;AACJ,CAAC"}
package/lib/types.js CHANGED
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-adal",
3
- "version": "1.6.0-beta.7240",
3
+ "version": "1.6.0-beta.7243",
4
4
  "description": "Plugin to integrate AAD authentication in Piral.",
5
5
  "keywords": [
6
6
  "piral",
@@ -20,29 +20,16 @@
20
20
  "author": "smapiot",
21
21
  "homepage": "https://piral.io",
22
22
  "license": "MIT",
23
- "module": "esm/index.js",
23
+ "module": "lib/index.js",
24
24
  "main": "lib/index.js",
25
25
  "typings": "lib/index.d.ts",
26
26
  "exports": {
27
- ".": {
28
- "import": "./esm/index.js",
29
- "require": "./lib/index.js"
30
- },
31
- "./esm/*": {
32
- "import": "./esm/*"
33
- },
34
- "./lib/*": {
35
- "require": "./lib/*"
36
- },
37
- "./_/*": {
38
- "import": "./esm/*.js",
39
- "require": "./lib/*.js"
40
- },
27
+ ".": "./lib/index.js",
28
+ "./lib/*": "./lib/*",
41
29
  "./package.json": "./package.json"
42
30
  },
43
31
  "sideEffects": false,
44
32
  "files": [
45
- "esm",
46
33
  "lib",
47
34
  "src",
48
35
  "piral-adal.min.js"
@@ -56,10 +43,9 @@
56
43
  },
57
44
  "scripts": {
58
45
  "cleanup": "rimraf esm lib piral-adal.min.js",
59
- "build": "yarn build:bundle && yarn build:commonjs && yarn build:esnext",
46
+ "build": "yarn build:bundle && yarn build:esnext",
60
47
  "build:bundle": "esbuild src/index.ts --outfile=piral-adal.min.js --bundle --external:piral-core --minify",
61
- "build:commonjs": "tsc --project tsconfig.json --outDir lib --module commonjs",
62
- "build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
48
+ "build:esnext": "tsc --project tsconfig.json --outDir lib --module esnext",
63
49
  "typedoc": "typedoc --json ../../../docs/types/piral-adal.json src --exclude \"src/**/*.test.*\"",
64
50
  "test": "echo \"Error: run tests from root\" && exit 1"
65
51
  },
@@ -67,7 +53,7 @@
67
53
  "msal": "^1.1.1"
68
54
  },
69
55
  "devDependencies": {
70
- "piral-core": "1.6.0-beta.7240"
56
+ "piral-core": "1.6.0-beta.7243"
71
57
  },
72
- "gitHead": "2fd8ff47d9a7e0666e4e6bc1dc5a7ef45e8e9f39"
58
+ "gitHead": "bbb6e4f78c61b6ef753099a5b378ad2708565ce3"
73
59
  }
package/esm/create.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import { PiralPlugin } from 'piral-core';
2
- import { AdalClient } from './setup';
3
- import { PiletAdalApi } from './types';
4
- /**
5
- * Creates new Pilet API extensions for the integration of MSAL.
6
- */
7
- export declare function createAdalApi(client: AdalClient): PiralPlugin<PiletAdalApi>;
package/esm/create.js DELETED
@@ -1,14 +0,0 @@
1
- /**
2
- * Creates new Pilet API extensions for the integration of MSAL.
3
- */
4
- export function createAdalApi(client) {
5
- return (context) => {
6
- context.on('before-fetch', client.extendHeaders);
7
- return {
8
- getAccessToken() {
9
- return client.token();
10
- },
11
- };
12
- };
13
- }
14
- //# sourceMappingURL=create.js.map
package/esm/create.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,MAAkB;IAC9C,OAAO,CAAC,OAAO,EAAE,EAAE;QACjB,OAAO,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;QAEjD,OAAO;YACL,cAAc;gBACZ,OAAO,MAAM,CAAC,KAAK,EAAE,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
package/esm/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './create';
2
- export * from './setup';
3
- export * from './types';
package/esm/index.js DELETED
@@ -1,4 +0,0 @@
1
- export * from './create';
2
- export * from './setup';
3
- export * from './types';
4
- //# sourceMappingURL=index.js.map
package/esm/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
package/esm/setup.d.ts DELETED
@@ -1,104 +0,0 @@
1
- import { Account } from 'msal';
2
- /**
3
- * Available configuration options for the ADAL plugin.
4
- */
5
- export interface AdalConfig {
6
- /**
7
- * The id of the client. Required for the setup of MSAL.
8
- */
9
- clientId: string;
10
- /**
11
- * The isser of the token. Should be an URL containing the tenant.
12
- * By default set to Microsoft's default tenant.
13
- */
14
- authority?: string;
15
- /**
16
- * The redirect Uri to use. By default the origin with /auth
17
- * is used.
18
- */
19
- redirectUri?: string;
20
- /**
21
- * The scopes to be used. By default uses only the 'User.Read' scope.
22
- */
23
- scopes?: Array<string>;
24
- /**
25
- * Restricts token sharing such that other integrations, e.g., with
26
- * fetch would need to be done manually.
27
- * Otherwise, the client is responsive to the `before-fetch` event.
28
- */
29
- restrict?: boolean;
30
- /**
31
- * Determines the cache location.
32
- */
33
- cacheLocation?: 'localStorage' | 'sessionStorage';
34
- /**
35
- * If true MSAL will store the auth request state required for validation
36
- * of the auth flows in the browser cookies.
37
- * @default false
38
- */
39
- storeAuthStateInCookie?: boolean;
40
- /**
41
- * Determines the system specific options. Usually not needed.
42
- * For more details see the MSAL.js documentation.
43
- */
44
- system?: any;
45
- /**
46
- * Determines the framework specific options. Usually not needed.
47
- * For more details see the MSAL.js documentation.
48
- */
49
- framework?: any;
50
- /**
51
- * Determines whether or not the authority should be validated.
52
- */
53
- validateAuthority?: boolean;
54
- /**
55
- * Additional metadata to hand over.
56
- */
57
- authorityMetadata?: string;
58
- /**
59
- * A list of known authorities to respect.
60
- */
61
- knownAuthorities?: Array<string>;
62
- /**
63
- * Optionally decides where to redirect to in the logout case.
64
- */
65
- postLogoutRedirectUri?: string;
66
- /**
67
- * Determines if the URL for the login request should be navigated to.
68
- */
69
- navigateToLoginRequestUrl?: boolean;
70
- }
71
- export interface AdalRequest {
72
- /**
73
- * Sets the headers of the request.
74
- * @param headers Headers or a promise to headers.
75
- */
76
- setHeaders(headers: any): void;
77
- }
78
- export interface AdalClient {
79
- /**
80
- * Performs a login.
81
- */
82
- login(): void;
83
- /**
84
- * Performs a logout.
85
- */
86
- logout(): void;
87
- /**
88
- * Retrieves the current account.
89
- */
90
- account(): Account;
91
- /**
92
- * Gets a token.
93
- */
94
- token(): Promise<string>;
95
- /**
96
- * Extends the headers of the provided request.
97
- */
98
- extendHeaders(req: AdalRequest): void;
99
- }
100
- /**
101
- * Sets up a new client wrapping the MSAL API.
102
- * @param config The configuration for the client.
103
- */
104
- export declare function setupAdalClient(config: AdalConfig): AdalClient;
package/esm/setup.js DELETED
@@ -1,62 +0,0 @@
1
- import { UserAgentApplication } from 'msal';
2
- function retrieveToken(msalInstance, auth) {
3
- if (msalInstance.getAccount()) {
4
- return msalInstance
5
- .acquireTokenSilent(auth)
6
- .then((response) => response.accessToken)
7
- .catch((err) => {
8
- if (err.name === 'InteractionRequiredAuthError') {
9
- return msalInstance
10
- .acquireTokenPopup(auth)
11
- .then((response) => response.accessToken)
12
- .catch((err) => Promise.reject(err && err.message));
13
- }
14
- console.error(err);
15
- return Promise.reject('Could not fetch token');
16
- });
17
- }
18
- return Promise.reject('Not logged in');
19
- }
20
- /**
21
- * Sets up a new client wrapping the MSAL API.
22
- * @param config The configuration for the client.
23
- */
24
- export function setupAdalClient(config) {
25
- const { redirectUri = `${location.origin}/auth`, restrict = false, scopes = ['User.Read'], storeAuthStateInCookie, cacheLocation = 'sessionStorage', framework, system, ...remainingOptions } = config;
26
- const msalInstance = new UserAgentApplication({
27
- auth: {
28
- redirectUri,
29
- ...remainingOptions,
30
- },
31
- cache: {
32
- storeAuthStateInCookie,
33
- cacheLocation,
34
- },
35
- system,
36
- framework,
37
- });
38
- const tokenRequest = { scopes };
39
- msalInstance.handleRedirectCallback(() => { });
40
- return {
41
- login() {
42
- msalInstance.loginRedirect(tokenRequest);
43
- },
44
- logout() {
45
- msalInstance.logout();
46
- },
47
- account() {
48
- return msalInstance.getAccount();
49
- },
50
- extendHeaders(req) {
51
- if (!restrict) {
52
- req.setHeaders(retrieveToken(msalInstance, tokenRequest).then((token) => token && {
53
- Authorization: `Bearer ${token}`,
54
- }, () => undefined));
55
- }
56
- },
57
- token() {
58
- return retrieveToken(msalInstance, tokenRequest);
59
- },
60
- };
61
- }
62
- //# sourceMappingURL=setup.js.map
package/esm/setup.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAqC,MAAM,MAAM,CAAC;AAE/E,SAAS,aAAa,CAAC,YAAkC,EAAE,IAA8B;IACvF,IAAI,YAAY,CAAC,UAAU,EAAE,EAAE;QAC7B,OAAO,YAAY;aAChB,kBAAkB,CAAC,IAAI,CAAC;aACxB,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC;aACxC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;YACb,IAAI,GAAG,CAAC,IAAI,KAAK,8BAA8B,EAAE;gBAC/C,OAAO,YAAY;qBAChB,iBAAiB,CAAC,IAAI,CAAC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AAQ,EAAE;gBACb,GAAG,CAAC,UAAU,CACZ,aAAa,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,IAAI,CAC5C,CAAC,KAAK,EAAE,EAAE,CACR,KAAK,IAAI;oBACP,aAAa,EAAE,UAAU,KAAK,EAAE;iBACjC,EACH,GAAG,EAAE,CAAC,SAAS,CAChB,CACF,CAAC;aACH;QACH,CAAC;QACD,KAAK;YACH,OAAO,aAAa,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QACnD,CAAC;KACF,CAAC;AACJ,CAAC"}
package/esm/types.d.ts DELETED
@@ -1,10 +0,0 @@
1
- declare module 'piral-core/lib/types/custom' {
2
- interface PiletCustomApi extends PiletAdalApi {
3
- }
4
- }
5
- export interface PiletAdalApi {
6
- /**
7
- * Gets the currently valid access token, if any.
8
- */
9
- getAccessToken(): Promise<string | undefined>;
10
- }
package/esm/types.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
package/esm/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}