Skip to content

Commit 3b1481f

Browse files
docs: add documentation of plugin
1 parent 4196178 commit 3b1481f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Office 365
3+
description: This provider is based on oauth2 scheme and supports all scheme options
4+
position: 38
5+
category: Providers
6+
---
7+
8+
[Source Code](https://github.com/nuxt-community/auth-module/blob/dev/src/providers/o365/index.ts)
9+
10+
## Usage
11+
12+
```js
13+
auth: {
14+
strategies: {
15+
o365: {
16+
clientId: process.env.AAD_CLIENT_ID,
17+
clientSecret: process.env.AAD_CLIENT_SECRET,
18+
tenantId: process.env.AAD_TENANT_ID,
19+
grantType: 'authorization_code'
20+
},
21+
}
22+
}
23+
```
24+
25+
Anywhere in your application logic:
26+
27+
```js
28+
this.$auth.loginWith('o365')
29+
```
30+
31+
💁 This provider is based on [oauth2 scheme](../schemes/oauth2.md) and supports all scheme options.
32+
33+
## Obtaining configs
34+
35+
You need to create an app registration from Azure Portal and make sure to set up everything for an OAuth app in the usual way. e.g. whitelist urls.

0 commit comments

Comments
 (0)