Initial OIDC setup fails for keyspace request

Description

If a request comes in that is keyspace scoped before a database-scoped request has had chance to initialize the OIDC provider, the callback URL fails to build correctly, as we can't find {db} in the router path variable for the keyspace request.

We can't rely on h.db.Name as checkAuth runs before validateAndWriteHeaders has assigned h.db, so we'll have to check both router variables to build the callback URL.

Activity

CB robot July 24, 2024 at 9:05 PM

Build sync_gateway-3.3.0-11 contains sync_gateway commit 543bdbc with commit message:
: Allow keyspace requests to initialize OIDC provider with correct callback URL (#6310)

CB robot April 9, 2024 at 5:08 PM

Build sync_gateway-4.0.0-22 contains sync_gateway commit 543bdbc with commit message:
: Allow keyspace requests to initialize OIDC provider with correct callback URL (#6310)

CB robot April 8, 2024 at 10:22 PM

Build sync_gateway-3.2.0-351 contains sync_gateway commit 543bdbc with commit message:
: Allow keyspace requests to initialize OIDC provider with correct callback URL (#6310)

CB robot April 8, 2024 at 10:11 PM

Build sync_gateway-3.2.0-350 contains sync_gateway commit 2465817 with commit message:
: Allow keyspace requests to initialize OIDC provider with correct callback URL (#6310) (#6312)

CB robot April 8, 2024 at 9:49 PM

Build sync_gateway-3.2.0-349 contains sync_gateway commit 543bdbc with commit message:
: Allow keyspace requests to initialize OIDC provider with correct callback URL (#6310)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created June 14, 2023 at 12:27 PM
Updated August 31, 2024 at 11:01 AM
Resolved June 14, 2023 at 4:37 PM
Instabug