Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Usage of OAuth implict flow lib
var aadAppClientId = "8BE5AA0E-F900-4BDF-A7CF-71B3CC53B78E";
var resource = "https://graph.microsoft.com"
var query = "/v1.0/me/events";
var tokenFactory = new CC.CORE.Adal.AppTokenFactory(aadAppClientId, resource);
tokenFactory.ExecuteQuery(query)
.done(function (response) {
// Success!
})
.fail(function (response) {
// NOTE: Provide a link to renew an expired or yet to be approved session:
// "Sorry, your session has expired or requires your approval.
// <div><a href='" + response.authorizeUrl + "'>Click here to sign in</a></div>";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.