From the course: Developing UWP Apps: 8 Cloud and Connected Services

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Microsoft Graph authentication

Microsoft Graph authentication

- [Instructor] In general, Microsoft Graph Authentication uses a standard OAuth authentication model, although there are variations of that. And just to get an understanding of the flow, especially if you're not used to OAuth, what we really do is make a series of calls to get temporary tokens or other values that we can then pass to the services. This is in lieu of legacy scenarios where we have to worry about passing basic credentials or NTLM credentials or other integrated authentication mechanisms, and really the way that happens is that our code requests an authorization. On the Microsoft Graph side, it validates app parameters, like a client ID, or a client secret code, where you receive a temporary code, we validate that code and request a token, and depending on the scenario, we get a token and then optionally a refresh token if that token expires, then we execute graph methods against that. So this seems a little bit cumbersome, which is why I typically add all of this into a…

Contents