[PR #1013] [MERGED] Add PKCE authorization flow service in management and client #13225

Closed
opened 2026-08-05 02:07:49 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

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

Base: feature/add-pkce-authorization-flow-configHead: feature/add-pkce-authorization-flow


📝 Commits (10+)

  • 47f8299 add PCKE auth flow proto definition
  • 5c74281 add GetPKCEAuthorizationFlow management client implementation
  • 70447f0 Merge branch 'main' into feature/enable-pkce-flow-for-client-logins
  • 6a7c037 wip: add server implementation for GetPKCEAuthorizationFlow
  • 879a21e Merge branch 'feature/add-pkce-authorization-flow-config' into feature/add-pkce-authorization-flow
  • 1c2ab65 update pkce auth flow with additional config fields
  • 16a2aaf implement GetPKCEAuthorizationFlow service in management and client
  • 6264c50 maintain the original order of proto definitions
  • c0296c0 override PKCE flow token and authorization endpoint
  • cb13b14 Merge branch 'feature/add-pkce-authorization-flow-config' into feature/add-pkce-authorization-flow

📊 Changes

26 files changed (+1337 additions, -577 deletions)

View changed files

📝 client/android/login.go (+7 -18)
📝 client/cmd/login.go (+11 -24)
client/internal/auth/device_flow.go (+202 -0)
📝 client/internal/auth/device_flow_test.go (+16 -15)
client/internal/auth/oauth.go (+88 -0)
client/internal/auth/pkce_flow.go (+213 -0)
client/internal/auth/util.go (+62 -0)
📝 client/internal/device_auth.go (+6 -6)
client/internal/oauth.go (+0 -286)
client/internal/pkce_auth.go (+128 -0)
📝 client/server/server.go (+21 -33)
📝 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/client/client.go (+1 -0)
📝 management/client/client_test.go (+46 -0)
📝 management/client/grpc.go (+34 -0)
📝 management/client/mock.go (+8 -0)
📝 management/cmd/management.go (+14 -4)

...and 6 more files

📄 Description

Describe your changes

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/1013 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 7/14/2023 **Status:** ✅ Merged **Merged:** 7/26/2023 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `feature/add-pkce-authorization-flow-config` ← **Head:** `feature/add-pkce-authorization-flow` --- ### 📝 Commits (10+) - [`47f8299`](https://github.com/netbirdio/netbird/commit/47f82994424a0adefd8718ac03a33f5ece6f97ae) add PCKE auth flow proto definition - [`5c74281`](https://github.com/netbirdio/netbird/commit/5c74281d7a2b58467a38afa5e1bb6d82c2f3185a) add GetPKCEAuthorizationFlow management client implementation - [`70447f0`](https://github.com/netbirdio/netbird/commit/70447f03a08395e430d4db5efd41d938d8a572eb) Merge branch 'main' into feature/enable-pkce-flow-for-client-logins - [`6a7c037`](https://github.com/netbirdio/netbird/commit/6a7c03700a344cea46733ed27f8e47036353a69f) wip: add server implementation for GetPKCEAuthorizationFlow - [`879a21e`](https://github.com/netbirdio/netbird/commit/879a21ea28e736cb872348d95b90a2c4bced5e9c) Merge branch 'feature/add-pkce-authorization-flow-config' into feature/add-pkce-authorization-flow - [`1c2ab65`](https://github.com/netbirdio/netbird/commit/1c2ab6583f350d786b5d6292ac8bfde65dd79b48) update pkce auth flow with additional config fields - [`16a2aaf`](https://github.com/netbirdio/netbird/commit/16a2aaf9dd2f268df4a23346fb2220ba3c2491fa) implement GetPKCEAuthorizationFlow service in management and client - [`6264c50`](https://github.com/netbirdio/netbird/commit/6264c501f10c42b854d01784c87af2d81a1389ad) maintain the original order of proto definitions - [`c0296c0`](https://github.com/netbirdio/netbird/commit/c0296c0f7515c265855a83eb30f56a5aa9566269) override PKCE flow token and authorization endpoint - [`cb13b14`](https://github.com/netbirdio/netbird/commit/cb13b146d786b99ac7f7adca07918c66cd55b437) Merge branch 'feature/add-pkce-authorization-flow-config' into feature/add-pkce-authorization-flow ### 📊 Changes **26 files changed** (+1337 additions, -577 deletions) <details> <summary>View changed files</summary> 📝 `client/android/login.go` (+7 -18) 📝 `client/cmd/login.go` (+11 -24) ➕ `client/internal/auth/device_flow.go` (+202 -0) 📝 `client/internal/auth/device_flow_test.go` (+16 -15) ➕ `client/internal/auth/oauth.go` (+88 -0) ➕ `client/internal/auth/pkce_flow.go` (+213 -0) ➕ `client/internal/auth/util.go` (+62 -0) 📝 `client/internal/device_auth.go` (+6 -6) ➖ `client/internal/oauth.go` (+0 -286) ➕ `client/internal/pkce_auth.go` (+128 -0) 📝 `client/server/server.go` (+21 -33) 📝 `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/client/client.go` (+1 -0) 📝 `management/client/client_test.go` (+46 -0) 📝 `management/client/grpc.go` (+34 -0) 📝 `management/client/mock.go` (+8 -0) 📝 `management/cmd/management.go` (+14 -4) _...and 6 more files_ </details> ### 📄 Description ## Describe your changes ## 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 02:07:49 -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#13225