The text of this article is not in this database — only its details are. Read it on the old site: Token Based Authentication in Web API 2
18 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Token Based Authentication in Web API 2
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Abc ThakurPosted Nov 6, 2019, 8:24 AM
Rajeev Ranjan . I have MVC and and Web API in different project How to use token with MVC controller and use Authorize Attribute in Web API Controller.
Priti KumariPosted Aug 3, 2018, 12:33 AM
Rajeev Ranjan Please explain this part of your code OnValidateClientAuthentication = async context => { string clientId; string clientSecret; if (context.TryGetBasicCredentials(out clientId, out clientSecret)) { if (clientId == "rajeev" && clientSecret == "secretKey") { context.Validated(); } } }
Kumar PPosted May 26, 2018, 11:17 AM
Hi all, Can anyone provide sample token based authentication project. I am new to this concept.
senthil KumarPosted Jan 1, 2018, 4:14 PM
This one worked beautifully...
senthil KumarPosted Jan 1, 2018, 4:14 PM
Wowwwwwwwwwww..... Thanks a lot Rajeev... Ur Smart... I was trying to learn Self Hosting with Outh2 Authorization... tried many article code.. most of them did not work for me..This one worked beautifully.. Still I could not believe :)
neverson mutzenberhPosted Sep 28, 2017, 9:44 AM
Hi, I'm trying to get the token in my database, but I'm not sure how to do this, but I'm not sure how the authorization server will validate the token by accessing the base, I think it would be in this method (ReceiveAuthenticationCode) base this?
Sophonias DechasaPosted Oct 16, 2015, 2:28 PM
You approached this tutorial from a different angle. Unfortunately, the tutorial is missing a lot of parts and is not very well edited. Can you please go through each step. Tell us which classes belong to which project. I am not sure where the Token class belongs, the console app? or the webAPI? You also did not include the namespaces for the console app's main class. Can you edit that please? Thank you.
saransh mehraPosted Sep 11, 2015, 1:17 AM
This article is not clear to understand..Please provide your sample code as well
Mitesh PrajapatiPosted Aug 3, 2015, 2:11 PM
How to enable two step authentication for login for this token based authentication ?
Rajeev RanjanPosted Jun 18, 2015, 1:41 AM
Manish Jhandhy have a look of this article http://www.c-sharpcorner.com/UploadFile/736ca4/token-based-authentication-using-web-api-2/
Manish JhandhyPosted May 11, 2015, 9:11 AM
How to implement it using a WebApi Application. Can you provide the sample application for this?
badblockPosted Apr 8, 2015, 9:36 AM
Hi. Can you please provide a sample application?
Vithal WadjePosted Jan 7, 2015, 11:05 PM
Welcome
Vithal WadjePosted Jan 7, 2015, 10:41 PM
Rajeev Ranjan your personal blog url must be http://www.c-sharpcorner.com/authors/736ca4/rajeev-ranjan.aspx