Skip to content

Commit eebcade

Browse files
guardrexhalter73
andauthored
Update aspnetcore/blazor/security/blazor-web-app-with-oidc.md
Co-authored-by: Stephen Halter <[email protected]>
1 parent 92ff606 commit eebcade

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

aspnetcore/blazor/security/blazor-web-app-with-oidc.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,10 @@ The following <xref:Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConn
317317
oidcOptions.Scope.Add(OpenIdConnectScope.OpenIdProfile);
318318
```
319319

320-
* <xref:Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions.SaveTokens%2A>: Defines whether access and refresh tokens should be stored in the <xref:Microsoft.AspNetCore.Authentication.AuthenticationProperties> after a successful authorization. This property is set to `false` to reduce the size of the final authentication cookie.
320+
* <xref:Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions.SaveTokens%2A>: Defines whether access and refresh tokens should be stored in the <xref:Microsoft.AspNetCore.Authentication.AuthenticationProperties> after a successful authorization. This property is set to `true` so the refresh token gets stored for non-interactive token refresh.
321321

322322
```csharp
323-
oidcOptions.SaveTokens = false;
324-
```
323+
oidcOptions.SaveTokens = true;
325324

326325
* Scope for offline access (<xref:Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions.Scope%2A>): The `offline_access` scope is required for the refresh token.
327326

0 commit comments

Comments
 (0)