Blog.TokenAuthGettingStarted
Blog.TokenAuthGettingStarted copied to clipboard
Is CustomJwtDataFormat actually used?
I am testing your (very nice, thank you ) project but I can't see the following code in Startup.Auth making any difference:
.AddCookie(options => { options.Cookie.Name = Configuration.GetSection("TokenAuthentication:CookieName").Value; options.TicketDataFormat = new CustomJwtDataFormat( SecurityAlgorithms.HmacSha256, _tokenValidationParameters); });
So it seems the CustomJwtDataFormat class can be removed?
ı think it can be but ı did nıt try myself. Thank you for your attention
2018-04-18 20:44 GMT+03:00 quintonn [email protected]:
I am testing your (very nice, thank you ) project but I can't see the following code in Startup.Auth making any difference: .AddCookie(options => { options.Cookie.Name = Configuration.GetSection(" TokenAuthentication:CookieName").Value; options.TicketDataFormat = new CustomJwtDataFormat( SecurityAlgorithms.HmacSha256, _tokenValidationParameters); }); So it seems the CustomJwtDataFormat class can be removed?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/samueleresca/Blog.TokenAuthGettingStarted/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AV1UFSYQNrZAhw7MPuwTbEACsEc_H90Xks5tp3tsgaJpZM4TafZ1 .