Where are Git credentials stored?

This forum is for all Flare issues related to using Source Control.

Where are Git credentials stored?

Postby richt on Wed Jun 10, 2020 1:59 am

The token for my GitHub repositories recently changed. Now every time I open a Flare project, I get a 403 error that Password authentification is not available.

The problem isn't Git, because in GitHub Desktop I just signed out and back in, and everything works. The problem isn't the Flare registry folder, because I've deleted that and restarted projects, and still have the error.

So how can I provide the updated token/password/SSH key without destroying the entire project and starting again?
richt
Propeller Head
 
Posts: 40
Joined: Wed Nov 28, 2018 6:38 am

Re: Where are Git credentials stored?

Postby Lsawyer on Thu Aug 27, 2020 10:20 am

Adding a +1 to this question. Any help out there?
Lsawyer
Jr. Propeller Head
 
Posts: 5
Joined: Tue May 05, 2015 9:12 am

Re: Where are Git credentials stored?

Postby jhyde on Wed Jun 09, 2021 2:00 pm

We have this same question as well due to a similar issue.
jhyde
Jr. Propeller Head
 
Posts: 7
Joined: Thu Jun 09, 2016 4:42 pm

Re: Where are Git credentials stored?

Postby mzdanio on Tue Jun 15, 2021 1:48 pm

I'm also curious where credentials are stored as I need to know how to reset them.

I'm wondering if they are in the Credential Manager (Control Panel > User Accounts > Credential Manager)?
mzdanio
Jr. Propeller Head
 
Posts: 2
Joined: Mon Oct 19, 2020 6:14 pm

Re: Where are Git credentials stored?

Postby marvin mallari on Tue Jun 22, 2021 9:25 am

Re: Where are Git credentials stored?
Post by mzdanio on Tue Jun 15, 2021 1:48 pm

I'm also curious where credentials are stored as I need to know how to reset them.

I'm wondering if they are in the Credential Manager (Control Panel > User Accounts > Credential Manager)?


The Credential Manager is one location. However, after digging a bit more, the credentials appear to be stored in the registry(Computer\HKEY_CURRENT_USER\Software\MadCap Software\Flare) in these numbered folders. Hope this helps.
marvin mallari
MadCap Staff
 
Posts: 17
Joined: Fri Apr 06, 2012 11:42 am
Location: La Jolla, Ca

Re: Where are Git credentials stored?

Postby debdebtig on Wed Jun 23, 2021 6:24 am

I had a lot of fun with our repository password issues. I've found the following out:

1. If possible use a personal access token instead of a password to access the git repository from Flare (saves you from many issues).
2. Flare and GIT save your password to both a registry key for Flare and to the credential manager that is set in GIT, this can be changed. By default, it is the windows credential manager.
3. If the git password breaks go into the registry and delete the key mentioned in the post above (deleting the whole madcap registry folder doesn't hurt anything, thankfully). This will prompt you for your password instead of the unauthorized error and you'll be good to go.

Bonus tip:
If you check in .gitignore for a multiuser project you'll keep overwriting each other's copy of it in your registry. Recommended solution: Add .gitignore to the exclude file in the .git folder at /.git/info/exclude. Note that the .git folder and .gitignore are hidden files.

Hope this helps others trying to make GIT behave with Flare.

~Deb
:flare: 2021 :capture: v7
debdebtig
Jr. Propeller Head
 
Posts: 4
Joined: Wed Jan 22, 2014 8:54 am
Location: The great state of Massachusetts at least during the week. Home is the more peaceful NH.


Return to Source Control

Who is online

Users browsing this forum: No registered users and 4 guests