I am new to AEM. I have a use case to build/design template's to render secure pages and they should be rendered to authenticated users ONLY.
I also have an requirement to show different content to different set of User(s) based on GroupId/GroupName.
The authentication should happen from a End point developed by us using OAuth. Un-authorized User should not see the content or page by typing the URL in the browser. Either case from browser/bread crumb or url typing in browser.
Lot of articles I have read, but I didn't get any clue to achieve this implementation. A sample would be great and steps to achieve the above use case.