Description
I’d like to set up a custom OAuth via the REST API. Is there a way to achieve this? I spent all day yesterday studying the documentation and the source code, but it currently doesn’t seem to be possible. Just writing here as a last resort. SAML seems to have options that can be set via the REST API, perhaps that would be an alternative.
Alternatively, is it possible to import options in to Rocket Chat via the REST API to, for instance, create a custom OAuth?
Server Setup Information
- Version of Rocket.Chat Server: 0.74.3
- Operating System: Ubuntu 16.04
- Deployment Method: docker
- Number of Running Instances: 1
I don’t believe there is an api route to create custom oauth. Feel free to open a feature request for this. Or if you’re a dev wouldn’t likely be too complex to add and open a PR.
If you want to configure one of the existing ones you could do so by setting environment variables like: OVERWRITE_SETTING_setting_name=value can also set settings via the api.
https://rocket.chat/docs/administrator-guides/settings-via-env-vars/#managing-settings-using-environment-variables
https://rocket.chat/docs/developer-guides/rest-api/settings/
Thanks a lot for the reply, Aaron.
I’ve implemented a path for it in my development version and will submit a pull request shortly.
Dear Greg,
I appreciate if you can share the pull request or your diff, since I was also trying to find this out.
Thanks
Great! however It seems as if it’s not accepted yet .