cancel
Showing results for 
Search instead for 
Did you mean: 

Re-use Share session ticket in ADF

shazada
Star Contributor
Star Contributor

So let's say we deploy the ADF app within Share similar to:

 

Or any other way and don't want to login again within ADF.

The normal answer would be to use SAML, but not everyone has SAML or doesn't have access to the module.

What would be the best approach to Re-use the session ticket from Alfresco within ADF?

5 REPLIES 5

eugenio_romano
Elite Collaborator
Elite Collaborator

Not sure is going to work but you can try if you have the ticket:

remove the login page in your ADF app

store the ticket in the local storage "ticket-ECM" before to access to your ADF app

Thanks Eugenio, this seems promising.

I'll try and will get back to you!

shazada
Star Contributor
Star Contributor

Hi Eugenio, this seems a bit more difficult than anticipated due to lack of knowledge of ADF.


Just removing the component were initialized doesn't load anything.

I guess on depend on how you remove it. Do you have good knowledge of angular? can you explain the step that you did?

I don't have that extensive knowledge of Angular, but I just created a new app with Yeoman.

So I just had the basis Login, Documentlist and another screen.

These files were changed:

  • app.module.ts --> commented LoginComponent and references
  • app.routetes.ts --> commented the login route and LoginComponent

I just started again from scratch and now I do see the sample page.

So something probably didn't go that well.

Now do I disable the AuthGuardEcm? So somewhere before loading the Documentlist component I pre-fill in the Ticket.
Just for the demo purposes and writing a blog the Ticket in the URL or from a Post will do for now.