AEM SSO authentication in component level
We have asset-details page where we show asset details(metadata). we pass the dam asset path in the details page suffix.
The asset details are shown in the asset-details component in asset-details page.
we maintain the asset access level in asset metadata property itself like
user-access=public,private
or
user-access=public
or
user-access=private
We have following use cases.
1. if anonymous user access the public asset(user-access=public) then the asset details page should render properly
2. if sso logged-in user access the private or public asset(user-access=public,private) then the asset details page should render properly
3. if anonymous user access the private asset(user-access=private) then in the java code has to do saml authentication and land in the same page.
Note: In our site some pages we configured saml authentication and it is working fine but we didnt add the asset-details page path in the saml configuration because asset-datails page some time should act as public page.
Please need opinions on use-case #3 and thanks in advance.