简体   繁体   中英

Allowing a User to access .Net WCF service using Windows Authentication mode and Message Level security

I have a WCF service which is to use windows authentication and message level security.The WCF Service will be an intranet service.

What i have to do is to allow a single user say "domain\\user1" to access this service?

I want all other users to be denied access.

You can do this in your web.config:

<system.web>
    <authentication mode="Windows" />
    <authorization>
        <allow users="DOMAIN\user1" />
        <deny users="*" />
    </authorization>
</system.web>

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