Skip to content

Commit

Permalink
Add missing simple-role-decoder to ejb-http example
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicarod7 committed Jan 18, 2023
1 parent 2140f90 commit 7667303
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ejb-http/configure-elytron.cli
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ batch
/subsystem=elytron/filesystem-realm=fsRealm:add-identity-attribute(identity=quickstartUser, name=Roles, value=[guest])

# Configure the security domain using the filesystem realm
/subsystem=elytron/security-domain=fsSD:add(realms=[{realm=fsRealm, role-decoder=from-roles-attribute}], default-realm=fsRealm,permission-mapper=default-permission-mapper)
/subsystem=elytron/security-domain=fsSD:add(realms=[{realm=fsRealm}], default-realm=fsRealm,permission-mapper=default-permission-mapper)

# Configure the http-authentication-factory
/subsystem=elytron/http-authentication-factory=example-http-auth:add(http-server-mechanism-factory=global,security-domain=fsSD,mechanism-configurations=[{mechanism-name=BASIC,mechanism-realm-configurations=[{realm-name=fsRealm}]}])
Expand Down
13 changes: 9 additions & 4 deletions ejb-http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
<version>2.0.0.Alpha1-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

<version.org.apache.maven.plugins.maven-ejb-plugins>3.2</version.org.apache.maven.plugins.maven-ejb-plugins>
<version.org.apache.maven.plugins.maven-ejb-plugins>3.2.1</version.org.apache.maven.plugins.maven-ejb-plugins>
<version.org.codehaus.mojo.exec-maven-plugin>3.1.0</version.org.codehaus.mojo.exec-maven-plugin>
<version.org.wildfly.plugins.wildfly-maven-plugin>4.0.0.Final</version.org.wildfly.plugins.wildfly-maven-plugin>

<version.wildfly>27.0.1.Final</version.wildfly>
</properties>
Expand Down Expand Up @@ -57,10 +59,12 @@
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.org.wildfly.plugins.wildfly-maven-plugin}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<version>${version.org.apache.maven.plugins.maven-ejb-plugins}</version>
<configuration>
<ejbVersion>${version.org.apache.maven.plugins.maven-ejb-plugins}</ejbVersion>
<generateClient>true</generateClient>
Expand All @@ -70,14 +74,15 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${version.org.codehaus.mojo.exec-maven-plugin}</version>
<configuration>
<executable>java</executable>
<workingDirectory>${project.build.directory}/exec-working-directory</workingDirectory>
<arguments>
<!-- automatically creates the classpath using all project dependencies,
also adding the project build directory -->
<argument>-classpath</argument>
<classpath></classpath>
<classpath/>
<argument>org.wildfly.security.examples.RemoteClient</argument>
</arguments>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion ejb-http/src/main/resources/wildfly-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<credential-store name="mycredstore">
<attributes>
<attribute name="keyStoreType" value="JCEKS"/>
<attribute name="location" value="/PATH/TO/mycredstore.cs"></attribute>
<attribute name="location" value="/PATH/TO/mycredstore.cs"/>
</attributes>
<protection-parameter-credentials>
<clear-password password="StorePassword"/>
Expand Down

0 comments on commit 7667303

Please sign in to comment.