Hi MIsagh, sorry if I'm disturbing you again.

This email is just to make you all aware of a bug (I think) about the specification of a RequestedAuthnContext element of an AuthnRequest.
It seems that pac4j requires the comparisonType to permit this operation.

In my code I have fixed this issue just by changing into Pac4jAuthenticationEventExecutionPlanConfiguration by forcing comparisonType to minimum in case of an AuthnContextClassRef is specified.


private void configureSamlClient(final Collection<BaseClient> properties) {
        ......
if (StringUtils.isNotBlank(saml.getAuthnContextClassRef())) { // this is required in order to permit pac4j to create the element RequestedAuthnContext
                        cfg.setComparisonType("minimum");
cfg.setAuthnContextClassRef(saml.getAuthnContextClassRef());
                    }
        .....
    }

BR,
F.

Il 12/07/2017 13:53, Misagh Moayyed ha scritto:

Please, could you address me to the classes of CAS that I have to dealing with?

For pac4j I think I have to change into Pac4jProperties$Saml, haven't I?


That’s on the CAS side of things, and then you want to modify Pac4jAuthenticationEventExecutionPlanConfiguration. On the pac4j side, you want to modify the SAML2ClientConfiguration and SAML2Client.

Or, you simply wait for 5.2 RC2.
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/etPan.59660db4.217acc40.56e%40unicon.net <https://groups.google.com/a/apereo.org/d/msgid/cas-user/etPan.59660db4.217acc40.56e%40unicon.net?utm_medium=email&utm_source=footer>.


--
Fabio Martelli
https://it.linkedin.com/pub/fabio-martelli/1/974/a44
http://blog.tirasa.net/author/fabio/index.html

Tirasa - Open Source Excellence
http://www.tirasa.net/index.html?pk_campaign=email&pk_kwd=fm

Apache Syncope PMC
http://people.apache.org/~fmartelli/

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
--- You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/ca7e14ac-9184-1afe-d711-7115638bb3e6%40gmail.com.

Reply via email to