[PR #838] [MERGED] Fix incomplete verification URI issue in device auth flow #13060

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/838
Author: @bcmmbaga
Created: 5/5/2023
Status: Merged
Merged: 5/5/2023
Merged by: @braginini

Base: mainHead: main


📝 Commits (2)

  • b92c0c5 fallback to verification uri if complete uri is empty
  • 46b7649 show user code to user for non complete uri

📊 Changes

3 files changed (+16 additions, -5 deletions)

View changed files

📝 client/cmd/login.go (+10 -4)
📝 client/cmd/up.go (+1 -1)
📝 client/internal/oauth.go (+5 -0)

📄 Description

Describe your changes

adds functionality to support Identity Provider (IdP) managers that do not support a complete verification URI in the device authentication flow. In cases where the verification_uri_complete field is empty, the user will be prompted with their user_code, and the verification_uri field will be used as a fallback

  • Azure application device flow not supported - (#673)

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/838 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 5/5/2023 **Status:** ✅ Merged **Merged:** 5/5/2023 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`b92c0c5`](https://github.com/netbirdio/netbird/commit/b92c0c51a8bf05c798768821d2f2490f9690a532) fallback to verification uri if complete uri is empty - [`46b7649`](https://github.com/netbirdio/netbird/commit/46b7649a330a5e3e3132a5bc93a7aef6b532629f) show user code to user for non complete uri ### 📊 Changes **3 files changed** (+16 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/login.go` (+10 -4) 📝 `client/cmd/up.go` (+1 -1) 📝 `client/internal/oauth.go` (+5 -0) </details> ### 📄 Description ## Describe your changes adds functionality to support Identity Provider (IdP) managers that do not support a complete verification URI in the device authentication flow. In cases where the `verification_uri_complete` field is empty, the user will be prompted with their `user_code`, and the `verification_uri ` field will be used as a fallback ## Issue ticket number and link * Azure application device flow not supported - ([#673](https://github.com/netbirdio/netbird/issues/673)) ### Checklist - [x] 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 --- <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:22 -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#13060