[PR #1028] [MERGED] Add PKCE multiple redirect ports #14728

Closed
opened 2026-08-05 03:06:13 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1028
Author: @bcmmbaga
Created: 7/24/2023
Status: Merged
Merged: 7/26/2023
Merged by: @bcmmbaga

Base: feature/add-client-logins-with-pkce-auth-flowHead: feature/pkce-multiple-redirect-ports


📝 Commits (3)

  • 0fd7f1e allow multiple redirect ports configuration
  • 8034673 use first available redirect url for pkce flow
  • 6c5b802 do not initialize pkce flow in no available redirect url

📊 Changes

10 files changed (+179 additions, -126 deletions)

View changed files

📝 client/internal/auth/pkce_flow.go (+45 -5)
📝 client/internal/pkce_auth.go (+4 -4)
📝 infrastructure_files/base.setup.env (+1 -2)
📝 infrastructure_files/configure.sh (+8 -0)
📝 infrastructure_files/management.json.tmpl (+1 -1)
📝 infrastructure_files/setup.env.example (+6 -0)
📝 management/proto/management.pb.go (+110 -110)
📝 management/proto/management.proto (+2 -2)
📝 management/server/config.go (+1 -1)
📝 management/server/grpcserver.go (+1 -1)

📄 Description

Describe your changes

Introduces the ability to specify multiple redirect ports for the PKCE (Proof Key for Code Exchange) redirect URLs. With this, users can define a list of ports, and the flow will select the first available port from the list as the PKCE redirect URL.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/1028 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 7/24/2023 **Status:** ✅ Merged **Merged:** 7/26/2023 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `feature/add-client-logins-with-pkce-auth-flow` ← **Head:** `feature/pkce-multiple-redirect-ports` --- ### 📝 Commits (3) - [`0fd7f1e`](https://github.com/netbirdio/netbird/commit/0fd7f1ee5528103d6ac8691567bfa5f1cf37aaf7) allow multiple redirect ports configuration - [`8034673`](https://github.com/netbirdio/netbird/commit/8034673645352b9a093fd8b3cfa7d440f4b78622) use first available redirect url for pkce flow - [`6c5b802`](https://github.com/netbirdio/netbird/commit/6c5b802a7c07bd854824437945986f9f45a3ba58) do not initialize pkce flow in no available redirect url ### 📊 Changes **10 files changed** (+179 additions, -126 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/auth/pkce_flow.go` (+45 -5) 📝 `client/internal/pkce_auth.go` (+4 -4) 📝 `infrastructure_files/base.setup.env` (+1 -2) 📝 `infrastructure_files/configure.sh` (+8 -0) 📝 `infrastructure_files/management.json.tmpl` (+1 -1) 📝 `infrastructure_files/setup.env.example` (+6 -0) 📝 `management/proto/management.pb.go` (+110 -110) 📝 `management/proto/management.proto` (+2 -2) 📝 `management/server/config.go` (+1 -1) 📝 `management/server/grpcserver.go` (+1 -1) </details> ### 📄 Description ## Describe your changes Introduces the ability to specify multiple redirect ports for the PKCE (Proof Key for Code Exchange) redirect URLs. With this, users can define a list of ports, and the flow will select the first available port from the list as the PKCE redirect URL. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:06:13 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14728