Blog.TokenAuthGettingStarted icon indicating copy to clipboard operation
Blog.TokenAuthGettingStarted copied to clipboard

Is CustomJwtDataFormat actually used?

Open quintonn opened this issue 6 years ago • 1 comments

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?

quintonn avatar Apr 18 '18 17:04 quintonn

ı 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 .

EnesAys avatar Apr 18 '18 18:04 EnesAys