Print Page | Close Window

[DEFERRED] Authentication Information

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=476
Printed Date: 11-Jun-2026 at 4:35pm


Topic: [DEFERRED] Authentication Information
Posted By: Linguinut
Subject: [DEFERRED] Authentication Information
Date Posted: 05-Oct-2007 at 4:33pm
How do I access user authentication information from within a module?  Is it possible to access active directory data?
 
Deferred to: http://www.ideablade.com/forum/forum_posts.asp?TID=483 - http://www.ideablade.com/forum/forum_posts.asp?TID=483



Replies:
Posted By: Bill Jensen
Date Posted: 08-Oct-2007 at 2:47pm
Authentication information is generally boolean:  either the user is who he says he is (based on his credentials) or not.
 
Once a user is authenticated, authorization determines what that user is allowed to see or do.  Often this is accomplished by assigning the user string-valued roles stored in the Principal object.  This is created on the server and passed back to the client where it may be queried via the IsInRole() method of the Principal object.
 
If more authorization information is needed, you could create a custom Principal object.
 
I really don't know much about Active Directory.
 
Bill J.


Posted By: Linguinut
Date Posted: 08-Oct-2007 at 4:37pm
Sorry...I meant user authorization.
 
If a user is not authorized to add a new entity (they can edit), how do I make that happen?
 
If a user is not authorized to view a portion of the data (only division A data, for example), how do I limit various view, lists, modules, etc.?
 
I figure, if there is a general way to do this (service, injection, etc.), I can extend it to work with my active directory.
 
Since this is security in a CAB application, I thought it best to leave this issue here.
 
Thanks!
Bill


Posted By: Linguinut
Date Posted: 13-Oct-2007 at 7:35am
This is related to the newer thread--Security Application Block.  I'll pick these questions up in that thread, if necessary.



Print Page | Close Window