Giter VIP home page Giter VIP logo

vaadin-javaee-jaas-example's Introduction

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

vaadin-javaee-jaas-example's People

Contributors

mrts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

tatulund

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.