Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
docpublic:systemes:ssocas:cas71install [2025/02/17 14:08] adminjp [version] |
docpublic:systemes:ssocas:cas71install [2025/02/17 17:21] (current) adminjp [personalisation des views] |
[root@cas7d cas-overlay-template]# ls /etc/cas/config/ | [root@cas7d cas-overlay-template]# ls /etc/cas/config/ |
cas.properties log4j2.xml | cas.properties log4j2.xml |
| </code> |
| |
| ==== creation services ==== |
| il faut creer a minima le service localhost, autrement le serveur ne demarre pas avec ce type d'erreur |
| |
| <code> |
| 2025-02-17 13:46:31,318 INFO [org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] - <Watching service registry directory at [/etc/cas/services]> |
| 2025-02-17 13:46:31,320 WARN [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server> |
| 17-Feb-2025 13:46:31.402 SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [/opt/tomcat/webapps/cas.war] |
| java.lang.IllegalStateException: Error starting child |
| </code> |
| |
| on créé alors le service pour localhost et nos domains |
| |
| |
| <code> |
| [root@cas7 services]# ls -ltr |
| total 12 |
| -rw-r--r-- 1 root root 554 Feb 17 14:01 disi_star_imtbs-1718526946.json |
| -rw-r--r-- 1 root root 536 Feb 17 14:01 disi-localhost-1738144793.json |
| -rw-r--r-- 1 root root 551 Feb 17 14:04 disi_star_intevry-1739800806.json |
| |
| [root@cas7 services]# cat disi-localhost-1738144793.json |
| { |
| "@class" : "org.apereo.cas.services.CasRegisteredService", |
| "serviceId" : "https://localhost/.*", |
| "name" : "disi_localhost", |
| "id" : 1738144793, |
| "evaluationOrder" : 40715, |
| "matchingStrategy": { |
| "@class": "org.apereo.cas.services.FullRegexRegisteredServiceMatchingStrategy" |
| } |
| "proxyPolicy" : { |
| "@class" : "org.apereo.cas.services.RegexMatchingRegisteredServiceProxyPolicy", |
| "pattern" : "https:\/\/localhost\/.*" |
| } |
| "attributeReleasePolicy" : { |
| "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy" |
| } |
| |
| } |
</code> | </code> |
| |
| |
<code> | <code> |
06-Jun-2024 19:06:21.431 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/opt/tomcat/webapps/cas.war] | 17-Feb-2025 14:05:39.342 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/opt/tomcat/webapps/cas.war] |
06-Jun-2024 19:06:29.068 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. | 17-Feb-2025 14:05:43.267 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. |
2024-06-06 19:06:30,517 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validating CAS property sources and configuration for active profiles [[standalone]]. Please wait...> | 2025-02-17 14:05:44,463 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validating CAS property sources and configuration for active profiles [[standalone]]. Please wait...> |
2024-06-06 19:06:30,529 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validated CAS property sources and configuration successfully.> | 2025-02-17 14:05:44,472 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validated CAS property sources and configuration successfully.> |
| |
| ____ ____ ___ ____ ___ ___ __ ____ _____ |
2024-06-06 19:06:32,509 DEBUG [org.springframework.boot.devtools.restart.Restarter] - <Creating new Restarter for thread Thread[#1,main,5,main]> | |
| |
____ ____ ___ ____ ___ ___ __ ____ _____ | |
/ T| \ / _]| \ / _] / \ / ] / T/ ___/ | / T| \ / _]| \ / _] / \ / ] / T/ ___/ |
Y o || o )/ [_ | D ) / [_ Y Y / / Y o ( \_ | Y o || o )/ [_ | D ) / [_ Y Y / / Y o ( \_ |
l__j__jl__j l_____jl__j\_jl_____j \___/ \____jl__j__j \___j | l__j__jl__j l_____jl__j\_jl_____j \___/ \____jl__j__j \___j |
| |
CAS Version: 7.0.4 | CAS Version: 7.1.4 |
CAS Branch: 7.0.x | CAS Branch: 7.1.x |
CAS Commit Id: d41ac9d5e157605fc43d97a77582c2062e864874 | CAS Commit Id: 59cc9c05b93de39caf993c22288742a75e381bb2 |
CAS Build Date/Time: 2024-04-26T07:43:16.528866Z | CAS Build Date/Time: 2025-01-24T08:27:25.677911Z |
Spring Boot Version: 3.2.1 | Spring Boot Version: 3.3.3 |
Spring Version: 6.1.2 | Spring Version: 6.1.12 |
Java Home: /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.alma.1.x86_64 | Java Home: /usr/lib/jvm/java-21-openjdk-21.0.6.0.7-1.el9.alma.1.x86_64 |
Java Vendor: Red Hat, Inc. | Java Vendor: Red Hat, Inc. |
Java Version: 21.0.3 | Java Version: 21.0.6 |
Servlet Version: 6.0 | Servlet Version: 6.0 |
JVM Free Memory: 301 MB | JVM Free Memory: 445 MB |
JVM Maximum Memory: 1 GB | JVM Maximum Memory: 1 GB |
JVM Total Memory: 740 MB | JVM Total Memory: 823 MB |
OS Architecture: amd64 | OS Architecture: amd64 |
OS Name: Linux | OS Name: Linux |
OS Version: 5.14.0 | OS Version: 6.8.12-5-pve |
OS Date/Time: 2024-06-06T19:06:32.626041896 | OS Date/Time: 2025-02-17T14:05:45.941778610 |
| OS Timezone: SystemClock[GMT] |
OS Temp Directory: /opt/tomcat/temp | OS Temp Directory: /opt/tomcat/temp |
------------------------------------------------------------ | |
Apache Tomcat Version: Apache Tomcat/10.1.20 | |
------------------------------------------------------------ | |
| |
2024-06-06 19:06:32,669 INFO [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - <Configuration files found at [/etc/cas/config] are [[file [/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]> | |
2024-06-06 19:06:32,773 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validating CAS property sources and configuration for active profiles [[standalone]]. Please wait...> | |
2024-06-06 19:06:32,833 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validated CAS property sources and configuration successfully.> | |
2024-06-06 19:06:32,835 INFO [org.apereo.cas.web.CasWebApplicationServletInitializer] - <The following 1 profile is active: "standalone"> | |
| |
| |
| |
| |
2024-06-06 19:06:37,014 INFO [org.apereo.cas.services.resource.AbstractResourceBasedServiceRegistry] - <Watching service registry directory at [/etc/cas/services]> | |
2024-06-06 19:06:37,019 INFO [org.apereo.cas.util.io.PathWatcherService] - <Watching directory path at [/etc/cas/services]> | |
2024-06-06 19:06:38,184 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.> | |
2024-06-06 19:06:38,241 INFO [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.> | |
2024-06-06 19:06:39,324 INFO [org.apereo.cas.config.LdapAuthenticationConfiguration] - <Registering LDAP authentication for [LdapAuthenticationHandler]> | |
2024-06-06 19:06:39,585 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> | |
2024-06-06 19:06:39,594 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Generated encryption key [dhlqwvkSDUy92C0JQLOQojfK0iHxc_gw2M2rnFIUi7o] of size [256] for [Ticket-granting Cookie]. The generated key MUST be added to CAS settings: | |
| |
2024-06-06 19:06:43,801 INFO [org.apereo.cas.web.CasWebApplicationServletInitializer] - <Started CasWebApplicationServletInitializer in 13.811 seconds (process running for 31.402)> | |
2024-06-06 19:06:43,839 INFO [org.apereo.cas.services.mgmt.AbstractServicesManager] - <Loaded [0] service(s) from [JsonServiceRegistry].> | |
2024-06-06 19:06:43,846 INFO [org.apereo.cas.web.CasWebApplicationReady] - <> | |
2024-06-06 19:06:43,846 INFO [org.apereo.cas.web.CasWebApplicationReady] - < | |
| |
| 2025-02-17 14:05:45,972 INFO [org.apereo.cas.configuration.StandaloneConfigurationFilePropertiesSourceLocator] - <No standalone configuration properties are available> |
| 2025-02-17 14:05:45,979 INFO [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - <Configuration files found at [/etc/cas/config] are [[file [/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]> |
| 2025-02-17 14:05:46,040 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validating CAS property sources and configuration for active profiles [[standalone]]. Please wait...> |
| 2025-02-17 14:05:46,094 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validated CAS property sources and configuration successfully.> |
| 2025-02-17 14:05:46,096 INFO [org.apereo.cas.web.CasWebApplicationServletInitializer] - <The following 1 profile is active: "standalone"> |
| |
| |
____ ___ ____ ___ __ __ | ____ ___ ____ ___ __ __ |
| \ / _] / T| \ | T T | | \ / _] / T| \ | T T |
l__j\_jl_____jl__j__jl_____jl____/ | l__j\_jl_____jl__j__jl_____jl____/ |
| |
CAS is now running at https://cas7d.imtbs-tsp.eu:443/cas | CAS is now running at https://cas7dev.imtbs.fr:443/cas |
> | > |
2024-06-06 19:06:43,846 INFO [org.apereo.cas.web.CasWebApplicationReady] - <> | 2025-02-17 14:05:54,560 INFO [org.apereo.cas.web.CasWebApplicationReady] - <> |
2024-06-06 19:06:43,846 INFO [org.apereo.cas.web.CasWebApplicationReady] - <Ready to process requests @ [2024-06-06T17:06:43.822Z]> | 2025-02-17 14:05:54,561 INFO [org.apereo.cas.web.CasWebApplicationReady] - <Ready to process requests @ [2025-02-17T14:05:54.531Z]> |
2024-06-06 19:06:43,846 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validating CAS property sources and configuration for active profiles [[standalone]]. Please wait...> | 2025-02-17 14:05:54,561 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validating CAS property sources and configuration for active profiles [[standalone]]. Please wait...> |
06-Jun-2024 19:06:43.860 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/tomcat/webapps/cas.war] has finished in [22,430] ms | 2025-02-17 14:05:54,773 INFO [org.apereo.cas.services.mgmt.AbstractServicesManager] - <Loaded [3] service(s) from [JsonServiceRegistry].> |
| 17-Feb-2025 14:05:54.789 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/tomcat/webapps/cas.war] has finished in [15,446] ms |
| |
</code> | </code> |
===== personalisation des views ===== | ===== personalisation des views ===== |
| |
| * https://apereo.github.io/cas/7.1.x/ux/User-Interface-Customization.html |
* https://fawnoos.com/2020/05/17/cas62x-reloadable-html-views/ | * https://fawnoos.com/2020/05/17/cas62x-reloadable-html-views/ |
* https://fawnoos.com/2021/02/16/cas63-ui-themes/ | * https://fawnoos.com/2021/02/16/cas63-ui-themes/ |
* https://apereo.github.io/cas/7.0.x/ux/User-Interface-Customization.html | |
| |
| |
[root@cas7 cas-overlay-template]# ls -l /opt/cas-src/cas-overlay-template/src/main/resources/templates/login/ | [root@cas7 cas-overlay-template]# ls -l /opt/cas-src/cas-overlay-template/src/main/resources/templates/login/ |
-rw-r--r-- 1 root root 1955 Jun 6 19:34 casLoginView.html | -rw-r--r-- 1 root root 1955 Jun 6 19:34 casLoginView.html |
| </code> |
| |
on va egalement prendre header.html (extrait vers src/main/resources/templates/fragments/header.html) pour y changer le logo | on va egalement prendre header.html (extrait vers src/main/resources/templates/fragments/header.html) pour y changer le logo |