Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM Design Question

Avatar

Level 2

I have a website with a log in option available. If a user logs in (using an external login service provider say Janrain), the user will see some premium content on the site. Otherwise these premium content will not be available to anonymous user(s).

For e.g. say I have a component that lists down some PDF files on the site. However with a logged in user, component will render/provide some additional PDFs(premium content).

What should be the design for a requirement like this? 

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi Medhik,

You need three task 

1.   Create user in aem after authentication. 

2.      Make the premium content CUG protected &

3.       link component to get data from json. 

Thanks,

View solution in original post

2 Replies

Avatar

Level 10

You probably need to authenticate user using Custom Auth Handler

Found this, AEM integration with Janrain

https://rmengji.wordpress.com/2012/12/11/janrain-integration-with-cq/

On your components, you can have check for user logged in behavior.

Hope it helps...

Avatar

Correct answer by
Level 9

Hi Medhik,

You need three task 

1.   Create user in aem after authentication. 

2.      Make the premium content CUG protected &

3.       link component to get data from json. 

Thanks,