Skip to content

Commit

Permalink
chore: rename Microsoft provider to AzureADB2C
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-e committed Dec 6, 2020
1 parent 6d7a2b4 commit d7cae11
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/providers/microsoft.js → src/providers/azure-ad-b2c.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ export default (options) => {
const tenant = options.tenantId ? options.tenantId : 'common'

return {
id: 'microsoft',
name: 'Microsoft',
id: 'azure-ad-b2c',
name: 'Azure Active Directory B2C',
type: 'oauth',
version: '2.0',
params: {
Expand Down
4 changes: 2 additions & 2 deletions src/providers/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Apple from './apple'
import Atlassian from './atlassian'
import Auth0 from './auth0'
import AzureADB2C from './azure-ad-b2c'
import Basecamp from './basecamp'
import BattleNet from './battlenet'
import Box from './box'
Expand All @@ -15,7 +16,6 @@ import GitLab from './gitlab'
import Google from './google'
import IdentityServer4 from './identity-server4'
import LinkedIn from './linkedin'
import Microsoft from './microsoft'
import Mixer from './mixer'
import Okta from './okta'
import Slack from './slack'
Expand All @@ -42,7 +42,7 @@ export default {
Google,
IdentityServer4,
LinkedIn,
Microsoft,
AzureADB2C,
Mixer,
Okta,
Slack,
Expand Down
2 changes: 1 addition & 1 deletion www/docs/configuration/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ NextAuth.js is designed to work with any OAuth service, it supports OAuth 1.0, 1
* [Apple](/providers/apple)
* [Atlassian](/providers/atlassian)
* [Auth0](/providers/auth0)
* [Azure Active Directory B2C](/providers/azure-ad-b2c)
* [Basecamp](/providers/basecamp)
* [Battle.net](/providers/battlenet)
* [Box](/providers/box)
Expand All @@ -26,7 +27,6 @@ NextAuth.js is designed to work with any OAuth service, it supports OAuth 1.0, 1
* [Google](/providers/google)
* [IdentityServer4](/providers/identity-server4)
* [LinkedIn](/providers/LinkedIn)
* [Microsoft](/providers/microsoft)
* [Mixer](/providers/Mixer)
* [Okta](/providers/Okta)
* [Slack](/providers/slack)
Expand Down
2 changes: 1 addition & 1 deletion www/docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ You can use also NextAuth.js with any database using a custom database adapter,

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

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.
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.

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).

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: microsoft
title: Microsoft
id: azure-ad-b2c
title: Azure Active Directory B2C
---

## Documentation
Expand All @@ -17,11 +17,11 @@ https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-tena
import Providers from 'next-auth/providers';
...
providers: [
Providers.Microsoft({
clientId: process.env.MS_CLIENT_ID,
clientSecret: process.env.MS_CLIENT_SECRET,
scope: 'offline_access openid',
tenantId: process.env.MS_TENANT_ID,
Providers.AzureADB2C({
clientId: process.env.AZURE_CLIENT_ID,
clientSecret: process.env.AZURE_CLIENT_SECRET,
scope: 'offline_access User.Read',
tenantId: process.env.AZURE_TENANT_ID,
}),
]
...
Expand Down
2 changes: 1 addition & 1 deletion www/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
'providers/apple',
'providers/atlassian',
'providers/auth0',
'providers/azure-ad-b2c',
'providers/basecamp',
'providers/battle.net',
'providers/box',
Expand All @@ -40,7 +41,6 @@ module.exports = {
'providers/google',
'providers/identity-server4',
'providers/linkedin',
'providers/microsoft',
'providers/mixer',
'providers/okta',
'providers/slack',
Expand Down

0 comments on commit d7cae11

Please sign in to comment.