Venkat Govind

Venkat Govind

  • 1.2k
  • 576
  • 68.2k

How to set Asp.net core3.0 Cookies as Secure

Aug 16 2020 11:56 PM
HI All... Good Morning.
 
i am trying set Cookies set Secure flag , i cant able complete below reference URL seems like cookies , based on the URL below:
 
tryihttps://mariusschulz.com/articles/securing-authentication-cookies-in-asp-net-coreng
 
to implement but i am getting below error, can you any please try this task and update me
 
CS1061 'IApplicationBuilder' does not contain a definition for 'UseCookieAuthentication' and no accessible extension method 'UseCookieAuthentication' accepting a first argument of type 'IApplicationBuilder' could be found (are you missing a using directive or an assembly reference?) 
CS0117 'CookieAuthenticationOptions' does not contain a definition for 'AuthenticationScheme'
CS0117 'CookieAuthenticationOptions' does not contain a definition for 'AutomaticAuthenticate'
CS0117 CookieAuthenticationOptions' does not contain a definition for 'AutomaticChallenge
 
Please help me to complete the task.

Answers (3)