cancel
Showing results for 
Search instead for 
Did you mean: 

GuestSessionFactoryImpl & logged user

giluka
Champ in-the-making
Champ in-the-making
Hi all,
i've a question…
in quick start user anonymous (guest user) who navigate into web site use admin credential by default as specified in

/wcqmqs/WEB-INF/classes/alfresco/wcmqs-api.properties

These credentials are read by bean "guestSessionFactory" (org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl).

My question: is it possible to obtain credentials "dynamically" for a specified user ?
A logged user can istantiate a factory using his authentication token ?

Thanks!
3 REPLIES 3

bremmington
Champ on-the-rise
Champ on-the-rise
This would be relatively difficult to achieve, although clearly not impossible. For performance, the WQS API actually uses a hybrid approach to retrieve data from the repository: OpenCMIS and custom REST API. Therefore both of these interfaces would need to switch context together. Generally, I wouldn't recommend that you try to map your website visitors into Alfresco users on a one-to-one basis. Although Alfresco would cope with it, it's almost certainly putting far more stress on the system than you need to.

giluka
Champ in-the-making
Champ in-the-making
Is present a support in WQS with which a logged user (not guest) can access website navigating not through all page, but only through a limited pages (like pages with a restricted permission) ??

bremmington
Champ on-the-rise
Champ on-the-rise
Not currently, no. That would require custom development.