none
Office App Requiring SSO (External Host) For Authentication RRS feed

  • Question

  • Hi,

    We have an office application that is protected by requiring a single sign on to occur which happens outside of the application host.

    Scenario:

    1. User opens word app and gets the task panel which is our app default page
    2. The app is protected and is redirected to our single sign on site (external host) which returns a cookie upon authenticating
    3. If the user is authenticated, the user is redirected back to the protected page

    In step 3, the redirect opens a new window outside the application which we don't want because at that point we can't identify if the user has authenticated leaving the user not able to access our protected app page. Is there some type of setting to allow this?

    Thanks


    • Edited by DJ Frenzy Thursday, October 2, 2014 6:19 PM
    Thursday, October 2, 2014 6:18 PM

Answers

All replies

  • To add to this, is there some type of limitation in Office Apps interacting with external applications? If so, is there a setting of some sort to allow this to occur?

    Thanks

    Thursday, October 2, 2014 6:57 PM
  • Hi DJ Frenzy,

    As far as I know, the apps for Office navigate to another domain from the current app page opening a new browser window.

    To override this behavior, you need to specify each domain you want to open in the app window in the list of domains specified within the AppDomains element of your app's manifest file.

    You can get more detail from link below:
    How to: Navigate to more than one domain within the same app pane

    Best regards

    Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, October 3, 2014 9:24 AM
    Moderator
  • Fei,

    Thanks for the reference, but found a problem:

    Per documentation found at http://msdn.microsoft.com/en-us/library/office/fp161044(v=office.15).aspx under Sample task pane app for Office manifest v1.1. I've modified the xml as follows:

    <?xml version="1.0" encoding="UTF-8"?>
    <!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9-->
    <OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TaskPaneApp">
      <Id>b93321d4-5818-4ac8-91d4-9b19b00e244e</Id>
      <Version>1.0.0.0</Version>
      <ProviderName>Provider</ProviderName>
      <DefaultLocale>en-US</DefaultLocale>
      <DisplayName DefaultValue="Document Template Mapper" />
      <Description DefaultValue="Document Template Mapper"/>
      <AppDomains>
        <AppDomain>https://www.myexternaldomain.com</AppDomain>
      </AppDomains>
      <Hosts>
        <Host Name="Workbook" />
        <Host Name="Presentation" />
        <Host Name="Project" />
        <Host Name="Document" />
      </Hosts>
      <DefaultSettings>
        <SourceLocation DefaultValue="http://www.myappdomain.com/AppWeb/App/Home/Home.html" />
      </DefaultSettings>
      <Permissions>ReadWriteDocument</Permissions>
    </OfficeApp>

    When debugging I get the following:

    Error 1 None of the apps in your project can be activated in the target. The manifest file of one or more apps contain API sets or Office applications that are not supported by the target Office client. To debug those apps, update manifest files to exclude any unsupported API sets or Office applications, and then start the project again. Alternatively, you can debug your apps by using Office 365 as a target.

    This implies that it has a limitation on targeting Microsoft Word Desktop.

    If this is the only way of specifying trusted AppDomains this needs to be fixed.




    • Edited by DJ Frenzy Friday, October 3, 2014 6:09 PM
    Friday, October 3, 2014 5:43 PM
  • Hi DJ Frenzy,

    To get more power full API for apps for Office, I suggest that you upgrade V1.0 to V1.1. You can follow article below:
    How to: Update the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1

    Note that after updating the version of the app manifest schema to 1.1, you will need to remove the Capabilities and Capability elements, and replace them with either the Hosts and Host elements or the Requirements and Requirement elements.

    You can get more detail about manifest from link below:
    Apps for Office XML manifest overview

    Best regards

    Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by DJ Frenzy Thursday, October 9, 2014 3:37 PM
    Tuesday, October 7, 2014 3:37 AM
    Moderator