Skip to content

Commit 632ad10

Browse files
πŸ“š docs: add HTTP methods to routes and note beta Graph API usage
1 parent 47dc016 commit 632ad10

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

β€ŽREADME.mdβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This demo walks through the complete 4-step flow:
1010
1. **Get Device Code** β€” Request a device code and user code from Azure AD
1111
2. **User Authentication** β€” User visits the verification URL and enters the code
1212
3. **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

9797
5. **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

Comments
Β (0)