org.pac4j.core.exception.TechnicalException: java.lang.ClassCastException: java.util.Collections$SingletonList cannot be cast to java.lang.String at org.pac4j.oidc.redirect.OidcRedirectActionBuilder.buildAuthenticationRequestUrl(OidcRedirectActionBuilder.java:113) at org.pac4j.oidc.redirect.OidcRedirectActionBuilder.redirect(OidcRedirectActionBuilder.java:78) at org.pac4j.core.client.IndirectClient.getRedirectAction(IndirectClient.java:109) at org.apereo.cas.web.DelegatedClientNavigationController.redirectToProvider(DelegatedClientNavigationController.java:83)
The full stack trace is much longer than that, but everything south of this point is in CAS or Jetty. Let me know if you need that anyway. The method in question here can be seen here: https://github.com/pac4j/pac4j/blob/77077a7/pac4j-oidc/src/main/java/org/pac4j/oidc/redirect/OidcRedirectActionBuilder.java#L106-L116 - this commit was part of PR1219. Looks like anything more recent than 3.4.0 has it.
I realize this part is in CAS' domain, but it might be obvious if I am missing something that should be obvious. Here's the values I'm feeding to CAS to feed to pac4j.
cas.authn.pac4j.cookie.crypto.encryption.key=REDACTEDcas.authn.pac4j.cookie.crypto.signing.key=REDACTEDcas.authn.pac4j.name=DelegatePAC4Jcas.authn.pac4j.oidc[0].autoRedirect=falsecas.authn.pac4j.oidc[0].azureTenantId=REDACTED.onmicrosoft.comcas.authn.pac4j.oidc[0].clientName=REDACTEDcas.authn.pac4j.oidc[0].discoveryUri=https://login.microsoftonline.com/REDACTED.onmicrosoft.com/v2.0/.well-known/openid-configurationcas.authn.pac4j.oidc[0].id=REDACTEDcas.authn.pac4j.oidc[0].logoutUrl=https://login.microsoftonline.com/REDACTED.onmicrosoft.com}/oauth2/v2.0/logoutcas.authn.pac4j.oidc[0].maxClockSkew=600cas.authn.pac4j.oidc[0].preferredJwsAlgorithm=RS256cas.authn.pac4j.oidc[0].principalAttributeId=oidcas.authn.pac4j.oidc[0].responseMode=form_postcas.authn.pac4j.oidc[0].responseType=codecas.authn.pac4j.oidc[0].scope=openid profilecas.authn.pac4j.oidc[0].secret=REDACTEDcas.authn.pac4j.oidc[0].type=AZUREcas.authn.pac4j.oidc[0].useNonce=truecas.authn.pac4j.oidc[0].usePathBasedCallbackUrl=true
<dependency>
<groupId>com.nimbusds</groupId>
<artifactId>nimbus-jose-jwt</artifactId>
<version>6.0.2</version>
</dependency>
<dependency>
<groupId>com.nimbusds</groupId>
<artifactId>oauth2-oidc-sdk</artifactId>
<version>6.5</version>
</dependency>
--
You received this message because you are subscribed to the Google Groups "Pac4j users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<dependencies>
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-webapp</artifactId>
<version>${cas.version}</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-pac4j-webflow</artifactId>
<version>${cas.version}</version>
<exclusions>
<exclusion>
<groupId>com.nimbusds</groupId>
<artifactId>nimbus-jose-jwt</artifactId>
</exclusion>
<exclusion>
<groupId>com.nimbusds</groupId>
<artifactId>oauth2-oidc-sdk</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-json-service-registry</artifactId>
<version>${cas.version}</version>
</dependency>
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-redis-ticket-registry</artifactId>
<version>${cas.version}</version>
</dependency>
<dependency>
<groupId>com.nimbusds</groupId>
<artifactId>nimbus-jose-jwt</artifactId>
<version>6.0.2</version>
</dependency>
<dependency>
<groupId>com.nimbusds</groupId>
<artifactId>oauth2-oidc-sdk</artifactId>
<version>6.5</version>
</dependency>
</dependencies>To unsubscribe from this group and stop receiving emails from it, send an email to pac4j...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to pac4j-users...@googlegroups.com.