Update bootstrap admin client to use lightweight access token, and disable standard flow (#33014)
Closes #33010, closes #33011 Signed-off-by: stianst <stianst@gmail.com>
This commit is contained in:
parent
93b00cf271
commit
76307872f6
1 changed files with 2 additions and 0 deletions
|
@ -169,6 +169,7 @@ public class ApplianceBootstrap {
|
|||
adminClient.setClientId(clientId);
|
||||
adminClient.setEnabled(true);
|
||||
adminClient.setServiceAccountsEnabled(true);
|
||||
adminClient.setStandardFlowEnabled(false);
|
||||
adminClient.setPublicClient(false);
|
||||
adminClient.setSecret(clientSecret);
|
||||
|
||||
|
@ -180,6 +181,7 @@ public class ApplianceBootstrap {
|
|||
RoleModel adminRole = realm.getRole(AdminRoles.ADMIN);
|
||||
serviceAccount.grantRole(adminRole);
|
||||
|
||||
adminClientModel.setAttribute(Constants.USE_LIGHTWEIGHT_ACCESS_TOKEN_ENABLED, Boolean.TRUE.toString());
|
||||
adminClientModel.setAttribute(IS_TEMP_ADMIN_ATTR_NAME, Boolean.TRUE.toString());
|
||||
// also set the expiration - could be relative to a creation timestamp, or computed
|
||||
|
||||
|
|
Loading…
Reference in a new issue