Click here to Skip to main content
15,910,981 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Sorry. I'm new to this. I'll rephrase this.
I'm doing an n-tier project with the possibility of multiple types of UI/clients (web, desktop, services). I'm looking for the best way on how to implement authentication in business layer.
Posted
Updated 30-May-11 17:32pm
v3
Comments
Sergey Alexandrovich Kryukov 30-May-11 2:57am    
Not a question.
--SA
OriginalGriff 30-May-11 5:35am    
It's got a question mark at the end! It must be a question! :laugh:
Sergey Alexandrovich Kryukov 30-May-11 15:10pm    
It wasn't, at the moment of writing my comment.
Even now it looks more like a task, not a question. Who is going to solve it? :-)
--SA
Monjurul Habib 30-May-11 18:37pm    
doesn't make any sense. clarify your question.
King.Duan 31-May-11 5:32am    
the answer is Null

1 solution

Authentication most of the times resumes to a user and a password. Most of the times this is done in the UI Layer, meaning that you can not use the application unless you are authenticated. If this is your case then you could send to the business layer you UI layer authentication token (ore something that let's it know the user is loged in. Not let's consider the oposite of this assumtion, ie. you want to check the user at the business layer, then just add a user and a password at the business layer interface methods (or attributes that require user and password, and adequately checks for them).
And, as an observation, communication between the UI layer and the business layer should be secure (insinde the same process, or if it is a web service then via https.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900