Hi Team,
I am working on a prototype that reads a sample user(for example : Bob) profile value from a Cookie/JS object, checks if the user Bob is in AEM repository,creates one if not and adds it to a specified group using user manager API.All is fine till this point.
Now I need the user to somehow be logged into the repository so that the feature which involves customization based on user/user groups comes into effect.
Tried a few options such as JcrUtils.getRepository("http://localhost:4502/crx/server"); were not of much help.
Kindly guide me in this case.