Last post Nov 21, 2018 06:22 AM by Nan Yu
Nov 20, 2018 04:29 PM|sanjaykumar pushadapu|LINK
Nov 20, 2018 05:12 PM|mgebhard|LINK
Can we create oauth access token and refresh token With out owin in web api-2?
Your question is not clear as OWIN is a specification or standard for adding functionality to an ASP.NET application without adding to the .NET framework,. What problem are you trying to solve exactly?
Nov 20, 2018 07:03 PM|sanjaykumar pushadapu|LINK
Nov 20, 2018 07:51 PM|mgebhard|LINK
I want generate oauth access_token and refresh_token based on user name and password ,user can access resurourse with token,
Still unclear... Are you looking for an API or OAuth service? What is stopping you from using an OWIN enabled API? Are you trying to write an OAuth service and need the OAuth specs?
Nov 21, 2018 02:32 AM|sanjaykumar pushadapu|LINK
Nov 21, 2018 03:06 AM|Nan Yu|LINK
Without OWIN middleware , you need to write your own codes to issue JWT token and how to validate token when the request comes. Please refer to below thread for code sample :
But i would use UseJwtBearerAuthentication in Microsoft.Owin.Security.Jwt so you can use this owin middleware in WebAPI to validate every incoming request automatically.
Nov 21, 2018 04:46 AM|sanjaykumar pushadapu|LINK
thank you Nan Yu, how to create refresh token and how to validate in above case?
Nov 21, 2018 06:22 AM|Nan Yu|LINK
Hi JAY ,
Above link includes code sample for how to validate token . For generate refresh tokens in web api , you could refer to below article :