forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Peter Zaoral <[email protected]>
- Loading branch information
Showing
9 changed files
with
19 additions
and
10 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,7 @@ | |
import java.util.stream.Collectors; | ||
import java.util.stream.Stream; | ||
import static org.keycloak.models.light.LightweightUserAdapter.isLightweightUser; | ||
import static org.keycloak.models.Constants.TEMP_ADMIN_ATTR_NAME; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Bill Burke</a> | ||
|
@@ -265,6 +266,7 @@ public static UserRepresentation toBriefRepresentation(UserModel user) { | |
rep.setEnabled(user.isEnabled()); | ||
rep.setEmailVerified(user.isEmailVerified()); | ||
rep.setFederationLink(user.getFederationLink()); | ||
addAttributeToBriefRep(user, rep, TEMP_ADMIN_ATTR_NAME); | ||
|
||
return rep; | ||
} | ||
|
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 |
---|---|---|
|
@@ -37,6 +37,8 @@ | |
import org.keycloak.userprofile.UserProfileProvider; | ||
import org.keycloak.utils.StringUtil; | ||
|
||
import static org.keycloak.models.Constants.TEMP_ADMIN_ATTR_NAME; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Bill Burke</a> | ||
* @version $Revision: 1 $ | ||
|
@@ -46,7 +48,6 @@ public class ApplianceBootstrap { | |
public static final String DEFAULT_TEMP_ADMIN_USERNAME = "temp-admin"; | ||
public static final String DEFAULT_TEMP_ADMIN_SERVICE = "temp-admin"; | ||
public static final int DEFAULT_TEMP_ADMIN_EXPIRATION = 120; | ||
public static final String TEMP_ADMIN_ATTR_NAME = "temporary_admin"; | ||
|
||
private final KeycloakSession session; | ||
|
||
|
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 |
---|---|---|
|
@@ -68,7 +68,7 @@ | |
import java.util.Set; | ||
import java.util.stream.Collectors; | ||
|
||
import static org.keycloak.services.managers.ApplianceBootstrap.TEMP_ADMIN_ATTR_NAME; | ||
import static org.keycloak.models.Constants.TEMP_ADMIN_ATTR_NAME; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Bill Burke</a> | ||
|