Hey guys,

How can I configure the pac4j readTimeout through the cas configuration?

I keep getting timeout exceptions when trying to delegated auth:

 2019-07-22 16:44:57,370 DEBUG [org.pac4j.oidc.client.OidcClient] - 
<Credentials validation took: 9095 ms>
aod_cas.1.pve7vht5lqc6@ptzolov-leader    | 2019-07-22 16:44:57,372 INFO 
[org.apereo.cas.web.flow.DelegatedClientAuthenticationAction] - 
<java.net.SocketTimeoutException: Read timed out>
aod_cas.1.pve7vht5lqc6@ptzolov-leader    | 
org.pac4j.core.exception.TechnicalException: 
java.net.SocketTimeoutException: Read timed out
aod_cas.1.pve7vht5lqc6@ptzolov-leader    | at 
org.pac4j.oidc.credentials.authenticator.OidcAuthenticator.validate(OidcAuthenticator.java:159)
 
~[pac4j-oidc-3.6.1.jar!/:?]
aod_cas.1.pve7vht5lqc6@ptzolov-leader    | at 
org.pac4j.oidc.credentials.authenticator.OidcAuthenticator.validate(OidcAuthenticator.java:35)
 
~[pac4j-oidc-3.6.1.jar!/:?]
aod_cas.1.pve7vht5lqc6@ptzolov-leader    | at 
org.pac4j.core.client.BaseClient.retrieveCredentials(BaseClient.java:71) 
~[pac4j-core-3.6.1.jar!/:?]
aod_cas.1.pve7vht5lqc6@ptzolov-leader    | at 
org.pac4j.core.client.IndirectClient.getCredentials(IndirectClient.java:140) 
~[pac4j-core-3.6.1.jar!/:?]
aod_cas.1.pve7vht5lqc6@ptzolov-leader    | at 
org.apereo.cas.web.flow.DelegatedClientAuthenticationAction.getCredentialsFromDelegatedClient(DelegatedClientAuthenticationAction.java:277)
 
~[cas-server-support-pac4j-webflow-6.0.3.jar!


The OIDClient object I have is:
<Created client [#OidcClient# | name: OpenIDTest | callbackUrl: null | 
callbackUrlResolver: 
org.pac4j.core.http.callback.PathParameterCallbackUrlResolver@da34eb0 | 
ajaxRequestResolver: null | redirectActionBuilder: null | 
credentialsExtractor: null | authenticator: null | profileCreator: 
org.pac4j.core.profile.creator.AuthenticatorProfileCreator@785a4557 | 
logoutActionBuilder: org.pac4j.core.logout.NoLogoutActionBuilder@2bf3ec4 | 
authorizationGenerators: [] | configuration: #OidcConfiguration# | 
clientId: dhtest1 | secret: [protected] | discoveryURI: https:... | scope: 
openid | customParams: {} | clientAuthenticationMethod: null | useNonce: 
false | preferredJwsAlgorithm: RS256 | maxAge: null | maxClockSkew: 100000 
| connectTimeout: 500 | *readTimeout: 5000* | resourceRetriever: null | 
responseType: code | responseMode: null | logoutUrl: null | withState: 
false | stateGenerator: 
org.pac4j.core.state.StaticOrRandomStateGenerator@3b5da0b0 | |]>


Note the : *readTimeout: 5000*

How can I configure this parameter through a config file?

Thanks!

-- 


Avis de confidentialité

Les
 informations contenues dans le présent 
message et dans toute pièce qui 
lui est jointe sont confidentielles et 
peuvent être protégées par le 
secret professionnel. Ces informations sont 
à l’usage exclusif de son ou
 de ses destinataires. Si vous recevez ce 
message par erreur, veuillez 
s’il vous plait communiquer immédiatement 
avec l’expéditeur et en 
détruire tout exemplaire. De plus, il vous est 
strictement interdit de 
le divulguer, de le distribuer ou de le reproduire 
sans l’autorisation 
de l’expéditeur. Merci.


Confidentiality notice

This

 e-mail message and any attachment hereto contain confidential 
information 
which may be privileged and which is intended for the 
exclusive use of its 
addressee(s). If you receive this message in error,
 please inform sender 
immediately and destroy any copy thereof. 
Furthermore, any disclosure, 
distribution or copying of this message 
and/or any attachment hereto 
without the consent of the sender is 
strictly prohibited. Thank you.

-- 
- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/e3cb3691-127a-4eb8-95d4-c4bb19f3ecc4%40apereo.org.

Reply via email to