OAuth wrong properties

12 views
Skip to first unread message

Rodrigo Siqueira

unread,
Feb 22, 2019, 9:15:16 AM2/22/19
to CAS Community
Hello,

While trying to enable OAuth2 support on version 5.3 of CAS, OAuth configuration class is picking up default values instead of reading application.yml

This method: org.apereo.cas.config.CasOAuthConfiguration#oauthSecConfig

It tries to read the loginUrl from CasProperties, but I think it's loading this method before actually reading the property file...

Any ideas? Will keep trying other things in the meanwhile... 
Thanks in advance!


Rodrigo Siqueira

unread,
Feb 22, 2019, 9:25:41 AM2/22/19
to CAS Community
Oh, figured it out right after asking, lol!

What happens is that the cas-overlay puts 

cas.server.name: https://localhost:8443
cas.server.prefix: https://localhost:8443/cas

on cas.properties

However... OAuthConfigurations runs before interpreting this file...
Moving cas.server.name|prefix to application.properties fixes the issue.
Reply all
Reply to author
Forward
0 new messages