[PR #746] [MERGED] Add Keycloak Idp Manager #12949

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/746
Author: @bcmmbaga
Created: 3/16/2023
Status: Merged
Merged: 3/23/2023
Merged by: @mlsmaycon

Base: mainHead: main


📝 Commits (10+)

  • f601799 initialize keycloak manager
  • ebcef13 initial keycloak idp manager implementation
  • 63f072b create new keycloak idp manager
  • 2419d3a retrieve access token and authenticate keycloak requests
  • c92010b create new user in keycloak idp
  • 374f779 send app metadata as attributes
  • ab13a12 get user data from keycloak by id
  • 2365827 search user by email address
  • 974248d get all acccounts indexed by account id
  • a65af27 paginate get all accounts with total count of users

📊 Changes

3 files changed (+989 additions, -3 deletions)

View changed files

📝 management/server/idp/idp.go (+7 -3)
management/server/idp/keycloak.go (+581 -0)
management/server/idp/keycloak_test.go (+401 -0)

📄 Description

Describe your changes

Added intergration with keycloak user API.

  • Keycloak integration - Peer detail does not show Username (#601)
  • Usernames are not saved (#716)
  • Usernames are not displayed for peers (#724)

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/746 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 3/16/2023 **Status:** ✅ Merged **Merged:** 3/23/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`f601799`](https://github.com/netbirdio/netbird/commit/f601799b216b8b8bb36b879e08ce956108f1b6ee) initialize keycloak manager - [`ebcef13`](https://github.com/netbirdio/netbird/commit/ebcef1346e1a5b604294c62ed91045ae9a177d2d) initial keycloak idp manager implementation - [`63f072b`](https://github.com/netbirdio/netbird/commit/63f072bc2ee80b686d27e2eaa7d09e062f155c28) create new keycloak idp manager - [`2419d3a`](https://github.com/netbirdio/netbird/commit/2419d3aceb7d1b5702a6e0ff406a99b31fc8a864) retrieve access token and authenticate keycloak requests - [`c92010b`](https://github.com/netbirdio/netbird/commit/c92010b5c5457aec14afcefd5963f7f4e97dae7c) create new user in keycloak idp - [`374f779`](https://github.com/netbirdio/netbird/commit/374f7796f78ca18b43ead244741ae598f4bfbdc7) send app metadata as attributes - [`ab13a12`](https://github.com/netbirdio/netbird/commit/ab13a12b0a879dd9b005c1419c2eb8f1c81ff94a) get user data from keycloak by id - [`2365827`](https://github.com/netbirdio/netbird/commit/236582707c1d6fe0dc7717c04153dc1a702e36f2) search user by email address - [`974248d`](https://github.com/netbirdio/netbird/commit/974248d01ab67af9c49f84843f7ddc18dbb8ef1c) get all acccounts indexed by account id - [`a65af27`](https://github.com/netbirdio/netbird/commit/a65af27cbe981dc7769335ccb18ccd6152d649be) paginate get all accounts with total count of users ### 📊 Changes **3 files changed** (+989 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `management/server/idp/idp.go` (+7 -3) ➕ `management/server/idp/keycloak.go` (+581 -0) ➕ `management/server/idp/keycloak_test.go` (+401 -0) </details> ### 📄 Description ## Describe your changes Added intergration with keycloak user API. ## Issue ticket number and link * Keycloak integration - Peer detail does not show Username ([#601][i601]) * Usernames are not saved ([#716][i716]) * Usernames are not displayed for peers ([#724][i724]) [i601]: https://github.com/netbirdio/netbird/issues/601 [i716]: https://github.com/netbirdio/netbird/issues/716 [i724]: https://github.com/netbirdio/netbird/issues/724 ### 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:05 -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#12949