Kris
Kris

Reputation: 19938

How do I embed the share in another website?

I have a website in which I would like to embed the share using an iframe. The problem is how do prevent the user having to login (in the iframe). They are already authenticated at this point.

The parent application which is generating the iframe is on the same server/domain as the Alfresco install.

The parent application has its own authentication, but instead of storing its own passwords it queries Alfresco via REST.

Upvotes: 0

Views: 1451

Answers (2)

El0din
El0din

Reputation: 3370

If you are using php, (Wordpress, joomla, etc) then this can be useful. First of all you need to configure the share-security-config to allow put share content into an iframe configure iframe.

<config evaluator="string-compare" condition="SecurityHeadersPolicy">
  <headers>         
     <header>
        <name>X-Frame-Options</name>
        <value>ALLOW-FROM https://www.x.com</value>
        <!--or just allow all-->
        <!--<enabled>false</enabled>-->
     </header>

Then Configuring external authentication and last pass the header using that Configuring Alfresco Share to use an external SSO.

Upvotes: 1

shmoula
shmoula

Reputation: 1083

There are two ways, i think:

  • The first is to provide token (you shoud have one in your parent app) to Share in iFrame, so use some javascript;
  • The second one is to use portlets, have a look for example at liferay wiki, at least document library should be accessible.

Upvotes: 1

Related Questions