Re: [cas-user] Re: private git Service Registry authentication not working

2019-10-29 Thread 'Robert Bond' via CAS Community
6.1.0RC6, I switched to using ssh keys and it worked.

Thanks,
Robert Bond.

On Tue, Oct 29, 2019 at 5:28 AM Misagh Moayyed 
wrote:

> Are you still seeing this with 6.1.0?
>
> On Saturday, October 12, 2019 at 12:07:47 AM UTC+4, Robert Bond wrote:
>>
>> 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] -
>> 
>> 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!
>>
> --
> - 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+unsubscr...@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

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAOA9z6pc2xpJTE4oQMm0%3DQK_3bOia20nc_cwzv3i9%3DnwLRJruQ%40mail.gmail.com.


[cas-user] Re: private git Service Registry authentication not working

2019-10-29 Thread Misagh Moayyed
Are you still seeing this with 6.1.0?

On Saturday, October 12, 2019 at 12:07:47 AM UTC+4, Robert Bond wrote:
>
> 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] - 
> 
> 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!
>

-- 
- 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+unsubscr...@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.


[cas-user] Re: private git Service Registry authentication not working

2019-10-17 Thread mohamed gamal
Try to use ssh key authentication as detailed here 


-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/37671295-17b6-4834-ad54-388b4f195329%40apereo.org.