Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
Hello All,
The sync script is not executing after clicking “synchronize” button in CAS Management App.
The CAS Management config contains the following :
mgmt.version-control.enabled=false
mgmt.version-control.sync-script=/opt/test/sync.sh
The sync script DOES execute if version control is active
mgmt.version-control.enabled=true
Any Ideas would be great!
-Gary
More troubleshooting information:
The Sync script is not executing because we receive a 404 error from the following:
GET https://cas-management.edu/cas-management/api/commit/sync
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/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 on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/DM6PR03MB452342DCB0EE8243ECE69E57957D2%40DM6PR03MB4523.namprd03.prod.outlook.com.
Amulya,
Are you sure you need to have a custom captcha (or any other custom code)?If you do create something custom, try to make it in such a way that it can be added to the main cas project (hopefully you will have time to do so - which I seem to lack).
https://fawnoos.com/blog/ is a good place to start. You will also need to understand various spring libraries.
Take a look at the existing reCaptcha https://apereo.github.io/cas/7.0.x/integration/Configuring-Google-reCAPTCHA.html and how it is implemented, how it fits into [spring] web flow, gets properties etc. You may be able to extend those classes.
Ray
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
Hey,The following is the error, 2024-02-06 11:31:00,012 DEBUG [org.apereo.cas.authentication.DefaultAuthenticationManager] - <Attempting authentication of [casuser] using [GroovyAuthenticationHandler]>2024-02-06 11:31:00,012 ERROR [org.apereo.cas.authentication.DefaultAuthenticationManager] - <Authentication has failed. Credentials may be incorrect or CAS cannot find authentication handler that supports [UsernamePasswordCredential(username=casuser, source=null, customFields={})] of type [UsernamePasswordCredential]. Examine the configuration to ensure a method of authentication is defined and analyze CAS logs at DEBUG level to trace the authentication event.>2024-02-06 11:31:00,015 ERROR [org.apereo.cas.authentication.DefaultAuthenticationManager] - <[GroovyAuthenticationHandler]: [No signature of method: CustomAuthenticationHandler.authenticate() is applicable for argument types: (org.apereo.cas.adaptors.generic.GroovyAuthenticationHandler, org.apereo.cas.authentication.credential.UsernamePasswordCredential...) values: [org.apereo.cas.adaptors.generic.GroovyAuthenticationHandler@b2ba975b, ...]Possible solutions: authenticate(org.apereo.cas.authentication.Credential, org.apereo.cas.authentication.principal.Service)]>2024-02-06 11:31:00,015 DEBUG [org.apereo.cas.authentication.DefaultAuthenticationEventExecutionPlan] - <Authentication policy resolvers for this transaction are [[org.apereo.cas.authentication.policy.RegisteredServiceAuthenticationPolicyResolver@129a5c2f]]>
But i do have authenticate method as follows:AuthenticationHandlerExecutionResult authenticate(Credential credential, Service service) {
if (credential instanceof UsernamePasswordCredential) {
def usernamePasswordCredential = (UsernamePasswordCredential) credential
if (usernamePasswordCredential.username == 'user' && usernamePasswordCredential.password == 'password') {
def principal = principalFactory.createPrincipal(usernamePasswordCredential.username)
return new DefaultAuthenticationHandlerExecutionResult(
this,
new BasicCredentialMetaData(credential),
principal,
new ArrayList<>(0)
)
}
}
return null
}
Amulya