summaryrefslogtreecommitdiff
path: root/internal/storage/sql_provider_queries.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-08-20 13:00:00 +1000
committerGitHub <noreply@github.com>2023-08-20 13:00:00 +1000
commit321a3803f52b01324fcbf0e5b12ae014bf075c1e (patch)
tree7e434d9ec3128cf83d59922a5eb493a7035e0c90 /internal/storage/sql_provider_queries.go
parente42bbca1efa3a596aaa7289a9a8c61e108d13a52 (diff)
fix(oidc): par consent state error (#5880)
This fixes a state error during a PAR session were if the session requires consent the flow fails. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/storage/sql_provider_queries.go')
-rw-r--r--internal/storage/sql_provider_queries.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/internal/storage/sql_provider_queries.go b/internal/storage/sql_provider_queries.go
index b089e23ce..46a9635b6 100644
--- a/internal/storage/sql_provider_queries.go
+++ b/internal/storage/sql_provider_queries.go
@@ -319,7 +319,7 @@ const (
handled_response_types, response_mode, response_mode_default, revoked,
form_data, session_data
FROM %s
- WHERE signature = ? AND revoked = FALSE;`
+ WHERE signature = ?;`
queryFmtInsertOAuth2PARContext = `
INSERT INTO %s (signature, request_id, client_id, requested_at, scopes, audience,
@@ -327,6 +327,13 @@ const (
form_data, session_data)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);`
+ queryFmtUpdateOAuth2PARContext = `
+ UPDATE %s
+ SET signature = ?, request_id = ?, client_id = ?, requested_at = ?, scopes = ?, audience = ?,
+ handled_response_types = ?, response_mode = ?, response_mode_default = ?, revoked = ?,
+ form_data = ?, session_data = ?
+ WHERE id = ?;`
+
queryFmtSelectOAuth2BlacklistedJTI = `
SELECT id, signature, expires_at
FROM %s