Skip to content

Removing oauthClientSecret from .gitconfig #73

Closed
@EML-github

Description

@EML-github

A question, rather than an issue. I have a generic remote repo which is implemented with Apache, mod_oauth2, and Keycloak, with 2FA. This all works (thanks - great work). The .gitconfig is:

[credential "https://example.com"]
  helper            = cache --timeout 7200
  helper            = "oauth -verbose"
  oauthClientId     = openid-cli
  oauthScopes       = "openid email"
  oauthAuthURL      = ...
  oauthTokenURL     = ...
  oauthRedirectUri  = http://127.0.0.1
  oauthClientSecret = ...

[user]
  name  = ...
  email = ...

However, there's a problem - the .gitconfig contains the client secret. Is there some way I can manually enter the secret once, and leave it out of the config file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions