CAS-5.1.0-SNAP MFA Bypass configuration property is confusing

48 views
Skip to first unread message

Philippe MARASSE

unread,
Nov 18, 2016, 6:25:19 AM11/18/16
to CAS Community
Hello,

As issues #2126 & #2127 are solved, this morning, another issue arises : Yubikey MFA is bypassed when I use LdapAuthenticationHandler (via login form), but not when I use Spnego ?? relevant cas.properties line is :

cas.authn.mfa.yubikey.bypass.authenticationHandlerName=JcifsSpnegoAuthenticationHandler

As far as I understand it should bypass MFA-Yubikey when the first auth is done via SPNEGO, and enforce MFA with another type of auth. That's what I need.

But on my test page, with login form I get this attribute : successfulAuthenticationHandlers: LdapAuthenticationHandler

with SPNEGO : successfulAuthenticationHandlers: JcifsSpnegoAuthenticationHandler, YubiKeyAuthenticationHandler

Then I modified the property to :

cas.authn.mfa.yubikey.bypass.authenticationHandlerName=LdapAuthenticationHandler

Now I have successfulAuthenticationHandlers:  YubiKeyAuthenticationHandler, LdapAuthenticationHandler whe I use login form, fine.
and successfulAuthenticationHandlers: JcifsSpnegoAuthenticationHandler with SPNEGO, perfect :-).

but IMHO, bypass configuration option behavior is inverted.

Regards.
-- 
Philippe MARASSE

Responsable pôle Infrastructures - DSIO
Centre Hospitalier Henri Laborit
CS 10587 - 370 avenue Jacques Cœur 
86021 Poitiers Cedex
Tel : 05.49.44.57.19

Misagh Moayyed

unread,
Nov 18, 2016, 10:31:25 AM11/18/16
to cas-...@apereo.org

That’s an excellent find. I suspect bypass rules don’t account for non-interactive AuthN somehow. If you can change your config to bypass MFA based on the Ldap handler, that pretty much confirms my theory.

 

File an issue either way please. (And since you’re on SNAPSHOT, let’s move this to dev)

 

--Misagh

--
- 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 cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/48552979-800b-f552-1189-db88268723d2%40ch-poitiers.fr.

Philippe MARASSE

unread,
Nov 21, 2016, 9:27:56 AM11/21/16
to cas-...@apereo.org, cas...@apereo.org
Reply all
Reply to author
Forward
0 new messages