Skip to content

Mismatch between docs and AUTH_0_ID function #16851

@michaelvp411

Description

@michaelvp411

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Docs: https://coder.com/docs/admin/external-auth#gitlab-self-managed
The CODER_EXTERNAL_AUTH_0_ID environment variable is used for internal reference. Set it with a value that helps you identify it. For example, you can use CODER_EXTERNAL_AUTH_0_ID="primary-github" for your GitHub provider.

The docs say it's for internal use. If you confgure this as the doc states: CODER_EXTERNAL_AUTH_0_ID="primary-gitlab"
This variable is actually used in the callback url in authentication for git lab

the default callback url in gitlab listed in the doc is:
https://your-gitlab.example.com/users/auth/gitlab/callback

When a user tries to authenctiate with gitlab Coder will connect with
https://your-gitlab.example.com/users/auth/**gitlab-primary**/callback
This will cause a error "The redirect URI included is not valid"

Image

Relevant Log Output

Expected Behavior

Docs: https://coder.com/docs/admin/external-auth#gitlab-self-managed
Clearer explanation of the function of AUTH_0_ID

Steps to Reproduce

1.https://coder.com/docs/admin/external-auth#gitlab-self-managed
2. https://docs.gitlab.com/integration/oauth_provider/
3. Attempt authentication with a SAML tracer app to see AUTH_0_ID is used as part of the callback url

Environment

  • Host OS:
  • Coder version:

Additional Context

No response

Metadata

Metadata

Assignees

Labels

docsArea: coder.com/docs

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy