Skip to content

Commit 4bc32a4

Browse files
author
Daniele Giallonardo
committed
Fix creazione oggetto Properties
1 parent db85ded commit 4bc32a4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • CIE.AspNetCore.Authentication/CIE.AspNetCore.Authentication

CIE.AspNetCore.Authentication/CIE.AspNetCore.Authentication/CieHandler.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public override Task<bool> HandleRequestAsync()
8989

9090
protected override async Task HandleChallengeAsync(AuthenticationProperties properties)
9191
{
92+
properties ??= new();
93+
9294
// Save the original challenge URI so we can redirect back to it when we're done.
9395
if (string.IsNullOrEmpty(properties.RedirectUri))
9496
{
@@ -195,6 +197,7 @@ public async virtual Task SignOutAsync(AuthenticationProperties properties)
195197

196198
string authenticationRequestId = Guid.NewGuid().ToString();
197199

200+
properties ??= new();
198201
properties.Load(Request, Options.StateDataFormat);
199202

200203
// Extract the user state from properties and reset.

0 commit comments

Comments
 (0)