jetty-web.xml

29 lines | 1.507 kB Blame History Raw Download
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
    <Get name="securityHandler">
        <Set name="authenticator">
            <New class="org.keycloak.adapters.jetty.KeycloakJettyAuthenticator">
                <!--
                <Set name="adapterConfig">
                    <New class="org.keycloak.representations.adapters.config.AdapterConfig">
                        <Set name="realm">tomcat</Set>
                        <Set name="resource">customer-portal</Set>
                        <Set name="authServerUrl">http://localhost:8081/auth</Set>
                        <Set name="sslRequired">external</Set>
                        <Set name="credentials">
                            <Map>
                                <Entry>
                                    <Item>secret</Item>
                                    <Item>password</Item>
                                </Entry>
                            </Map>
                        </Set>
                        <Set name="realmKey">MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrVrCuTtArbgaZzL1hvh0xtL5mc7o0NqPVnYXkLvgcwiC3BjLGw1tGEGoJaXDuSaRllobm53JBhjx33UNv+5z/UMG4kytBWxheNVKnL6GgqlNabMaFfPLPCF8kAgKnsi79NMo+n6KnSY8YeUmec/p2vjO2NjsSAVcWEQMVhJ31LwIDAQAB</Set>
                    </New>
                </Set>
                -->
            </New>
        </Set>
    </Get>
</Configure>