File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
docs/content/en/providers Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments