tag:blogger.com,1999:blog-6082652835152798567.post6771756173775051731..comments2024-03-28T21:41:58.974-07:00Comments on Sql server, .net and c# video tutorial: Implementing basic authentication in ASP.NET Web APIUnknownnoreply@blogger.comBlogger19125tag:blogger.com,1999:blog-6082652835152798567.post-76162998031750910562021-11-22T08:09:00.553-08:002021-11-22T08:09:00.553-08:00Users of the REST API can authenticate by providin...Users of the REST API can authenticate by providing their user ID and password within an HTTP header we are providing the credentials authorization .Raunaknoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-61191674283733302222021-04-08T21:28:21.969-07:002021-04-08T21:28:21.969-07:00Agreed that Sir told BasicAuthentication but still...Agreed that Sir told BasicAuthentication but still what is the difference between basic and other authentication.Pankajhttps://www.blogger.com/profile/09987651156909439951noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-9101760257837739462020-07-04T19:13:09.174-07:002020-07-04T19:13:09.174-07:00Each request it gets authenticate on basic authent...Each request it gets authenticate on basic authentication. IS it possible if once we authenticate on next request it should not go for authentication. Sagar Deshmukhhttps://www.blogger.com/profile/15902496584391001879noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-54078836945838625592020-07-04T19:10:19.002-07:002020-07-04T19:10:19.002-07:00Yes RequireHttpsAttribute() is for enable HTTPS.Yes RequireHttpsAttribute() is for enable HTTPS.Sagar Deshmukhhttps://www.blogger.com/profile/15902496584391001879noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-80998605905407142312019-09-25T06:25:42.164-07:002019-09-25T06:25:42.164-07:00I tried this code in .net core i dont no how to r...I tried this code in .net core i dont no how to register the require attribute in register part while doing in .net core<br />Dineshhttps://www.blogger.com/profile/09648817115691810081noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-17174576576611017482019-08-23T03:47:55.924-07:002019-08-23T03:47:55.924-07:00When I am trying to execute in Fiddler and try to ...When I am trying to execute in Fiddler and try to open google or https://www.base64encode.org/ in chrome, it will showing following error in chrome browser's page. Whether project is in running state or not in visual studio.<br /><br />Error:<br />"At this moment Your connection is not private<br />Attackers might be trying to steal your information from www.base64encode.org (for example, passwords, messages, or credit cards). Learn more<br />NET::ERR_CERT_AUTHORITY_INVALID"<br /><br />If I goes to File -> Unselect 'Capture Traffic' in Fiddler, then it will allow to open google or https://www.base64encode.org/ in chrome. No error will come.<br /><br />I am using Fiddler version 5.0 and Chrome version 76.<br />Why is it happen?<br />-------------------------------------<br /> Otherwise, this tutorial is working well as per Kudvenkat's guideline.Dinesh Kudalehttps://www.blogger.com/profile/17866059157516771142noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-89586643676786390982019-08-23T03:45:23.665-07:002019-08-23T03:45:23.665-07:00Use
entities.Users.AnyUse <br />entities.Users.AnyDinesh Kudalehttps://www.blogger.com/profile/17866059157516771142noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-20346209267404257362019-08-23T03:38:35.805-07:002019-08-23T03:38:35.805-07:00Kudvenkat sir already told in their video tutorial...Kudvenkat sir already told in their video tutorial that We are using BasicAuthentication, hence it need to mention Basic keyword Authorization header.Dinesh Kudalehttps://www.blogger.com/profile/17866059157516771142noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-59322476927824499652019-05-09T07:18:17.316-07:002019-05-09T07:18:17.316-07:00i am getting error on User in employeeSecurity.cs
...i am getting error on User in employeeSecurity.cs<br />(return entities.User.Any......) and yes i added users table<br /><br />Error CS1061 'EmployeeDBEntities' does not contain a definition for 'User' and no accessible extension method 'User' accepting a first argument of type 'EmployeeDBEntities' could be found (are you missing a using directive or an assembly reference?)<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-25963091693182891572019-02-18T11:48:25.485-08:002019-02-18T11:48:25.485-08:002. To enable basic authentication across the entir...2. To enable basic authentication across the entire Web API application, register BasicAuthenticationAttribute as a filter using the Register() method in WebApiConfig class<br /><br />config.Filters.Add(new RequireHttpsAttribute());<br /><br />Last line should be <br /><br />config.Filters.Add(new BasicAuthenticationAttribute());<br />A Gouri Kumarhttps://www.blogger.com/profile/12400467097408347442noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-9886502249080738462018-08-06T22:45:58.451-07:002018-08-06T22:45:58.451-07:00yes, I think it should be
config.Filters.Add(new...yes, I think it should be <br /><br />config.Filters.Add(new BasicAuthenticationAttribute());mkkhttps://www.blogger.com/profile/06549046650041245293noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-15732070522997199412018-02-17T01:22:37.995-08:002018-02-17T01:22:37.995-08:00actionContext.Request.Headers.Authorization
send n...actionContext.Request.Headers.Authorization<br />send null by fidllaAnupamhttps://www.blogger.com/profile/09396896204993114420noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-53488977158749521082018-01-18T18:22:21.315-08:002018-01-18T18:22:21.315-08:00I believe there is a typo in the section "Ena...I believe there is a typo in the section "Enable Basic Authentication" : RequireHttpsAttribute()Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-25971666187341396182017-12-08T12:15:43.878-08:002017-12-08T12:15:43.878-08:00How can you make this async methods so the wont be...How can you make this async methods so the wont be much trafic on the authentication methods, I have my controller methods async, I need all methods to be asyncfanniehttps://www.blogger.com/profile/09008492825565154769noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-13869171428606742032017-09-03T01:01:37.427-07:002017-09-03T01:01:37.427-07:00What do I do when I want use basic authentication ...What do I do when I want use basic authentication in ASP.NET MVC?Anonymoushttps://www.blogger.com/profile/13976242605806554032noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-42197521480094455892017-08-02T01:55:12.705-07:002017-08-02T01:55:12.705-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/15988229703128611039noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-44456886906459761552017-07-29T22:53:24.478-07:002017-07-29T22:53:24.478-07:00Very Nice !
The way of Explanation is Fantastic .....Very Nice !<br />The way of Explanation is Fantastic ....سامر ساميhttps://www.blogger.com/profile/12953584941415819601noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-51034661311307375462017-06-18T03:13:23.470-07:002017-06-18T03:13:23.470-07:00Nice article Venkat, but one question, why we need...Nice article Venkat, but one question, why we need to add "basic" keyword in Authorization header?himanshu pareekhttps://www.blogger.com/profile/16585764404152784870noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-16705935173767810722016-11-23T20:34:18.676-08:002016-11-23T20:34:18.676-08:00how to add tokenhow to add tokenAnonymoushttps://www.blogger.com/profile/06578686269481644321noreply@blogger.com