Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-3103

[3.1.1 Backport] Initial OIDC setup fails for keyspace request

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.1.1
    • 3.1.0
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 128
    • 1

    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.

      Attachments

        Issue Links

          Activity

            People

              ben.brooks Ben Brooks
              ben.brooks Ben Brooks
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty