Skip to content

Get the authenticated user profiles

CAS in the cloud LELEU Jérôme edited this page Nov 25, 2021 · 2 revisions

You can get the profile of the authenticated user using the VertxProfileManager (inherited from ProfileManager).

>> Read the documentation of the ProfileManager component.

Example:

private static List<UserProfile> getUserProfiles(final RoutingContext rc, final SessionStore sessionStore) {
    final ProfileManager profileManager = new VertxProfileManager(new VertxWebContext(rc, sessionStore), (VertxSessionStore) sessionStore);
    return profileManager.getProfiles();
}