You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/configure-tokens-custom-policy.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ manager: celestedg
9
9
ms.service: active-directory
10
10
ms.workload: identity
11
11
ms.topic: how-to
12
-
ms.date: 05/07/2020
12
+
ms.date: 10/21/2020
13
13
ms.author: mimart
14
14
ms.subservice: B2C
15
15
---
@@ -87,6 +87,45 @@ The following values are set in the previous example:
87
87
> [!NOTE]
88
88
> Single-page applications using the authorization code flow with PKCE always have a refresh token lifetime of 24 hours. [Learn more about the security implications of refresh tokens in the browser](../active-directory/develop/reference-third-party-cookies-spas.md#security-implications-of-refresh-tokens-in-the-browser).
89
89
90
+
## Provide optional claims to your app
91
+
92
+
The [Relying party policy technical profile](relyingparty.md#technicalprofile) output claims are values that are returned to an application. Adding output claims will issue the claims into the token after a successful user journey, and will be sent to the application. Modify the technical profile element within the relying party section to add the desired claims as an output claim.
93
+
94
+
1. Open your custom policy file. For example, SignUpOrSignin.xml.
95
+
1. Find the OutputClaims element. Add the OutputClaim you want to be included in the token.
96
+
1. Set the output claim attributes.
97
+
98
+
The following example adds the `accountBalance` claim. The accountBalance claim is sent to the application as a balance.
The OutputClaim element contains the following attributes:
123
+
124
+
-**ClaimTypeReferenceId** - The identifier of a claim type already defined in the [ClaimsSchema](claimsschema.md) section in the policy file or parent policy file.
125
+
-**PartnerClaimType** - Allows you to change the name of the claim in the token.
126
+
-**DefaultValue** - A default value. You can also set the default value to a [claim resolver](claim-resolver-overview.md), such as tenant ID.
127
+
-**AlwaysUseDefaultValue** - Force the use of the default value.
128
+
90
129
## Next steps
91
130
92
131
- Learn more about [Azure AD B2C session](session-overview.md).
0 commit comments