Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 04 18:41
    kanedb commented #5513
  • Oct 04 18:39
    kanedb commented #5513
  • Oct 04 14:34
    sonatype-lift[bot] commented #5516
  • Oct 04 14:10
    mmoayyed commented #5513
  • Oct 04 14:08
    mmoayyed commented #5516
  • Oct 04 14:08

    mmoayyed on 6.6.x

    Improve Google Analytics suppor… (compare)

  • Oct 04 14:08
    mmoayyed closed #5516
  • Oct 04 14:08
    CLAassistant commented #5516
  • Oct 04 14:07
    leleuj opened #5516
  • Oct 04 13:51
    sonatype-lift[bot] commented #5515
  • Oct 04 13:38

    mmoayyed on master

    Improve Google Analytics suppor… (compare)

  • Oct 04 13:38
    mmoayyed closed #5515
  • Oct 04 13:25
    apereocas-bot labeled #5515
  • Oct 04 13:25
    apereocas-bot labeled #5515
  • Oct 04 13:25
    apereocas-bot milestoned #5515
  • Oct 04 13:25
    apereocas-bot milestoned #5515
  • Oct 04 13:25
    apereocas-bot labeled #5515
  • Oct 04 13:25
    CLAassistant commented #5515
  • Oct 04 13:25
    leleuj opened #5515
  • Oct 03 13:37
    CLAassistant commented #5513
mixman68
@mixman68
I put
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
Michry-BBN
@BbnMichry_twitter
Hi
I am in the process of setting up two CAS servers with the same DNS rrcas.mydomain.com and the IP addresses are 10.10.10.10 and 10.10.10.11. Each CAS marks in isolation but if I activate the NGINX for both I have a ticket issue I would like to know how to configure Hazelcast (or another) to respond to the ticket issue.
if someone has already configure hazelcast or High Avalaibility CAS cluster please i need some help
Marc K.
@V3ndetta
Hey guys, i got a strange problem trying to activate acceptable-usage-policy with jdbc in 6.3.7.4 - After LDAP User XXX logging in, they have to accept the policy. On "ACCEPT" they'll loop on this site. Logs showing no "aupAccepted"-Attribute but attribute with value "true" is written to database - even if there is no entry for the user. When working with enabled Caching for Attribute-Repository there will be a value "1" for aupAccepted but this looks like not or wrong converted to boolean, as aup is showing "NOT ACCEPTED. Anyone else with similar issue?!
lwp007
@lwp007
when i try to run cas 6.4.5 in standalone mode, and try to force it read config file /etc/cas/config/cas.properties like this: java -jar -Dcas.standalone.configurationDirectory=/etc/cas/config ./build/libs/cas.war
it seems not working
hey guys, does someone meet same problem?
lwp007
@lwp007
sorry wrong questions, the log shows it works, but when i tried to modify cas.server.name and cas.server.prefix options, it is not working~
katrix
@katrix:xirtak.com
[m]
Is anyone running into an issue where SAML services are not releasing any attributes in 6.5-SNAPSHOT? We're preparing our QA environment and noticed it pretty early in testing. CAS protocol attribute releases appear to be fine.
raymondrewalker
@raymondrewalker

Could someone expand on the impact & purpose of this configuration?

cas.server.scope=example.org

The CAS Server scope. <--(only documentation found)

raymondrewalker
@raymondrewalker

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.

