[JBoss JIRA] (ELY-1745) The AvailableRealmsCallback should not result in a NPE if there is no mechanism configuration.
by Farah Juma (Jira)
[ https://issues.jboss.org/browse/ELY-1745?page=com.atlassian.jira.plugin.s... ]
Farah Juma updated ELY-1745:
----------------------------
Fix Version/s: 1.10.0.CR2
(was: 1.10.0.CR1)
> The AvailableRealmsCallback should not result in a NPE if there is no mechanism configuration.
> ----------------------------------------------------------------------------------------------
>
> Key: ELY-1745
> URL: https://issues.jboss.org/browse/ELY-1745
> Project: WildFly Elytron
> Issue Type: Bug
> Components: API / SPI
> Reporter: Darran Lofthouse
> Assignee: Justin Cook
> Priority: Major
> Fix For: 1.10.0.CR2
>
>
> The NPE is due to the following code: -
> {noformat}
> } else if (callback instanceof AvailableRealmsCallback) {
> Collection<String> names = stateRef.get().getMechanismConfiguration().getMechanismRealmNames();
> if (log.isTraceEnabled()) {
> log.tracef("Handling AvailableRealmsCallback: realms = [%s]", String.join(", ", names));
> }
> if (! names.isEmpty()) {
> ((AvailableRealmsCallback) callback).setRealmNames(names.toArray(new String[names.size()]));
> }
> handleOne(callbacks, idx + 1);
> {noformat}
> If mechanism configuration is mandatory this should report an appropriate error, if not it should fallback to specifying an empty list.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 11 months
[JBoss JIRA] (ELY-1829) Need to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm
by Ashley Abdel-Sayed (Jira)
[ https://issues.jboss.org/browse/ELY-1829?page=com.atlassian.jira.plugin.s... ]
Ashley Abdel-Sayed moved WFLY-12203 to ELY-1829:
------------------------------------------------
Project: WildFly Elytron (was: WildFly)
Key: ELY-1829 (was: WFLY-12203)
Component/s: (was: Security)
> Need to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm
> ------------------------------------------------------------------------------------------------------------
>
> Key: ELY-1829
> URL: https://issues.jboss.org/browse/ELY-1829
> Project: WildFly Elytron
> Issue Type: Feature Request
> Reporter: Ashley Abdel-Sayed
> Priority: Major
>
> It is requirement to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm .
> --------------------------------------
> <security-domain name="TestDomain" default-realm="TestAggRealm" permission-mapper="default-permission-mapper" pre-realm-principal-transformer="test-transformer" security-event-listener="local-audit">
> <realm name="TestAggRealm" role-decoder="from-roles-attribute"/>
> </security-domain>
> .
> .
> <aggregate-realm name="TestAggRealm" authentication-realm="TestLdapRealm" authorization-realm="Test_Auth_LdapRealm"/>
> --------------------------------------
> I think to achieve this there need to be something like "mid-realm-principal-transformer" in <aggregate-realm> only .
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 11 months
[JBoss JIRA] (WFLY-12202) Need to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm
by Ashley Abdel-Sayed (Jira)
[ https://issues.jboss.org/browse/WFLY-12202?page=com.atlassian.jira.plugin... ]
Ashley Abdel-Sayed moved WFCORE-4527 to WFLY-12202:
---------------------------------------------------
Project: WildFly (was: WildFly Core)
Key: WFLY-12202 (was: WFCORE-4527)
Component/s: Security
(was: Security)
> Need to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm
> ------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-12202
> URL: https://issues.jboss.org/browse/WFLY-12202
> Project: WildFly
> Issue Type: Feature Request
> Components: Security
> Reporter: Ashley Abdel-Sayed
> Priority: Major
>
> It is requirement to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm .
> --------------------------------------
> <security-domain name="TestDomain" default-realm="TestAggRealm" permission-mapper="default-permission-mapper" pre-realm-principal-transformer="test-transformer" security-event-listener="local-audit">
> <realm name="TestAggRealm" role-decoder="from-roles-attribute"/>
> </security-domain>
> .
> .
> <aggregate-realm name="TestAggRealm" authentication-realm="TestLdapRealm" authorization-realm="Test_Auth_LdapRealm"/>
> --------------------------------------
> I think to achieve this there need to be something like "mid-realm-principal-transformer" in <aggregate-realm> only .
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 11 months
[JBoss JIRA] (WFLY-12203) Need to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm
by Ashley Abdel-Sayed (Jira)
Ashley Abdel-Sayed created WFLY-12203:
-----------------------------------------
Summary: Need to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm
Key: WFLY-12203
URL: https://issues.jboss.org/browse/WFLY-12203
Project: WildFly
Issue Type: Feature Request
Components: Security
Reporter: Ashley Abdel-Sayed
It is requirement to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm .
--------------------------------------
<security-domain name="TestDomain" default-realm="TestAggRealm" permission-mapper="default-permission-mapper" pre-realm-principal-transformer="test-transformer" security-event-listener="local-audit">
<realm name="TestAggRealm" role-decoder="from-roles-attribute"/>
</security-domain>
.
.
<aggregate-realm name="TestAggRealm" authentication-realm="TestLdapRealm" authorization-realm="Test_Auth_LdapRealm"/>
--------------------------------------
I think to achieve this there need to be something like "mid-realm-principal-transformer" in <aggregate-realm> only .
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 11 months
[JBoss JIRA] (WFCORE-4527) Need to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm
by Ashley Abdel-Sayed (Jira)
Ashley Abdel-Sayed created WFCORE-4527:
------------------------------------------
Summary: Need to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm
Key: WFCORE-4527
URL: https://issues.jboss.org/browse/WFCORE-4527
Project: WildFly Core
Issue Type: Feature Request
Components: Security
Reporter: Ashley Abdel-Sayed
It is requirement to use principal-transformer in aggregate-realm in between authentication-realm and authorization-realm .
--------------------------------------
<security-domain name="TestDomain" default-realm="TestAggRealm" permission-mapper="default-permission-mapper" pre-realm-principal-transformer="test-transformer" security-event-listener="local-audit">
<realm name="TestAggRealm" role-decoder="from-roles-attribute"/>
</security-domain>
.
.
<aggregate-realm name="TestAggRealm" authentication-realm="TestLdapRealm" authorization-realm="Test_Auth_LdapRealm"/>
--------------------------------------
I think to achieve this there need to be something like "mid-realm-principal-transformer" in <aggregate-realm> only .
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 11 months