Skip to content

Simple web archive to show Keycloak work with Java Servlet Filter Adapter

Notifications You must be signed in to change notification settings

MaratKarimov/keycloak-saml-simple-war

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

keycloak-saml-simple-war

Simple web archive to show Keycloak work with Java Servlet Filter Adapter

Build app

To build app:

$ mvn clean package

Deploy war file

To start web server with builded web archive you can use Payara Micro, for example v.4.1.1.164

$ java -jar payara-micro-4.1.1.164.jar --deploy simplewar.war

Run Keycloak server

To start Keycloak server, you can use Wildfly Swarm Keycloak server, for example v.2017.1:

$ java -Dswarm.port.offset=100 -jar keycloak-2017.1-swarm.jar

After this you must create new user with password on this form: http://localhost:8180/auth

Import Keycloak realm

Upload src/main/resources/demosaml.json to form: http://localhost:8180/auth/admin/master/console/#/create/realm

Test

If you open http://localhost:8080/secured, you must be redirect to Keycloak auth form. After you fill it with 'admin'/'password', you must be redirected to http://localhost:8080/secured.

About

Simple web archive to show Keycloak work with Java Servlet Filter Adapter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages