cordova - Access SharePoint on-premise with a token obtained from Azure AD and ADAL -


the goal

access on-premise sharepoint data rest requests mobile application based on apache cordova using oauth.

what have tried far

1. azure mobile services / hybrid connection / aad / adal

similar blog post access sharepoint on behalf of user, on-premise server instead of o365:

  1. client side log-in using adal apache cordova.
  2. mobile service connected on-premise server through hybrid connections.
  3. using adal.net acquire token sharepoint server using token obtained in step 1.

this works fine except step three, since there no sort of connection between on-premise server , aad, hence no token can acquired.

2. same above plus azure application proxy

we've setup azure application proxy described kirk evans in post. azure ad application mobile service given access permission application application proxy (in same azure ad tenant).

now steps 1 3 working fine. we've been able obtain token using application proxy url resource. we've tried execute rest request using token follows:

get https://<server>.msappproxy.net/_api/web/title authorization: bearer <the token> accept: application/json;odata=verbose 

but sends 302 redirect https://login.microsoftonline.com. i've tried emulate handshake being done when using browser posting token "id_token=" app proxy, seems little far fetched , not intended azure application proxy setup.

i think missing part enable token based authentication on-premise sharepoint. not find on how that. considering investigating in setup sharepoint apps (now add-ins) on on-premise server. doubt solve issue. tried connect server aad using follwing method: how to: use office 365 sharepoint site authorize provider-hosted apps on on-premises sharepoint site. again more of shot in dark.

question

how can obtain token aad , use execute requests against on-premise sharepoint cordova mobile app?


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -