-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: mob prog on certification dirigeant
- Loading branch information
Showing
7 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -21,6 +21,10 @@ VALUES | |
(4, '[email protected]', true, CURRENT_TIMESTAMP, | ||
'$2a$10$kzY3LINL6..50Fy9shWCcuNlRfYq0ft5lS.KCcJ5PzrhlWfKK4NIO', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, | ||
'Jean', 'IAL1 AAL1', '0123456789', 'Sbire', | ||
null, null, false), | ||
(5, '[email protected]', true, CURRENT_TIMESTAMP, | ||
'$2a$10$kzY3LINL6..50Fy9shWCcuNlRfYq0ft5lS.KCcJ5PzrhlWfKK4NIO', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, | ||
'Jean', 'Certification', '0123456789', 'Dirigeant', | ||
null, null, false); | ||
|
||
INSERT INTO organizations | ||
|
@@ -34,7 +38,8 @@ VALUES | |
(1, 1, false, 'domain', true), | ||
(2, 1, false, null, true), | ||
(3, 1, false, 'domain', true), | ||
(4, 1, false, null, true); | ||
(4, 1, false, null, true), | ||
(5, 1, false, null, true); | ||
|
||
INSERT INTO oidc_clients | ||
(client_name, client_id, client_secret, redirect_uris, | ||
|
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 |
---|---|---|
|
@@ -104,3 +104,22 @@ describe("sign-in with a client requiring 2fa identity", () => { | |
cy.contains("Attention : le site que vous voulez utiliser requiert la 2FA"); | ||
}); | ||
}); | ||
|
||
describe("sign-in with a client requiring certification dirigeant identity", () => { | ||
beforeEach(() => { | ||
cy.visit("http://localhost:4000"); | ||
cy.setRequestedAcrs([ | ||
"https://proconnect.gouv.fr/assurance/certification-dirigeant", | ||
]); | ||
}); | ||
|
||
it.only("should sign-in an return the right acr value", function () { | ||
cy.get("button#custom-connection").click({ force: true }); | ||
|
||
cy.login("[email protected]"); | ||
|
||
cy.contains( | ||
'"acr": "https://proconnect.gouv.fr/assurance/certification-dirigeant"', | ||
); | ||
}); | ||
}); |
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
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