Hello everyone,

I am trying to place the saml & services directory under the classpath for 
each environment, like below

[src]

[main]

[resources]

[cas-dev]

[saml]

[services]

[cas-stage]

[saml]

[services]

[cas-prod]

[saml]

[services]


Will it be able to load the specific profile if I make the following changes

   - Add a property to JAVA_OPTS 
   
-DSpring.profiles.active = <dev/stage/prod>  



   - Make the following changes to application.yml file

info:
description: CAS Configuration

spring:
profiles:
active: dev
cas:
authn:
samlIdp:
metadata:
location: classpath:/cas-dev/saml/
serviceRegistry:
json:
location: classpath:/cas-dev/services/
---
spring:
profiles:
active: stage
cas:
authn:
samlIdp:
metadata:
location: classpath:/cas-stage/saml/
serviceRegistry:
json:
location: classpath:/cas-stage/services/
 


   - Place rest of all the properties in cas.properties file under 
   etc/cas/config 

Could someone please help me here to know if this is the right approach and 
by doing this the saml and services related files would be loaded without 
any issues.

P.S. Both application.yml and cas.properties are placed in the same 
location under etc/cas/config

Thanks in advance.

Regards
Jay 

 

 

 

 

 

 

 

 

-- 
- 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/5712b812-3b6d-428d-a443-edf53713da5a%40apereo.org.

Reply via email to