dh-auth-library 1.1.0 → 1.2.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.
Files changed (36) hide show
  1. package/dist/index.cjs.js +562 -0
  2. package/dist/index.es.js +523 -0
  3. package/package.json +55 -50
  4. package/dist/auth/api/apiAuthentication.d.ts +0 -10
  5. package/dist/auth/api/apiAuthentication.js +0 -13
  6. package/dist/auth/api/apiTokenHelper.js +0 -68
  7. package/dist/auth/api/index.js +0 -2
  8. package/dist/auth/api/sessionHandlerResolvers.js +0 -5
  9. package/dist/auth/getLoginHandler.js +0 -25
  10. package/dist/auth/index.js +0 -6
  11. package/dist/auth/loginhandlers/adLoginHandler.js +0 -7
  12. package/dist/auth/loginhandlers/digidGemachtigdeLoginHandler.js +0 -7
  13. package/dist/auth/loginhandlers/digidLoginHandler.js +0 -7
  14. package/dist/auth/loginhandlers/eHerkenningBewindvoerderLoginHandler.js +0 -7
  15. package/dist/auth/loginhandlers/eHerkenningLoginHandler.js +0 -7
  16. package/dist/auth/loginhandlers/index.js +0 -6
  17. package/dist/auth/loginhandlers/localhostLoginHandler.js +0 -7
  18. package/dist/auth/pages/adLoginPage.js +0 -94
  19. package/dist/auth/pages/digidLoginPage.js +0 -73
  20. package/dist/auth/pages/eHerkenningLoginPage.js +0 -94
  21. package/dist/auth/pages/index.js +0 -4
  22. package/dist/auth/pages/loginOverzichtPage.js +0 -70
  23. package/dist/auth/sessionHandler.js +0 -88
  24. package/dist/auth/utils/index.js +0 -1
  25. package/dist/auth/utils/sessionFileHelper.js +0 -33
  26. package/dist/constants/accountTypes.js +0 -1
  27. package/dist/constants/accounts.d.ts +0 -12
  28. package/dist/constants/accounts.js +0 -40
  29. package/dist/constants/authTypes.js +0 -1
  30. package/dist/constants/index.js +0 -3
  31. package/dist/constants/loginHandler.js +0 -1
  32. package/dist/constants/testAccounts.d.ts +0 -38
  33. package/dist/constants/testAccounts.js +0 -39
  34. package/dist/constants/testProfiles.d.ts +0 -27
  35. package/dist/constants/testProfiles.js +0 -27
  36. package/dist/index.js +0 -2
