Skip to content

Commit e877649

Browse files
authored
Merge pull request #23 from microsoftgraph/patch-22
Fix for URL issue with simple-oauth2
2 parents 9527bcc + 94bee6a commit e877649

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

Demos/02-add-aad-auth/graph-tutorial/.env.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ OAUTH_APP_ID=YOUR_APP_ID_HERE
22
OAUTH_APP_PASSWORD=YOUR_APP_PASSWORD_HERE
33
OAUTH_REDIRECT_URI=http://localhost:3000/auth/callback
44
OAUTH_SCOPES='profile offline_access user.read calendars.read'
5-
OAUTH_AUTHORITY=https://login.microsoftonline.com/common
6-
OAUTH_ID_METADATA=/v2.0/.well-known/openid-configuration
7-
OAUTH_AUTHORIZE_ENDPOINT=/oauth2/v2.0/authorize
8-
OAUTH_TOKEN_ENDPOINT=/oauth2/v2.0/token
5+
OAUTH_AUTHORITY=https://login.microsoftonline.com/common/
6+
OAUTH_ID_METADATA=v2.0/.well-known/openid-configuration
7+
OAUTH_AUTHORIZE_ENDPOINT=oauth2/v2.0/authorize
8+
OAUTH_TOKEN_ENDPOINT=oauth2/v2.0/token

Demos/03-add-msgraph/graph-tutorial/.env.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ OAUTH_APP_ID=YOUR_APP_ID_HERE
22
OAUTH_APP_PASSWORD=YOUR_APP_PASSWORD_HERE
33
OAUTH_REDIRECT_URI=http://localhost:3000/auth/callback
44
OAUTH_SCOPES='profile offline_access user.read calendars.read'
5-
OAUTH_AUTHORITY=https://login.microsoftonline.com/common
6-
OAUTH_ID_METADATA=/v2.0/.well-known/openid-configuration
7-
OAUTH_AUTHORIZE_ENDPOINT=/oauth2/v2.0/authorize
8-
OAUTH_TOKEN_ENDPOINT=/oauth2/v2.0/token
5+
OAUTH_AUTHORITY=https://login.microsoftonline.com/common/
6+
OAUTH_ID_METADATA=v2.0/.well-known/openid-configuration
7+
OAUTH_AUTHORIZE_ENDPOINT=oauth2/v2.0/authorize
8+
OAUTH_TOKEN_ENDPOINT=oauth2/v2.0/token

tutorial/04-add-aad-auth.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ OAUTH_APP_ID=YOUR_APP_ID_HERE
99
OAUTH_APP_PASSWORD=YOUR_APP_PASSWORD_HERE
1010
OAUTH_REDIRECT_URI=http://localhost:3000/auth/callback
1111
OAUTH_SCOPES='profile offline_access user.read calendars.read'
12-
OAUTH_AUTHORITY=https://login.microsoftonline.com/common
13-
OAUTH_ID_METADATA=/v2.0/.well-known/openid-configuration
14-
OAUTH_AUTHORIZE_ENDPOINT=/oauth2/v2.0/authorize
15-
OAUTH_TOKEN_ENDPOINT=/oauth2/v2.0/token
12+
OAUTH_AUTHORITY=https://login.microsoftonline.com/common/
13+
OAUTH_ID_METADATA=v2.0/.well-known/openid-configuration
14+
OAUTH_AUTHORIZE_ENDPOINT=oauth2/v2.0/authorize
15+
OAUTH_TOKEN_ENDPOINT=oauth2/v2.0/token
1616
```
1717

1818
Replace `YOUR APP ID HERE` with the application ID from the Application Registration Portal, and replace `YOUR APP SECRET HERE` with the password you generated.

0 commit comments

Comments
 (0)