Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM Design Question

medhik
Level 2
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
MC_Stuff
Correct answer by
Level 9
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
edubey
Level 10
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...

MC_Stuff
Correct answer by
Level 9
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