Custom implementation for User.IsInRole??

From: Arthur Dent (hitchhikersguideto-news_at_yahoo.com)
Date: 12/09/04


Date: Thu, 9 Dec 2004 10:48:35 -0500

I have an app where im using FormsAuthenticaton, and doing my own
authentication against a users table in my db. I have no problem actually
getting the authentication to work as i want. When the user logs in though,
it is also pulling out a logical bitmapped set of roles that the user
belongs to. (1 = User, 2 = Admin, then ANDing and ORing against the
UserRoles value to determine role membership).

What i am trying to figure out, is how can i use this role information as
the role that is verified against an "allowRoles" or "denyRoles" setting in
the web.config security section?

Thanks in advance,
- Arthur Dent.



Relevant Pages

  • RE: Beginners Questions
    ... We do use Windows form on the presentation layer which is on ... terminal server and call web services on the business logic side. ... of using "proxy" authentication on SQL Server. ... > I have written an app with a Windows Forms UI that is deployed to clients ...
    (microsoft.public.dotnet.distributed_apps)
  • Authentication Sharing Across Apps
    ... For my part "B" question that I had (Login App was not returning ... authentication to calling app), I found the solution. ... Basically, in both the Login App and Calling App Web.Config, I did ... authenticated connection with SQL server. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Login Security for Intranet/Internet application
    ... a standard intranet app. ... However, you may also want to support IWA authentication for internal users, ... if the application depends on Windows security ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ADSI Problem
    ... built in mechanisms to support forms-based authentication are the way to go. ... In a .NET web app, you generally discover the identity of the authenticated ... Unfortunately, script and ASP 3.0 are not my things, so I'm not the expert ... Dim strUserName ...
    (microsoft.public.windows.server.active_directory)
  • Best way to deploy authentication on web services
    ... I'm building a distributed app that will be accessible to both domain ... web server that holds the client app with 2 virtual directories. ... Is it possible to have one authentication scheme on the ... passed back to the web service to future calls? ...
    (microsoft.public.dotnet.framework.aspnet.webservices)