WCF service with OAuth authentication
I'm planning on using WCF for an API for my applicaition. In the Web frontend of the app, I take care of the request of access tokens etc.
So I wanted to ask how I can easily have my user开发者_高级运维s specify OAuth access token etc. as parameters when calling my endpoints? Without the requirement of each method to accept the parameters?
Can it be done? I'm hosting my services in IIS, maybe I can dive into the OperationContext and catch requests, verify auth headers and throw an exception of they're wrong?
Maybe the answer I gave here can help you out: WCF authentication from html/javascript client
Best regards db
精彩评论