In Couchbase Sync Gateway, how to make sure that an implicit OpenId implicit stream is working?

I am working on an application using an implicit OpenId stream to connect to an Auth0 provider. I can already get the JWT token from Auth0 and now I want to start a session in the Couchbase sync gateway.

For this, I do a POST before /{db}/_session, which returns me a cookie with SyncGatewaySessionid. As far as I understand, this should be connected with the user in the web interface of the synchronization gateway ... However, I do not see the user not creating it.

So, is there a way to see which user I'm using for replication?

Or a way to make sure my JWT token is correctly read by the synchronization gateway?

EDIT When I disable the GUEST user by setting the following in my configuration file:

        "users": {
            "GUEST": {
                "disabled": true,
                "admin_channels": [
                    "*"
                ]
            }
        }

OpenId, , . , , GUEST .

. OpenID GUEST?

+4
1

Couchbase Sync ( ) OpenId Connect.

  • RS256
  • , JWT, validation_key, Sync Gateway.
  • , JWT POST Authorization Bearer.
  • register true

, , , , couchbase lite , .

+4

Source: https://habr.com/ru/post/1677754/


All Articles