Skip to content

Commit

Permalink
fix: join on client_id and nid
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Sep 19, 2023
1 parent 3a383db commit 7a77c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persistence/sql/persister_consent.go
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ func (p *Persister) listUserAuthenticatedClients(ctx context.Context, subject, s
/* #nosec G201 - channel can either be "front" or "back" */
fmt.Sprintf(`
SELECT DISTINCT c.* FROM hydra_client as c
JOIN hydra_oauth2_flow as f ON (c.id = f.client_id)
JOIN hydra_oauth2_flow as f ON (c.id = f.client_id AND c.nid = f.nid)
WHERE
f.subject=? AND
c.%schannel_logout_uri!='' AND
Expand Down

0 comments on commit 7a77c49

Please sign in to comment.