How to integrate SAP into .NET applications like SharePoint

Hauptmenü

Schlagwort-Archive: RolesWindowsPrincipal

A while ago one of my customer asked me to extend the Windows authentication process within an ASP.NET intranet application. The custom roles for the authenticated users should be determined by querying special flags in a database table and by querying the Active Directory for that user.

One way to accomplish this task is to create a custom class which derives from WindowsPrincipal called RolesWindowsPrincipal. The new class extends the existing class with methods to add new roles depending on the queries described above.