[GH-ISSUE #5336] OIDC Login Page Not Displayed After Disabling Local Auth – Direct Redirect to Issuer Url #10385

Open
opened 2026-08-05 01:25:43 -04:00 by saavagebueno · 6 comments
Owner

Originally created by @akhil-ph on GitHub (Feb 15, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5336

Describe the problem

I deployed NetBird using the getting-started.sh script and selected the default option (0) with Traefik.

After the initial setup with the embedded IdP, I configured a single external OIDC (Generic) provider using my self-hosted GitLab instance. The OIDC integration was successful, and authentication worked as expected.

I then:

  • Assigned the GitLab user the Owner role.
  • Disabled local authentication in config.yaml:
  • Restarted the netbird-server container.

After restarting, the login page is no longer displayed. Instead of showing the login screen with the "Continue with GitLab" button, the application immediately redirects to the configured GitLab issuer URL.

To Reproduce

  • Disabled local authentication in config.yaml:
server:
  auth:
    localAuthDisabled: true

Expected behavior

The login page should be displayed with the "Continue with GitLab" button, even when local authentication is disabled.

Are you using NetBird Cloud?

I'm using self-hosted NetBird's control plane.

NetBird version

netbird v0.65.1

Originally created by @akhil-ph on GitHub (Feb 15, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5336 **Describe the problem** I deployed NetBird using the getting-started.sh script and selected the default option (0) with Traefik. After the initial setup with the embedded IdP, I configured a single external OIDC (Generic) provider using my self-hosted GitLab instance. The OIDC integration was successful, and authentication worked as expected. I then: - Assigned the GitLab user the `Owner` role. - Disabled local authentication in `config.yaml`: - Restarted the netbird-server container. After restarting, the login page is no longer displayed. Instead of showing the login screen with the "Continue with GitLab" button, the application immediately redirects to the configured GitLab issuer URL. **To Reproduce** - Disabled local authentication in `config.yaml`: ```yaml server: auth: localAuthDisabled: true ``` **Expected behavior** The login page should be displayed with the "Continue with GitLab" button, even when local authentication is disabled. **Are you using NetBird Cloud?** I'm using self-hosted NetBird's control plane. **NetBird version** `netbird v0.65.1`
saavagebueno added the triage-needed label 2026-08-05 01:25:43 -04:00
Author
Owner

@akhil-ph commented on GitHub (Feb 16, 2026):

Update:

I have configured one more Generic OIDC provider using my self hosted gitlab. This time it's properly taking me to Login page.

Image

Is it still possible to take users to login page even if there is only one Auth provider configured?

<!-- gh-comment-id:3908998083 --> @akhil-ph commented on GitHub (Feb 16, 2026): Update: I have configured one more Generic OIDC provider using my self hosted gitlab. This time it's properly taking me to Login page. <img width="709" height="640" alt="Image" src="https://github.com/user-attachments/assets/81e644c5-3b76-4c9e-8ec4-a9f4079438fb" /> Is it still possible to take users to login page even if there is only one Auth provider configured?
Author
Owner

@shaban00 commented on GitHub (Feb 16, 2026):

@akhil-ph If you have only one IDP configured, it will automatically redirect to it. What is the point of going to the login page and then clicking on Continue with 'YOUR IDP' when you get automatically get redirected to the IDP

<!-- gh-comment-id:3910884033 --> @shaban00 commented on GitHub (Feb 16, 2026): @akhil-ph If you have only one IDP configured, it will automatically redirect to it. What is the point of going to the login page and then clicking on `Continue with 'YOUR IDP'` when you get automatically get redirected to the IDP
Author
Owner

@akhil-ph commented on GitHub (Feb 17, 2026):

@shaban00 ,If you are already authenticated with your identity provider (GitLab), logging out from NetBird does not terminate the session at the IdP level.

As a result, when you log out of NetBird, it immediately redirects you back to the IdP. Since your GitLab session is still active, you are automatically authenticated again and logged back into NetBird.

<!-- gh-comment-id:3912374259 --> @akhil-ph commented on GitHub (Feb 17, 2026): @shaban00 ,If you are already authenticated with your identity provider (GitLab), logging out from NetBird does not terminate the session at the IdP level. As a result, when you log out of NetBird, it immediately redirects you back to the IdP. Since your GitLab session is still active, you are automatically authenticated again and logged back into NetBird.
Author
Owner

@shaban00 commented on GitHub (Feb 20, 2026):

@akhil-ph That's how the implementation works with the embedded IDP for now. So when you log out from Netbird, you get log out from the embedded IDP (Dex) not your external IDP

<!-- gh-comment-id:3935563443 --> @shaban00 commented on GitHub (Feb 20, 2026): @akhil-ph That's how the implementation works with the embedded IDP for now. So when you log out from Netbird, you get log out from the embedded IDP (Dex) not your external IDP
Author
Owner

@orchard0 commented on GitHub (Mar 28, 2026):

@shaban00 It's fine to not log out the external IdP but the fact netbird immediately redirects you back to the IdP and logs you back in makes the Netbird's log out button redundant. The session should be terminated in netbird because that's what the normal assumption of users is when they use a log out button. This could be a security issue. Being able to log out is important.

<!-- gh-comment-id:4147983192 --> @orchard0 commented on GitHub (Mar 28, 2026): @shaban00 It's fine to not log out the external IdP but the fact netbird immediately redirects you back to the IdP and logs you back in makes the Netbird's log out button redundant. The session should be terminated in netbird because that's what the normal assumption of users is when they use a log out button. This could be a security issue. Being able to log out is important.
Author
Owner

@akhil-ph commented on GitHub (Mar 30, 2026):

@mlsmaycon is it possible to add Gitlab as an official supported IDP for netbird.

<!-- gh-comment-id:4154629924 --> @akhil-ph commented on GitHub (Mar 30, 2026): @mlsmaycon is it possible to add Gitlab as an official supported IDP for netbird.
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#10385