Blogs

The Progress Bar - DevExpress XPF Blog

Real World Application – Membership and Authorization

     

 

Previously, we looked at how to set up the basic foundations of the “DX Airways” home page as well as how to add and customize the basic user interface using DevExpress ASP.NET Components. If you missed those tutorials, feel free to head over to the DevExpress Channel and view them.

DX Airways RWA - Membership and Authorization

Continuing with the homepage construction, we now look at implementing Membership and Authorization for the public facing website. We’ll be using the ASP.NET Provider Model and integrating it with our XPO Objects to facilitate usage of the ASP.NET Security Controls. Eventhough we use a custom provider, Membership and Authorization will be kept as a conventional two-level model made up of Users and Roles. So, click here or on the image above to watch the new installment in our DX Airways RWA Series.

Published Jun 04 2009, 11:25 PM by Emil Mesropian (DevExpress)
Bookmark and Share

Comments

 

Nate Laff said:

Ughh... these are getting harder and harder to watch.

Really? Creating a new Session with using (Session session = new Session())

{

}

Not a UnitOfWork?

Also, in the last video, setting the DefaultSession to something, and then nulling it out at the end???

This guy needs to read your best practices document. It REALLY needs to fall in line with that.

June 5, 2009 11:01 AM
 

Thomas Skyum said:

Great brushup on membership implementation.

Just one question: Is there any particular reason why you are using the Session and not the UnitOfWork object? In most of your demos, tutorials and documentation you state that one should use the UnitOfWork now and now the Session object?

June 6, 2009 4:51 AM
 

Emil Mesropian (DevExpress) said:

Hello All,

Hopefully this will answer some questions that have come up both on the DevExpress Channel and here on the blogs.

The PersonelManager class was not included in the initial XPO videos to avoid introducing the complexity of the engine layer and the manager layer. This kept the videos short and to-the-point. On the other hand, the XPO wrap call was demonstrated in the customer engine. The call to RegisterCustomer was there simply to demonstrate making XPO calls wrapped in another layer.

As the application progresses further, we'll provide the source code as well which should clear this up.

About using the session class... in the fifth and sixth videos of this series, we demonstrated how to implement a data layer using XPO and use UnitOfWork.

This latest video is supposed to show that while using UoW is part of our recommended scenario, it is also possible to use the session class to simplify the development process (and of course keep the video short). But as you suggested, this appears to have caused some confusion, therefore we will continue to review these issues and make sure that they strictly adhere to our best practices guidelines.

As always, feel free to let me know if you have any suggestions by dropping me a line here or by email at emilm@devexpress.com Smile

Thanks,

Emil.

June 8, 2009 1:20 PM
 

Joel Fleischman said:

>> As the application progresses further, we'll provide the source code as well which should clear this up.

Is there any time frame on when this will happen? is it a few month from now or less? we're now 2 month from the first episode.

June 9, 2009 6:06 PM
 

James Liley said:

Please don't be put off by some of these overtly over-critical and drama queen style comments. These videos are a great idea, I am personally getting a lot out of this series even with the few errors and inconsistencies. I'am sure with a little fine tuning you will work these out just fine. Keep it up.

June 11, 2009 6:01 AM
 

Rob Jackson said:

I agree with James, I'm getting a lot out of the videos!  

I get much more out of these videos than the demos that ship with DXperience.  Not that the included demos are terrible - its just that the RWA videos probably fit better with my learning style and my available time to learn new development products.  But then again, I like books with pictures! ;)

Seriously though, once I have the basics of how to use a toolset, language, etc works I'm usually off to the races.

I only wish they came at a faster rate!!!

As far as best practices go, you guys (DevExpress) should know how to use your own products better than most so please make it a point to use the very, very best practices that are applicable for the implementation of your product.  It is my opinion, and experience, that once you go down the road of presenting RWA video/presentations to your users - (folks like me) are going to prefer and rely on the RWA videos as a basis on how to use your product, thus, they become "the best practices," if you will.

I base my experience on my companies recent implementation of to training videos and presentations - our products can be rather complex to use, but the training videos help our customers out greatly.  The videos also seem to reduce support calls and help out with sales and internal training.

Just my humble opinion.

Keep up the good work and I'll keep re-upping my subscription!

June 15, 2009 4:42 PM
 

Eric Dizon said:

I am following this video series as well.   This is a good way to familiarize coders to Devexpress components.

I got lost on the CustomerEngine can you tell me what dll or object reference EngineBase related to which customerEngine was inherited ?

June 27, 2009 11:53 PM
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.