spring.profiles.active not working in 6.4.

13 views
Skip to first unread message

fjannin4

unread,
Jun 3, 2022, 6:45:19 AM6/3/22
to cas-...@apereo.org
Greetings,

I have configured, accordingly with  online doc
https://apereo.github.io/cas/6.4.x/configuration/Configuration-Server-Management.html,
this property in cas.properties :

spring.profiles.active=attributes,oidc,tickets,ldap,consent

When CAS is starting though, logs says :

2022-06-03 10:43:37,539 INFO
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
- <Configuration files found at [/etc/cas/config] are [[file
[/etc/cas/config/application.yml], file
[/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]>
2022-06-03 10:43:37,574 INFO
[org.apereo.cas.configuration.loader.YamlConfigurationPropertiesLoader]
- <Found settings [[info.description]] in YAML file [file
[/etc/cas/config/application.yml]]>
2022-06-03 10:43:37,747 INFO
[org.apereo.cas.web.CasWebApplicationServletInitializer] - <The
following profiles are active: standalone>

It is enough confusing, which way it is intended to work ? What I am
missing ?

Thanks a lot for help !

Best regards

Francois Jannin - Toulouse INP

Ray Bon

unread,
Jun 3, 2022, 11:14:14 AM6/3/22
to cas-...@apereo.org
Francois,

The spring properties must be loaded before cas.properties. Place it in one of the spring startup files, like application.yml or as a command line parameter.

Ray


On Fri, 2022-06-03 at 12:43 +0200, fjannin4 wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
--
- 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+u...@apereo.org
.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/09e7c86b-555d-050a-5a72-75a83430dd25%40gmail.com
.
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose historical relationships with the land continue to this day.
Reply all
Reply to author
Forward
0 new messages