mmoayyed on master
support ldap throttling support expiration window for l… upgrade dependencies (compare)
mmoayyed on 6.5.x
Handle multi use token for rese… (compare)
mmoayyed on master
fix build failures fix tests (compare)
mmoayyed on master
Handle multi use token for rese… (compare)
java.lang.IllegalAccessError: class org.pac4j.oidc.profile.creator.OidcProfileCreator tried to access protected method 'void com.nimbusds.oauth2.sdk.ProtectedResourceRequest.<init>(java.net.URI, com.nimbusds.oauth2.sdk.token.AccessToken)' (org.pac4j.oidc.profile.creator.OidcProfileCreator and com.nimbusds.oauth2.sdk.ProtectedResourceRequest are in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @277050dc)
at org.pac4j.oidc.profile.creator.OidcProfileCreator.create(OidcProfileCreator.java:94)
at org.pac4j.core.client.BaseClient.retrieveUserProfile(BaseClient.java:126)
at org.pac4j.core.client.BaseClient.getUserProfile(BaseClient.java:105)
at org.apereo.cas.support.pac4j.authentication.handler.support.DelegatedClientAuthenticationHandler.doAuthentication(DelegatedClientAuthenticationHandler.java:78)
at org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler.authenticate(AbstractPreAndPostProcessingAuthenticationHandler.java:44)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Hello I'm using CAS 6.4.2 (log4j 2.14.1) i rebuilding the project and i add these lines
-- add to build.gradle dependencies section
implementation "org.apache.logging.log4j:log4j-api:2.16.0"
implementation "org.apache.logging.log4j:log4j-core:2.16.0"
implementation "org.apache.logging.log4j:log4j-jcl:2.16.0"
implementation "org.apache.logging.log4j:log4j-jul:2.16.0"
implementation "org.apache.logging.log4j:log4j-web:2.16.0"
implementation "org.apache.logging.log4j:log4j-slf4j18-impl:2.16.0"
-- add to the end of build.gradle
bootWar {
entryCompression = ZipEntryCompression.STORED
overlays {
cas {
from "org.apereo.cas:cas-server-webapp${project.appServer}:${casServerVersion}@war"
provided = false
excludes = ["WEB-INF/lib/log4j2.12..jar","WEB-INF/lib/log4j2.14..jar"]
}
}
}
Hi, We are currently using 6.3.2
version of CAS. To fix the log4j Vulnerability, we have upgraded the cas version to 6.3.7.4
. After updating the version, we are facing the below issue
> Could not resolve all files for configuration ':casBootWarOverlay'.
> Could not resolve org.apereo.cas:cas-server-webapp-tomcat:6.3.7.4.
Required by:
project :
> Cannot choose between the following variants of org.apereo.cas:cas-server-webapp-tomcat:6.3.7.4:
- master
- samplessources
All of them match the consumer attributes:
- Variant 'master' capability org.apereo.cas:cas-server-webapp-tomcat:6.3.7.4:
- Unmatched attributes:
- Provides org.gradle.status 'release' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
- Variant 'samplessources' capability org.apereo.cas:cas-server-webapp-tomcat:6.3.7.4:
- Unmatched attributes:
- Provides org.gradle.category 'documentation' but the consumer didn't ask for it
- Provides org.gradle.docstype 'samplessources' but the consumer didn't ask for it
- Provides org.gradle.status 'release' but the consumer didn't ask for it
As per the gradle documentation, looks like there are multiple variants. Can you please help me to resolve this issue?
Hey! Nobody noticed that the last version of CAS client for Java, its build for Java 8, but have a dependency to JAXB 2.3.1 that its for Java 9 ?
Also, the READMED should clarify what version of Java it's being supported.
Anyone could annotate this on the issues system that you are using ? I would liked to do this, but I don't see that I could done on GitHub repo, and I don't see a Jira o r Mantis to do it.
attributeReleasePolicy: !<org.apereo.cas.services.ReturnMappedAttributeReleasePolicy>
allowedAttributes: !<java.util.TreeMap>
mail: !<java.util.ArrayList>
- "mail"
principalAttributesRepository: !<org.apereo.cas.authentication.principal.DefaultPrincipalAttributesRepository>
attributeRepositoryIds: !<java.util.HashSet>
- "*"
consentPolicy: !<org.apereo.cas.services.consent.DefaultRegisteredServiceConsentPolicy>
status: "FALSE"
excludeDefaultAttributes: true
authorizedToReleaseAuthenticationAttributes: false
For 6.4x -> 6.5-SNAPSHOT we're trying to identify the following issue:
2022-02-03 12:19:54,805 -0700 WARN [io.netty.bootstrap.Bootstrap] - <Failed to set channel option 'CONNECT_TIMEOUT_MILLIS' with value '5000' for channel '[id: 0xf39d1e89]'>
This appears to break LDAP connection for the service registry.
We've also seen a few parameters change formatting in docs, but don't necessarily error/warn in the container, so it seems confusing to debug at the moment.
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of typejava.lang.String
from Array value (tokenJsonToken.START_ARRAY
)
at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: org.apereo.cas.support.oauth.services.OAuthRegisteredService["supportedGrantTypes"]->java.util.HashSet[1])
hello i am using /cas/v1/tickets rest api when integating qr login, but when i curl this api like this: “curl -X POST -k -d 'username=user1@test.com&password=testpass&token=true&additionalParam1=paramvalue' "https://localhost:8442/cas/v1/tickets”
I got this error:
"Service is not found in service registry."
solved, appending a service param can solve this.
cas.authn.authentication-attribute-release.enabled=false
I want to define a register using overlay, I put a controller directly into the src/main/java directory
@RestController
public class RegisterController {
@RequestMapping("/register")
public String register(String userName,String password) {
return "register success " + userName;
}
}