1 reply
raymondrewalker
@raymondrewalker
Apparently 6.5 now displays all internal attributes on the login page to the user... "Principal" & "Authentication" (internal attributes here) where would one identify how to disable that?
Michry-BBN
@BbnMichry_twitter
Hi guys
i have haproxy and 2 nodes CAS but something i have this error : login?exception.message=Error+decoding+flow+execution HTTP/1.1" how to fix it (i use hazelcast)
Łukasz
@lgwozniak
Hi, i'm using CAS 6.3.7.2 any one got a problem with REST Service Registry. When putting there OauthService ? CAs Response for me with Deserialziation problem
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type java.lang.String from Array value (token JsonToken.START_ARRAY)
at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: org.apereo.cas.support.oauth.services.OAuthRegisteredService["supportedGrantTypes"]->java.util.HashSet[1])
json is correct it work on normal json-service
sauravsh28
@sauravsh28
Hello - I am new to CAS server. I am trying to integrate CAS management to CAS server but I am getting below error message.
Application Not Authorized to Use CAS
The application you attempted to authenticate to is not authorized to use CAS. This usually indicates that the application is not registered with CAS, or its authorization policy defined in its registration record prevents it from leveraging CAS functionality, or it's malformed and unrecognized by CAS. Contact your CAS administrator to learn how you might register and integrate your application with CAS.
I used below service configuration
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "https://localhost:8443/cas-management/",
"name" : "casManagement",
"id" : 1001,
"logoutType" : "BACK_CHANNEL",
"logoutUrl" : "https://localhost:8443/cas-management/logout"
}
1 reply
lwp007
@lwp007
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."
can anyone help? thanks
lwp007
@lwp007

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.

raymondrewalker
@raymondrewalker
In CAS 6.5 when logging in (/cas/login) all internal attributes and values are showing up on the login page, even after manually disabling attribute release, by adding this:
cas.authn.authentication-attribute-release.enabled=false
Never enabled it in the past, don't use CAS for attribute release, so this is new default behavior.
1 reply
Upul
@UpulK
We are using CAS 6.1.7 and we have set up delegated authentication with Google, Microsoft etc. Once login with Google(or with any external SSO provider like Microsoft) and then logout from the CAS, user will be logout not only from CAS but with Google account as well. Could you please someone can tell whether there a option in CAS to avoid this behavior? i.e. I want to keep Google session alive when login out from CAS. Thank you.
mj77886699
@mj77886699

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;
}

}

1 reply
Luis Faria
@luis100
Hello, I found an issue with the latest release (6.5.0) when enabling cas.authn.pac4j.cas[0].auto-redirect-type=SERVER, the first login works fine, but if the application tries to login again and CAS still has the login session, the redirect to the service gets confused with the redirect to the delegated authentication and an exception is thrown, anyone else getting this issue?
2022-02-18 10:35:33,281 ERROR [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/cas].[dispatcherServlet]] - <Servlet.service() for servlet [dispatcherServlet] in context with path [/cas] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed] with root cause>
java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
    at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:488) ~[tomcat-embed-core-9.0.58.jar!/:9.0.58]
(...)
    at org.apereo.cas.web.support.AuthenticationCredentialsThreadLocalBinderClearingFilter.doFilter(AuthenticationCredentialsThreadLocalBinderClearingFilter.java:28) ~[cas-server-core-web-api-6.5.0.jar!/:6.5.0]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.58.jar!/:9.0.58]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.58.jar!/:9.0.58]
    at org.apereo.cas.web.support.filters.RequestParameterPolicyEnforcementFilter.doFilter(RequestParameterPolicyEnforcementFilter.java:401) ~[cas-server-core-web-api-6.5.0.jar!/:6.5.0]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.58.jar!/:9.0.58]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.58.jar!/:9.0.58]
    at org.apereo.cas.web.support.filters.ResponseHeadersEnforcementFilter.doFilter(ResponseHeadersEnforcementFilter.java:200) ~[cas-server-core-web-api-6.5.0.jar!/:6.5.0]
(...)
4 replies
katrix
@katrix:xirtak.com
[m]
Is anyone running into an issue where SAML services are not releasing any attributes in 6.5-SNAPSHOT? We're preparing our QA environment and noticed it pretty early in testing. CAS protocol attribute releases appear to be fine.
lshc
@lshc666

Hello there,

We are trying to enable FIDO2 WebAuthN support in CAS with both Yubikeys and using the built-in browser support for FIDO2, namely for Safari on Mac OS.

While Yubikey registration and authentication works fine out of the box, when trying to register a FIDO2 device using the native Safari support for FIDO2 (without a Yubikey), we are presented with the following error on the registration step :

"java.lang.IllegalArgumentException: Failed to obtain attestation trust anchors."

Any ideas why this is happening and maybe how we can configure our own attestation trust anchors to include other sources than Yubikeys ?

