[PR #989] [MERGED] Add API Endpoint for Resending User Invitations in Auth0 #13209

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/989
Author: @bcmmbaga
Created: 6/27/2023
Status: Merged
Merged: 7/3/2023
Merged by: @mlsmaycon

Base: mainHead: feature/auth0-resend-invites-endpoint


📝 Commits (10+)

  • 5b690c0 add request handler for sending invite
  • e458339 add InviteUser method to account manager interface
  • 1c7ad69 add InviteUser mock
  • 14e4d91 add invite user endpoint to user handler
  • 3b12168 add InviteUserByID to manager interface
  • 0aebc13 implement InviteUserByID in all idp managers
  • 6547e7a resend user invitation
  • 5ea95d8 add invite user handler tests
  • b1603a0 refactor
  • bb5fd80 user userID for sending invitation

📊 Changes

15 files changed (+248 additions, -0 deletions)

View changed files

📝 management/server/account.go (+1 -0)
📝 management/server/http/api/openapi.yml (+27 -0)
📝 management/server/http/handler.go (+1 -0)
📝 management/server/http/users_handler.go (+31 -0)
📝 management/server/http/users_handler_test.go (+56 -0)
📝 management/server/idp/auth0.go (+47 -0)
📝 management/server/idp/authentik.go (+6 -0)
📝 management/server/idp/azure.go (+6 -0)
📝 management/server/idp/google_workspace.go (+6 -0)
📝 management/server/idp/idp.go (+1 -0)
📝 management/server/idp/keycloak.go (+6 -0)
📝 management/server/idp/okta.go (+6 -0)
📝 management/server/idp/zitadel.go (+6 -0)
📝 management/server/mock_server/account_mock.go (+8 -0)
📝 management/server/user.go (+40 -0)

📄 Description

Describe your changes

Create a new API endpoint POST /api/users/{userId}/invite to resend user invites to users that didn’t activate their accounts before the expiration time

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/989 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 6/27/2023 **Status:** ✅ Merged **Merged:** 7/3/2023 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `feature/auth0-resend-invites-endpoint` --- ### 📝 Commits (10+) - [`5b690c0`](https://github.com/netbirdio/netbird/commit/5b690c02be6ce223dda4a593b8f02adf5847370b) add request handler for sending invite - [`e458339`](https://github.com/netbirdio/netbird/commit/e458339fa3ef4724992c1b879ace1d1c6a3f0473) add InviteUser method to account manager interface - [`1c7ad69`](https://github.com/netbirdio/netbird/commit/1c7ad69674e30dd3e013926096f2fc94e32f661e) add InviteUser mock - [`14e4d91`](https://github.com/netbirdio/netbird/commit/14e4d918d96854702cbb723b63c79570f4ac8788) add invite user endpoint to user handler - [`3b12168`](https://github.com/netbirdio/netbird/commit/3b12168841cbeab21015bb695ad2824dab280144) add InviteUserByID to manager interface - [`0aebc13`](https://github.com/netbirdio/netbird/commit/0aebc13e43b78647cc768a40acc0799d5002084e) implement InviteUserByID in all idp managers - [`6547e7a`](https://github.com/netbirdio/netbird/commit/6547e7a43ec8cdbf96385fa50723d0e88b33cda0) resend user invitation - [`5ea95d8`](https://github.com/netbirdio/netbird/commit/5ea95d87305bde6e79d6cf664215ad2cdd5d6549) add invite user handler tests - [`b1603a0`](https://github.com/netbirdio/netbird/commit/b1603a01a07d6cbcf4050756ec39e5619f92d54a) refactor - [`bb5fd80`](https://github.com/netbirdio/netbird/commit/bb5fd8051ebfbc904fe223ed9d3c4f697f195c45) user userID for sending invitation ### 📊 Changes **15 files changed** (+248 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+1 -0) 📝 `management/server/http/api/openapi.yml` (+27 -0) 📝 `management/server/http/handler.go` (+1 -0) 📝 `management/server/http/users_handler.go` (+31 -0) 📝 `management/server/http/users_handler_test.go` (+56 -0) 📝 `management/server/idp/auth0.go` (+47 -0) 📝 `management/server/idp/authentik.go` (+6 -0) 📝 `management/server/idp/azure.go` (+6 -0) 📝 `management/server/idp/google_workspace.go` (+6 -0) 📝 `management/server/idp/idp.go` (+1 -0) 📝 `management/server/idp/keycloak.go` (+6 -0) 📝 `management/server/idp/okta.go` (+6 -0) 📝 `management/server/idp/zitadel.go` (+6 -0) 📝 `management/server/mock_server/account_mock.go` (+8 -0) 📝 `management/server/user.go` (+40 -0) </details> ### 📄 Description ## Describe your changes Create a new API endpoint `POST /api/users/{userId}/invite` to resend user invites to users that didn’t activate their accounts before the expiration time ## 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:45 -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#13209