Setting up p:reuseCondition-ref
Marko VRACAR
marko.vracar at programmierfabrik.at
Tue Nov 23 16:32:20 UTC 2021
Hello shibboleth developers,
we are trying to wire up the field p:reuseCondition-ref with our custom
code. What we have tried is the following:
Custom logic we want to use:
package org.package;
import java.util.function.Predicate;
import org.opensaml.profile.context.ProfileRequestContext;
public class StpUtil {
public Predicate<ProfileRequestContext>
checkIfReactivationFunction() {
return (ProfileRequestContext profileContext)-> {
System.out.println();
return true;
}
}
}
In idp.properties we have the following value:
idp.authn.StpAuth.reuseCondition=org.package.StpUtil
authn-system.xml:
<bean p:id="authn/StpAuth" parent="shibboleth.AuthenticationFlow"
...
p:reuseCondition-ref="%{idp.authn.StpAuth.reuseCondition%:}'.checkIfReactivationFunction())}"
...
<property name="supportedPrincipalsByString">
<bean parent="shibboleth.CommaDelimStringArray"
c:_0="#{'%{idp.authn.StpAuth.supportedPrincipals:}'.trim()}" />
</property>
</bean>
We are reciving following error:
JNDI lookup for name [spring.liveBeansView.mbeanDomain] threw
NamingException with message: Name [spring.liveBeansView.mbeanDomain] is
not bound in this Context. Unable to find
[spring.liveBeansView.mbeanDomain].. Returning null.
Can you provide us an idea where we went wrong with our configuration?
Thank you in advance.
Freundliche Grüße
Ing. Marko VRACAR
Systems Engineering und Projekt Management
PROGRAMMIERFABRIK GmbH
4020 Linz, Goethestraße 84
Tel: +43 732 601000 69185
Fax: +43 732 601000 69111
mailto:marko.vracar at programmierfabrik.at
http://www.programmierfabrik.at
PROGRAMMIERFABRIK GmbH, 4232 Hagenberg im Mühlkreis, Softwarepark 21, FN
162454d, Landesgericht Linz
Der Austausch von Nachrichten mit o.a. Absender via e-mail dient ausschließlich Informationszwecken. Rechtsgeschäftliche Erklärungen dürfen über dieses Medium nicht ausgetauscht werden.
Correspondence with a.m. sender via e-mail is only for information purposes. This medium is not to be used for the exchange of legally-binding communications.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20211123/dbe61643/attachment-0001.htm>
More information about the dev
mailing list