Security Roles if not a member redirect them?
From: Richard Pullen (richard.pullen@southend.nhs.uk)
Date: 10/25/02
- Next message: Sidharth: "Re: Image database, thumbnail and so on !!!!"
- Previous message: Ilkka Loukovaara: "How to use SkipAuthorization?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Richard Pullen" <richard.pullen@southend.nhs.uk> Date: Fri, 25 Oct 2002 08:56:54 +0100
Hi.
I've been playing around with security and I have had some difficulties with
the web.config settings.
I have set the security up corectly, (remove anonymous from IIS, set the
authentification to windows and allow roles etc in the config) and if you
are a member of the role then you are given access to the relevant web page.
(It has to be seemless hence role and windows security)
If the user is not a memeber the login box appears, what i am trying to is
redirect them to an unauthorised web page message, but all i get is the
standard 401.2: message.
I have tried customising error message to redirect but does not work at all.
The only fix around I have managed so far is on the default page on load
event , to add the not(user.isinrole("xyz")) and redirect them, though not
elegant it solves an immediate issue.
But can someone tell me how to trap the 401.2 message?
Are there any really good articles that explain in depth the configuration
files?
Cheers
- Next message: Sidharth: "Re: Image database, thumbnail and so on !!!!"
- Previous message: Ilkka Loukovaara: "How to use SkipAuthorization?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|