Re: [cas-user] Couldn't build in Linux RHEL

2024-02-05 Thread Ray Bon
Amulya,

Depending on where the groovy script is called, it may have different 
requirements / passed in arguments. These are outlined in the docs.

'method not implemented' sounds like a method signature issue; would need to 
see the code.

You should create a new thread for this.

Ray

On Tue, 2024-02-06 at 01:34 +0530, Amulya Sri Pulijala wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hey,

Any custom code is also fine, something like mathematical expression etc. I did 
try with Groovy script but I couldnt compile it, as am getting an error that 
authenticate method is not implemented., but I did have that in my script.

Small groovy script which generates an expression and validates at user end is 
sufficient. Generation can be done at front end which I've already done it.

Kindl y provide me if you have any grovy scripts tutorial or custom handler 
tutorial..
Amulya

On Tue, Feb 6, 2024 at 1:27 AM Ray Bon mailto:r...@uvic.ca>> 
wrote:
Amulya,

Are you sure you need to have a custom captcha (or any other custom code)?
If you do create something custom, try to make it in such a way that it can be 
added to the main cas project (hopefully you will have time to do so - which I 
seem to lack).
See https://apereo.github.io/cas/developer/Contributor-Guidelines.html

https://fawnoos.com/blog/ is a good place to start. You 
will also need to understand various spring libraries.

Take a look at the existing reCaptcha 
https://apereo.github.io/cas/7.0.x/integration/Configuring-Google-reCAPTCHA.html
 and how it is implemented, how it fits into [spring] web flow, gets properties 
etc. You may be able to extend those classes.

Ray

On Mon, 2024-02-05 at 21:38 +0530, Amulya Sri Pulijala wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Thanks!

Yeah.. am trying to add captcha, username, password etc in a single handler. 
Any pointers to such tutorials?

Amulya

On Mon, Feb 5, 2024 at 7:58 PM Ray Bon mailto:r...@uvic.ca>> 
wrote:
Amulya,

To add 'customHandlers' you would need to modify the class that handles authn 
properties (cas.authn).
To see how the chain of properties works in cas, start with the main class,
https://github.com/apereo/cas/blob/v7.0.0/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/CasConfigurationProperties.java

Search this file for 'authn' which is a class member pointing to 
AuthenticationProperties

I do not suggest modifying AuthenticationProperties.
You can create your own properties file (maybe CustomProperties) which could 
have a member variable authn pointing to CustomAuthenticationProperties. Given 
CustomAuthenticationProperties extends AuthenticationProperties, your property 
would then be

cusom.authn.jdbc.bind[0].password=test@123

i.e. leverage the properties of existing classes.

Authentication can be a complex process.
Cas is very modular. Small parts are assembled to meet the complexity.

Are trying to make a single handler to process; username, password, captcha, ui 
widgets, etc?
Many cas features have the capability to add groovy scripts. Perhaps some of 
your custom features can be met with builtin features + groovy.

Take a look at post authentication processing too, 
https://apereo.github.io/cas/7.0.x/authentication/Configuring-Authentication-PrePostProcessing.html

Ray

On Sat, 2024-02-03 at 08:03 -0800, Amulya Sri Pulijala wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Thanks!

I could create login page; handler and configure as well.
I added it in both applications.yml and spring.factories as well.

My cas.properties is as follows:
cas.authn.accept.enabled=false
cas.authn.handler.names=customAuthenticationHandler
cas.authn.customHandlers.customAuthenticationHandler.name=customAuthenticationHandler
cas.authn.customHandlers.customAuthenticationHandler.type=com.example.authentication.CustomAuthenticationHandler
cas.authn.customHandlers.customAuthenticationHandler.url=jdbc:postgresql://localhost:5432/cas
cas.authn.customHandlers.customAuthenticationHandler.username=postgres
cas.authn.customHandlers.customAuthenticationHandler.password=test@123
cas.authn.customHandlers.customAuthenticationHandler.sql=SELECT * FROM users 
WHERE username = ? AND password = ?
cas.authn.customHandlers.customAuthenticationHandler.order=1


Am facing the issue that login is not going to the custom handler. I could see 
that respective classes are generated at the correct location also.

Thanks in advance! Kindly share your thoughts/inputs.

Amulya
On Saturday, February 3, 2024 at 8:27:11 AM UTC+5:30 Ray Bon wrote:
Amulya,

You can copy what is 

Re: [cas-user] how do I add dependency without being tied to version?

2024-02-05 Thread Ray Bon
Yan,

You  can put the version into gradle.properties (I put this at the bottom of my 
file):

lombokVersion=1.18.30
...

In build.gradle:

compileOnly "org.projectlombok:lombok:${lombokVersion}"
testCompileOnly("org.projectlombok:lombok:${lombokVersion}")

If the library is included in cas, then you  do not need to use implementation.


Ray

On Mon, 2024-02-05 at 08:22 -0800, Yan Zhou wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

HI there,

with CAS 6.6.x overlay, I need to create my own authentication handler, which 
uses Apache Shiro's hash service, etc., it comes with CAS, but I have to 
explicitly list them in my project dependency so my code can compile.

