Hi,

I would create a configuration class (@Configuration), autowire the
"builtClients"
bean inside it and at initialization (@PostContruct), add your new client:
builtClients.getClients().add(newclient).

You can even submit your new client as a contribution to the pac4j library.

Thanks.
Best regards,
Jérôme


On Thu, Jan 11, 2018 at 6:19 PM, FritzTheWonderMutt <
fritzthewonderm...@gmail.com> wrote:

> I need to add Steam auth to our CAS 5.1.7 implementation, but Steam only
> offers OpenId2.
>
> I see that the Pac4j code has an older Yahoo OpenId client that I could
> use as a template:
>
> https://github.com/pac4j/pac4j/blob/master/pac4j-openid/src/main/java/org/
> pac4j/openid/client/YahooOpenIdClient.java
>
>
>
> And i found that on line 414 of 
> org.apereo.cas.support.pac4j.config.support.authentication.Pac4jAuthenticationEventExecutionPlanConfiguration
>  the clients are built and added to the ClientAuthenticationHandler.
>
>
> The question is, what is the best way to add a new OpenId2 client into the
> pac4j ClientAuthenticationHandler.clients?
>
> --
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> 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+unsubscr...@apereo.org.
> To view this discussion on the web visit https://groups.google.com/a/
> apereo.org/d/msgid/cas-user/ca2f7c49-14d7-461c-94d8-
> 3b04baa7b5b2%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/ca2f7c49-14d7-461c-94d8-3b04baa7b5b2%40apereo.org?utm_medium=email&utm_source=footer>
> .
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAP279Ly5yPaKuhrmkKg1R2yqry_VwYuetThCSz6rBvboac6M0w%40mail.gmail.com.

Reply via email to