2

Is there any alternative for ADAL. I have created SharePoint hosted app. For every new build app deployed with new url with new Id like

https://mysite-a08081eeabb935.sharepoint.com/sites/test/myApp

For the authentication token I need to go to the application in Azure Active Directory and have to add the reply url. It is ok but for every new build i have to change the reply url.

I want to publish app in office store, If client install app in their environment then app url will change then How can I fetch url from their environment.

Finally I have to add reply url of app in AAD for authentication. I want solution so that for all customer the url will be same or may be an alternative for adal Is there any possible alternate way to resolve this issue?

8
  • Why do you need the token?
    – AmitWiki
    Commented May 5, 2016 at 13:26
  • to authenticate user for outlook intergration Commented May 5, 2016 at 13:31
  • Have you tried using ADAL JS? github.com/AzureAD/azure-activedirectory-library-for-js/tree/…
    – AmitWiki
    Commented May 5, 2016 at 14:28
  • yes. With Adal js i have to add reply url each time Commented May 6, 2016 at 4:58
  • If you expose this app in the Office store, how do you expect to be able to add an app to your customer's Azure Active Directory? I don't think you have a workable solution here. Commented May 10, 2016 at 12:57

1 Answer 1

0

You can not use ADAL JS authentication inside SharePoint hosted App. The problem is with SharePoint integrated http proxy and CORS support. If you build SharePoint provider hosted app, and register the App inside Azure AD, you can use ADAL and get token and access Microsoft Graph REST API and SharePoint Online resources.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.