Skip to content

Commit

Permalink
Mark external linked account as preferred in IdP flow
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Nov 4, 2024
1 parent 5ec6ac4 commit 9c491c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion account-gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"scripts": {
"build": "cross-env NODE_ENV=production webpack",
"dev": "webpack-dev-server --open public",
"dev": "NODE_OPTIONS=--openssl-legacy-provider webpack-dev-server --open public",
"test": "jest src",
"test:watch": "npm run test -- --watch"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ public ResponseEntity idpVerifyIDRedirect(@RequestParam(value = "code", required
List<ExternalLinkedAccount> externalLinkedAccounts = user.getExternalLinkedAccounts();
//We only allow one ExternalLinkedAccount - for now
externalLinkedAccounts.clear();
externalLinkedAccount.setPreferred(true);
externalLinkedAccounts.add(externalLinkedAccount);

LOG.info(String.format("New external linked account %s for user %s", externalLinkedAccount, user.getEmail()));
Expand Down

0 comments on commit 9c491c5

Please sign in to comment.