GraphAPI Auth: How to Use OAuth 2.0 to Access Microsoft GraphAPI/OneDrive | CodeNameK – 02



GraphAPI Auth: How to Use OAuth 2.0 to Access Microsoft GraphAPI/OneDrive | CodeNameK – 02

GraphAPI Auth: How to Use OAuth 2.0 to Access Microsoft GraphAPI/OneDrive | CodeNameK - 02

GraphAPI Auth is based on secure OAuth 2.0 flows. OAuth is probably the most populate way for cross service authorization.
CodeNameK will leverage the matured auth mechanism to access the Microsoft GraphAPI and OneDrive.
This video shares my investigation about how OAuth 2.0 works, and I tried out a token flow with the Graph API.

For more videos like this:
💡Subscribe: https://www.youtube.com/c/CodewithSaar?sub_confirmation=1

# Resources

Discord server for Code w/ Saar: https://discord.gg/H8ZqDgczQb

Application Registration: https://aka.ms/AppRegistrations
Authorization and sign-in for OneDrive in Microsoft Graph: https://bit.ly/392bwVq
Link to Graph API for listing children items: https://bit.ly/392jdv4

# Chapters

00:00 Intro
00:44 How does OAuth work?
05:08 OAuth with GraphAPI (OneDrive): Read the Doc
06:30 OAuth with GraphAPI (OneDrive): Register an App
08:25 OAuth with GraphAPI (OneDrive): Authentication Scopes
08:49 OAuth with GraphAPI (OneDrive): Execute the Token Flow by Hand
13:38 Quick Recap