@@ -1,40 +0,0 @@
1
- /**
2
- * To use these accounts they should be available as environment variables
3
- */
4
- export const localhostBurgerAccount = {
5
- username: `${process.env.LOCAL_BURGER_USERNAME}`,
6
- password: `${process.env.LOCAL_BURGER_PASSWORD}`,
7
- };
8
- export const localhostBedrijfAccount = {
9
- username: `${process.env.LOCAL_BEDRIJF_USERNAME}`,
10
- password: `${process.env.LOCAL_BEDRIJF_PASSWORD}`,
11
- };
12
- export const defaultDigidAccount = {
13
- username: `${process.env.DIGID_USER}`,
14
- password: `${process.env.DIGID_PASSWORD}`,
15
- bsn: `${process.env.DIGID_BSN}`,
16
- };
17
- export const defaultDigidGemachtigdAccount = {
18
- username: `${process.env.DIGID_GEMACHTIGDE_USER}`,
19
- password: `${process.env.DIGID_GEMACHTIGDE_PASSWORD}`,
20
- bsn: `${process.env.DIGID_GEMACHTIGDE_BSN}`,
21
- };
22
- export const defaultEHerkenningAccount = {
23
- username: `${process.env.EHERKENNING_USER}`,
24
- password: `${process.env.EHERKENNING_PASSWORD}`,
25
- bsn: `${process.env.EHERKENNING_NUMMER}`,
26
- };
27
- export const defaultVestigingAccount = {
28
- username: `${process.env.EHERKENNING_VESTIGING_NAME}`,
29
- password: `${process.env.EHERKENNING_VESTIGING_PASSWORD}`,
30
- bsn: `${process.env.EHERKENNING_VESTIGING_NUMMER}`,
31
- };
32
- export const defaultProfessioneelBewindvoerderAccount = {
33
- username: `${process.env.EHERKENNING_BEWINDVOERDER_USER}`,
34
- password: `${process.env.EHERKENNING_BEWINDVOERDER_PASSWORD}`,
35
- bsn: `${process.env.EHERKENNING_BEWINDVOERDER_BSN}`,
36
- };
37
- export const defaultADAccount = {
38
- username: `${process.env.AD_USER}`,
39
- password: `${process.env.AD_PASSWORD}`,
40
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export * from './loginHandler';
2
- export * from './accountTypes';
3
- export * from './authTypes';
@@ -1 +0,0 @@
1
- export {};
@@ -1,38 +0,0 @@
1
- export declare const TestAccounts: {
2
- zgwdigiduser1: {
3
- id: string;
4
- type: "burger";
5
- };
6
- zgwdigiduser2: {
7
- id: string;
8
- type: "burger";
9
- };
10
- zgwdigiduser3: {
11
- id: string;
12
- type: "burger";
13
- };
14
- zgwdigiduser4: {
15
- id: string;
16
- type: "burger";
17
- };
18
- zgwdigiduser5: {
19
- id: string;
20
- type: "burger";
21
- };
22
- testautomatisering: {
23
- id: string;
24
- type: "burger";
25
- };
26
- localhostaccount: {
27
- id: string;
28
- type: "burger";
29
- };
30
- kvkAccount: {
31
- id: string;
32
- type: "bedrijf";
33
- };
34
- kvkVestiging: {
35
- id: string;
36
- type: "vestiging";
37
- };
38
- };
@@ -1,39 +0,0 @@
1
- // These are all the accounts that we have for testing
2
- export const TestAccounts = {
3
- zgwdigiduser1: {
4
- id: '999991954',
5
- type: 'burger',
6
- },
7
- zgwdigiduser2: {
8
- id: '999991115',
9
- type: 'burger',
10
- },
11
- zgwdigiduser3: {
12
- id: '999991966',
13
- type: 'burger',
14
- },
15
- zgwdigiduser4: {
16
- id: '999992922',
17
- type: 'burger',
18
- },
19
- zgwdigiduser5: {
20
- id: '999991322',
21
- type: 'burger',
22
- },
23
- testautomatisering: {
24
- id: '999994499',
25
- type: 'burger',
26
- },
27
- localhostaccount: {
28
- id: '999993847',
29
- type: 'burger',
30
- },
31
- kvkAccount: {
32
- id: '90002768',
33
- type: 'bedrijf',
34
- },
35
- kvkVestiging: {
36
- id: '990000262129',
37
- type: 'vestiging',
38
- },
39
- };
@@ -1,27 +0,0 @@
1
- export declare const testProfiles: {
2
- readonly burger: {
3
- readonly accountType: "burger";
4
- readonly authType: "digid";
5
- readonly id: "999994499";
6
- };
7
- readonly bedrijf: {
8
- readonly accountType: "bedrijf";
9
- readonly authType: "eherkenning";
10
- readonly id: "90002768";
11
- };
12
- readonly vestiging: {
13
- readonly accountType: "vestiging";
14
- readonly authType: "eherkenning_vestiging";
15
- readonly id: "990000262129";
16
- };
17
- readonly gemachtigde: {
18
- readonly accountType: "digid-gemachtigde";
19
- readonly authType: "digid_gemachtigde";
20
- readonly id: "";
21
- };
22
- readonly bewindvoerder: {
23
- readonly accountType: "bedrijf";
24
- readonly authType: "eherkenning_bewindvoerder";
25
- readonly id: "999994499";
26
- };
27
- };
@@ -1,27 +0,0 @@
1
- export const testProfiles = {
2
- burger: {
3
- accountType: 'burger',
4
- authType: 'digid',
5
- id: '999994499',
6
- },
7
- bedrijf: {
8
- accountType: 'bedrijf',
9
- authType: 'eherkenning',
10
- id: '90002768',
11
- },
12
- vestiging: {
13
- accountType: 'vestiging',
14
- authType: 'eherkenning_vestiging',
15
- id: '990000262129',
16
- },
17
- gemachtigde: {
18
- accountType: 'digid-gemachtigde',
19
- authType: 'digid_gemachtigde',
20
- id: '',
21
- },
22
- bewindvoerder: {
23
- accountType: 'bedrijf',
24
- authType: 'eherkenning_bewindvoerder',
25
- id: '999994499',
26
- },
27
- };
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './auth/index';
2
- export * from './constants/index';