简体   繁体   English

Supabase API,是基本授权的一个选项

[英]Supabase API, is basic authorization an option

I'm new to Supabase, but it looks very nice and promising for many future projects.我是 Supabase 的新手,但它看起来非常好并且对未来的许多项目很有前途。 In this case I'm trying to use it to store web hook requests from another system - this system, however, only supports sending web hook requests with Basic Authorization header as means of auth and from what I can tell, Supabase doesn't support this, only apikey.在这种情况下,我试图用它来存储来自另一个系统的 web 挂钩请求 - 然而,这个系统只支持发送 web 挂钩请求,基本授权 header 作为身份验证的手段,据我所知,Supabase 不支持这个,只有apikey。

Does anyone know if the Supabase API can we used with Basic Authorization header?有谁知道 Supabase API 是否可以与基本授权 header 一起使用?

In order to receive webhooks, you need a backend.为了接收 webhook,您需要一个后端。 Supabase provides Edge Functions , but it only supports receiving POST requests at the moment, so if you want to receive GET request webhooks, you might want to use other functions providers likevercel . Supabase 提供了Edge Functions ,但目前只支持接收 POST 请求,所以如果你想接收 GET 请求 webhooks,你可能需要使用其他函数提供者,如vercel

Whatever backend provider you choose, verifying the webhook request should be possible.无论您选择哪种后端提供商,都应该可以验证 webhook 请求。 Once requests are verified, the results can be stored on Supabase database using our client library.验证请求后,可以使用我们的客户端库将结果存储在 Supabase 数据库中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM