Skip to content

Instantly share code, notes, and snippets.

View mkuehle's full-sized avatar
🏠
Working from home

Markus Kühle mkuehle

🏠
Working from home
View GitHub Profile
@mkuehle
mkuehle / create-wildfly-application-user.sh
Last active October 19, 2016 09:50
Java EE WildFly Basic Authentication - WildFly Application User erstellen
MacBook-Markus:~ Markus$ wildfly-10.0.0.Final/bin/add-user.sh
What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a): b
Enter the details of the new user to add.
Using realm 'ApplicationRealm' as discovered from the existing property files.
Username : markus
@mkuehle
mkuehle / web.xml
Last active October 19, 2016 09:49
Java EE WildFly Basic Authentication web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<security-constraint>
<web-resource-collection>
<web-resource-name>HtmlAuth</web-resource-name>
<description>application security constraints</description>
<url-pattern>/*</url-pattern>