I've been using Azure Active Directory and adal.js to authorize web apps client side and it's worked great. Recently had a request to have user photo instead of a generic user icon.
I added Microsoft Graph permissions to the app registration. And tried to get a token for the user photo request like...
authContext.acquireToken('https://graph.microsoft.com', callback);
Which resulted in the response_type 'token' is not supported for the application
error. So I found ADAL JS - response_type="token" is not supported suggesting setting "oauth2AllowImplicitFlow": true
in the app manifest, which I did. Now I get Token renewal operation failed due to timeout
error.
I've also added 'https://graph.microsoft.com': 'https://graph.microsoft.com'
to the endpoints
prop of the context config.
What do I have to do get this working? Way too much time spent just trying to get users' photos. Thanks.