Skip to content

Git Credential Manager is flushed out if user tries to access unauthorized repo #2095

@Smita-marvell

Description

@Smita-marvell

Version

2.6.1+786ab03440ddc82e807a97c0e540f5247e44cec6

Operating system

Linux

OS version or distribution

RHEL 8

Git hosting provider(s)

GitHub

Other hosting provider

No response

(Azure DevOps only) What format is your remote URL?

None

Can you access the remote repository directly in the browser?

Yes, I can access the repository

Expected behavior

I am able to access the Github repos and clone them when I set the GCM with plaintext. But by mistake if I try to access a repo for which I don't have access, then I get multple popups for giving the credentials, whereas I had already set and saved it in plaintext. When I check the details after that I see that the credentials are already deleted from the saved space. If I try to access an unauthorized repo, then it should only show that you are not authorized and it should not flush out the details stored.

Please help here

Actual behavior

I am able to access the Github repos and clone them when I set the GCM with plaintext. But by mistake if I try to access a repo for which I don't have access, then I get multple popups for giving the credentials, whereas I had already set and saved it in plaintext. When I check the details after that I see that the credentials are already deleted from the saved space. If I try to access an unauthorized repo, then it should only show that you are not authorized and it should not flush out the details stored.

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    auth-issueAn issue authenticating to a hosthost:githubSpecific to the GitHub host provider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions