You can get the profile of the authenticated user using the ProfileManager (and the SparkWebContext).
ProfileManager
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();
There was an error while loading. Please reload this page.