YUbikey MFA and customized validation URLs

79 views
Skip to first unread message

Philippe MARASSE

unread,
Sep 13, 2016, 11:52:42 AM9/13/16
to cas-...@apereo.org
Folks,

Unless I'm mistaken, I've not seen any configuration for a customized
validation URL, all URLs are hardcoded into Yubikey client class and
I've not seen any CAS configuration value related to validation URLs.

So, how to customize these URLs ?

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,
Sep 13, 2016, 12:35:21 PM9/13/16
to cas-...@apereo.org, Philippe MARASSE

There is nothing that allows to modify the validation urls. They are built into the Yubikey API. 


-- 
Misagh

From: Philippe MARASSE <philippe...@ch-poitiers.fr>
Reply: Philippe MARASSE <philippe...@ch-poitiers.fr>
Date: September 13, 2016 at 8:22:48 PM
To: cas-...@apereo.org <cas-...@apereo.org>
Subject:  [cas-user] YUbikey MFA and customized validation URLs

Folks,

Unless I'm mistaken, I've not seen any configuration for a customized
validation URL, all URLs are hardcoded into Yubikey client class and
I've not seen any CAS configuration value related to validation URLs.

So, how to customize these URLs ?

Regards.

-- br/>Philippe MARASSE <

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


-- br/>You received this message because you are subscribed tto 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 post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/db15e0e4-a807-d724-c1dc-b7e1e4f8cc4c%40ch-poitiers.fr.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Philippe MARASSE

unread,
Sep 14, 2016, 3:27:54 AM9/14/16
to cas-...@apereo.org
I've seen : YubicoClient.setWsapiUrls(String[] wsapi), by default, the property is valued with :

protected String wsapi_urls[] = {
               "https://api.yubico.com/wsapi/2.0/verify",
               "https://api2.yubico.com/wsapi/2.0/verify",
               "https://api3.yubico.com/wsapi/2.0/verify",
               "https://api4.yubico.com/wsapi/2.0/verify",
               "https://api5.yubico.com/wsapi/2.0/verify"
            };

I think, it's the right property that I need to change, but for now, there is no configuration entry in CAS to do that.

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,
Sep 14, 2016, 3:49:14 AM9/14/16
to cas-...@apereo.org, Philippe MARASSE

Yes, all valid statements. 


I am curious; what’s your case for modifying the validation URLs? Do you wish to disable a certain API version? 

--
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 post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

Philippe MARASSE

unread,
Sep 14, 2016, 6:30:27 AM9/14/16
to Misagh Moayyed, cas-...@apereo.org
Actually, we're testing a few Yubikeys with customized cryptographic keys, so public Yubico API's cannot validate our tokens. I've set up a local validation server that works the very same ways Yubico's one following this :

https://developers.yubico.com/Software_Projects/YubiKey_OTP/YubiCloud_Validation_Servers/

So I need to tell yubico client to use my validation server instead of public ones.

Regards.

Dmitriy Kopylenko

unread,
Sep 14, 2016, 6:32:48 AM9/14/16
to Philippe MARASSE, Misagh Moayyed, cas-...@apereo.org
That's a valid use case, IMO. I think we need to open up that config option. If you could file an issues on Github, that would be terrific. 

D. 

Philippe MARASSE

unread,
Sep 14, 2016, 7:54:24 AM9/14/16
to Dmitriy Kopylenko, Misagh Moayyed, cas-...@apereo.org

Philippe MARASSE

unread,
Sep 27, 2016, 12:21:15 PM9/27/16
to cas-...@apereo.org
Tested OK with 5.0.0 RC3-SNAPSHOT following the new configuration option cas.authn.mfa.yubikey.apiUrls
Reply all
Reply to author
Forward
0 new messages