api - Oauth into Office 365 Unified (preview) - server error - non-retryable error has occurred -


i'm trying oauth office 365's unified api read calendar information , believe have configured correctly. however, when after user logs in , provides consent, redirected reply url following error in params:

"server error - non retryable error has occurred".

i've setup ad app have office 365 unified (preview) delegated permission - read users calendar, , using endpoints , client ids specified. seems can consent screen, after that, breaks. find if remove resource param, i'm able code. when try post token, response https://graph.microsoft.com/ not available app (though through ad). there place/setting need make graph.microsoft.com available ad app? code snippet:

var oauthoptions = {     client_id: '<my client id value>',     redirect_uri: '<my reply url>',     response_type: 'code',     prompt: 'admin_consent',     resource: encodeuricomponent('https://graph.microsoft.com/') };  var oauthurl = 'https://login.microsoftonline.com/b678e2cc-6ccc-44a6-9802-176bc170d680/oauth2/authorize?api-version=1.0'                         + '&response_type=' + oauthoptions.response_type                         + '&redirect_uri=' + oauthoptions.redirect_uri                         + '&client_id=' + oauthoptions.client_id                         + '&prompt=' + oauthoptions.prompt                         + '&resource=' + oauthoptions.resource;  window.location.href = oauthurl; 

thank you!


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -