MegaPowerRockstar Posted October 23, 2019 Report Posted October 23, 2019 Hi, I need help guys. Does anyone know how we could implement a wcf service with token based authentication. Something similar to Owin authentication. I am seeing few options, where we create a token based on the session id or customized implementation of token generation. I am looking for Owin approach, where it has the token generation on its own. Please advice. Quote
MeraBharat_Mahan Posted October 23, 2019 Report Posted October 23, 2019 https://docs.microsoft.com/en-us/dotnet/framework/wcf/samples/token-authenticator Quote
MegaPowerRockstar Posted October 23, 2019 Author Report Posted October 23, 2019 28 minutes ago, MeraBharat_Mahan said: https://docs.microsoft.com/en-us/dotnet/framework/wcf/samples/token-authenticator this is custom implementation right. I dont want to generate token. i would provide user name and password. calling some mechanism (like owin does) it should create token. In the next service calls that token will be passed. it should authenticate token, may be some filter attribute or so. Quote
ambothu Posted October 23, 2019 Report Posted October 23, 2019 owin in not for token handling , OWIN is used for hosting purpose . you are looking for Oauth 2 implementaion along with openid connect : learn more about oauth grants and openid flows along with jwt token. below is the sample for https://www.red-gate.com/simple-talk/dotnet/net-development/jwt-authentication-microservices-net/ Quote
MegaPowerRockstar Posted October 23, 2019 Author Report Posted October 23, 2019 5 minutes ago, Kootami said: inka wcf vaaduthunnara kada... eme chesthammu.. old uncles dont upgrade.. i am fighting to get web api's but they dont listen. Quote
MegaPowerRockstar Posted October 23, 2019 Author Report Posted October 23, 2019 2 hours ago, MeraBharat_Mahan said: doesn't meet my need... its simple caching approach.. Quote
Spartan Posted October 23, 2019 Report Posted October 23, 2019 3 minutes ago, MegaPowerRockstar said: doesn't meet my need... its simple caching approach.. look for OAuth2 implementation. Quote
Spartan Posted October 23, 2019 Report Posted October 23, 2019 https://docs.microsoft.com/en-us/dotnet/framework/data/wcf/securing-wcf-data-services Quote
chicagoafdb Posted October 23, 2019 Report Posted October 23, 2019 Write webapi with asp.net core identity for authentication..you can do this in core..samples available. This way your wish to implement webapi solves.. Let your wcf use this API for authentication.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.