Re-use Share session ticket in ADF

cancel
Showing results for 
Search instead for 
Did you mean: 
shazada
Partner

Re-use Share session ticket in ADF

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
eugenio_romano
Alfresco Employee

Re: Re-use Share session ticket in ADF

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

shazada
Partner

Re: Re-use Share session ticket in ADF

Thanks Eugenio, this seems promising.

I'll try and will get back to you!

shazada
Partner

Re: Re-use Share session ticket in ADF

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.

eugenio_romano
Alfresco Employee

Re: Re-use Share session ticket in ADF

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

shazada
Partner

Re: Re-use Share session ticket in ADF

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.