Mohamed,

In my cas-management 6.5, I have this in management.properties which I place in 
/etc/cas/config
cas.server.name=https://${cas.server.scope}
cas.server.prefix=${cas.server.name}/cas

logging.config: file:/etc/cas/config/log4j2-management.xml

mgmt.server-name=${cas.server.name}

where cas.server.scope=local.uvic.ca

The default files and their properties come from the main project.

Ray

On Wed, 2024-02-07 at 08:28 -0800, Mohamed Amdouni wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hello,

I have the same problem with CAS management.

Try to connect to https://localhost:8443/cas-management/ redirects me to 
cas.example.org:8443/cas/login?service....
Even with management.properties updated with cas server.

In the log file I see that it loads an application.properties/ 
management.properties and bootstrap.properties from the classpath, containing 
properties with heroku. adress etc

I don't know from where it generates this file when building from overlay 
project... I have only an empty application.yml in the project sources.

I'm using an extrenal application.properties referenced by 
spring.config.location

My questions are :

- where to find the property with cas.example.org?
- how to avoid adding application.properties when building the project?
- Does the laste version of cas-management (6.4) requires to add a FilterChain 
bean because in the log it is using the default FilterChain with Ant pattern = 
'/**' ->
messsage from log : "Will secure Ant (pattern='/**')"


Thank you



Le jeudi 28 décembre 2023 à 15:50:58 UTC+1, figurefigure mix a écrit :
logs below
```bash
2023-12-28 09:14:21,578 DEBUG 
[org.apereo.cas.support.saml.DefaultOpenSamlConfigBean] - <Initialized OpenSaml 
successfully.>
2023-12-28 09:14:21,623 INFO [org.apereo.cas.util.io.PathWatcherService] - 
<Watching directory path at [/opt/casmanagement/conf]>
2023-12-28 09:14:21,625 DEBUG 
[org.apereo.cas.mgmt.config.CasManagementAuthenticationConfiguration] - 
<Configuring an authentication strategy based on CAS running at 
[https://cas.example.org:8443]>
2023-12-28 09:14:21,639 DEBUG 
[org.apereo.cas.mgmt.config.CasManagementAuthenticationConfiguration] - 
<Skipping IP address authentication strategy configuration; no pattern is 
defined>
2023-12-28 09:14:21,665 INFO [org.apereo.cas.mgmt.factory.FormDataFactory] - 
<Call to cas/actuator/discoveryProfile disabled by management configuration.  
Using default FormData values.>
2023-12-28 09:14:21,728 DEBUG 
[org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] - 
<Attempting to read and parse [/tmp/cas/HTTPSandIMAPS-10000001.json]>
2023-12-28 09:14:21,729 DEBUG 
[org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] - 
<Attempting to read and parse [/tmp/cas/Apereo-10000002.json]>
2023-12-28 09:14:21,817 WARN [org.pac4j.core.matching.matcher.PathMatcher] - 
<Be careful when using the 'excludeBranch' or 'excludeRegex' methods. They use 
regular expressions and their definitions may be error prone. You could exclude 
more URLs than expected.>
2023-12-28 09:14:21,862 WARN 
[org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration]
 - <
```

On Wednesday, December 27, 2023 at 10:04:43 AM UTC+1 figurefigure mix wrote:
<dependencies>
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-mgmt-webapp-tomcat</artifactId>
<version>${mgmt.version}</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
</dependencies>

once i run it with `java -jar cas-management.jar 
--spring.profiles.active=management` and I open it url 
`localhost:8443/cas-management` it redirect me on 
`https://cas.example.org:8443/cas/login`<https://cas.example.org:8443/cas/login>

why is this happening instead of redirecting me on the referenced cas server 
I've declered under application-management.properties the following properties

cas.server.name<http://cas.server.name>=http://localhost:8443
cas.server.prefix=${cas.server.name<http://cas.server.name>}/cas
server.servlet.context-path=/cas-management
server.port=8443

the file properties work properly because when i change the server port also 
tomcat port change with it


-- 
- 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/439cfe35ffc0df3342a07565e83b64b4b6336a2e.camel%40uvic.ca.

Reply via email to