This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"outcome" => "success", | |
"result" => { | |
"description" => "The Elytron Subsystem", | |
"attributes" => {}, | |
"operations" => undefined, | |
"notifications" => undefined, | |
"children" => { | |
"configurable-sasl-server-factory" => { | |
"description" => "A sasl server factory definition where the sasl server factory is an aggregation of other sasl server factories.", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[standalone@localhost:9990 /] ./subsystem=elytron/properties-realm=*:read-resource-description | |
{ | |
"outcome" => "success", | |
"result" => [{ | |
"address" => [ | |
("subsystem" => "elytron"), | |
("properties-realm" => "*") | |
], | |
"outcome" => "success", | |
"result" => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0m[31m12:10:38,054 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.undertow-test-server: org.jboss.msc.service.StartException in service jboss.undertow-test-server: Failed to start service | |
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1919) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) | |
at java.lang.Thread.run(Thread.java:745) | |
Caused by: java.lang.RuntimeException: java.lang.NullPointerException | |
at io.undertow.Undertow.start(Undertow.java:203) | |
at org.wildfly.test.undertow.UndertowService.start(UndertowService.java:54) | |
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Ser227viceControllerImpl.java:1963) | |
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1896) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Client Cert authentication with fallback to username / password authentication. | |
# Paths | |
./path=elytron.project:add(path=/home/darranl/src/wildfly10/wildfly-elytron) | |
./path=elytron.project.jks:add(path=src/test/resources/ca/jks, relative-to=elytron.project) | |
./path=elytron.project.properties:add(path=src/test/resources/org/wildfly/security/auth/realm, relative-to=elytron.project) | |
# KeyStores |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.wildfly.security.auth.server.IdentityCredentials; | |
import org.wildfly.security.auth.server.SecurityDomain; | |
import org.wildfly.security.auth.server.SecurityIdentity; | |
import org.wildfly.security.credential.PasswordCredential; | |
import org.wildfly.security.password.interfaces.ClearPassword; | |
SecurityIdentity securityIdentity = null; | |
ClearPassword password = null; | |
// Obtain the SecurityDomain for the currPent deployment, will return null if one not associated. | |
// Calling code will require the permissions org.wildfly.security.permission.ElytronPermission("getSecurityDomain") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2017 Red Hat, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[standalone@localhost:9990 /] ./subsystem=undertow/application-security-domain=*:read-resource-description | |
{ | |
"outcome" => "success", | |
"result" => [{ | |
"address" => [ | |
("subsystem" => "undertow"), | |
("application-security-domain" => "*") | |
], | |
"outcome" => "success", | |
"result" => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[standalone@localhost:9990 /] ./subsystem=elytron/aggregate-providers=*:read-resource-description | |
{ | |
"outcome" => "success", | |
"result" => [{ | |
"address" => [ | |
("subsystem" => "elytron"), | |
("aggregate-providers" => "*") | |
], | |
"outcome" => "success", | |
"result" => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<server xmlns="urn:jboss:domain:14.0"> | |
<extensions> | |
<extension module="org.jboss.as.deployment-scanner"/> | |
<extension module="org.jboss.as.ee"/> | |
<extension module="org.jboss.as.naming"/> | |
<extension module="org.jboss.as.remoting"/> | |
<extension module="org.wildfly.extension.io"/> | |
<extension module="org.wildfly.extension.undertow"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<server xmlns="urn:jboss:domain:14.0"> | |
<extensions> | |
<extension module="org.jboss.as.deployment-scanner"/> | |
<extension module="org.jboss.as.ee"/> | |
<extension module="org.jboss.as.naming"/> | |
<extension module="org.wildfly.extension.elytron"/> | |
<extension module="org.wildfly.extension.io"/> | |
<extension module="org.wildfly.extension.undertow"/> |