Hi everyone!
We have an application that authenticates users against an independent service (front end); once users have been authenticated we direct them to a portion of the site that is protected via CUG, that means we have groups of users that are tied to a single AEM account.
In AEM 5.6.1 we were able to accomplish this by using the code below:
AuthenticationInfo authInfo = TokenUtil.createCredentials(request, response, repository, [AEM User ID], true);
Now that loginAdministrative(null) has been deprecated, this function no longer allows us to create a valid session with AEM.
Is there a replacement for the TokenUtil.createCredentials(...).
On the FrontEnd side we have no knowledge of the AEM user name / password so following the route of creating a custom authentication handler may not be a suitable solution. From what I've seen most authentication code depends on request parameter /attributes. In our case we identify the appropriate AEM user on a servlet based on its category once it's been authenticated with the remote service.
is there a way to create the authentication info (session / token) from a servlet that is not an authentication handler?
Thanks in advance!