vicalloy / outline-docker-compose

Install a self-hosted Outline wiki instance in a couple of minutes
BSD 3-Clause "New" or "Revised" License
770 stars 132 forks source link

在Outline中无法识别到管理员角色 #15

Closed enjoy-learning-everything closed 2 years ago

enjoy-learning-everything commented 2 years ago

不论如何修改用户信息,在Outline中都无法识别到管理员角色,我无法将所有数据导出进行备份,这个问题是Outline的问题还是认证授权服务的问题呢

这是我的Outline用户列表: image

OIDC用户权限: image

conf.sh配置:

# The url used to vist this web site.
URL=http://xxx.xxx.xxx.xxx:8888
# The default interface language. See translate.getoutline.com for a list of
# available language codes and their rough percentage translated.
DEFAULT_LANGUAGE=zh_CN
# https://docs.djangoproject.com/en/2.2/ref/settings/#language-code
LANGUAGE_CODE=en-us
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TIME_ZONE=UTC
FORCE_HTTPS=false
# The domain in you email.
# Comma separated list of domains to be allowed (optional).
# If not set, the first user's domain is allowed by default.
ALLOWED_DOMAINS=

# Nginx
# The nginx bind ip and port.
# If you use ip address to access outline, this ip and port should be same as the URL.
# If this server behind a proxy(nginx), you can bind to `127.0.0.1`.
HTTP_IP=0.0.0.0
HTTP_PORT_IP=8888

# Docker
# If you server behind a proxy(nginx), and the proxy created by docker. You can use the proxy's network. Set the `NETWORKS` to proxy's network name, and set `NETWORKS_EXTERNAL` to `true` .
# The sample config for host nginx can be find in `config/sample/nginx_outline.conf`.
NETWORKS=outline
NETWORKS_EXTERNAL=false

# Secret keys, update by script.
# You shouldn't edit it.
MINIO_ACCESS_KEY=bfb3e19b991fe5ee
MINIO_SECRET_KEY=b732dbaa16acf768d615454ee6c8ec71d6b165df16c54187d9c0ee3b074de7ff
OIDC_CLIENT_SECRET=b732dbaa16acf768d615454ee6c8ec71d6b165df16c54187d9c0ee3b074de7ff
OUTLINE_SECRET_KEY=49b40297035f63fa85268789632fcda9fa95170d0fdca4bc0c223bda99145eb3
OUTLINE_UTILS_SECRET=b931674c72e807695c9aa30a3af568a611c85bf0720f676c618162bf0b0b84c1
DJANGO_SECRET_KEY=f7aa9b366378ba5725d16cc1f2fa7bf178c4bfd565be29b7532a0130c4c33bf2

使用make logs查看日志的时候发现有一些报错,不知道和这个有没有关系: image

enjoy-learning-everything commented 2 years ago

我后续通过修改pqsql数据的isAdmin字段来修改为管理员权限了,解决了我的问题。 不知道是不是脚本有bug,还是outline有问题,会导致插入oidc认证服务显示是管理员身份,但是插入数据库时字段isAdmin设置的是false。

firer1946 commented 2 years ago

感谢,已解决,我也遇到这个问题 (改了下postgresql中的users表对应用户isAdmin字段为't'