Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
<?xml version="1.0" encoding="UTF-8"?>
<server description="defaultServer">
<!-- Enable features -->
<featureManager>
<feature>cdi-2.0</feature>
<feature>jaxb-2.2</feature>
<feature>jpa-2.2</feature>
<feature>jsf-2.3</feature>
<feature>jaxrs-2.1</feature>
<feature>ejbLite-3.2</feature>
<feature>socialLogin-1.0</feature>
<feature>transportSecurity-1.0</feature>
<feature>appSecurity-3.0</feature>
<feature>jwt-1.0</feature>
<feature>mpJwt-1.1</feature>
<feature>mpConfig-1.3</feature>
</featureManager>
<!-- trust JDK’s default truststore -->
<ssl id="defaultSSLConfig" trustDefaultCerts="true" />
<oidcLogin
id="liberty-aad-oidc-javaeecafe" clientId="${client.id}"
clientSecret="${client.secret}"
discoveryEndpoint="https://login.microsoftonline.com/${tenant.id}/v2.0/.well-known/openid-configuration"
signatureAlgorithm="RS256"
userNameAttribute="preferred_username" />
<!-- JWT consumer -->
<mpJwt id="jwtUserConsumer"
jwksUri="https://login.microsoftonline.com/${tenant.id}/discovery/v2.0/keys"
issuer="https://login.microsoftonline.com/${tenant.id}/v2.0"
audiences="${client.id}"
userNameAttribute="preferred_username"
authFilterRef="mpJwtAuthFilter" />
<!-- JWT auth filter -->
<authFilter id="mpJwtAuthFilter">
<requestUrl id="myRequestUrl" urlPattern="/rest" matchType="contains"/>
</authFilter>
<httpEndpoint id="defaultHttpEndpoint" host="*"
httpPort="9080" httpsPort="9443" />
<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true" />
<dataSource id="JavaEECafeDB"
jdbcDriverRef="postgresql-driver" jndiName="jdbc/JavaEECafeDB"
transactional="true" type="javax.sql.ConnectionPoolDataSource">
<properties databaseName="postgres" portNumber="5432"
serverName="${postgresql.server.name}" user="${postgresql.user}"
password="${postgresql.password}" />
</dataSource>
<jdbcDriver id="postgresql-driver"
javax.sql.ConnectionPoolDataSource="org.postgresql.ds.PGConnectionPoolDataSource"
javax.sql.XADataSource="org.postgresql.xa.PGXADataSource"
libraryRef="postgresql-library" />
<library id="postgresql-library">
<fileset dir="${shared.resource.dir}"
id="PostgreSQLFileset" includes="postgresql-42.3.3.jar" />
</library>
<webApplication id="javaee-cafe"
location="${server.config.dir}/apps/javaee-cafe.war">
<application-bnd>
<security-role name="users">
<special-subject type="ALL_AUTHENTICATED_USERS" />
</security-role>
</application-bnd>
</webApplication>
</server>