looks like the following,  Note that I first find out CAS is using shiro-core 
1.9.1 and then explicitly include it in build.gradle, is there a better way to 
manage this (such as I do Not have to explicitly include shiro dependency by 
specific version# ? this makes it difficult for upgrade.)

implementation "org.apereo.cas:cas-server-support-jdbc"
implementation "org.apereo.cas:cas-server-support-jdbc-authentication"
implementation "org.apache.shiro:shiro-core:1.9.1"
implementation "org.apereo.cas:cas-server-support-ldap"

Thanks,
Yan

-- 
- 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/301bac7d2e27a0f5b965bc24104a96e5b14dac58.camel%40uvic.ca.


Re: [cas-user] Couldn't build in Linux RHEL

2024-02-05 Thread Ray Bon
Amulya,

Are you sure you need to have a custom captcha (or any other custom code)?
If you do create something custom, try to make it in such a way that it can be 
added to the main cas project (hopefully you will have time to do so - which I 
seem to lack).
See https://apereo.github.io/cas/developer/Contributor-Guidelines.html

https://fawnoos.com/blog/ is a good place to start. You 
will also need to understand various spring libraries.

Take a look at the existing reCaptcha 
https://apereo.github.io/cas/7.0.x/integration/Configuring-Google-reCAPTCHA.html
 and how it is implemented, how it fits into [spring] web flow, gets properties 
etc. You may be able to extend those classes.

Ray

On Mon, 2024-02-05 at 21:38 +0530, Amulya Sri Pulijala wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Thanks!

Yeah.. am trying to add captcha, username, password etc in a single handler. 
Any pointers to such tutorials?

Amulya

On Mon, Feb 5, 2024 at 7:58 PM Ray Bon mailto:r...@uvic.ca>> 
wrote:
Amulya,

To add 'customHandlers' you would need to modify the class that handles authn 
properties (cas.authn).
To see how the chain of properties works in cas, start with the main class,
https://github.com/apereo/cas/blob/v7.0.0/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/CasConfigurationProperties.java

Search this file for 'authn' which is a class member pointing to 
AuthenticationProperties

I do not suggest modifying AuthenticationProperties.
You can create your own properties file (maybe CustomProperties) which could 
have a member variable authn pointing to CustomAuthenticationProperties. Given 
CustomAuthenticationProperties extends AuthenticationProperties, your property 
would then be

cusom.authn.jdbc.bind[0].password=test@123

i.e. leverage the properties of existing classes.

Authentication can be a complex process.
Cas is very modular. Small parts are assembled to meet the complexity.

Are trying to make a single handler to process; username, password, captcha, ui 
widgets, etc?
Many cas features have the capability to add groovy scripts. Perhaps some of 
your custom features can be met with builtin features + groovy.

Take a look at post authentication processing too, 
https://apereo.github.io/cas/7.0.x/authentication/Configuring-Authentication-PrePostProcessing.html

Ray

On Sat, 2024-02-03 at 08:03 -0800, Amulya Sri Pulijala wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Thanks!

I could create login page; handler and configure as well.
I added it in both applications.yml and spring.factories as well.

My cas.properties is as follows:
cas.authn.accept.enabled=false
cas.authn.handler.names=customAuthenticationHandler
cas.authn.customHandlers.customAuthenticationHandler.name=customAuthenticationHandler
cas.authn.customHandlers.customAuthenticationHandler.type=com.example.authentication.CustomAuthenticationHandler
cas.authn.customHandlers.customAuthenticationHandler.url=jdbc:postgresql://localhost:5432/cas
cas.authn.customHandlers.customAuthenticationHandler.username=postgres
cas.authn.customHandlers.customAuthenticationHandler.password=test@123
cas.authn.customHandlers.customAuthenticationHandler.sql=SELECT * FROM users 
WHERE username = ? AND password = ?
cas.authn.customHandlers.customAuthenticationHandler.order=1


Am facing the issue that login is not going to the custom handler. I could see 
that respective classes are generated at the correct location also.

Thanks in advance! Kindly share your thoughts/inputs.

Amulya
On Saturday, February 3, 2024 at 8:27:11 AM UTC+5:30 Ray Bon wrote:
Amulya,

You can copy what is done for the default login form.
I thought there was some guidance in the docs, but I am unable to find it. You 
can use spring tutorials.

Ray

On Thu, 2024-02-01 at 15:10 -0800, Amulya Sri Pulijala wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Thanks! that helped! I customized loginform.html and wrote my own handler.
Can someone point out a tutorial of how to build or how to write configuration 
for the handler?

Amulya

On Wednesday, January 31, 2024 at 7:51:33 PM UTC+5:30 Ray Bon wrote:
Amulya,

See https://fawnoos.com/2022/07/22/cas66-ui-themes/ and 
https://fawnoos.com/2023/12/15/cas70x-gettingstarted-overlay/

Ray

On Tue, 2024-01-30 at 22:01 -0800, Amulya Sri Pulijala wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Thanks a ton! This helped. I could build it in RHEL using cas-overlay-template.

I have a doubt that, Can I customize 

Re: [cas-user] Couldn't build in Linux RHEL

2024-02-05 Thread Amulya Sri Pulijala
Hey,

Any custom code is also fine, something like mathematical expression etc. I
did try with Groovy script but I couldnt compile it, as am getting an error
that authenticate method is not implemented., but I did have that in my
script.

Small groovy script which generates an expression and validates at user end
is sufficient. Generation can be done at front end which I've already done
it.

Kindl y provide me if you have any grovy scripts tutorial or custom handler
tutorial..
Amulya

On Tue, Feb 6, 2024 at 1:27 AM Ray Bon  wrote:

> Amulya,
>
> Are you sure you need to have a custom captcha (or any other custom code)?
> If you do create something custom, try to make it in such a way that it
> can be added to the main cas project (hopefully you will have time to do so
> - which I seem to lack).
> See https://apereo.github.io/cas/developer/Contributor-Guidelines.html
>
> https://fawnoos.com/blog/ is a good place to start.
> You will also need to understand various spring libraries.
>
> Take a look at the existing reCaptcha
> https://apereo.github.io/cas/7.0.x/integration/Configuring-Google-reCAPTCHA.html
>  and
> how it is implemented, how it fits into [spring] web flow, gets properties
> etc. You may be able to extend those classes.
>
> Ray
>
> On Mon, 2024-02-05 at 21:38 +0530, Amulya Sri Pulijala wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
> Thanks!
>
> Yeah.. am trying to add captcha, username, password etc in a single
> handler. Any pointers to such tutorials?
>
> Amulya
>
> On Mon, Feb 5, 2024 at 7:58 PM Ray Bon  wrote:
>
> Amulya,
>
> To add 'customHandlers' you would need to modify the class that handles
> authn properties (cas.authn).
> To see how the chain of properties works in cas, start with the main class,
>
> https://github.com/apereo/cas/blob/v7.0.0/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/CasConfigurationProperties.java
>
> Search this file for 'authn' which is a class member pointing to
> AuthenticationProperties
>
> I do not suggest modifying AuthenticationProperties.
> You can create your own properties file (maybe CustomProperties) which
> could have a member variable authn pointing to
> CustomAuthenticationProperties. Given CustomAuthenticationProperties
> extends AuthenticationProperties, your property would then be
>
> cusom.authn.jdbc.bind[0].password=test@123
>
> i.e. leverage the properties of existing classes.
>
> Authentication can be a complex process.
> Cas is very modular. Small parts are assembled to meet the complexity.
>
> Are trying to make a single handler to process; username, password,
> captcha, ui widgets, etc?
> Many cas features have the capability to add groovy scripts. Perhaps some
> of your custom features can be met with builtin features + groovy.
>
> Take a look at post authentication processing too,
> https://apereo.github.io/cas/7.0.x/authentication/Configuring-Authentication-PrePostProcessing.html
>
> Ray
>
> On Sat, 2024-02-03 at 08:03 -0800, Amulya Sri Pulijala wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
> Thanks!
>
> I could create login page; handler and configure as well.
> I added it in both applications.yml and spring.factories as well.
>
> My cas.properties is as follows:
> cas.authn.accept.enabled=false
> cas.authn.handler.names=customAuthenticationHandler
> cas.authn.customHandlers.customAuthenticationHandler.name
> =customAuthenticationHandler
>
> cas.authn.customHandlers.customAuthenticationHandler.type=com.example.authentication.CustomAuthenticationHandler
>
> cas.authn.customHandlers.customAuthenticationHandler.url=jdbc:postgresql://localhost:5432/cas
> cas.authn.customHandlers.customAuthenticationHandler.username=postgres
> cas.authn.customHandlers.customAuthenticationHandler.password=test@123
> cas.authn.customHandlers.customAuthenticationHandler.sql=SELECT * FROM
> users WHERE username = ? AND password = ?
> cas.authn.customHandlers.customAuthenticationHandler.order=1
>
>
> Am facing the issue that login is not going to the custom handler. I could
> see that respective classes are generated at the correct location also.
>
> Thanks in advance! Kindly share your thoughts/inputs.
>
> Amulya
> On Saturday, February 3, 2024 at 8:27:11 AM UTC+5:30 Ray Bon wrote:
>
> Amulya,
>
> You can copy what is done for the default login form.
> I thought there was some guidance in the docs, but I am unable to find it.
> You can use spring tutorials.
>
> Ray
>
> On Thu, 2024-02-01 at 15:10 -0800, Amulya Sri Pulijala wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
> Thanks! that helped! I customized loginform.html and wrote my own
> handler.
> Can someone point out a 

Re: [cas-user] Alway Error 404 after compilation deployment

2024-02-05 Thread Ray Bon
Jérémie,

You might be waiting a long time debian to upgrade java ;)

