Query about custom authentication handler , how to apply CUG like functionality
If I am using a custom Authentication handler and my users reside in some database.
In extract Credentials method I authenticate my user from request i.e. j_username check that it exists and password is correct probably from database, I ask TokenUtil to create credentials to create necessary login token for that user to have access to aem.
But in such cases, how / who decides if user has access to that particular cases, which in crx based login would be done by group /CUG associated to that user.
Here since I would not have any user created in crx how the authorization should happen to see if that user has access to that page?
any help is welcome.
Regards.