[PR #53] [MERGED] feat: custom claims #958

Closed
opened 2025-10-07 00:25:22 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pocket-id/pocket-id/pull/53
Author: @stonith404
Created: 10/28/2024
Status: Merged
Merged: 10/28/2024
Merged by: @stonith404

Base: mainHead: feat/custom-claims


📝 Commits (5)

  • 465b512 add first version of custom claims
  • 8b4e84b remove required admin binding from isAdmin
  • d5ceb94 Merge branch 'main' into feat/custom-claims
  • cb27e8c add custom claims to user groups
  • 0abf232 add tests

📊 Changes

43 files changed (+1069 additions, -279 deletions)

View changed files

📝 backend/internal/bootstrap/router_bootstrap.go (+4 -1)
📝 backend/internal/common/errors.go (+143 -16)
📝 backend/internal/controller/app_config_controller.go (+11 -16)
📝 backend/internal/controller/audit_log_controller.go (+2 -3)
backend/internal/controller/custom_claim_controller.go (+78 -0)
📝 backend/internal/controller/oidc_controller.go (+25 -48)
📝 backend/internal/controller/test_controller.go (+4 -5)
📝 backend/internal/controller/user_controller.go (+19 -38)
📝 backend/internal/controller/user_group_controller.go (+15 -26)
📝 backend/internal/controller/webauthn_controller.go (+16 -22)
📝 backend/internal/controller/well_known_controller.go (+1 -2)
backend/internal/dto/custom_claim_dto.go (+8 -0)
📝 backend/internal/dto/user_dto.go (+7 -6)
📝 backend/internal/dto/user_group_dto.go (+12 -10)
📝 backend/internal/middleware/error_handler.go (+50 -24)
📝 backend/internal/middleware/file_size_limit.go (+3 -3)
📝 backend/internal/middleware/jwt_auth.go (+4 -6)
📝 backend/internal/middleware/rate_limit.go (+1 -4)
backend/internal/model/custom_claim.go (+11 -0)
📝 backend/internal/model/user.go (+3 -2)

...and 23 more files

📄 Description

Implements #25


🔄 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/pocket-id/pocket-id/pull/53 **Author:** [@stonith404](https://github.com/stonith404) **Created:** 10/28/2024 **Status:** ✅ Merged **Merged:** 10/28/2024 **Merged by:** [@stonith404](https://github.com/stonith404) **Base:** `main` ← **Head:** `feat/custom-claims` --- ### 📝 Commits (5) - [`465b512`](https://github.com/pocket-id/pocket-id/commit/465b512b6b2e9dbb2ae06d85d1dae83408a0a734) add first version of custom claims - [`8b4e84b`](https://github.com/pocket-id/pocket-id/commit/8b4e84ba7eb5bdb78664b745d62674cca5f78271) remove required admin binding from isAdmin - [`d5ceb94`](https://github.com/pocket-id/pocket-id/commit/d5ceb94340905f8398401a9c59a1587d27632f16) Merge branch 'main' into feat/custom-claims - [`cb27e8c`](https://github.com/pocket-id/pocket-id/commit/cb27e8c76dbba6f7232b7be53c5b325966726daf) add custom claims to user groups - [`0abf232`](https://github.com/pocket-id/pocket-id/commit/0abf232ebc4ff415adc1704ee263e2f50d699823) add tests ### 📊 Changes **43 files changed** (+1069 additions, -279 deletions) <details> <summary>View changed files</summary> 📝 `backend/internal/bootstrap/router_bootstrap.go` (+4 -1) 📝 `backend/internal/common/errors.go` (+143 -16) 📝 `backend/internal/controller/app_config_controller.go` (+11 -16) 📝 `backend/internal/controller/audit_log_controller.go` (+2 -3) ➕ `backend/internal/controller/custom_claim_controller.go` (+78 -0) 📝 `backend/internal/controller/oidc_controller.go` (+25 -48) 📝 `backend/internal/controller/test_controller.go` (+4 -5) 📝 `backend/internal/controller/user_controller.go` (+19 -38) 📝 `backend/internal/controller/user_group_controller.go` (+15 -26) 📝 `backend/internal/controller/webauthn_controller.go` (+16 -22) 📝 `backend/internal/controller/well_known_controller.go` (+1 -2) ➕ `backend/internal/dto/custom_claim_dto.go` (+8 -0) 📝 `backend/internal/dto/user_dto.go` (+7 -6) 📝 `backend/internal/dto/user_group_dto.go` (+12 -10) 📝 `backend/internal/middleware/error_handler.go` (+50 -24) 📝 `backend/internal/middleware/file_size_limit.go` (+3 -3) 📝 `backend/internal/middleware/jwt_auth.go` (+4 -6) 📝 `backend/internal/middleware/rate_limit.go` (+1 -4) ➕ `backend/internal/model/custom_claim.go` (+11 -0) 📝 `backend/internal/model/user.go` (+3 -2) _...and 23 more files_ </details> ### 📄 Description Implements #25 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2025-10-07 00:25:22 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#958