在 postgrest 的教程中说:
create role authenticator noinherit login password 'mysecretpassword';
grant web_anon to authenticator;
我的问题是:为什么将 web_anon 的权限授予身份验证器,而身份验证器在 noinherit 中?
在 postgrest 的教程中说:
create role authenticator noinherit login password 'mysecretpassword';
grant web_anon to authenticator;
我的问题是:为什么将 web_anon 的权限授予身份验证器,而身份验证器在 noinherit 中?
这样就authenticator
可以切换到web_anon
角色,如https://postgrest.org/en/v9.0/auth.html#authentication-sequence中所述