Hi Ray,

Thanks very much for your response.

It's before authentication - the redirection happens as soon as I GET
https://my.cas.server/cas-management
Here's a DEBUG log of it happening right after I do a GET on
https://my.cas.server/cas-management via my browser:

2022-05-25 14:48:13,815 INFO
[org.springframework.web.servlet.DispatcherServlet] - <Initializing Servlet
'dispatcherServlet'>
2022-05-25 14:48:13,815 DEBUG
[org.springframework.web.servlet.DispatcherServlet] - <Detected
StandardServletMultipartResolver>
2022-05-25 14:48:13,815 DEBUG
[org.springframework.web.servlet.DispatcherServlet] - <Detected
AcceptHeaderLocaleResolver>
2022-05-25 14:48:13,815 DEBUG
[org.springframework.web.servlet.DispatcherServlet] - <Detected
FixedThemeResolver>
2022-05-25 14:48:13,817 DEBUG
[org.springframework.web.servlet.DispatcherServlet] - <Detected
org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator@43a5b282
>
2022-05-25 14:48:13,818 DEBUG
[org.springframework.web.servlet.DispatcherServlet] - <Detected
org.springframework.web.servlet.support.SessionFlashMapManager@3133cb27>
2022-05-25 14:48:13,818 DEBUG
[org.springframework.web.servlet.DispatcherServlet] -
<enableLoggingRequestDetails='false': request parameters and headers will
be masked to prevent unsafe logging of potentially sensitive data>
2022-05-25 14:48:13,818 INFO
[org.springframework.web.servlet.DispatcherServlet] - <Completed
initialization in 3 ms>
2022-05-25 14:48:13,832 DEBUG
[org.springframework.security.web.FilterChainProxy] - <Securing GET />
2022-05-25 14:48:13,834 DEBUG
[org.springframework.security.web.access.channel.ChannelProcessingFilter] -
<Request: filter invocation [GET /]; ConfigAttributes:
[REQUIRES_SECURE_CHANNEL]>
2022-05-25 14:48:13,834 DEBUG
[org.springframework.security.web.access.channel.RetryWithHttpsEntryPoint]
- <Redirecting to: https://localhost:8443/cas-management/>
2022-05-25 14:48:13,834 DEBUG
[org.springframework.security.web.DefaultRedirectStrategy] - <Redirecting
to https://localhost:8443/cas-management/>

Thanks,
Trev

On Wed, 25 May 2022 at 15:10, Ray Bon <r...@uvic.ca> wrote:

> Trev,
>
> Are you being redirected to localhost after log in or when you access
> https://my.server.../cas-management?
>
> If it is before, then this could be an issue with the application
> container.
> If it is after, it may be in the service definition for cas-management.
>
> Ray
>
> On Wed, 2022-05-25 at 14:25 -0700, Trevor Fong wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
> Hi Everyone,
>
> In an attempt to resolve my CAS Management issues, I've now upgraded to
> 6.5.3 and am deploying via CASInitializr, all to no avail, still!:
> # getcas --type cas-overlay --casVersion 6.5.3 --modules
> support-jpa-ticket-registry,support-jpa-service-registry,support-ldap,support-saml,support-duo,support-audit-jdbc
> # getcas getcas --type cas-management-overlay --casVersion 6.5.3
> After "./gradlew clean build" for both, I'm then deploying the resulting
> cas.war and cas-management.war files to a Tomcat 9 instance.
>
> My /etc/cas/config/management.properties is:
> cas.server.name=https://my.server.name
> cas.server.prefix=https://my.server.name/cas
>
> # Update this URL to point at server running this management app
> mgmt.server-name=https://my.server.name
>
> mgmt.user-properties-file=file:/etc/cas/config/users.json
> mgmt.admin-roles[0]=ROLE_ADMIN
> mgmt.user-roles[0]=ROLE_USER
>
> server.servlet.context-path=/cas-management
> server.port=8080
>
> logging.config=file:/etc/cas/config/log4j2-management.xml
> ...
>
> When I try to load https://my.server.name/cas-management I still get
> redirected to http://localhost:8443/cas-management
>
> Any help would be greatly appreciated.
>
> Thanks,
> Trev
>
>
> On Tuesday, May 17, 2022 at 1:55:00 PM UTC-7 Trevor Fong wrote:
>
> Hi Mathieu
>
> Yes - I do have an /etc/cas/config/management.properties file.  From my
> initial message:
> “
>
> In the /etc/cas/config/management.properties I have the following
> configured:
> cas.server.name=https://<cas-server>
> cas.server.prefix=https://<cas-server>/cas
>
> mgmt.admin-roles[0]=ROLE_ADMIN
> mgmt.user-properties-file=file:/etc/cas/config/users.properties
>
> # Update this URL to point at server running this management app
> mgmt.server-name=https://<cas-server>
>
> server.context-path=/cas-management
> server.port=443
>
> logging.config=file:/etc/cas/config/log4j2-management.xml
> “
> Thanks a lot
> Trev
>
> .
> On May 17, 2022, 9:42 AM -0700, Mathieu HETRU <ipsy...@gmail.com>, wrote:
>
> Have you created the management.properties file in this place ?
> /etc/cas/config/management.properties ?
>
> Best Regards,
>
> Le mar. 17 mai 2022 à 18:14, Trevor Fong <tjf...@gmail.com> a écrit :
>
> Hi Mathieu
>
> I’ve tried those variations also to the same result.
>
> Thanks a lot for the suggestions though.  Really appreciate any tips.
>
> Trev
>
> .
> On May 17, 2022, 8:31 AM -0700, cas-...@apereo.org, wrote:
>
>
> To
>
> --
> - 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/e27cc2eb-31f1-4181-9183-cbaeacb7275d%40Spark
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/e27cc2eb-31f1-4181-9183-cbaeacb7275d%40Spark?utm_medium=email&utm_source=footer>
> .
>
> --
> - 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/CAHNwO5nTgzV3HhUye-TD_Cdt6UUPe_G-56wvAX3Ky04zv-9nKQ%40mail.gmail.com
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAHNwO5nTgzV3HhUye-TD_Cdt6UUPe_G-56wvAX3Ky04zv-9nKQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
>
> Ray Bon
> Programmer Analyst
> Development Services, University Systems
> 2507218831 | CLE 019 | r...@uvic.ca
>
> 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.
>

-- 
- 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/CAFbWT5dW8Ao-MAH68nEGtJjuOdEGFQMCDQ5VNwXwp6d_xPrJ%2Bw%40mail.gmail.com.

Reply via email to