Problem setting up a Webhook / HTTPS Endpoint
Following along with this video (which, despite being created this year, is apparently really out of date – application is seemingly undergoing massive change):
At the 7:00 mark, Michael Lynn describes the settings for setting up a “3rd party service” (or “webhook”) (now apparently known as “HTTPS Endpoints”) - specifically, choosing an authentication method (Application | System | UserId | Script).
I am configuring my own HTTPS Endpoint, and nowhere am I given the option to configure this.
- Everything is deployed successfully
- the function works in the internal console / function editor
when I try to test via Postman, I get the error
{
"error": "no authentication methods were specified",
"error_code": "InvalidParameter",
"link": "https://realm.mongodb.com/groups/...[truncated]
}
I thought maybe I had missing config within Realm - and found that I had no auth providers enabled. I enabled and deployed “API Keys”, then created an API key…
I am trying to post form data to that endpoint. In Postman, I am:
- using POST;
- using the endpoint shown within the record
- specifying in the request body, appropriate form-data in key/value pairs;
- specifying query params: key: secret value: (my secret key value);
- after initial failure, set up API Key in Realm as noted, then in Postman, in the Authorization tab, added x-api-key and the API Key value I created above. That really should be everything I could need to specify, right?
…but I get the same error.
Any thoughts? Thank you!