we are trying to mimic this(https://docs.couchbase.com/tutorials/openid-connect-implicit-flow/index.html) example with Okta integration. There are some changes to our implementation strategy, like application will authenticate with Okta via app server and it gives the ID_Token value to the cb lite replicator instance and also we don’t want to create session cookie to be created instead we wanted to use the id_token for any future requests. How can we achieve this?
String tokenID = OpenIDConnectHelper.getTokenID(user, password);// this will be coming from app server.
// create session storing the id_token (at SG level)
// and save the sessionID inside a cookie
Cookie cookie = OpenIDConnectHelper.createSessionCookie(tokenID);
replConfig.setAuthenticator(new SessionAuthenticator(cookie.getValue(), StringConstants.SG_COOKIE_NAME));
also what will be the configuration in sync gateway side as well,
as of now i have just added below configuration
so basically, how replicator sends token id for every request and how user channels are created in sync gateway, as of when ever we try to create a session we are getting below record in couchbase, but we don’t see any channel or anything. any help document will be really appreciated for Okta implementation.