Skip to content

Commit

Permalink
Ajoute les scopes birthdate birthplace à la requête
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabinout committed Jun 3, 2024
1 parent a3f116a commit 187854a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/creationSessionFCPlus.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const creationSessionFCPlus = (config, requete, reponse) => {

return adaptateurFranceConnectPlus.urlCreationSession()
.then((url) => reponse.redirect(
`${url}?scope=profile%20openid&acr_values=eidas2&claims={%22id_token%22:{%22amr%22:{%22essential%22:true}}}&prompt=login%20consent&response_type=code&idp_hint=${adaptateurEnvironnement.fournisseurIdentiteSuggere()}&client_id=${identifiantClient}&redirect_uri=${urlRedirectionConnexion}&state=${etat}&nonce=${nonce}`,
`${url}?scope=profile%20openid%20birthcountry%20birthplace&acr_values=eidas2&claims={%22id_token%22:{%22amr%22:{%22essential%22:true}}}&prompt=login%20consent&response_type=code&idp_hint=${adaptateurEnvironnement.fournisseurIdentiteSuggere()}&client_id=${identifiantClient}&redirect_uri=${urlRedirectionConnexion}&state=${etat}&nonce=${nonce}`,
));
};

Expand Down
2 changes: 1 addition & 1 deletion test/api/creationSessionFCPlus.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('Le requêteur de création de session FC+', () => {

reponse.redirect = (url) => {
try {
expect(url).toContain('scope=profile%20openid');
expect(url).toContain('scope=profile%20openid%20birthcountry%20birthplace');
expect(url).toContain('acr_values=eidas2');
expect(url).toContain('claims={%22id_token%22:{%22amr%22:{%22essential%22:true}}}');
expect(url).toContain('prompt=login%20consent');
Expand Down

0 comments on commit 187854a

Please sign in to comment.