Re: asp.net forms authentication override based on individual pages.
- From: "Cowboy \(Gregory A. Beamer\)" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 7 Jul 2007 07:45:17 -0500
There are two ways to solve this problem.
1. Have a second page for public access to messages that filters for
messages where IsPublic=true.
2. Write your own authentication bits for the "display message" page that
alters the query based on whether the user is logged in or not.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)
************************************************
Think outside the box!
************************************************
"Nalaka" <nalaka12@xxxxxxxxxxxxx> wrote in message
news:uvz$YOAwHHA.4132@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have a asp.net application with forms authentication enabled.
Users create private (database driven) messages (pages; like a message
board) that is only viewed by logged in users.
Now I need to give the users the ability to publish these messages to the
public (if they decide the content is public safe).
Question is... is there a method to override forms authentication?
For an example; some thing like a method... where I look at the URL and
retrun true or false... so forms authentication is ignored based on this
method return value....
Basically to programatically ignore forms authentication for that request
only.
Any direction is deply appreciated
Thanks
Nalaka
.
- References:
- Prev by Date: Re: Problem with Membership login
- Next by Date: Re: SQL MemeberShip Provider: How to manage passwords without writing code?
- Previous by thread: asp.net forms authentication override based on individual pages.
- Next by thread: Re: asp.net forms authentication override based on individual pages.
- Index(es):
Relevant Pages
|
Loading