CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Users/Roles (authentication) example using the encapsulated invoke model?

rated by 0 users
Answered (Verified) This post has 1 verified answer | 2 Replies | 0 Followers

Top 50 Contributor
163 Posts
gajit posted on Tue, Feb 21 2012 9:47 AM

Hi gents,

I'm struggling somewhat to understand the implementation of the user/roles in CSLA4, mainly because all of the examples I've seen so far use the DTO model to omplement them.

In CSLA 2.x the Roles property was implemented as a List in the PTIdentity class, but I don't really understand how things fit together in DTO model.

I'm reasonably clear on the 'regular' parent/child objects, but because we're dealing with a system security implement, I'm pretty sure something different applies. Does anyone have an example of how I would implement the PTIdentity, PTPriincipal, xxxDals and IxxxDals?

Thanks,

Graham

 

Answered (Verified) Verified Answer

Top 50 Contributor
163 Posts
Answered (Verified) gajit replied on Tue, Feb 21 2012 10:40 AM
Verified by gajit

Maybe, I should dig deeper before posting - sorry.

There are a plethora of examples in the Dataportal sample projects.

Oh, well - at the very least my threads will act as a guide for others following the same path ;)

Thanks,

Graham

All Replies

Top 50 Contributor
163 Posts
gajit replied on Tue, Feb 21 2012 10:14 AM

Interesting.

I came across a solution, "Permissions" that uses custom authentication that includes a HasPermission implementation. This is very similar to what I'm doing currently with CSLA 2.1.

This might help.

It uses ObjectFactory, but as the authentication model will likely never change once I've implemented it, it should suffice. Maybe once I'm more familiar with CSLA4, I can re-write using EncapInvoke....

G.

 

Top 50 Contributor
163 Posts
Answered (Verified) gajit replied on Tue, Feb 21 2012 10:40 AM
Verified by gajit

Maybe, I should dig deeper before posting - sorry.

There are a plethora of examples in the Dataportal sample projects.

Oh, well - at the very least my threads will act as a guide for others following the same path ;)

Thanks,

Graham

Page 1 of 1 (3 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems