Forum Discussion
Microsoft Graph API oAuth
Hello All,
I am trying to authenticate my azure application with oAuth api. I could not able to do it.
Hello.Js is throwing error of 'Cannot read response_type property of undefined'.
Can anyone guide how to do it using typescript or any framework supported by SharePoint Framework.
Ref LInk;
https://github.com/microsoftgraph/angular-connect-rest-sample
http://simonjaeger.com/microsoft-graph-authentication-with-azure-ad/
1 Reply
- rutu chudasamaCopper Contributor
Please change Like below in /public/scripts/config.js
var APPLICATION_CONFIG = {
clientID: "ENTER_YOUR_CLIENT_ID",
redirectUri: "https://localhost:8080/",
interactionMode: "popUp",
graphEndpoint: "https://graph.microsoft.com/v1.6/yourtenentid.onmicrosoft.com/me",
graphScopes: ["openid"]
};And response_type should be id_token
then check.
Hope it will do.