[PR #3824] [MERGED] [management,client] PKCE add query parameter flag prompt=login or max… #18684

Closed
opened 2026-08-05 04:08:47 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3824
Author: @crn4
Created: 5/14/2025
Status: Merged
Merged: 5/14/2025
Merged by: @crn4

Base: mainHead: feat/configurable-prompt-max-age-login


📝 Commits (8)

  • c41b833 [management,client] PKCE add query parameter flag prompt=login or max_age=0
  • e62f098 removed unused old field from a client
  • 1a523ed default prompt login in configs
  • 3bbde11 moved LoginFlag to mgm/client package to reduce build size
  • b292b35 minor changes - typo fix
  • f051c31 minor change - moved LoginFlag type to common package
  • 5b7530c minor change - keep dependency on an old flag
  • ef858d0 disablePromptLogin flag added to handler

📊 Changes

12 files changed (+254 additions, -183 deletions)

View changed files

📝 .github/workflows/test-infrastructure-files.yml (+1 -0)
📝 client/internal/auth/pkce_flow.go (+6 -1)
📝 client/internal/auth/pkce_flow_test.go (+31 -9)
📝 client/internal/pkce_auth.go (+4 -0)
📝 infrastructure_files/base.setup.env (+2 -0)
📝 infrastructure_files/management.json.tmpl (+2 -1)
📝 infrastructure_files/tests/setup.env (+1 -0)
management/client/common/types.go (+19 -0)
📝 management/proto/management.pb.go (+182 -172)
📝 management/proto/management.proto (+2 -0)
📝 management/server/grpcserver.go (+1 -0)
📝 management/server/types/config.go (+3 -0)

📄 Description

Describe your changes

Introduces a new flag for the PKCE authentication flow. When active, this flag appends query parameters such as 'prompt=login' or 'max_age=0' to the authorization request.

Stack

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/3824 **Author:** [@crn4](https://github.com/crn4) **Created:** 5/14/2025 **Status:** ✅ Merged **Merged:** 5/14/2025 **Merged by:** [@crn4](https://github.com/crn4) **Base:** `main` ← **Head:** `feat/configurable-prompt-max-age-login` --- ### 📝 Commits (8) - [`c41b833`](https://github.com/netbirdio/netbird/commit/c41b833dc085c2b0dde53dfec5bb0940978d1466) [management,client] PKCE add query parameter flag prompt=login or max_age=0 - [`e62f098`](https://github.com/netbirdio/netbird/commit/e62f098be50bb07197116f6bcddbd2df5028b5b4) removed unused old field from a client - [`1a523ed`](https://github.com/netbirdio/netbird/commit/1a523ed0eac06cd1ffd33391031d7d11884a9894) default prompt login in configs - [`3bbde11`](https://github.com/netbirdio/netbird/commit/3bbde11f1bcb9cdc5974c85c7bfd262a75c3544f) moved LoginFlag to mgm/client package to reduce build size - [`b292b35`](https://github.com/netbirdio/netbird/commit/b292b35f56ff037bfdd029b89bafec92a4f597b7) minor changes - typo fix - [`f051c31`](https://github.com/netbirdio/netbird/commit/f051c3123907f765b97ab36a1792b93c79005cf5) minor change - moved LoginFlag type to common package - [`5b7530c`](https://github.com/netbirdio/netbird/commit/5b7530c4a6a897ea863c7e6d5f86c28627a60cf7) minor change - keep dependency on an old flag - [`ef858d0`](https://github.com/netbirdio/netbird/commit/ef858d08f3f5c208ba3d10ca34e3d84de4015c4e) disablePromptLogin flag added to handler ### 📊 Changes **12 files changed** (+254 additions, -183 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/test-infrastructure-files.yml` (+1 -0) 📝 `client/internal/auth/pkce_flow.go` (+6 -1) 📝 `client/internal/auth/pkce_flow_test.go` (+31 -9) 📝 `client/internal/pkce_auth.go` (+4 -0) 📝 `infrastructure_files/base.setup.env` (+2 -0) 📝 `infrastructure_files/management.json.tmpl` (+2 -1) 📝 `infrastructure_files/tests/setup.env` (+1 -0) ➕ `management/client/common/types.go` (+19 -0) 📝 `management/proto/management.pb.go` (+182 -172) 📝 `management/proto/management.proto` (+2 -0) 📝 `management/server/grpcserver.go` (+1 -0) 📝 `management/server/types/config.go` (+3 -0) </details> ### 📄 Description ## Describe your changes Introduces a new flag for the PKCE authentication flow. When active, this flag appends query parameters such as 'prompt=login' or 'max_age=0' to the authorization request. ## Issue ticket number and link ## Stack <!-- branch-stack --> ### 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 04:08:47 -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#18684