Skip to content

Commit

Permalink
Fixed "AzureAd" case match (#13621)
Browse files Browse the repository at this point in the history
Login provider name is case sensitive - updating example code to use the correct case.
  • Loading branch information
al3xjohnson authored May 25, 2023
1 parent e2c23c9 commit f37bf58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/guides/azuread-integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ check Use a script to generate userName based on external provider claims and co

```javascript
switch (context.loginProvider) {
case "AzureAD":
case "AzureAd":
context.externalClaims.forEach(claim => {
if (claim.type === "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn") {
context.userName = claim.value;
Expand All @@ -90,7 +90,7 @@ also check the settings to disable asking user info on first registration

```javascript
switch (context.loginProvider) {
case "AzureAD":
case "AzureAd":
context.externalClaims.forEach(claim => {
if (claim.type === "http://schemas.microsoft.com/ws/2008/06/identity/claims/role") {
switch (claim.value) {
Expand Down

0 comments on commit f37bf58

Please sign in to comment.