Vittore Zen
@vittore.zen_gitlab
Poll: What is your preferred ticketing storage?
lshc
@lshc666
Using the mfa-webauthn method, after completing the verification through yubico, the following error will be jumped.
image.png
cas.authn.mfa.web-authn.redis.host=172.24.200.126
cas.authn.mfa.web-authn.redis.port=6379
cas.authn.mfa.web-authn.redis.password=xxxxx
cas.authn.mfa.web-authn.redis.enabled=true
cas.authn.mfa.web-authn.redis.database=6
cas.authn.mfa.web-authn.core.enabled=true
cas.authn.mfa.web-authn.core.display-name-attribute=sAMAccountName
#cas.authn.mfa.web-authn.core.relying-party-name=CAS WebAuthn
cas.authn.mfa.web-authn.core.allow-primary-authentication=false
cas.authn.mfa.web-authn.core.allow-unrequested-extensions=false
cas.authn.mfa.web-authn.core.allow-untrusted-attestation=true
cas.authn.mfa.web-authn.core.validate-signature-counter=true
cas.authn.mfa.web-authn.core.trusted-device-enabled=false
#cas.authn.mfa.web-authn.core.relying-party-id=xxxx
cas.authn.mfa.web-authn.crypto.enabled=true
cas.authn.mfa.web-authn.crypto.signing.key=********
cas.authn.mfa.web-authn.crypto.encryption.key=***********
cas.authn.mfa.web-authn.redis.read-from=MASTER
sauravsh28
@sauravsh28
how to include custom attributes in id token?
I add cas.authn.oidc.user-defined-scopes.cas=street,department,job_title,city,zip_code in cas.properties but these attributes are not showing in id token
gvlarson3
@gvlarson3

Hello and I'm really glad there is a CAS chat where I can ask questions!

I was hired for my position 6 months ago at a small Community College, and the college does not have Single Sign On.

Administration purchased a product that requires SSO, and tossed it in my lap. In my investigations it turns out that SSO will cost us 50,000 (2.00 a month/user minimum) a year or more if we go with a third party.

So after much research we decided to go with CAS 6.5.x. The learning curve has been very steep as I knew nothing about SSO originally.

We decided to use GSuite as our IDP since we are using Gmail for Education as our email.

I was able to setup CAS to Delegate Authentication to Gmail and the product was set to use CAS for SSO so it worked perfectly. I'm really pleased with CAS and the documentation provided for getting this all set up.

