Skip to content

Commit d7cae11

Browse files
committed
chore: rename Microsoft provider to AzureADB2C
1 parent 6d7a2b4 commit d7cae11

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

src/providers/microsoft.js src/providers/azure-ad-b2c.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ export default (options) => {
22
const tenant = options.tenantId ? options.tenantId : 'common'
33

44
return {
5-
id: 'microsoft',
6-
name: 'Microsoft',
5+
id: 'azure-ad-b2c',
6+
name: 'Azure Active Directory B2C',
77
type: 'oauth',
88
version: '2.0',
99
params: {

src/providers/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Apple from './apple'
22
import Atlassian from './atlassian'
33
import Auth0 from './auth0'
4+
import AzureADB2C from './azure-ad-b2c'
45
import Basecamp from './basecamp'
56
import BattleNet from './battlenet'
67
import Box from './box'
@@ -15,7 +16,6 @@ import GitLab from './gitlab'
1516
import Google from './google'
1617
import IdentityServer4 from './identity-server4'
1718
import LinkedIn from './linkedin'
18-
import Microsoft from './microsoft'
1919
import Mixer from './mixer'
2020
import Okta from './okta'
2121
import Slack from './slack'
@@ -42,7 +42,7 @@ export default {
4242
Google,
4343
IdentityServer4,
4444
LinkedIn,
45-
Microsoft,
45+
AzureADB2C,
4646
Mixer,
4747
Okta,
4848
Slack,

www/docs/configuration/providers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ NextAuth.js is designed to work with any OAuth service, it supports OAuth 1.0, 1
1414
* [Apple](/providers/apple)
1515
* [Atlassian](/providers/atlassian)
1616
* [Auth0](/providers/auth0)
17+
* [Azure Active Directory B2C](/providers/azure-ad-b2c)
1718
* [Basecamp](/providers/basecamp)
1819
* [Battle.net](/providers/battlenet)
1920
* [Box](/providers/box)
@@ -26,7 +27,6 @@ NextAuth.js is designed to work with any OAuth service, it supports OAuth 1.0, 1
2627
* [Google](/providers/google)
2728
* [IdentityServer4](/providers/identity-server4)
2829
* [LinkedIn](/providers/LinkedIn)
29-
* [Microsoft](/providers/microsoft)
3030
* [Mixer](/providers/Mixer)
3131
* [Okta](/providers/Okta)
3232
* [Slack](/providers/slack)

www/docs/faq.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You can use also NextAuth.js with any database using a custom database adapter,
2323

2424
### What authentication services does NextAuth.js support?
2525

26-
NextAuth.js includes built-in support for signing in with Apple, Atlassian, Auth0, Google, Battle.net, Box, AWS Cognito, Discord, Facebook, FusionAuth, GitHub, GitLab, Google, Open ID Identity Server, Microsoft, Mixer, Okta, Slack, Spotify, Twitch, Twitter and Yandex.
26+
NextAuth.js includes built-in support for signing in with Apple, Atlassian, Auth0, Azure Active Directory B2C, Google, Battle.net, Box, AWS Cognito, Discord, Facebook, FusionAuth, GitHub, GitLab, Google, Open ID Identity Server, Mixer, Okta, Slack, Spotify, Twitch, Twitter and Yandex.
2727

2828
NextAuth.js also supports email for passwordless sign in, which is useful for account recovery or for people who are not able to use an account with the configured OAuth services (e.g. due to service outage, account suspension or otherwise becoming locked out of an account).
2929

www/docs/providers/microsoft.md www/docs/providers/azure-ad-b2c.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
id: microsoft
3-
title: Microsoft
2+
id: azure-ad-b2c
3+
title: Azure Active Directory B2C
44
---
55

66
## Documentation
@@ -17,11 +17,11 @@ https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-tena
1717
import Providers from 'next-auth/providers';
1818
...
1919
providers: [
20-
Providers.Microsoft({
21-
clientId: process.env.MS_CLIENT_ID,
22-
clientSecret: process.env.MS_CLIENT_SECRET,
23-
scope: 'offline_access openid',
24-
tenantId: process.env.MS_TENANT_ID,
20+
Providers.AzureADB2C({
21+
clientId: process.env.AZURE_CLIENT_ID,
22+
clientSecret: process.env.AZURE_CLIENT_SECRET,
23+
scope: 'offline_access User.Read',
24+
tenantId: process.env.AZURE_TENANT_ID,
2525
}),
2626
]
2727
...

www/sidebars.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = {
2626
'providers/apple',
2727
'providers/atlassian',
2828
'providers/auth0',
29+
'providers/azure-ad-b2c',
2930
'providers/basecamp',
3031
'providers/battle.net',
3132
'providers/box',
@@ -40,7 +41,6 @@ module.exports = {
4041
'providers/google',
4142
'providers/identity-server4',
4243
'providers/linkedin',
43-
'providers/microsoft',
4444
'providers/mixer',
4545
'providers/okta',
4646
'providers/slack',

0 commit comments

Comments
 (0)