@@ -10,7 +10,7 @@ This demo walks through the complete 4-step flow:
10101 . ** Get Device Code** β Request a device code and user code from Azure AD
11112 . ** User Authentication** β User visits the verification URL and enters the code
12123 . ** Retrieve Access Token** β Poll for the access token once the user has authenticated
13- 4 . ** Call Microsoft Graph API** β Use the access token to call the ` /me ` endpoint
13+ 4 . ** Call Microsoft Graph API** β Use the access token to call the beta ` /me ` endpoint
1414
1515## π― Prerequisites
1616
@@ -95,7 +95,7 @@ The application will start on `http://localhost:8000`.
9595 - Once authentication is complete, the access token is retrieved
9696
97975 . ** Step 4: Call Microsoft Graph API**
98- - The app uses the access token to call Microsoft Graph ` /me ` endpoint
98+ - The app uses the access token to call the Microsoft Graph beta ` /me ` endpoint
9999 - Your user profile information is displayed
100100
101101## π Project Structure
@@ -118,10 +118,10 @@ oauth2-device-code-flow/
118118### Key Files
119119
120120- ** ` server.js ` ** β Contains all Express routes and OAuth 2.0 Device Code Flow logic:
121- - ` /get/the/code ` β Initiates the device code request
122- - ` /checking ` β Polls Azure AD for token
123- - ` /access/token ` β Displays the retrieved access token
124- - ` /call/ms/graph ` β Calls Microsoft Graph API
121+ - ` GET /get/the/code` β Initiates the device code request
122+ - ` POST /checking` β Polls Azure AD for token
123+ - ` GET /access/token` β Displays the retrieved access token
124+ - ` POST /call/ms/graph` β Calls Microsoft Graph API
125125
126126- ** ` .env.sample ` ** β Template for required environment variables
127127
0 commit comments