Re: Need to create in-memory store for authorization roles
From: Raterus (moc.liamtoh_at_suretar.reverse)
Date: 08/12/04
- Next message: Brad Quinn: "RE: Noob -- BC30002: Type 'Table' is not defined."
- Previous message: Sadun Sevingen: "Re: BUG REPORTING"
- In reply to: Bill Borg: "Need to create in-memory store for authorization roles"
- Next in thread: bruce barker: "Re: Need to create in-memory store for authorization roles"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Aug 2004 10:46:41 -0400
It may not be an option for you, but I've always used an encrypted cookie, this is when I use forms authentication though. When AuthenticateRequest comes along, I unencrypt the cookie, assign the roles, and attach it to the context.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT04.asp
Hope this helps,
--Michael
"Bill Borg" <BillBorg@discussions.microsoft.com> wrote in message news:523F2D23-2F1E-4F3D-9A92-A83649B0271E@microsoft.com...
> Hello,
>
> I want to build user roles during AuthenticateRequest for use during
> authorization. I know I can go get the roles from the database and add them
> to the principal, but would like to cache the roles in memory rather than
> always go to the database. I'd like to use the equivalent of the session, but
> know that at the point where I need this the session state bag is not yet
> reestablished.
>
> Any thoughts on how best to create an in-memory store for user roles?
>
> Thanks,
>
> Bill Borg
- Next message: Brad Quinn: "RE: Noob -- BC30002: Type 'Table' is not defined."
- Previous message: Sadun Sevingen: "Re: BUG REPORTING"
- In reply to: Bill Borg: "Need to create in-memory store for authorization roles"
- Next in thread: bruce barker: "Re: Need to create in-memory store for authorization roles"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|