You don't often get email from abdessam...@gmail.com. Learn why this is important
You don't often get email from abdessam...@gmail.com. Learn why this is important
Hi Ray,
Our production environment uses Java 8, while CAS 7.1 requires Java 21. I tried using CAS 6 with Java 17, but I encountered build errors.
I think the main challenge is configuring Angular to consume CAS service APIs and manage the login page and redirection effectively. Angular does not need to interact directly with the CAS server, as Spring Security on the CAS server handles this flow.
the problem I have is when I call the spring boot app (CAS SERVICE) API from Angular I get the CAS login page HTML as an API response instead of redirecting me to it in the browser.
If you have any suggestions or insights on how to resolve these issues, I would greatly appreciate it!Best regards
Le mercredi 22 janvier 2025 à 19:56:02 UTC+1, Ray Bon a écrit :
abdessamad,
I suggest you upgrade to the latest cas version, 7.1.xIt sounds like your Angular client needs to interact with the Spring Boot service with the proxy protocol; see protocol flow https://apereo.github.io/cas/7.1.x/protocol/CAS-Protocol.html#proxy-webflow-diagram
Ray
On Tue, 2025-01-21 at 17:24 -0800, abdessamad kech wrote:
You don't often get email from abdessam...@gmail.com.Learn why this is important
Hi,
I tried CAS 6.6 but i am getting trouble with JWT authentication. I want the jwt so I can consume the cas services. but it is not working don't know why. When I test in postman instead of getting the JWT I get the Service Tickect.
this is my cas configuration:
this is the apis I try to get the token so I can configure the angular application to consume cas protected apis.server.ssl.key-store=file:/etc/cas/thekeystore
server.ssl.key-store-password=changeit
server.port=8443
logging.config=file:/etc/cas/config/log4j2.xml
cas.server.name=https://localhost:8443
cas.server.prefix=${cas.server.name}/cas
cas.serviceRegistry.initFromJson=true
cas.serviceRegistry.config.location=classpath:/services
###Token/JWT Tickets ENCRIPTION
cas.authn.token.crypto.enabled=true
#
cas.authn.token.crypto.signing-enabled=true
cas.authn.token.crypto.signing.key=qX2l95jVVoZQDWLNiFnhQF43agCtdMxRnIXOO9g
#
cas.authn.token.crypto.encryption-enabled=true
cas.authn.token.crypto.encryption.key=Dkkpi7iUKqidOXXmeAbr4RyHirYmgQgqqUrIo6q_JPNks2i
POST /cas/v1/tickets HTTP/1.1
Host: your-cas-server.com
Content-Type: application/x-www-form-urlencoded
username=your_username&password=your_password
POST /cas/v1/tickets/TGT-12345 HTTP/1.1
Host: your-cas-server.com
Content-Type: application/json
{
"service": "https://your-service-url.com"
}
I add the JSON and token dependencies in the gradle. build.
Objectif:
My purpose is to configure the Angular app to consume the Cas service application and get data from the API. I tried using the service ticket, but it didn't work. I also know I am trying to use the JWT, but the problem is still the same.
Can you guide me through this? If you have time, we can schedule a point. I have been stuck in this for approximately 20 days.
Best regards
Le lun. 27 janv. 2025 à 19:55, Ray Bon <rb...@uvic.ca> a écrit :
Abdessamad,
I do not knowwhat features were available in 5.3.You may be able to get a list of configurable properties with (if the build uses gradle):./gradlew exportConfigMetadata
(you can also try ./gradlew tasks)
With a 500 error, there should be log messages outlining the problem.
Ray
On Sun, 2025-01-26 at 00:24 +0100, abdessamad kech wrote:Hi Ray,
Thank you for your time. I really appreciate it.
I followed your advice to upgrade to cas 7.1 but I got a problem after the build I cannot access to the login page. I am using jdk 21.0.2. I'll send you a screenshot of the problem so you can understand it better.
I want also to ask you if CAS 5.3 supports JWT and OAuth protocols?
best regards,Abdessamad
--
- Website: https://apereo.github.io/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 visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/109b073f32d6cfc59e4c2e9abd573844d0484d72.camel%40uvic.ca.