Now for my problem :(

We have another application (Ellucian Self-Service) that students log into and we want to add SSO to this app. However, this application uses SAML2 only.

I'm having problems finding how to configure CAS to return SAML2 to this application.
I've added the

implementation "org.apereo.cas:cas-server-support-saml-sp-integrations:${project.'cas.version'}"

to build.gradle as Ellucian is one of the supported SPs. But I'm not sure what needs to be done to the registered service to get CAS to respond properly.

I would appreciate it immensely if someone can point me in the correct direction.
Maxime Robert
@maxime.robert_gitlab

Hi, I was wondering if I'm miss-understanding the expected behavior of usernameAttributeProvider or if it's a bug (and if there is an alternate solution).
I have the following service:

{
  "@class": "org.apereo.cas.support.oauth.services.OAuthRegisteredService",
  ...
  "usernameAttributeProvider": {
    "@class": "org.apereo.cas.services.PrincipalAttributeRegisteredServiceUsernameProvider",
    "usernameAttribute": "uidNumber",
    "canonicalizationMode": "NONE"
  },
  ...
}

The goal is to provide to this service another identifier than the one used for other services (default identifier for other services is uid).
N.B.: both (uid and uidNumber) come from LDAP.

This works well (I can connect to the service), but I detected an unexpected behavior.
When a user connects to the above-mentioned service, in CAS logs, the WHO: is the uid for every ACTION except for SERVICE_TICKET_VALIDATED for which it is the uidNumber.
After connecting to the above-mentioned service (and only after connecting to this specific service), if the user accesses an OidcRegisteredService service, the sub in the OIDC response is the uidNumber whereas it is expecting to receive the uid (which makes it fail to authenticate the user). The OidcRegisteredService` service configuration doesn't provide any specific config for the usernameAttribute:

{
  "@class": "org.apereo.cas.services.OidcRegisteredService",
  "serviceId": "...",
  "name": "...",
  "id": ...,
  "clientId": "...",
  "clientSecret": "...",
  "bypassApprovalPrompt": true,
  "scopes": ["java.util.HashSet", ["openid", "profile", "email", "offline_access"]]
}

That means that depending on whether the user connected to the first described OAuthRegisteredService or not, he can connect to the OidcRegisteredService service or not.
Note that it doesn't affect other RegexRegisteredService services or a SamlRegisteredService that specifies its own usernameAttributeProvider

Am I missing something? Should I force the usernameAttributeProvider in the OidcRegisteredService? Why?

1 reply
rain Falcon
@thirteen13Floor

Ticketvalidationexception, St ticket verification failed,

  1. The servicename and casserverloginurl configurations are OK. Which configurations affect st ticket verification failure?

  2. Can you explain the principle of St verification?

Teddy Brown
@cctgteddy_gitlab

Hi, I'm trying to get started with CAS 6.4 (previous user of 5.3) . I have this in /etc/cas/config/cas.properties

server.port=8080
server.ssl.enabled=false
cas.server.tomcat.http.enabled=false
cas.server.tomcat.http-proxy.enabled=true
cas.server.tomcat.http-proxy.secure=true
cas.server.tomcat.http-proxy.scheme=https

Trying to run standalone executable but ultimately it crashes on this message The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "". This combination is not valid.

I'm not sure where to set secretRequired=false

This will be running behind HAProxy

6 replies
jbanner6736
@jbanner6736
I had posted here but before I continue trying to confirm would like to get dev feedback. It seems that the MFA triggers, at least 'Principal Attribute Per Application' does not work when there is more than a single provider supplied. Example, [ "mfa-gauth", "mfa-webauthn"] it doesn't trigger, changing to either [ "mfa-gauth"] or [ "mfa-webauthn"] triggers. Forum link https://groups.google.com/a/apereo.org/g/cas-user/c/bvK-BKoWcS0
mcaccessa
@mcaccessa

Hi! Trying to use „cas-server-support-jpa-service-registry” module, I'm getting this error:

Error creating bean with name 'jpaMappingContext': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: JPA metamodel must not be empty!

The properties that I'm using are:

cas.service-registry.initFromJson=true
cas.service-registry.json.location=file:///etc/cas/config/services

cas.jdbc.showSql=true
cas.service-registry.jpa.url=jdbc:sqlserver://...
cas.service-registry.jpa.user=...
cas.service-registry.jpa.password=...
cas.service-registry.jpa.default-schema=...
cas.service-registry.jpa.dialect=org.hibernate.dialect.SQLServer2008Dialect
cas.service-registry.jpa.driver-class=com.microsoft.sqlserver.jdbc.SQLServerDriver
cas.service-registry.jpa.ddl-auto=create

Am I missing something in this configuration? Thank you!

1 reply
Łukasz
@lgwozniak
Any one got problem to run cas 6.5 with suppor-oidc from cas-overlay-template ?
I've got Invalid mapping on handler class [org.apereo.cas.oidc.web.controllers.discovery.OidcWellKnownEndpointController]: public org.springframework.http.ResponseEntity org.apereo.cas.oidc.web.controllers.discovery.OidcWellKnownEndpointController.getWellKnownDiscoveryConfiguration(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)>
juanmariareina
@juanmariareina
Hello everybody
I'm struggling to let working a cas-management that is intalled on a server behind a proxy. When I start it, it tries to connect to mdq.incommon.org (dunno why, I'm newby and still don't understand many details) and it eventually fails because a connect time-out.
Then I realized that this server is installed behind a proxy so I've tried to start it by "java -Dhttp-proxyHost=... -Dhttp-proxyPort=... -jar $PATH_WHERE_MY/cas-management.jar", but with no result... It doesn't use my proxy configuration, it still tries to connect directly...
juanmariareina
@juanmariareina
I will be very grateful if some of you guys could help me as I'm totally stuck with this...
I've forgot to mention that I'm using 6.3.0