Skip to content

Commit cc489df

Browse files
alann-maulanaTomWFox
authored andcommitted
Adding microsoft oauth doc (#698)
1 parent 7819c45 commit cc489df

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

_includes/parse-server/third-party-auth.md

+18
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Parse Server supports 3rd party authentication with
1919
* vKontakte
2020
* WeChat
2121
* Weibo
22+
* Microsoft Graph
2223

2324
Configuration options for these 3rd-party modules is done with the `auth` option passed to Parse Server:
2425

@@ -293,6 +294,22 @@ Learn more about [PhantAuth](https://www.phantauth.net/).
293294
}
294295
```
295296

297+
### Microsoft Graph `authData`
298+
299+
```js
300+
{
301+
"microsoft": {
302+
"id": "user's microsoft id (string)", // required
303+
"access_token": "an authorized microsoft graph access token for the user", // required
304+
"mail": "user's microsoft email (string)"
305+
}
306+
}
307+
```
308+
309+
Learn more about [Microsoft Graph Auth Overview](https://docs.microsoft.com/en-us/graph/auth/?view=graph-rest-1.0).
310+
311+
To [get access on behalf of a user](https://docs.microsoft.com/en-us/graph/auth-v2-user?view=graph-rest-1.0).
312+
296313
## Custom authentication
297314

298315
It is possible to leverage the OAuth support with any 3rd party authentication that you bring in.
@@ -317,3 +334,4 @@ For more information about custom auth please see the examples:
317334
- [Facebook OAuth](https://github.com/parse-community/parse-server/blob/master/src/Adapters/Auth/facebook.js)
318335
- [Twitter OAuth](https://github.com/parse-community/parse-server/blob/master/src/Adapters/Auth/twitter.js)
319336
- [Instagram OAuth](https://github.com/parse-community/parse-server/blob/master/src/Adapters/Auth/instagram.js)
337+
- [Microsoft Graph OAuth](https://github.com/parse-community/parse-server/blob/master/src/Adapters/Auth/microsoft.js)

assets/js/bundle.js

+2-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)