Basic CAS server test

174 views
Skip to first unread message

Ethan M

unread,
Jan 23, 2019, 6:48:36 PM1/23/19
to CAS Community
Hi,

I'm running CAS 5.3.7 in Docker:

  $ docker pull apereo/cas
  $ docker run -p 8080:8080 -p 8443:8443 14de63
  ...

     __   ____      _      ____   __
    / /  / ___|    / \    / ___|  \ \
   | |  | |       / _ \   \___ \   | |
   | |  | |___   / ___ \   ___) |  | |
   | |   \____| /_/   \_\ |____/   | |
    \_\                           /_/

  CAS Version: 5.3.7
  CAS Commit Id: f54e8d5132a0e52fd2fc3ea498c8d0f5ee97f502
  CAS Build Date/Time: 2019-01-23T19:58:46Z
  Spring Boot Version: 1.5.18.RELEASE
  Spring Version: 4.3.20.RELEASE
  Java Home: /opt/zulu8.21.0.1-jdk8.0.131-linux_x64/jre
  Java Vendor: Azul Systems, Inc.
  Java Version: 1.8.0_131
  JVM Free Memory: 25 MB
  JVM Maximum Memory: 444 MB
  JVM Total Memory: 201 MB
  JCE Installed: Yes
  Node Version: N/A
  NPM Version: N/A
  OS Architecture: amd64
  OS Name: Linux
  OS Version: 4.9.93-linuxkit-aufs
  OS Date/Time: 2019-01-23T19:58:55.204
  OS Temp Directory: /tmp
  ------------------------------------------------------------
  Apache Tomcat Version: Apache Tomcat/8.5.37
  ------------------------------------------------------------


  2019-01-23 19:58:56,130 INFO [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - <Configuration directory [/etc/cas/config] is not a directory or cannot be found at the specific path>
  2019-01-23 19:58:56,144 INFO [org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration] - <Located property source: CompositePropertySource [name='casCompositePropertySource', propertySources=[PropertiesPropertySource {name='embeddedYamlOverriddenProperties'}]]>
  2019-01-23 19:58:56,151 INFO [org.apereo.cas.web.CasWebApplication] - <The following profiles are active: standalone>
  2019-01-23 19:58:56,209 INFO [org.apereo.cas.web.CasWebApplicationContext] - <Refreshing CasWebApplicationContext()>
  2019-01-23 19:59:00,066 WARN [org.apereo.cas.config.CasCoreTicketsConfiguration] - <Runtime memory is used as the persistence storage for retrieving and managing tickets. Tickets that are issued during runtime will be LOST when the web server is restarted. This MAY impact SSO functionality.>
  2019-01-23 19:59:00,069 INFO [org.apereo.cas.util.CoreTicketUtils] - <Ticket registry encryption/signing is turned off. This MAY NOT be safe in a clustered production environment. Consider using other choices to handle encryption, signing and verification of ticket registry tickets, and verify the chosen ticket registry does support this behavior.>
  2019-01-23 19:59:13,155 INFO [org.apereo.cas.config.CasConfigurationSupportUtilitiesConfiguration] - <CAS is configured to NOT watch configuration directory [/etc/cas/config]. Changes require manual reloads/restarts.>
  2019-01-23 19:59:13,690 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <>
  2019-01-23 19:59:13,694 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <

    ____    _____    ___    ____    _
   / ___|  |_   _|  / _ \  |  _ \  | |
   \___ \    | |   | | | | | |_) | | |
    ___) |   | |   | |_| | |  __/  |_|
   |____/    |_|    \___/  |_|     (_)


  CAS is configured to accept a static list of credentials for authentication. While this is generally useful for demo purposes, it is STRONGLY recommended that you DISABLE this authentication method (by setting 'cas.authn.accept.users' to a blank value) and switch to a mode that is more suitable for production.>
  2019-01-23 19:59:13,695 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <>
  2019-01-23 19:59:18,844 INFO [org.apereo.cas.support.events.listener.CasConfigurationEventListener] - <Refreshing CAS configuration. Stand by...>
  2019-01-23 19:59:19,239 WARN [org.apereo.cas.config.CasCoreServicesConfiguration] - <Runtime memory is used as the persistence storage for retrieving and persisting service definitions. Changes that are made to service definitions during runtime WILL be LOST when the web server is restarted. Ideally for production, you need to choose a storage option (JDBC, etc) to store and track service definitions.>
  2019-01-23 19:59:19,292 INFO [org.apereo.cas.services.AbstractServicesManager] - <Loaded [0] service(s) from [InMemoryServiceRegistry].>
  2019-01-23 19:59:19,583 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Secret key for encryption is not defined for [Ticket-granting Cookie]; CAS will attempt to auto-generate the encryption key>
  2019-01-23 19:59:19,597 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Generated encryption key [dyDKDNTLfUJZ81kCIhcKV8iBJURBAwrT6uHeIYQk16I] of size [256] for [Ticket-granting Cookie]. The generated key MUST be added to CAS settings under setting [cas.tgc.crypto.encryption.key].>
  2019-01-23 19:59:19,601 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Secret key for signing is not defined for [Ticket-granting Cookie]. CAS will attempt to auto-generate the signing key>
  2019-01-23 19:59:19,602 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Generated signing key [NUp7v5fcGuFR7r4JRquZI_yItIDtRtpyfg0U-DTAPeEsAkrE9XKtBkio-J9QvDBkEz2XM2AlaLYcKW8KXhCzrA] of size [512] for [Ticket-granting Cookie]. The generated key MUST be added to CAS settings under setting [cas.tgc.crypto.signing.key].>
  2019-01-23 19:59:20,169 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Secret key for signing is not defined under [cas.webflow.crypto.signing.key]. CAS will attempt to auto-generate the signing key>
  2019-01-23 19:59:20,170 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Generated signing key [YmsdgHaJ179Kxz0GApqOABmvVhRwac8ZRZDBO3r0p62T115i4RZY8ySAgcDdbUVd53Wob1L5tZcziSCzcnD0eQ] of size [512]. The generated key MUST be added to CAS settings under setting [cas.webflow.crypto.signing.key].>
  2019-01-23 19:59:20,170 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Secret key for encryption is not defined under [cas.webflow.crypto.encryption.key]. CAS will attempt to auto-generate the encryption key>
  2019-01-23 19:59:20,173 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Generated encryption key [3ZzuhqEpEXAaxgGVOOFBkg] of size [16]. The generated key MUST be added to CAS settings under setting [cas.webflow.crypto.encryption.key].>
  2019-01-23 19:59:20,470 INFO [org.apereo.cas.support.events.listener.DefaultCasEventListener] - <>
  2019-01-23 19:59:20,473 INFO [org.apereo.cas.support.events.listener.DefaultCasEventListener] - <

    ____    _____      _      ____   __   __
   |  _ \  | ____|    / \    |  _ \  \ \ / /
   | |_) | |  _|     / _ \   | | | |  \ V /
   |  _ <  | |___   / ___ \  | |_| |   | |
   |_| \_\ |_____| /_/   \_\ |____/    |_|


  2019-01-23 19:59:20,473 INFO [org.apereo.cas.support.events.listener.DefaultCasEventListener] - <>
  2019-01-23 19:59:20,473 INFO [org.apereo.cas.support.events.listener.DefaultCasEventListener] - <Ready to process requests @ [2019-01-23T19:59:20.469Z]>
  2019-01-23 19:59:20,476 INFO [org.apereo.cas.web.CasWebApplication] - <Started CasWebApplication in 29.724 seconds (JVM running for 32.655)>
  2019-01-23 19:59:40,300 INFO [org.apereo.cas.services.AbstractServicesManager] - <Loaded [0] service(s) from [InMemoryServiceRegistry].>
  2019-01-23 19:59:50,326 INFO [org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner] - <[0] expired tickets removed.>
  2019-01-23 20:00:40,230 INFO [org.apereo.cas.services.AbstractServicesManager] - <Loaded [0] service(s) from [InMemoryServiceRegistry].>
  ...


Is CAS listening?

  $ nmap -Pn 172.17.0.2
 
...
  PORT     STATE  SERVICE
 
113/tcp  closed ident
 
8008/tcp open   http


Seems to be listening on port 8008 (instead of 8080). But I get a 302 on `/cas/login`:

  $ telnet 172.17.0.2 8008
 
Trying 172.17.0.2...
 
Connected to 172.17.0.2.
 
Escape character is '^]'.
  GET
/cas/login

  HTTP
/1.1 302 Found
 
Location: https://:8010
 
...

Any tips on how to troubleshoot this?

Thank you,
Ethan



Reply all
Reply to author
Forward
0 new messages