-
1. Re: How to access configuration of custom role decoder
dlofthouse Jun 6, 2018 4:37 AM (in response to pmm)Currently your custom component should implement the interface 'org.wildfly.extension.elytron.Configurable'.
public interface Configurable {
void initialize(final Map<String, String> configuration);
}
This is part of the WildFly Elytron subsystem so can be found in org.wildfly.core:wildfly-elytron-integration
The initialize method will be called and the configured properties passed in.
We are currently making a change where the interface will be optional so instead we will just detect if the custom component contains an initialize method that takes a Map as an argument and will automatically use that.
-
2. Re: How to access configuration of custom role decoder
pmm Jun 6, 2018 6:51 AM (in response to dlofthouse)dlofthouse wrote:
Currently your custom component should implement the interface 'org.wildfly.extension.elytron.Configurable'.
public interface Configurable {
void initialize(final Map<String, String> configuration);
}
This is part of the WildFly Elytron subsystem so can be found in org.wildfly.core:wildfly-elytron-integration
The initialize method will be called and the configured properties passed in.
We are currently making a change where the interface will be optional so instead we will just detect if the custom component contains an initialize method that takes a Map as an argument and will automatically use that.
Is there somewhere some documentation that I can read up on? I found quite some information on using the built in configuration but not a whole lot on extending.
-
3. Re: How to access configuration of custom role decoder
dlofthouse Jun 7, 2018 9:52 AM (in response to pmm)1 of 1 people found this helpfulMy colleague has just put together this blog post for custom security realms, the information about configuration of a custom component is applicable to all of the custom component types.