0

在 postgrest 的教程中说:

create role authenticator noinherit login password 'mysecretpassword';
grant web_anon to authenticator;

我的问题是:为什么将 web_anon 的权限授予身份验证器,而身份验证器在 noinherit 中?

4

1 回答 1

0

这样就authenticator可以切换到web_anon角色,如https://postgrest.org/en/v9.0/auth.html#authentication-sequence中所述

于 2021-12-04T16:45:04.893 回答