Jump to content

Help - Token based authentication for WCF Service


MegaPowerRockstar

Recommended Posts

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.

Link to comment
Share on other sites

28 minutes ago, MeraBharat_Mahan said:

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.

Link to comment
Share on other sites

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/

 

 

Link to comment
Share on other sites

5 minutes ago, Kootami said:

inka wcf vaaduthunnara ^&H

kada... eme chesthammu.. old uncles dont upgrade..
i am fighting to get web api's but they dont listen.

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...