Can't authenticate with Altium software
Asked by Alberto Encinas Elvira:

Hi there!

I want to use bitbucket to control version Altium files. I folowed the steps in Altium to configure all the steps but when I am asked for the username and password, after entering my credentials it "starts" to upload the files.. but after a couple of seconds stack at 0% it launches an error window that says:

Authentication failed for "<https://myrepository>..."

Invalid username or password

Details: too many redirects or authentication replays

I checked that I entered the credentials correctly (and definitely I did. I tried a lot of times) but nothing happens, always the same error.

Any idea?

Thanks for the help


Answers:
author: seanaty
body: A not 100% sure what's going on and need more information.

Do you have a link for to the Altium instructions for setting this up that you could share? (First time I'm hearing of this product)

Also, I suspect that the issue is that you can no longer user your "main" password to do anything git or API-related. Your "main" Atlassian password is only used for interactive login to the website bitbucket.org.

All that said, Bitbucket still supports git and API! You just need to create an app password for your account. Then you should be able to do the exact same thing you're doing with your username and your app password instead of your "main" password.

Here some other posts about the deprecation of the "main" password:

<https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity>

If you want to check more information about the App Password, you can reference this [documentation](https://bitbucket.org/account/settings/app-passwords/).

Please note, that you need to enter the username, not the email ID. You can get the username from your [personal settings](https://bitbucket.org/account/settings/).

(Please accept this answer if it solves your problem ;))

comments: author: Bob Kruse
body: seanaty,

I'm having difficulty with this too. I have an app password and I can push to bitbucket from tortoisegit, but not from within Altium. Do you see anything I have wrong?![AltiumGitCred.png](https://community.atlassian.com/t5/image/serverpage/image-id/207671iC4DA113E9D468CB7/image-size/large?v=v2&px=999 "AltiumGitCred.png")


author: Patrik S
body: Hello [@Bob Kruse](/t5/user/viewprofilepage/user-id/953156) ,

Could you try creating a new app password with all the permissions checked and test how it goes? When copying/pasting the app password make sure there's no leading/trailing spaces

Also, please make sure to use your bitbucket username as the User Name field for [personal settings](https://bitbucket.org/account/settings/).

In case the above does not work, could you share the full log output containing the error you are facing and also the result of when you click the "Test" button?

Thank you, [@Bob Kruse](/t5/user/viewprofilepage/user-id/953156) .

Kind regards,

Patrik S


author: Bob Kruse
body: Thank you Patrick,

It failed again. This time with an all-permissions app password and my username.

This is the path to the source files:<https://bitbucket.org/xxxxx/900831/src/master/>

Where do I find the log files? I wasn't able to find one for Altium, but maybe there is one somewhere.

here is the test button output:

Thanks, Bob

![AllPermissions.png](https://community.atlassian.com/t5/image/serverpage/image-id/207941i5C96F19824C9DB6B/image-size/large?v=v2&px=999 "AllPermissions.png")


author: Patrik S
body: Hello [@Bob Kruse](/t5/user/viewprofilepage/user-id/953156) ,

Thank you for sharing addittional context.

From your tests the credentials does not seem to be the issue here, and the fact that you are able to successfully clone/push from tortoiuse git indicates the issue is mostly likely with the configuration of Altium.

Checking the screenshot you attached though, it seems like you Altium configuration is considering the repository as SVN, instead of git, and this might be causing the error. This is also reinforced by the fact the error message when you clicked "Test" is not complaining about authentication but with the address of your repository.

As this is a third-party application, I don't really have much knowledge on how it's configured other than what I could find in Altium's documentation, so in this case I would suggest looking for any setting in the screen that you shared that allows to change the repository from SVN to Git.

If it does not work, I would recommend following the steps outlined on [Altium's official documentation](https://www.altium.com/documentation/altium-designer/using-version-control?version=21#!add-to-git-version-control) of how to integrate with a **git** repository.

Thank you, [@Bob Kruse](/t5/user/viewprofilepage/user-id/953156) .

Kind regards,

Patrik S


Tags: altium

bitbucket-cloud

cloud