Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,464,386
Community Members
 
Community Events
176
Community Groups

Invalid credentials when connect from intellij

 

Hi,

I use my company email to login bitbucket cloud, I got this url for my repository:
git clone https://johnsheng@bitbucket.org/wd-extend/sweden-tax-form.git

I tried to access it from 3 client tools
1) Intellij -> my main goal is to make this work
2) Visual Studio Code
3) Mingw64

it prompt me to enter my credential, default to be my username (johnsheng, without company_domain.com), and I enter the password, and after about 1 min, it error out with following error message.

> git clone https://johnsheng@bitbucket.org/wd-extend/sweden-tax-form.git 
fatal: Invalid credentials
remote: Invalid credentials
fatal: Authentication failed for 'https://bitbucket.org/wd-extend/sweden-tax-form.git/'

bitbucket.JPG

How can I make it work?

3 answers

Hi,

 

The issue is they have stopped supporting bitbucket account passwords when using Basic authentication for Git. Below is the announcement.

https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231

 

Solution is, you have to create an app password in the bitbucket account settings. Below link has the steps.

https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/

Copy the password because you see it only once.

Then try to login from Intellij with the username and the newly created app password.

Thank you for your help. 

I use "johnsheng@bitbucket.org" as username

and app pwd as pwd. 

I still get following error

C:\>git clone https://johnsheng@bitbucket.org/wd-extend/extend-js-example.git
Cloning into 'extend-js-example'...
fatal: Invalid credentials
Password for 'https://johnsheng@bitbucket.org':
remote: Invalid credentials
fatal: Authentication failed for 'https://bitbucket.org/wd-extend/extend-js-example.git/'

0 votes
Karthick S Atlassian Team Apr 01, 2022

Hello @John Sheng

As per the Bitbucket communication, Atlassian account passwords are deprecated for Bitbucket API calls and HTTPS git activity (clone, push, pull and fetch), and are being replaced by App Passwords.

App passwords are meant to substitute your real account password and are designed to be used for a specific purpose and limited permissions. They can be easily created and revoked when needed.

If you want to check more information about the App Password, you can reference this documentation.

Please note, that the command expects the username, not the email ID. You can get the username from your personal settings

I hope this helps.

Regards,
Karthick S

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events