Skip to content

Provide setting option for auth provider #269

@patrickpichler

Description

@patrickpichler

Feature Description

It would be nice if instead of having my gitlab token in either the env variable or properties file, I can specify a lua callback
to implement getting the password myself.

Something along the line of

    require("gitlab").setup({
      auth_provider = function()
        return "my_token", "https://custom.gitlab.instance.url"
      end,
    }

(Note: I have a PR ready, so if this is something you do not want in, feel free to decline it 😅 )

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions