Skip to content

Commit 6fcee95

Browse files
Chris PatrickTratcher
authored andcommitted
Set properties on the context before calling OnAuthenticated so they are available to the callback (#145)
Addresses #143
1 parent 1653abe commit 6fcee95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.Owin.Security.MicrosoftAccount/MicrosoftAccountAuthenticationHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ protected override async Task<AuthenticationTicket> AuthenticateCoreAsync()
121121
context.Identity.AddClaim(new Claim(ClaimTypes.Email, context.Email, "http://www.w3.org/2001/XMLSchema#string", Options.AuthenticationType));
122122
}
123123

124-
await Options.Provider.Authenticated(context);
125-
126124
context.Properties = properties;
127125

126+
await Options.Provider.Authenticated(context);
127+
128128
return new AuthenticationTicket(context.Identity, context.Properties);
129129
}
130130
catch (Exception ex)

0 commit comments

Comments
 (0)