Skip to content

Commit 8bf22b1

Browse files
authored
Update session-behavior.md
1 parent 6ba8e7a commit 8bf22b1

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

articles/active-directory-b2c/session-behavior.md

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -107,36 +107,37 @@ To configure the session behavior in your custom policy, follow these steps:
107107
1. Open the relying party (RP) file, for example *SignUpOrSignin.xml*
108108
1. If it doesn't already exist, add the following `<UserJourneyBehaviors>` element to the `<RelyingParty>` element. It must be located immediately after `<DefaultUserJourney ReferenceId="UserJourney Id"/>`.
109109

110-
```xml
111-
<UserJourneyBehaviors>
112-
<SingleSignOn Scope="Application" />
113-
<SessionExpiryType>Absolute</SessionExpiryType>
114-
<SessionExpiryInSeconds>86400</SessionExpiryInSeconds>
115-
</UserJourneyBehaviors>
116-
```
117-
118-
After you add the user journey behavior elements, the `RelyingParty` element should look like the following example:
119-
120-
```xml
121-
<RelyingParty>
122-
<DefaultUserJourney ReferenceId="SignUpOrSignIn" />
110+
```xml
123111
<UserJourneyBehaviors>
124112
<SingleSignOn Scope="Application" />
125113
<SessionExpiryType>Absolute</SessionExpiryType>
126114
<SessionExpiryInSeconds>86400</SessionExpiryInSeconds>
127115
</UserJourneyBehaviors>
128-
<TechnicalProfile Id="PolicyProfile">
129-
<DisplayName>PolicyProfile</DisplayName>
130-
<Protocol Name="OpenIdConnect" />
131-
<OutputClaims>
132-
<OutputClaim ClaimTypeReferenceId="displayName" />
133-
<OutputClaim ClaimTypeReferenceId="givenName" />
134-
...
135-
</OutputClaims>
136-
<SubjectNamingInfo ClaimType="sub" />
137-
</TechnicalProfile>
138-
</RelyingParty>
139-
```
116+
```
117+
118+
After you add the user journey behavior elements, the `RelyingParty` element should look like the following example:
119+
120+
```xml
121+
<RelyingParty>
122+
<DefaultUserJourney ReferenceId="SignUpOrSignIn" />
123+
<UserJourneyBehaviors>
124+
<SingleSignOn Scope="Application" />
125+
<SessionExpiryType>Absolute</SessionExpiryType>
126+
<SessionExpiryInSeconds>86400</SessionExpiryInSeconds>
127+
</UserJourneyBehaviors>
128+
<TechnicalProfile Id="PolicyProfile">
129+
<DisplayName>PolicyProfile</DisplayName>
130+
<Protocol Name="OpenIdConnect" />
131+
<OutputClaims>
132+
<OutputClaim ClaimTypeReferenceId="displayName" />
133+
<OutputClaim ClaimTypeReferenceId="givenName" />
134+
...
135+
</OutputClaims>
136+
<SubjectNamingInfo ClaimType="sub" />
137+
</TechnicalProfile>
138+
</RelyingParty>
139+
```
140+
140141

141142
1. Change the value of the `Scope` attribute to one of the possible value: `Suppressed`, `Tenant`, `Application`, or `Policy`. For more information, check out the [RelyingParty](relyingparty.md) reference article.
142143
1. Set the `SessionExpiryType` element to `Rolling` or `Absolute`. For more information, check out the [RelyingParty](relyingparty.md) reference article.

0 commit comments

Comments
 (0)