private git Service Registry authentication not working

903 views
Skip to first unread message

Robert Bond

unread,
Oct 11, 2019, 4:07:47 PM10/11/19
to CAS Community
Getting an error when using a private git repo for cas service registry. It works correctly if I remove the username and password config options are use a public repo.

Here is my config for the registry:
cas.serviceRegistry.git.repositoryUrl=https://gitlab.example.edu/cas-service-registry.git
cas.serviceRegistry.git.branchesToClone=dev
cas.serviceRegistry.git.activeBranch=dev
cas.serviceRegistry.git.username=asdf
cas.serviceRegistry.git.password=asdf
cas.serviceRegistry.git.cloneDirectory=file:/tmp/cas-service-registry
cas.serviceRegistry.git.pushChanges=false


And here is the error I am getting:
2019-10-11 19:03:29,837 ERROR [org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler] - <Unexpected error occurred in scheduled task>
org.eclipse.jgit.api.errors.TransportException: https://gitlab.example.edu/cas-service-registry.git: Authentication is required but no CredentialsProvider has been registered

Any thoughts?

I used our internal gitlab and tried using a github account also, tested the credentials are working.

I tried looking at the cas code for the gitServiceRegistry and it seems like it has the options for specifying a username and password. 

Attached full log output also.

Thanks!
cas-error-gitServiceRegistry.log

mohamed gamal

unread,
Oct 17, 2019, 7:55:26 AM10/17/19
to CAS Community
Try to use ssh key authentication as detailed here

Misagh Moayyed

unread,
Oct 29, 2019, 6:28:02 AM10/29/19
to CAS Community
Are you still seeing this with 6.1.0?

Robert Bond

unread,
Oct 29, 2019, 9:31:55 AM10/29/19
to cas-...@apereo.org
6.1.0RC6, I switched to using ssh keys and it worked. 

Thanks,
Robert Bond.

--
- 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/811d628a-9011-4037-946e-b74c5e3bb74e%40apereo.org.


--
Robert Bond
Network Administrator
(918) 444-5886
Northeastern State University
Reply all
Reply to author
Forward
0 new messages