Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

users/roles/permissions... and more!

Cesar Lopez
1 decade ago Oct 05, 2010 4:34pm
Kim Leppänen
1 decade ago Oct 06, 2010 4:37am
Henri Sara
1 decade ago Oct 06, 2010 7:35am

Cesar Lopez: Do you guys know any example where I can see authentication/authorization used with vaadin?

I need something like this:

User -> belogs to a -> Group
Group -> has many -> Permissions

What I want to achieve is for instance:

If the user X belongs to group Y then the user can see just a,b,c menus....

At least some users build on Spring Security to implement this - doing authentication etc. with Spring security and then asking it for roles, permissions etc. when deciding what to show.

There are examples using Spring security in Vaadin applications (google for "vaadin spring security" or search on the forum), although most of them do not go into detail about what to do after the initial authentication, and do not provide customized versions of the Spring security authentication processing and exception translation filters that would make such use more seamless. There would be room for a nice integration library with such filters and possibly links to view management, but I haven't had the time to dig deeper into this.

Cesar Lopez
1 decade ago Oct 06, 2010 6:13pm
Kim Leppänen
1 decade ago Oct 06, 2010 7:18pm

Cesar Lopez: @Kim: Have you used, personally, the appfoundation... it is stable and functional?

Yes, I've used AppFoundation, as I am the author of the add-on :) The add-on is fairly stable, there haven't been any major changes in a while. I would believe it to be functional and if you find there is room for improvement, I'm more than happy to receive feedback and suggestions for improvement. AppFoundation is currently the third most downloaded add-on, with over 900 downloads. The add-on is extensively tested, unit tests covering over 96% of the code base.

Cesar Lopez
1 decade ago Oct 06, 2010 8:42pm