You can download and install openjdk-21 (on Ubuntu, mine is in /usr/lib/jvm)

You can

$ JAVA_HOME=/usr/lib/jvm/jdk-21

Then when you run ./gradlew ... in the same terminal it will use that JAVA_HOME 
to find java.

For tomcat, download it, untar in a directory you manage (I use 
~/Applications). Start tomcat from the same directory, it should pick up the 
correct java.

You can, of course, create a script that wraps the above, and leaves your 
command line pointing to debian installed java.

With this approach, you can use the latest cas.

Java will be 'more' backwardly compatible than tomcat (I recall reading 
somewhere that tomcat 10 has made some big changes) but stay as close to 
version recommendations as possible.

Cas also comes with an embedded tomcat. Your choice of deployment should be 
base on the settings you will have in production (IMHO).

If you are not getting log output, does the user that runs tomcat have 
permission to write to /var/log ?

Ray

On Mon, 2024-02-05 at 16:50 +0100, Jérémie Pilette wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hi Ray Bon, I am using Debian 12 and openjdk is the version 18. So, must I 
install openjdk-11-jdk ? (18 > 11 should be good ...)
The same for Tomcat, tomcat9 is required for cas 6.6 so it should be good for 
tomcat10 too .. normally ...

If I choose cas 7, I need to install openjdk-21. I wanted to let the good 
packages from Debian 12

I think I have activate the logs but maybe I forget something... there are no 
logs  displayed in /var/log/cas/cas.log ... evne if it is configured in 
/etc/cas/config/log4j2.xml ...

Le lun. 5 févr. 2024 à 15:48, Ray Bon mailto:r...@uvic.ca>> a 
écrit :
Jérémie,

Is there a reason why java and tomcat are not the versions in the requirements?

You do not need to concern yourself with spring boot and gradle; they will be 
handled by the build process.

If you are starting out, use the most recent version.
See https://fawnoos.com/2023/12/15/cas70x-gettingstarted-overlay/

If you are still having problems, turn up the logging, and provide more detail. 
Such as, what are you doing that results in 404.

Ray

On Sun, 2024-02-04 at 07:41 -0800, Jérémie Pilette wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hi everybody,
I try to compile and deploy cas-overlay-template from initializr but I have 
always Error 404 Not found.

Requirement

Java Version: 11
Spring Boot Version: 2.7.3
Gradle Version: 7.6
Tomcat Version: 9.0.84


I have

Java Version: 18
Spring Boot Version: 2.7.3
Gradle Version: 7.6
Tomcat Version: 10.1.6

Do I forget something ?

Thank you ?


Jérémie




--
- 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 a topic in the Google 
Groups "CAS Community" group.
To unsubscribe from this topic, visit 
https://groups.google.com/a/apereo.org/d/topic/cas-user/6jhMHXaI540/unsubscribe.
To unsubscribe from this group and all its topics, 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/e2eb6a9176088650152d13b872c957b40fbfc2fb.camel%40uvic.ca.


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


Re: [cas-user] Couldn't build in Linux RHEL

2024-02-05 Thread Amulya Sri Pulijala
Thanks!

Yeah.. am trying to add captcha, username, password etc in a single
handler. Any pointers to such tutorials?

Amulya

On Mon, Feb 5, 2024 at 7:58 PM Ray Bon  wrote:

