Skip to content

Example Vaadin 8 Java EE application that demonstrates how to authenticate and authorize users using JAAS and Vaadin CDI add-on, login form and view navigator

License

Notifications You must be signed in to change notification settings

mrts/vaadin-javaee-jaas-example

Repository files navigation

vaadin-javaee-jaas-example

An example Vaadin 8 Java EE application that demonstrates how to authenticate and authorize users using JAAS and Vaadin CDI add-on, login form and view navigator.

Tested with WildFly 10.1, but should work equally well with other Java EE 7 application servers (and probably Java EE 6 application servers once you downgrade the javaee-api Maven dependency; you may also need to add web.xml and more configuration).

Adding users

WildFly has a security realm called ApplicationRealm configured by default.

To add a new user to ApplicationRealm execute the add-user.{bat,sh} script within the bin folder of your WildFly installation and enter the requested information. Choose b) Application user and add the user to the group users.

You may need to restart WildFly if it is currently running to make it pick up the new users.

Building and running

You need Maven and Java 8 JDK to build and run the application.

Build the application WAR with mvn package, deploy it from target/jaasexample-1.0-SNAPSHOT.war to the application server and open http://localhost:8080/jaasexample-1.0-SNAPSHOT/ in the browser.

References

About

Example Vaadin 8 Java EE application that demonstrates how to authenticate and authorize users using JAAS and Vaadin CDI add-on, login form and view navigator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published