Задайте вопросЗадайте вопрос
 

ОтвеченоDeclare Role-based Authentication in App.config

  • 24 ноября 2008 г. 16:32Jan L_ Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    Hello,
     
    I have a self-hosted WCF-Service and want to provide a role-based authentication to my service methods. However, i only found the way to either do it imperatively in code or declare it using the PrincipalPermissionAttribute. This works fine but I'd rather  like to declare the allowed role(s) in the App.config file of my application, as it is possible with 'normal' web services, since I need to adjust them according to the execution environment.

    How do I accomplish this task?

    Regards, Jan

Ответы

Все ответы