> Amulya,
>
> To add 'customHandlers' you would need to modify the class that handles
> authn properties (cas.authn).
> To see how the chain of properties works in cas, start with the main class,
>
> https://github.com/apereo/cas/blob/v7.0.0/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/CasConfigurationProperties.java
>
> Search this file for 'authn' which is a class member pointing to
> AuthenticationProperties
>
> I do not suggest modifying AuthenticationProperties.
> You can create your own properties file (maybe CustomProperties) which
> could have a member variable authn pointing to
> CustomAuthenticationProperties. Given CustomAuthenticationProperties
> extends AuthenticationProperties, your property would then be
>
> cusom.authn.jdbc.bind[0].password=test@123
>
> i.e. leverage the properties of existing classes.
>
> Authentication can be a complex process.
> Cas is very modular. Small parts are assembled to meet the complexity.
>
> Are trying to make a single handler to process; username, password,
> captcha, ui widgets, etc?
> Many cas features have the capability to add groovy scripts. Perhaps some
> of your custom features can be met with builtin features + groovy.
>
> Take a look at post authentication processing too,
> https://apereo.github.io/cas/7.0.x/authentication/Configuring-Authentication-PrePostProcessing.html
>
> Ray
>
> On Sat, 2024-02-03 at 08:03 -0800, Amulya Sri Pulijala wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
> Thanks!
>
> I could create login page; handler and configure as well.
> I added it in both applications.yml and spring.factories as well.
>
> My cas.properties is as follows:
> cas.authn.accept.enabled=false
> cas.authn.handler.names=customAuthenticationHandler
> cas.authn.customHandlers.customAuthenticationHandler.name
> =customAuthenticationHandler
>
> cas.authn.customHandlers.customAuthenticationHandler.type=com.example.authentication.CustomAuthenticationHandler
>
> cas.authn.customHandlers.customAuthenticationHandler.url=jdbc:postgresql://localhost:5432/cas
> cas.authn.customHandlers.customAuthenticationHandler.username=postgres
> cas.authn.customHandlers.customAuthenticationHandler.password=test@123
> cas.authn.customHandlers.customAuthenticationHandler.sql=SELECT * FROM
> users WHERE username = ? AND password = ?
> cas.authn.customHandlers.customAuthenticationHandler.order=1
>
>
> Am facing the issue that login is not going to the custom handler. I could
> see that respective classes are generated at the correct location also.
>
> Thanks in advance! Kindly share your thoughts/inputs.
>
> Amulya
> On Saturday, February 3, 2024 at 8:27:11 AM UTC+5:30 Ray Bon wrote:
>
> Amulya,
>
> You can copy what is done for the default login form.
> I thought there was some guidance in the docs, but I am unable to find it.
> You can use spring tutorials.
>
> Ray
>
> On Thu, 2024-02-01 at 15:10 -0800, Amulya Sri Pulijala wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
> Thanks! that helped! I customized loginform.html and wrote my own
> handler.
> Can someone point out a tutorial of how to build or how to write
> configuration for the handler?
>
> Amulya
>
> On Wednesday, January 31, 2024 at 7:51:33 PM UTC+5:30 Ray Bon wrote:
>
> Amulya,
>
> See https://fawnoos.com/2022/07/22/cas66-ui-themes/ and
> https://fawnoos.com/2023/12/15/cas70x-gettingstarted-overlay/
>
> Ray
>
> On Tue, 2024-01-30 at 22:01 -0800, Amulya Sri Pulijala wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
> Thanks a ton! This helped. I could build it in RHEL using
> cas-overlay-template.
>
> I have a doubt that, Can I customize UI and add few widgets like label,
> textbox (such as mathematical expressions for captcha) etc in
> cas-overlay-template as well??
> And specific functionality for them?
>
> Regards,
> Amulya
>
>
>
> On Wednesday, January 31, 2024 at 1:51:45 AM UTC+5:30 Ray Bon wrote:
>
> Amulya,
>
> Are you talking about the cas project or cas-overlay-template?
>
> Check your command (mind the '/' not '\'):
> ./gradlew clean build
>
> Ray
>
> On Tue, 2024-01-30 at 10:22 -0800, Amulya Sri Pulijala wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
>
> Hey,
>
> Am new to Apareo CAS. I could build v 6.6 in windows using gradle . But,
> when am trying to build it in Linux RHEL, I could not see any error during
> build, however, the war generated is of 261Kb only.
>
> And I 

[cas-user] how do I add dependency without being tied to version?

2024-02-05 Thread Yan Zhou
HI there,

with CAS 6.6.x overlay, I need to create my own authentication handler, 
which uses Apache Shiro's hash service, etc., it comes with CAS, but I have 
to explicitly list them in my project dependency so my code can compile.

looks like the following,  Note that I first find out CAS is using 
shiro-core 1.9.1 and then explicitly include it in build.gradle, is there a 
better way to manage this (such as I do Not have to explicitly include 
shiro dependency by specific version# ? this makes it difficult for 
upgrade.)

implementation "org.apereo.cas:cas-server-support-jdbc"
implementation "org.apereo.cas:cas-server-support-jdbc-authentication"
implementation "org.apache.shiro:shiro-core:1.9.1"
implementation "org.apereo.cas:cas-server-support-ldap"

Thanks,
Yan

-- 
- 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/c59e43c5-32c2-42cc-b499-eb2de79ad9fcn%40apereo.org.


Re: [cas-user] Alway Error 404 after compilation deployment

2024-02-05 Thread Jérémie Pilette
Hi Ray Bon, I am using Debian 12 and openjdk is the version 18. So, must I
install openjdk-11-jdk ? (18 > 11 should be good ...)
The same for Tomcat, tomcat9 is required for cas 6.6 so it should be good
for tomcat10 too .. normally ...

If I choose cas 7, I need to install openjdk-21. I wanted to let the good
packages from Debian 12

I think I have activate the logs but maybe I forget something... there are
no logs  displayed in /var/log/cas/cas.log ... evne if it is configured in
/etc/cas/config/log4j2.xml ...

Le lun. 5 févr. 2024 à 15:48, Ray Bon  a écrit :

> Jérémie,
>
> Is there a reason why java and tomcat are not the versions in the
> requirements?
>
> You do not need to concern yourself with spring boot and gradle; they will
> be handled by the build process.
>
> If you are starting out, use the most recent version.
> See https://fawnoos.com/2023/12/15/cas70x-gettingstarted-overlay/
>
> If you are still having problems, turn up the logging, and provide more
> detail. Such as, what are you doing that results in 404.
>
> Ray
>
> On Sun, 2024-02-04 at 07:41 -0800, Jérémie Pilette wrote:
>
> Notice: This message was sent from outside the University of Victoria
> email system. Please be cautious with links and sensitive information.
>
> Hi everybody,
> I try to compile and deploy cas-overlay-template from initializr but I
> have always Error 404 Not found.
>
> Requirement
>
> *Java Version:* 11
> *Spring Boot Version:* 2.7.3
> *Gradle Version:* 7.6
> *Tomcat Version:* 9.0.84
>
>
> I have
>
> *Java Version:* 18
> *Spring Boot Version:* 2.7.3
> *Gradle Version:* 7.6
> *Tomcat Version:* 10.1.6
>
> Do I forget something ?
>
> Thank you ?
>
>
> Jérémie
>
>
>
>
> --
> - 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 a topic in the
> Google Groups "CAS Community" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/a/apereo.org/d/topic/cas-user/6jhMHXaI540/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/e2eb6a9176088650152d13b872c957b40fbfc2fb.camel%40uvic.ca
> 
> .
>

-- 
- 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/CAM25OR8mRtug_b72kbC54XwctkLbvVs292Q9zFbG0SRbzmPrQQ%40mail.gmail.com.


Re: [cas-user] Alway Error 404 after compilation deployment

2024-02-05 Thread Ray Bon
Jérémie,

Is there a reason why java and tomcat are not the versions in the requirements?

You do not need to concern yourself with spring boot and gradle; they will be 
handled by the build process.

If you are starting out, use the most recent version.
See https://fawnoos.com/2023/12/15/cas70x-gettingstarted-overlay/

If you are still having problems, turn up the logging, and provide more detail. 
Such as, what are you doing that results in 404.

Ray

On Sun, 2024-02-04 at 07:41 -0800, Jérémie Pilette wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hi everybody,
I try to compile and deploy cas-overlay-template from initializr but I have 
always Error 404 Not found.

Requirement

Java Version: 11
Spring Boot Version: 2.7.3
Gradle Version: 7.6
Tomcat Version: 9.0.84


I have

Java Version: 18
Spring Boot Version: 2.7.3
Gradle Version: 7.6
Tomcat Version: 10.1.6

Do I forget something ?

Thank you ?


Jérémie



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


Re: [cas-user] Couldn't build in Linux RHEL

2024-02-05 Thread Ray Bon
Amulya,

To add 'customHandlers' you would need to modify the class that handles authn 
properties (cas.authn).
To see how the chain of properties works in cas, start with the main class,
https://github.com/apereo/cas/blob/v7.0.0/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/CasConfigurationProperties.java

Search this file for 'authn' which is a class member pointing to 
AuthenticationProperties

I do not suggest modifying AuthenticationProperties.
You can create your own properties file (maybe CustomProperties) which could 
have a member variable authn pointing to CustomAuthenticationProperties. Given 
CustomAuthenticationProperties extends AuthenticationProperties, your property 
would then be

cusom.authn.jdbc.bind[0].password=test@123

i.e. leverage the properties of existing classes.

Authentication can be a complex process.
Cas is very modular. Small parts are assembled to meet the complexity.

Are trying to make a single handler to process; username, password, captcha, ui 
widgets, etc?
Many cas features have the capability to add groovy scripts. Perhaps some of 
your custom features can be met with builtin features + groovy.

Take a look at post authentication processing too, 
https://apereo.github.io/cas/7.0.x/authentication/Configuring-Authentication-PrePostProcessing.html

Ray

On Sat, 2024-02-03 at 08:03 -0800, Amulya Sri Pulijala wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Thanks!

I could create login page; handler and configure as well.
I added it in both applications.yml and spring.factories as well.

My cas.properties is as follows:
cas.authn.accept.enabled=false
cas.authn.handler.names=customAuthenticationHandler
cas.authn.customHandlers.customAuthenticationHandler.name=customAuthenticationHandler
cas.authn.customHandlers.customAuthenticationHandler.type=com.example.authentication.CustomAuthenticationHandler
cas.authn.customHandlers.customAuthenticationHandler.url=jdbc:postgresql://localhost:5432/cas
cas.authn.customHandlers.customAuthenticationHandler.username=postgres
cas.authn.customHandlers.customAuthenticationHandler.password=test@123
cas.authn.customHandlers.customAuthenticationHandler.sql=SELECT * FROM users 
WHERE username = ? AND password = ?
cas.authn.customHandlers.customAuthenticationHandler.order=1


Am facing the issue that login is not going to the custom handler. I could see 
that respective classes are generated at the correct location also.

Thanks in advance! Kindly share your thoughts/inputs.

Amulya
On Saturday, February 3, 2024 at 8:27:11 AM UTC+5:30 Ray Bon wrote:
Amulya,

You can copy what is done for the default login form.
I thought there was some guidance in the docs, but I am unable to find it. You 
can use spring tutorials.

Ray

On Thu, 2024-02-01 at 15:10 -0800, Amulya Sri Pulijala wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Thanks! that helped! I customized loginform.html and wrote my own handler.
Can someone point out a tutorial of how to build or how to write configuration 
for the handler?

Amulya

On Wednesday, January 31, 2024 at 7:51:33 PM UTC+5:30 Ray Bon wrote:
Amulya,

See https://fawnoos.com/2022/07/22/cas66-ui-themes/ and 
https://fawnoos.com/2023/12/15/cas70x-gettingstarted-overlay/

Ray

On Tue, 2024-01-30 at 22:01 -0800, Amulya Sri Pulijala wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Thanks a ton! This helped. I could build it in RHEL using cas-overlay-template.

I have a doubt that, Can I customize UI and add few widgets like label,  
textbox (such as mathematical expressions for captcha) etc in 
cas-overlay-template as well??
And specific functionality for them?

Regards,
Amulya



On Wednesday, January 31, 2024 at 1:51:45 AM UTC+5:30 Ray Bon wrote:
Amulya,

Are you talking about the cas project or cas-overlay-template?

Check your command (mind the '/' not '\'):
./gradlew clean build

Ray

On Tue, 2024-01-30 at 10:22 -0800, Amulya Sri Pulijala wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hey,

Am new to Apareo CAS. I could build v 6.6 in windows using gradle . But, when 
am trying to build it in Linux RHEL, I could not see any error during build, 
however, the war generated is of 261Kb only.

And I could see that WEB-INF folder itself is missing in war file., the build 
process is same. I just cloned and ran .\gradlew clean build.
I tried stopping the gradle, cleaning it and restarting, but the output is 
ssame.

Kindly help me. Thanks in Advance!

Regards,
Amulya






-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: 

Re: [cas-user] Re: Alway Error 404 after compilation deployment

2024-02-05 Thread Mohamed Amdouni
It not the only parameter. Try to follow the blog post.

You need to setup the keystore the application.properties the
cas.properties



Le lun. 5 févr. 2024 à 11:42, Jérémie Pilette  a
écrit :

> I never used this parameter : server.context-path=/cas (I just added it
> now)
>
> About log :
> */bin/cas# tail -f /var/log/tomcat10/catalina.out*
> [2024-02-05 11:38:11] [info] Au moins un fichier JAR a été analysé pour
> trouver des TLDs mais il n'en contenait pas, le mode "debug" du journal
> peut être activé pour obtenir une liste complète de JAR scannés sans succès
> ; éviter d'analyser des JARs inutilement peut améliorer sensiblement le
> temps de démarrage et le temps de compilation des JSPs
> [2024-02-05 11:38:11] [info] Le déploiement de l'archive de l'application
> web [/var/lib/tomcat10/webapps/cas.war] s'est terminé en [8 052] ms
> [2024-02-05 11:38:11] [info] Déploiement de l'archive
> [/var/lib/tomcat10/webapps/casconfigserver.war] de l'application web
> [2024-02-05 11:38:18] [info] Au moins un fichier JAR a été analysé pour
> trouver des TLDs mais il n'en contenait pas, le mode "debug" du journal
> peut être activé pour obtenir une liste complète de JAR scannés sans succès
> ; éviter d'analyser des JARs inutilement peut améliorer sensiblement le
> temps de démarrage et le temps de compilation des JSPs
> [2024-02-05 11:38:18] [info] Le déploiement de l'archive de l'application
> web [/var/lib/tomcat10/webapps/casconfigserver.war] s'est terminé en
> [7 810] ms
> [2024-02-05 11:38:18] [info] Déploiement du répertoire d'application web
> [/var/lib/tomcat10/webapps/ROOT]
> [2024-02-05 11:38:19] [info] Au moins un fichier JAR a été analysé pour
> trouver des TLDs mais il n'en contenait pas, le mode "debug" du journal
> peut être activé pour obtenir une liste complète de JAR scannés sans succès
> ; éviter d'analyser des JARs inutilement peut améliorer sensiblement le
> temps de démarrage et le temps de compilation des JSPs
> [2024-02-05 11:38:19] [info] Le déploiement du répertoire
> [/var/lib/tomcat10/webapps/ROOT] de l'application web s'est terminé en
> [663] ms
> [2024-02-05 11:38:19] [info] Démarrage du gestionnaire de protocole
> ["http-nio-8080"]
> [2024-02-05 11:38:19] [info] Le démarrage du serveur a pris [29090]
> millisecondes
>
> */bin/cas# tail -f /var/log/tomcat10/localhost_access_log.2024-02-05.txt *
> 192.168.1.197 - - [05/Feb/2024:10:39:12 +0100] "GET /cas/ HTTP/1.1" 404 698
> 192.168.1.197 - - [05/Feb/2024:10:39:15 +0100] "GET /cas HTTP/1.1" 302 -
> 192.168.1.197 - - [05/Feb/2024:10:39:15 +0100] "GET /cas/ HTTP/1.1" 404 698
> 192.168.1.197 - - [05/Feb/2024:10:41:05 +0100] "GET /cas/ HTTP/1.1" 404 698
> 192.168.50.119 - - [05/Feb/2024:11:01:32 +0100] "GET
> /DevMgmt/DiscoveryTree.xml HTTP/1.1" 404 719
> 192.168.1.197 - - [05/Feb/2024:11:07:12 +0100] "GET /cas/ HTTP/1.1" 404 698
> 192.168.1.174 - - [05/Feb/2024:11:31:52 +0100] "GET
> /DevMgmt/DiscoveryTree.xml HTTP/1.1" 404 719
> 192.168.1.197 - - [05/Feb/2024:11:32:46 +0100] "GET /cas/ HTTP/1.1" 404 698
> 192.168.1.197 - - [05/Feb/2024:11:32:46 +0100] "GET /favicon.ico HTTP/1.1"
> 404 701
> 192.168.1.197 - - [05/Feb/2024:11:38:19 +0100] "GET /cas/ HTTP/1.1" 404 698
>
> *tail -f /var/log/cas/cas.log*
> (empty)
>
>
> Le lun. 5 févr. 2024 à 11:16, Mohamed Amdouni  a
> écrit :
>
>> Yes the banner in the log.
>> The context define in server.context-path=/cas
>> For log check logging section of cas.
>>
>>
>>
>> Le lun. 5 févr. 2024 à 10:46, Jérémie Pilette 
>> a écrit :
>>
>>> Ready message on the server ? Do you mean in the logs ?
>>> What do you mean about context ?
>>> Even if I put debug level in log4j2.xml, I have no debug logs...
>>>
>>> Le lun. 5 févr. 2024 à 10:29, Mohamed Amdouni  a
>>> écrit :
>>>
 Did you get the ready message on the server start up ?

 You have a 404 error so check if the context is ok in the
 cas.properties.

 And put debug level in log configuration.

 A blog post that could help you :
 https://fawnoos.com/2022/03/04/cas65-gettingstarted-overlay/


 Le lun. 5 févr. 2024 à 10:19, Jérémie Pilette 
 a écrit :

> Is that possible it is the problem :
> > Configure project :
> Careful: Current Java version 17 does not match required Java version
> 11
> Invalid Java installation found at '/usr/lib/jvm/openjdk-11' (Common
> Linux Locations). It will be re-checked in the next build. This might have
> performance impact if it keeps failing. Run the 'javaToolchains' task for
> more details.
>
> What is stange is that is written BUILD SUCCESFUL ... so it seems to
> be good ..
>
> Thank you,
> Jérémie
>
> Le lundi 5 février 2024 à 06:03:20 UTC+1, Pablo Vidaurri a écrit :
>
>> What endpoint are you getting 404 at? if deploying from localhost,
>> are you hitting https://localhost:8443/cas/login ?
>>
>> On Sunday, February 4, 2024 at 11:38:26 AM UTC-6 Jérémie Pilette
>> wrote:
>>

Re: [cas-user] Re: Alway Error 404 after compilation deployment

2024-02-05 Thread Jérémie Pilette
I never used this parameter : server.context-path=/cas (I just added it now)

About log :
*/bin/cas# tail -f /var/log/tomcat10/catalina.out*
[2024-02-05 11:38:11] [info] Au moins un fichier JAR a été analysé pour
trouver des TLDs mais il n'en contenait pas, le mode "debug" du journal
peut être activé pour obtenir une liste complète de JAR scannés sans succès
; éviter d'analyser des JARs inutilement peut améliorer sensiblement le
temps de démarrage et le temps de compilation des JSPs
[2024-02-05 11:38:11] [info] Le déploiement de l'archive de l'application
web [/var/lib/tomcat10/webapps/cas.war] s'est terminé en [8 052] ms
[2024-02-05 11:38:11] [info] Déploiement de l'archive
[/var/lib/tomcat10/webapps/casconfigserver.war] de l'application web
[2024-02-05 11:38:18] [info] Au moins un fichier JAR a été analysé pour
trouver des TLDs mais il n'en contenait pas, le mode "debug" du journal
peut être activé pour obtenir une liste complète de JAR scannés sans succès
; éviter d'analyser des JARs inutilement peut améliorer sensiblement le
temps de démarrage et le temps de compilation des JSPs
[2024-02-05 11:38:18] [info] Le déploiement de l'archive de l'application
web [/var/lib/tomcat10/webapps/casconfigserver.war] s'est terminé en
[7 810] ms
[2024-02-05 11:38:18] [info] Déploiement du répertoire d'application web
[/var/lib/tomcat10/webapps/ROOT]
[2024-02-05 11:38:19] [info] Au moins un fichier JAR a été analysé pour
trouver des TLDs mais il n'en contenait pas, le mode "debug" du journal
peut être activé pour obtenir une liste complète de JAR scannés sans succès
; éviter d'analyser des JARs inutilement peut améliorer sensiblement le
temps de démarrage et le temps de compilation des JSPs
[2024-02-05 11:38:19] [info] Le déploiement du répertoire
[/var/lib/tomcat10/webapps/ROOT] de l'application web s'est terminé en
[663] ms
[2024-02-05 11:38:19] [info] Démarrage du gestionnaire de protocole
["http-nio-8080"]
[2024-02-05 11:38:19] [info] Le démarrage du serveur a pris [29090]
millisecondes

*/bin/cas# tail -f /var/log/tomcat10/localhost_access_log.2024-02-05.txt *
192.168.1.197 - - [05/Feb/2024:10:39:12 +0100] "GET /cas/ HTTP/1.1" 404 698
192.168.1.197 - - [05/Feb/2024:10:39:15 +0100] "GET /cas HTTP/1.1" 302 -
192.168.1.197 - - [05/Feb/2024:10:39:15 +0100] "GET /cas/ HTTP/1.1" 404 698
192.168.1.197 - - [05/Feb/2024:10:41:05 +0100] "GET /cas/ HTTP/1.1" 404 698
192.168.50.119 - - [05/Feb/2024:11:01:32 +0100] "GET
/DevMgmt/DiscoveryTree.xml HTTP/1.1" 404 719
192.168.1.197 - - [05/Feb/2024:11:07:12 +0100] "GET /cas/ HTTP/1.1" 404 698
192.168.1.174 - - [05/Feb/2024:11:31:52 +0100] "GET
/DevMgmt/DiscoveryTree.xml HTTP/1.1" 404 719
192.168.1.197 - - [05/Feb/2024:11:32:46 +0100] "GET /cas/ HTTP/1.1" 404 698
192.168.1.197 - - [05/Feb/2024:11:32:46 +0100] "GET /favicon.ico HTTP/1.1"
404 701
192.168.1.197 - - [05/Feb/2024:11:38:19 +0100] "GET /cas/ HTTP/1.1" 404 698

*tail -f /var/log/cas/cas.log*
(empty)


Le lun. 5 févr. 2024 à 11:16, Mohamed Amdouni  a
écrit :

> Yes the banner in the log.
> The context define in server.context-path=/cas
> For log check logging section of cas.
>
>
>
> Le lun. 5 févr. 2024 à 10:46, Jérémie Pilette  a
> écrit :
>
>> Ready message on the server ? Do you mean in the logs ?
>> What do you mean about context ?
>> Even if I put debug level in log4j2.xml, I have no debug logs...
>>
>> Le lun. 5 févr. 2024 à 10:29, Mohamed Amdouni  a
>> écrit :
>>
>>> Did you get the ready message on the server start up ?
>>>
>>> You have a 404 error so check if the context is ok in the cas.properties.
>>>
>>> And put debug level in log configuration.
>>>
>>> A blog post that could help you :
>>> https://fawnoos.com/2022/03/04/cas65-gettingstarted-overlay/
>>>
>>>
>>> Le lun. 5 févr. 2024 à 10:19, Jérémie Pilette 
>>> a écrit :
>>>
 Is that possible it is the problem :
 > Configure project :
 Careful: Current Java version 17 does not match required Java version 11
 Invalid Java installation found at '/usr/lib/jvm/openjdk-11' (Common
 Linux Locations). It will be re-checked in the next build. This might have
 performance impact if it keeps failing. Run the 'javaToolchains' task for
 more details.

 What is stange is that is written BUILD SUCCESFUL ... so it seems to be
 good ..

 Thank you,
 Jérémie

 Le lundi 5 février 2024 à 06:03:20 UTC+1, Pablo Vidaurri a écrit :

> What endpoint are you getting 404 at? if deploying from localhost, are
> you hitting https://localhost:8443/cas/login ?
>
> On Sunday, February 4, 2024 at 11:38:26 AM UTC-6 Jérémie Pilette wrote:
>
>> Hi everybody,
>> I try to compile and deploy cas-overlay-template from initializr but
>> I have always Error 404 Not found.
>>
>> Requirement
>>
>> *Java Version:* 11
>> *Spring Boot Version:* 2.7.3
>> *Gradle Version:* 7.6
>> *Tomcat Version:* 9.0.84
>>
>>
>> I have
>>
>> *Java Version:* 18
>> *Spring Boot 

Re: [cas-user] Re: Alway Error 404 after compilation deployment

2024-02-05 Thread Jérémie Pilette
Ready message on the server ? Do you mean in the logs ?
What do you mean about context ?
Even if I put debug level in log4j2.xml, I have no debug logs...

Le lun. 5 févr. 2024 à 10:29, Mohamed Amdouni  a
écrit :

> Did you get the ready message on the server start up ?
>
> You have a 404 error so check if the context is ok in the cas.properties.
>
> And put debug level in log configuration.
>
> A blog post that could help you :
> https://fawnoos.com/2022/03/04/cas65-gettingstarted-overlay/
>
>
> Le lun. 5 févr. 2024 à 10:19, Jérémie Pilette  a
> écrit :
>
>> Is that possible it is the problem :
>> > Configure project :
>> Careful: Current Java version 17 does not match required Java version 11
>> Invalid Java installation found at '/usr/lib/jvm/openjdk-11' (Common
>> Linux Locations). It will be re-checked in the next build. This might have
>> performance impact if it keeps failing. Run the 'javaToolchains' task for
>> more details.
>>
>> What is stange is that is written BUILD SUCCESFUL ... so it seems to be
>> good ..
>>
>> Thank you,
>> Jérémie
>>
>> Le lundi 5 février 2024 à 06:03:20 UTC+1, Pablo Vidaurri a écrit :
>>
>>> What endpoint are you getting 404 at? if deploying from localhost, are
>>> you hitting https://localhost:8443/cas/login ?
>>>
>>> On Sunday, February 4, 2024 at 11:38:26 AM UTC-6 Jérémie Pilette wrote:
>>>
 Hi everybody,
 I try to compile and deploy cas-overlay-template from initializr but I
 have always Error 404 Not found.

 Requirement

 *Java Version:* 11
 *Spring Boot Version:* 2.7.3
 *Gradle Version:* 7.6
 *Tomcat Version:* 9.0.84


 I have

 *Java Version:* 18
 *Spring Boot Version:* 2.7.3
 *Gradle Version:* 7.6
 *Tomcat Version:* 10.1.6

 Do I forget something ?

 Thank you ?


 Jérémie



 --
>> - 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/225825ee-1dd5-4209-9f4c-04e2456ffd07n%40apereo.org
>> 
>> .
>>
>

-- 
- 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/CAM25OR9Aporw2Rc5Z7nivHx53c9U327%2B82xrNRDU_oFEaW3uzw%40mail.gmail.com.


Re: [cas-user] Re: Alway Error 404 after compilation deployment

2024-02-05 Thread Mohamed Amdouni
Yes the banner in the log.
The context define in server.context-path=/cas
For log check logging section of cas.



Le lun. 5 févr. 2024 à 10:46, Jérémie Pilette  a
écrit :

> Ready message on the server ? Do you mean in the logs ?
> What do you mean about context ?
> Even if I put debug level in log4j2.xml, I have no debug logs...
>
> Le lun. 5 févr. 2024 à 10:29, Mohamed Amdouni  a
> écrit :
>
>> Did you get the ready message on the server start up ?
>>
>> You have a 404 error so check if the context is ok in the cas.properties.
>>
>> And put debug level in log configuration.
>>
>> A blog post that could help you :
>> https://fawnoos.com/2022/03/04/cas65-gettingstarted-overlay/
>>
>>
>> Le lun. 5 févr. 2024 à 10:19, Jérémie Pilette 
>> a écrit :
>>
>>> Is that possible it is the problem :
>>> > Configure project :
>>> Careful: Current Java version 17 does not match required Java version 11
>>> Invalid Java installation found at '/usr/lib/jvm/openjdk-11' (Common
>>> Linux Locations). It will be re-checked in the next build. This might have
>>> performance impact if it keeps failing. Run the 'javaToolchains' task for
>>> more details.
>>>
>>> What is stange is that is written BUILD SUCCESFUL ... so it seems to be
>>> good ..
>>>
>>> Thank you,
>>> Jérémie
>>>
>>> Le lundi 5 février 2024 à 06:03:20 UTC+1, Pablo Vidaurri a écrit :
>>>
 What endpoint are you getting 404 at? if deploying from localhost, are
 you hitting https://localhost:8443/cas/login ?

 On Sunday, February 4, 2024 at 11:38:26 AM UTC-6 Jérémie Pilette wrote:

> Hi everybody,
> I try to compile and deploy cas-overlay-template from initializr but I
> have always Error 404 Not found.
>
> Requirement
>
> *Java Version:* 11
> *Spring Boot Version:* 2.7.3
> *Gradle Version:* 7.6
> *Tomcat Version:* 9.0.84
>
>
> I have
>
> *Java Version:* 18
> *Spring Boot Version:* 2.7.3
> *Gradle Version:* 7.6
> *Tomcat Version:* 10.1.6
>
> Do I forget something ?
>
> Thank you ?
>
>
> Jérémie
>
>
>
> --
>>> - 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/225825ee-1dd5-4209-9f4c-04e2456ffd07n%40apereo.org
>>> 
>>> .
>>>
>>

-- 
- 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/CALmwvcZeiaUA1AR3Rxs%3DGPOqrYebSOpgqrTqBNQSMR88pAA%2BYA%40mail.gmail.com.


Re: [cas-user] Re: Alway Error 404 after compilation deployment

2024-02-05 Thread Mohamed Amdouni
Did you get the ready message on the server start up ?

You have a 404 error so check if the context is ok in the cas.properties.

And put debug level in log configuration.

A blog post that could help you :
https://fawnoos.com/2022/03/04/cas65-gettingstarted-overlay/


Le lun. 5 févr. 2024 à 10:19, Jérémie Pilette  a
écrit :

> Is that possible it is the problem :
> > Configure project :
> Careful: Current Java version 17 does not match required Java version 11
> Invalid Java installation found at '/usr/lib/jvm/openjdk-11' (Common Linux
> Locations). It will be re-checked in the next build. This might have
> performance impact if it keeps failing. Run the 'javaToolchains' task for
> more details.
>
> What is stange is that is written BUILD SUCCESFUL ... so it seems to be
> good ..
>
> Thank you,
> Jérémie
>
> Le lundi 5 février 2024 à 06:03:20 UTC+1, Pablo Vidaurri a écrit :
>
>> What endpoint are you getting 404 at? if deploying from localhost, are
>> you hitting https://localhost:8443/cas/login ?
>>
>> On Sunday, February 4, 2024 at 11:38:26 AM UTC-6 Jérémie Pilette wrote:
>>
>>> Hi everybody,
>>> I try to compile and deploy cas-overlay-template from initializr but I
>>> have always Error 404 Not found.
>>>
>>> Requirement
>>>
>>> *Java Version:* 11
>>> *Spring Boot Version:* 2.7.3
>>> *Gradle Version:* 7.6
>>> *Tomcat Version:* 9.0.84
>>>
>>>
>>> I have
>>>
>>> *Java Version:* 18
>>> *Spring Boot Version:* 2.7.3
>>> *Gradle Version:* 7.6
>>> *Tomcat Version:* 10.1.6
>>>
>>> Do I forget something ?
>>>
>>> Thank you ?
>>>
>>>
>>> Jérémie
>>>
>>>
>>>
>>> --
> - 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/225825ee-1dd5-4209-9f4c-04e2456ffd07n%40apereo.org
> 
> .
>

-- 
- 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/CALmwvcYNXVtM7uKpAZYZsuQnVJ_zUQY8ND4uCUwas_OxN73coA%40mail.gmail.com.


[cas-user] Re: Alway Error 404 after compilation deployment

2024-02-05 Thread Jérémie Pilette
Is that possible it is the problem :
> Configure project :
Careful: Current Java version 17 does not match required Java version 11
Invalid Java installation found at '/usr/lib/jvm/openjdk-11' (Common Linux 
Locations). It will be re-checked in the next build. This might have 
performance impact if it keeps failing. Run the 'javaToolchains' task for 
more details.

What is stange is that is written BUILD SUCCESFUL ... so it seems to be 
good ..

Thank you,
Jérémie

Le lundi 5 février 2024 à 06:03:20 UTC+1, Pablo Vidaurri a écrit :

> What endpoint are you getting 404 at? if deploying from localhost, are you 
> hitting https://localhost:8443/cas/login ?
>
> On Sunday, February 4, 2024 at 11:38:26 AM UTC-6 Jérémie Pilette wrote:
>
>> Hi everybody,
>> I try to compile and deploy cas-overlay-template from initializr but I 
>> have always Error 404 Not found.
>>
>> Requirement
>>
>> *Java Version:* 11
>> *Spring Boot Version:* 2.7.3
>> *Gradle Version:* 7.6
>> *Tomcat Version:* 9.0.84
>>
>>
>> I have 
>>
>> *Java Version:* 18
>> *Spring Boot Version:* 2.7.3
>> *Gradle Version:* 7.6
>> *Tomcat Version:* 10.1.6
>>
>> Do I forget something ?
>>
>> Thank you ?
>>
>>
>> Jérémie
>>
>>
>>
>>

-- 
- 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/225825ee-1dd5-4209-9f4c-04e2456ffd07n%40apereo.org.


Re: [cas-user] Re: Alway Error 404 after compilation deployment

2024-02-05 Thread Mohamed Amdouni
Hi,

How you build your app?

What are your dependencies ?

Did you tried using embedded Tomcat ? Java -jar cas.war

Is it required to have external tomacat?

Le lun. 5 févr. 2024 à 09:24, Jérémie Pilette  a
écrit :

>
> Hi Pablo,
> I never have the possibility to see the authentification form. It is
> really at the beginning.
> This is my test server, I do  not use TLS for the moment.
>
> http://my-ip:8080/cas
>
> Jérémie
> Le lundi 5 février 2024 à 06:03:20 UTC+1, Pablo Vidaurri a écrit :
>
>> What endpoint are you getting 404 at? if deploying from localhost, are
>> you hitting https://localhost:8443/cas/login ?
>>
>> On Sunday, February 4, 2024 at 11:38:26 AM UTC-6 Jérémie Pilette wrote:
>>
>>> Hi everybody,
>>> I try to compile and deploy cas-overlay-template from initializr but I
>>> have always Error 404 Not found.
>>>
>>> Requirement
>>>
>>> *Java Version:* 11
>>> *Spring Boot Version:* 2.7.3
>>> *Gradle Version:* 7.6
>>> *Tomcat Version:* 9.0.84
>>>
>>>
>>> I have
>>>
>>> *Java Version:* 18
>>> *Spring Boot Version:* 2.7.3
>>> *Gradle Version:* 7.6
>>> *Tomcat Version:* 10.1.6
>>>
>>> Do I forget something ?
>>>
>>> Thank you ?
>>>
>>>
>>> Jérémie
>>>
>>>
>>>
>>> --
> - 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/54e359a6-9eca-4842-8c39-65b800e32521n%40apereo.org
> 
> .
>

-- 
- 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/CALmwvcYoktKi%2BGdQmE%3D2JaqeLctHD5jRYfYG4UC_wnc1tABO%3Dg%40mail.gmail.com.


[cas-user] Re: Alway Error 404 after compilation deployment

2024-02-05 Thread Jérémie Pilette

Hi Pablo,
I never have the possibility to see the authentification form. It is really 
at the beginning.
This is my test server, I do  not use TLS for the moment.

http://my-ip:8080/cas

Jérémie
Le lundi 5 février 2024 à 06:03:20 UTC+1, Pablo Vidaurri a écrit :

> What endpoint are you getting 404 at? if deploying from localhost, are you 
> hitting https://localhost:8443/cas/login ?
>
> On Sunday, February 4, 2024 at 11:38:26 AM UTC-6 Jérémie Pilette wrote:
>
>> Hi everybody,
>> I try to compile and deploy cas-overlay-template from initializr but I 
>> have always Error 404 Not found.
>>
>> Requirement
>>
>> *Java Version:* 11
>> *Spring Boot Version:* 2.7.3
>> *Gradle Version:* 7.6
>> *Tomcat Version:* 9.0.84
>>
>>
>> I have 
>>
>> *Java Version:* 18
>> *Spring Boot Version:* 2.7.3
>> *Gradle Version:* 7.6
>> *Tomcat Version:* 10.1.6
>>
>> Do I forget something ?
>>
>> Thank you ?
>>
>>
>> Jérémie
>>
>>
>>
>>

-- 
- 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/54e359a6-9eca-4842-8c39-65b800e32521n%40apereo.org.