[PR #308] [MERGED] Get Device Authorization Flow information from management #12450

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/308
Author: @mlsmaycon
Created: 5/7/2022
Status: Merged
Merged: 5/8/2022
Merged by: @mlsmaycon

Base: mainHead: device-authorization


📝 Commits (10+)

  • 11a1415 Add GetDeviceAuthorizationFlow method
  • 8fb6fe7 test client GetDeviceAuthorizationFlow
  • 5d0af63 test server GetDeviceAuthorizationFlow
  • b781677 test management client Mock
  • 57b4c3e Use Generic name and fix tests
  • ba8949c User t.Error instead of t.Fatal in a go routine
  • 7cb2a6a Create simple Server instance without grpc
  • ef5a98e chore: gracefully stop management service in client tests
  • 98592dd Use encrypted message for GetDeviceAuthorizationFlow
  • 362f045 validate encryption error in test

📊 Changes

12 files changed (+792 additions, -116 deletions)

View changed files

📝 iface/iface.go (+1 -1)
📝 management/client/client.go (+1 -0)
📝 management/client/client_test.go (+125 -36)
📝 management/client/grpc.go (+34 -0)
📝 management/client/mock.go (+13 -5)
📝 management/proto/management.pb.go (+355 -66)
📝 management/proto/management.proto (+33 -0)
📝 management/proto/management_grpc.pb.go (+42 -0)
📝 management/server/config.go (+24 -0)
📝 management/server/grpcserver.go (+52 -0)
📝 management/server/management_proto_test.go (+100 -4)
📝 management/server/mock_server/management_server_mock.go (+12 -4)

📄 Description

We will configure the device authorization flow information and a client will retrieve it and initiate a
device authorization grant flow


🔄 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/308 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 5/7/2022 **Status:** ✅ Merged **Merged:** 5/8/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `device-authorization` --- ### 📝 Commits (10+) - [`11a1415`](https://github.com/netbirdio/netbird/commit/11a14156b0c04bc42a48f315c7629dce524f331c) Add GetDeviceAuthorizationFlow method - [`8fb6fe7`](https://github.com/netbirdio/netbird/commit/8fb6fe73ec4f8c315d0957100bb312546d5af7ac) test client GetDeviceAuthorizationFlow - [`5d0af63`](https://github.com/netbirdio/netbird/commit/5d0af63f9b181e38617d221ce0be31b7132ce742) test server GetDeviceAuthorizationFlow - [`b781677`](https://github.com/netbirdio/netbird/commit/b781677497a3db658157c7c050bbea6fd34532fa) test management client Mock - [`57b4c3e`](https://github.com/netbirdio/netbird/commit/57b4c3e738f7590876fb25ac288189c4c8b08d05) Use Generic name and fix tests - [`ba8949c`](https://github.com/netbirdio/netbird/commit/ba8949c3f25ca07a4b044709a76e90126f8878fd) User t.Error instead of t.Fatal in a go routine - [`7cb2a6a`](https://github.com/netbirdio/netbird/commit/7cb2a6aec3107bffea06e8860005701b51060a3a) Create simple Server instance without grpc - [`ef5a98e`](https://github.com/netbirdio/netbird/commit/ef5a98ef89f22eb43d003f13e3a5dbc9f52cb55f) chore: gracefully stop management service in client tests - [`98592dd`](https://github.com/netbirdio/netbird/commit/98592dd862aa77fc91dc0194df097eb974533588) Use encrypted message for GetDeviceAuthorizationFlow - [`362f045`](https://github.com/netbirdio/netbird/commit/362f0451b8ce05c6b45311b683ec08c43cdceb8f) validate encryption error in test ### 📊 Changes **12 files changed** (+792 additions, -116 deletions) <details> <summary>View changed files</summary> 📝 `iface/iface.go` (+1 -1) 📝 `management/client/client.go` (+1 -0) 📝 `management/client/client_test.go` (+125 -36) 📝 `management/client/grpc.go` (+34 -0) 📝 `management/client/mock.go` (+13 -5) 📝 `management/proto/management.pb.go` (+355 -66) 📝 `management/proto/management.proto` (+33 -0) 📝 `management/proto/management_grpc.pb.go` (+42 -0) 📝 `management/server/config.go` (+24 -0) 📝 `management/server/grpcserver.go` (+52 -0) 📝 `management/server/management_proto_test.go` (+100 -4) 📝 `management/server/mock_server/management_server_mock.go` (+12 -4) </details> ### 📄 Description We will configure the device authorization flow information and a client will retrieve it and initiate a device authorization grant flow --- <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:05:56 -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#12450