Print Page | Close Window

Need some directions on Authentication and Authorization

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2012
Forum Discription: For .NET 4.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=4184
Printed Date: 06-Sep-2025 at 2:49pm


Topic: Need some directions on Authentication and Authorization
Posted By: iDave
Subject: Need some directions on Authentication and Authorization
Date Posted: 19-Jun-2013 at 12:46pm
Good day,

I'm writting an application using the DevForce WPF n-Tier template. The structure of the solution is as follows:

  • SC (the WPF project)
  • SC.Core (some common code that could be shared with for ex. Silverlight)
  • SC.DomainModel (the main model)
  • SC.DomainServices (some model services and business logic)
  • SC.SecurityModel (a security model for Users, Roles, etc)
  • SC.Web (created by the template)

So far, the SC, Core, DomainModel and DomainServices have gone nicely.

But now my concern is how do I implement the authentication and authorization?
Should they go in the Web project? If so, what should go there? I tried to follow the Documentation regarding this topics but I'm getting lost. The documentation says that it should be easy and I only need to change a few things in the config but I'm not getting it.

What I want to do is:

- Implement authentication and authorization. Ex. A user login using username and password. If all correct, let it in and then allow or deny (partially or completely) certain entities (view, edit, delete, etc).

I've created a model (SecurityModel), I'm planning to use this model for storing users, passwords, roles, etc for this specific application.

Is this the right way to do it, or I'm complicating myself too much?

Anyway, if someone can point me in the right direction of how to do it and where to find more information (also a piece of code will help to start) about it so I can accomplish such task, I really appreciate it.

Thanks in advance,
Dave



Replies:
Posted By: sbelini
Date Posted: 19-Jun-2013 at 12:57pm
iDave,

Have you taken a look at the samples as well? ( http://drc.ideablade.com/devforce-2012/bin/view/Documentation/code-samples-security - http://drc.ideablade.com/devforce-2012/bin/view/Documentation/code-samples-security )


Posted By: iDave
Date Posted: 22-Jun-2013 at 11:46am
sbelini,

This is embarrassing... I have been looking all the time at the Development guide that I totally missed the Samples section.
Anyway, thanks for pointing me into the right direction.


Posted By: sbelini
Date Posted: 22-Jun-2013 at 11:55am
No problem! 

Let us know if you have further questions.



Print Page | Close Window