Re: [cas-user] Re: How add a Custom OAuth20Client in CAS 5.3.X

2019-02-19 Thread Jérôme LELEU
Hi,

The XML spring configuration is now a Java configuration so you can still
add whatever pac4j clients you want by, for example, overriding the
pac4jDelegatedClientFactory.
Thanks.
Best regards,
Jérôme


Le mar. 19 févr. 2019 à 10:42, Xavier Rodríguez  a
écrit :

> Hi,
>
> Are there any way to add my new custom Client Oauth2 in CAS-server 5.3.X
> without modify the PAC4j library?
>
> I need to add my new Client-OAUTH but PAC4j only accept limited clients.
> Are there any way to Override the CAS-Server to add my new Client Oauth in
> PAC4j?
>
> Thanks!!!
>
> El divendres, 15 febrer de 2019 10:06:32 UTC+1, Xavier Rodríguez va
> escriure:
>>
>> Hi,
>>
>> I'm upgrading from CAS 4.2.3 to CAS 5.3.3. In CAS 4.2.3 I define my
>> custom oauth integration in *pac4jContext.xml*:
>>
>> 
>> 
>> 
>> https://localhost:8444/oauth-server/oauth2.0; />
>> 
>> 
>> 
>>
>> How can I do this in CAS 5.3.3?
>>
>> In this version of CAS I can activate an Oauth through:
>>
>> pac4j:
>> oauth2[0]:
>> authUrl: https://myOrg/o/oauth2/auth
>> tokenUrl: https://myOrg/o/oauth2/token
>> profileUrl: https://myOrg/services-rest/getUserInfo
>> profileAttrs:
>> attr1: attr1
>> customParams:
>> state: state
>> id: xx.yyy.zz
>> secret: 3233fdsf4343jk545m543543j
>>
>>
>> I put my Custom Oauth in /java Overlay directory. But I don't know how
>> indicate to CAS that my Class is a new Oauth client. And In what file can I
>> put my properties for my custom oauth? In the application.yml?
>>
>> Or have I to modify the pac4j-oauth library? But I prefer put my Custom
>> Oauth in Cas-Overlay.
>>
>> Any idea?
>>
>> Thanks in advance!
>>
>> - Xavier -
>>
>> --
> - 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/8a3cb3dc-3158-40f2-98c0-ff8c53408fdf%40apereo.org
> 
> .
>

-- 
- 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/CAP279Lx5E%2BLfYNgVjQ2D%2Bj3WjcE2YksLcEhL2%3D2JREbiqUJ8Pg%40mail.gmail.com.


[cas-user] Re: How add a Custom OAuth20Client in CAS 5.3.X

2019-02-19 Thread Xavier Rodríguez
Hi,

Are there any way to add my new custom Client Oauth2 in CAS-server 5.3.X 
without modify the PAC4j library?

I need to add my new Client-OAUTH but PAC4j only accept limited clients. 
Are there any way to Override the CAS-Server to add my new Client Oauth in 
PAC4j?

Thanks!!!

El divendres, 15 febrer de 2019 10:06:32 UTC+1, Xavier Rodríguez va 
escriure:
>
> Hi,
>
> I'm upgrading from CAS 4.2.3 to CAS 5.3.3. In CAS 4.2.3 I define my custom 
> oauth integration in *pac4jContext.xml*:
>
> 
> 
> 
> https://localhost:8444/oauth-server/oauth2.0; />
> 
> 
>   
>
> How can I do this in CAS 5.3.3? 
>
> In this version of CAS I can activate an Oauth through:
>
> pac4j:
> oauth2[0]:
> authUrl: https://myOrg/o/oauth2/auth
> tokenUrl: https://myOrg/o/oauth2/token
> profileUrl: https://myOrg/services-rest/getUserInfo
> profileAttrs:
> attr1: attr1
> customParams:
> state: state
> id: xx.yyy.zz
> secret: 3233fdsf4343jk545m543543j
>
>
> I put my Custom Oauth in /java Overlay directory. But I don't know how 
> indicate to CAS that my Class is a new Oauth client. And In what file can I 
> put my properties for my custom oauth? In the application.yml?
>
> Or have I to modify the pac4j-oauth library? But I prefer put my Custom 
> Oauth in Cas-Overlay.
>
> Any idea? 
>
> Thanks in advance!
>
> - Xavier -
>
>

-- 
- 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/8a3cb3dc-3158-40f2-98c0-ff8c53408fdf%40apereo.org.