Hey, 2012/1/8 Offirmo <offirmo....@gmail.com>: > The next phase was adding authentification. I tried to follow the Auth > tutorial. Eventually, I succeeded (mostly) but it was very hard. > > As a token of my appreciation of Wt, I'm taking the time to list the > problems I encountered. This is mostly negative of course, but should > not be taken badly ;-) This is a contribution ;-)
Thanks, it's appreciated. We are taking these in account. Fortunately, it's not all as bad as it seems. > First the tutorial is hard to find. The link to it is hidden in the Wt > tutorial. I had to search "auth" whithin the page find it. It should be > given along the other tutorials in the Wt documentation page. It should > also be clearly given at the end of the Wt tutorial since it's a > logicial sequel. The tutorials would clearly benefit from having at the > end a clear list of the most important links : other tutorials, live > examples, documentation. So we wouldn't have to read the tutorial again > to find the links hidden in some paragraph. Good suggestion. I'm changing this, and also making the Wt::Auth tutorial a tutorial, in the same Wt and Wt::Dbo. > Then I had trouble including the Auth headers, until I realized that the > version in Pau Garcia's PPA doesn't include auth yet. I had to download > and compile wt latest from git. Yes, unfortunately, Wt::Auth is a very recent addition. > Then in ยง2 "Configuring authentication" Many of these comments are because it was not well indicated in the blog post, which was written ahead of the time of a first release, that the actual example used in the post is part of the Wt distribution, sitting in 'examples/feature/auth1' folder. Thus that is really the piece that was missing in your de-puzzling of the tutorial. See also: https://github.com/kdeforche/wt/tree/master/examples/feature/auth1 > The launching method (using a WServer) is totally different from the one > in the Wt tutorial (WRun). It was puzzling. Which one should be used ? > What are the differences ? This is actually explained in the wt tutorial, in the inset: WRun() is a utility method whose implementation is part of the documentation: http://www.webtoolkit.eu/wt/doc/git/reference/html/classWt_1_1WServer.html#_details > Then, executing the app, I discovered that the AUthWidget needed strings > from a messageResourceBundle. It was said nowhere. The strings that > should be declared are not listed. This is probably because you started from hangman example, which uses a slightly customized authentication view. The feature example doesn't do that and uses Wt::Auth out-of-the box. > I then found a lot of bugs, but this is for another post ;-) Please do, it is much appreciated ! Regards, koen ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest