mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
[PR #991] fix: lookup federated client configurations when using RFC 7523 assertions #512
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/991
Author: @michaelbeaumont
Created: 9/30/2025
Status: 🔄 Open
Base:
main← Head:fix/fwt-bearer📝 Commits (2)
7329968test: add cases8b1f96bfix: properly lookup clients when using RFC 7523 assertions📊 Changes
2 files changed (+109 additions, -19 deletions)
View changed files
📝
backend/internal/service/oidc_service.go(+55 -19)📝
backend/internal/service/oidc_service_test.go(+54 -0)📄 Description
See #902. This is more a proposal for one way to solve the problem. In particular, it solves the case where the clientID is left out of the request, since it's optional in the RFC. Unfortunately we don't have a uniqueness constraint on the federatedIdentities across client configurations so we just take the first match.
I was unable to figure out how to write the JSON SQL logic using
gorm...🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.