-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add audDisplayName attribute in the source of an identity
- Loading branch information
1 parent
78fe076
commit f7e10aa
Showing
5 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -81,7 +82,7 @@ describe('createIdentityFromJwt', () => { | |
}); | ||
// console.log(JSON.stringify(identity)); | ||
expect(JSON.stringify(identity)).to.eql( | ||
`{"type":"user","id":"udoejo3","displayName":"John DOE","attributes":{"type":"employee","email":"[email protected]","username":"udoejo3","registrationNumber":"100674051","department":"421408000000","firstName":"John","lastName":"DOE","accountProfile":"vdm","isGeneric":false},"source":{"aud":"e5dd632b-cb97-48d7-a310-5147be717cde","issuer":"security-identity-token-api","accessTokenIssuer":"https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0","env":"dev","realm":"employees","claim":"userName","internalId":"0b64042a-9cce-42dc-b645-cd721cbbc179"}}` | ||
`{"type":"user","id":"udoejo3","displayName":"John DOE","attributes":{"type":"employee","email":"[email protected]","username":"udoejo3","registrationNumber":"100674051","department":"421408000000","firstName":"John","lastName":"DOE","accountProfile":"vdm","isGeneric":false},"source":{"aud":"e5dd632b-cb97-48d7-a310-5147be717cde","audDisplayName":"infra-auth-auth-playground-dev","issuer":"security-identity-token-api","accessTokenIssuer":"https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0","env":"dev","realm":"employees","claim":"userName","internalId":"0b64042a-9cce-42dc-b645-cd721cbbc179"}}` | ||
); | ||
}); | ||
|
||
|
@@ -136,6 +137,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -196,6 +198,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -255,6 +258,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -312,6 +316,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -368,6 +373,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -423,6 +429,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -483,6 +490,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -541,6 +549,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -594,6 +603,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -639,6 +649,7 @@ describe('createIdentityFromJwt', () => { | |
issuer: 'security-identity-token-api', | ||
accessTokenIssuer: 'security-identity-anonymous-token-api', | ||
aud: '@!4025.CA62.9BB6.16C5!0001!2212.0010!0008!2212.0010', | ||
audDisplayName: 'Account Identity Managment', | ||
env: 'dev', | ||
realm: 'anonymous', | ||
claim: 'userName', | ||
|
@@ -683,6 +694,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-cde5147be717', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'aud', | ||
|
@@ -730,6 +742,7 @@ describe('createIdentityFromJwt', () => { | |
issuer: 'security-identity-token-api', | ||
accessTokenIssuer: 'https://auth.dev.interne.montreal.ca', | ||
aud: '@!4025.CA62.9BB6.16C5!0001!2212.0010!0008!2212.0130', | ||
audDisplayName: 'DiagnosticsCanary', | ||
env: 'dev', | ||
realm: 'citizens', | ||
claim: 'userName', | ||
|
@@ -784,6 +797,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://connexion.dev.montreal.ca/1543b575-116b-4325-a0bf-3ccdd7925321/v2.0/', | ||
aud: 'a496befa-db7d-45a6-ac7a-11471816b8f1', | ||
audDisplayName: 'infra-auth-auth-playground', | ||
env: 'dev', | ||
realm: 'citizens', | ||
claim: 'mtlIdentityId', | ||
|
@@ -839,6 +853,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'a496befa-db7d-45a6-ac7a-11471816b8f1', | ||
audDisplayName: 'infra-auth-auth-playground', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -881,6 +896,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'a496befa-db7d-45a6-ac7a-11471816b8f1', | ||
audDisplayName: 'infra-auth-auth-playground', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'sub', | ||
|
@@ -923,6 +939,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'a496befa-db7d-45a6-ac7a-11471816b8f1', | ||
audDisplayName: 'infra-auth-auth-playground', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'sub', | ||
|
@@ -982,6 +999,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -1041,6 +1059,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -1100,6 +1119,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -1158,6 +1178,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'email', | ||
|
@@ -1216,6 +1237,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -1274,6 +1296,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -1332,6 +1355,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -1390,6 +1414,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -1449,6 +1474,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
@@ -1505,6 +1531,7 @@ describe('createIdentityFromJwt', () => { | |
accessTokenIssuer: | ||
'https://login.microsoftonline.com/9f15d2dc-8753-4f83-aac2-a58288d3a4bc/v2.0', | ||
aud: 'e5dd632b-cb97-48d7-a310-5147be717cde', | ||
audDisplayName: 'infra-auth-auth-playground-dev', | ||
env: 'dev', | ||
realm: 'employees', | ||
claim: 'userName', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters