简体   繁体   中英

WCF on Azure with STS

I had hosted WCF on Azure and would like to redirect any request to STS first if not authenticated.

So, if user typed following : http://....../mywcfservice.svc , in the address bar, it should first redirect to STS login page if not authenticated.

I had already implemented same in WebApplication, but when implemented the same configuration in WCf, it doesn't redirects to sts login but it just shows - "Access is denied"

Why is it not redirecting it to STS Login page?

WCF does not use redirect - the same as your WCF clients are not browser clients. You need to use WS-Trust to do STS-based authentication in WCF. (see ws2007FederationHttpBinding in WCF docs).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM