I'm pretty new to cas (6.6.8) and I'm trying to connect an test application to my CAS server using OIDC. I'm used to Okta, Auth0, etc so OIDC is not new to me, just CAS configuration.
My Cas is also connected to an AD to sign in.
This is my Cas server configuration using OIDC module (org.apereo.cas:cas-server-support-oidc) :
# Server
server.port=443
# SSL
server.ssl.enabled=true
server.ssl.key-store=file:{path}
server.ssl.key-store-password=xxx
server.ssl.key-password=xxx
# CAS
cas.server.name=
https://URL:443cas.server.prefix=${
cas.server.name}/cas
cas.logout.followServiceRedirects=true
cas.authn.accept.enabled=false
# Active Directory
cas.authn.ldap[0].type=AUTHENTICATED
cas.authn.ldap[0].ldapUrl=ldap://localhost:389
cas.authn.ldap[0].useStartTls=false
cas.authn.ldap[0].baseDn=DC=AAA,DC=BBB
cas.authn.ldap[0].search-filter=(sAMAccountName={user})
cas.authn.ldap[0].subtreeSearch=true
cas.authn.ldap[0].bindDn=USER
cas.authn.ldap[0].bindCredential=XXX
# OIDC settings
cas.authn.oidc.core.issuer=
https://URL/cas/oidccas.authn.oidc.core.skew=5
cas.authn.oidc.jwks.file-system.jwks-file=file:C:\Program Files\Tomcat 9.0\etc\cas\config\keystore.jwks
# Encryption/Signing keys
cas.tgc.crypto.encryption.key=SN7Vpa8oHvXfh2hDZp8ANxZGRkF1DvKbYLTy_Vip2dI
cas.tgc.crypto.signing.key=KwbtZl2y5sidXFMShjVm4PiGwjVQ0Fq-ZBp0A_HUK6IOnoS2h0E5cSfp7vy8uioqX04yKIBXcU0kUm6DRuPCZQ
cas.webflow.crypto.signing.key=MltIqyj_vGFgZKFfw8vmoqYIYYu_KEU20AyZaAIDZl_Xjhl0ZGpPNe4h4N7-8p1_pNi-s97TQKb1-INp9VEwEA
cas.webflow.crypto.encryption.key=3Mh_pdDFLPCMgacDL6z8SQ
---
{
"@class": "org.apereo.cas.services.OidcRegisteredService",
"serviceId": "
https://localhost:3000/callback", --> my app URL
"name": "OIDC",
"id": 1,
"clientId": "41ff9715-bd3e-473c-9888-e2d5a1364c2a",
"clientSecret": "SECRET",
"bypassApprovalPrompt": true,
"generateRefreshToken": true,
"evaluationOrder": 10000
}
This application was used for other IdP so it won't come from this. When hitting login on it, this is the /authorize URL I'm getting redirected to :