Skip to content

Get the authenticated user profiles

CAS in the cloud LELEU Jérôme edited this page Mar 21, 2022 · 3 revisions

You can get the profile of the authenticated user using the ProfileManager (and the SparkWebContext).

>> Read the documentation of the ProfileManager component.

Example:

WebContext context = new SparkWebContext(request, response);
ProfileManager manager = new ProfileManager(context);
Optional<UserProfile> profile = manager.getProfile();
Clone this wiki locally