Skip to content

Commit

Permalink
Merge pull request #160 from Azure-Samples/remove-ids-use-placeholder
Browse files Browse the repository at this point in the history
[Security Sprint] Replace real ID values with placeholders
  • Loading branch information
kengaderdus authored Jul 8, 2024
2 parents 29424bc + 278eca7 commit fc39b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SocialAndLocalAccounts/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ This claims transform generates a random string, which is in the format of a GUI
</ClaimsTransformation>
```

This claims transform uses the `FormatStringClaim` method to create a string value using claims in the Azure AD B2C claim bag. The claim given to this transform is `upnUserName`, which is available from the output of the previous claims transform. Here the transform inserts the first input claim into `{0}` and Azure AD B2C knows the value of `{RelyingPartyTenantId}` already. Then end result is a fully formed userPrincipalName, which is output in the `userPrincipalName` claim: `00000000-0000-0000-0000-000000000000@something.onmicrosoft.com`.
This claims transform uses the `FormatStringClaim` method to create a string value using claims in the Azure AD B2C claim bag. The claim given to this transform is `upnUserName`, which is available from the output of the previous claims transform. Here the transform inserts the first input claim into `{0}` and Azure AD B2C knows the value of `{RelyingPartyTenantId}` already. Then end result is a fully formed userPrincipalName, which is output in the `userPrincipalName` claim: `aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb@something.onmicrosoft.com`.

**CreateAlternativeSecurityId** - This creates a user identifier similar to an objectId, which will be used to map the subject claim (sub) from the Facebook token to the Azure AD B2C user on subsequent logons. The generated identifier is output into the claim called `alternativeSecurityId`.

Expand Down

0 comments on commit fc39b7d

Please sign in to comment.