Hi Team, We are doing a POC on the Sync DB integration with Okta authedication. Now, we have a API which associate the Users and channels via the admin(_users ) rest API. when we hit the _users api which a JSON data it is able to create the record but it requires a password field in the JSON. is there a way we can create users with out password field?
Also, in case we go with Okta, let’s say we don’t want to create users this way how is the users will be added into sync gateway? please provide if any example if you have
For Ex: _user( This fails because it requires a password field, even we empty “password” field it throws error
We are using sync gateway version 2.7.1- and we are using admin port to do it.
Here is my error:
“error”: “Bad Request”,
“reason”: "Empty passwords are not allowed "
Request: it is a post method not put method.(assumption is user is not already there in the sync gateway)
There IS a config option to allow empty passwords when creating users via the REST API, but this is not recommended, as it allows users to create sessions without any authentication.
Your best bet would be to just generate a random password.