非管理员用户可以自行发放API密钥吗?

你需要将域名(以及路径)添加到 allowed user api auth redirects 站点设置中。

如果你手动发出 HTTP 请求,那么 discourse://auth_redirect 应该可以正常工作。