{"id":21984641,"url":"https://github.com/mrts/vaadin-javaee-jaas-example","last_synced_at":"2026-03-05T22:08:07.746Z","repository":{"id":66661241,"uuid":"84645822","full_name":"mrts/vaadin-javaee-jaas-example","owner":"mrts","description":"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","archived":false,"fork":false,"pushed_at":"2017-03-12T11:35:18.000Z","size":32,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-08T06:33:59.610Z","etag":null,"topics":["cdi","jaas","javaee","vaadin","vaadin-cdi-addon","vaadin-loginform"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-11T11:40:28.000Z","updated_at":"2023-05-26T05:57:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2eb525f-d199-42c1-9c0b-12a167423024","html_url":"https://github.com/mrts/vaadin-javaee-jaas-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrts/vaadin-javaee-jaas-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrts%2Fvaadin-javaee-jaas-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrts%2Fvaadin-javaee-jaas-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrts%2Fvaadin-javaee-jaas-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrts%2Fvaadin-javaee-jaas-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrts","download_url":"https://codeload.github.com/mrts/vaadin-javaee-jaas-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrts%2Fvaadin-javaee-jaas-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30152074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T21:15:50.531Z","status":"ssl_error","status_checked_at":"2026-03-05T21:15:11.173Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cdi","jaas","javaee","vaadin","vaadin-cdi-addon","vaadin-loginform"],"created_at":"2024-11-29T18:10:36.029Z","updated_at":"2026-03-05T22:08:07.721Z","avatar_url":"https://github.com/mrts.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vaadin-javaee-jaas-example\n\nAn example Vaadin 8 Java EE application that demonstrates how to authenticate\nand authorize users using JAAS and Vaadin CDI add-on, login form and view\nnavigator.\n\nTested with WildFly 10.1, but should work equally well with other Java EE 7\napplication servers (and probably Java EE 6 application servers once you\ndowngrade the `javaee-api` Maven dependency; you may also need to add\n`web.xml` and more configuration).\n\n## Adding users\n\nWildFly has a security realm called *ApplicationRealm* configured by default.\n\nTo add a new user to *ApplicationRealm* execute the `add-user.{bat,sh}` script\nwithin the `bin` folder of your WildFly installation and enter the requested\ninformation. Choose *b) Application user* and add the user to the group\n*users*.\n\nYou may need to restart WildFly if it is currently running to make it pick up\nthe new users.\n\n## Building and running\n\nYou need Maven and Java 8 JDK to build and run the application.\n\nBuild the application WAR with `mvn package`, deploy it from\n`target/jaasexample-1.0-SNAPSHOT.war` to the application server and open\n\u003chttp://localhost:8080/jaasexample-1.0-SNAPSHOT/\u003e in the browser.\n\n## References\n\n- [Stack Overflow question about Vaadin Java EE authentication and authorization](http://stackoverflow.com/questions/15619864/vaadin-authentication-and-auhorization)\n- [Vaadin+JAAS example that works with JBoss](https://github.com/mstahv/vaadin-cdi-jaas-jbossas-example)\n- [Using Vaadin CDI with JAAS authentication](https://vaadin.com/blog/-/blogs/using-vaadin-cdi-with-jaas-authentication) blog post and [wiki page](https://vaadin.com/wiki/-/wiki/Main/Using+Vaadin+CDI+with+JAAS+authentication)\n- [Creating Secure Vaadin Applications using JEE6](https://vaadin.com/wiki/-/wiki/Main/Creating+Secure+Vaadin+Applications+using+JEE6) for Vaadin 6, less relevant for Vaadin 8, but thorough and gives good background information on JAAS\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrts%2Fvaadin-javaee-jaas-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrts%2Fvaadin-javaee-jaas-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrts%2Fvaadin-javaee-jaas-example/lists"}