Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

casdoor登录报错 #584

Open
chung1912 opened this issue Sep 27, 2024 · 4 comments
Open

casdoor登录报错 #584

chung1912 opened this issue Sep 27, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@chung1912
Copy link

chung1912 commented Sep 27, 2024

2024-09-27 18:32:45 ERROR user/casdoor.go:52 json: cannot unmarshal object into Go struct field Claims.address of type []string
日志出现这个错误,怎么解决?
另外,环境变量NGINX_UI_CASDOOR_CERTIFICATE的值直接输入证书字符串也太长了,能不能支持读pem文件?直接映射这个文件来读取更方便些

@chung1912 chung1912 added the bug Something isn't working label Sep 27, 2024
@0xJacky
Copy link
Owner

0xJacky commented Sep 28, 2024

参考一下这个配置:#423 (comment)

@chung1912
Copy link
Author

chung1912 commented Sep 28, 2024

参考一下这个配置:#423 (comment)

我参考你这个配置的,帮忙看下是否有问题呢?docker-compose部署(证书太占地方了,我把证书处理成了一行,删除了换行符),可以正常跳转到casdoor,也能正常返回到login页面,但是会弹出如下错误提示:
ERROR user/casdoor.go:52 invalid key: Key must be a PEM encoded PKCS1 or PKCS8 key
image

image

image

@0xJacky
Copy link
Owner

0xJacky commented Sep 30, 2024

换行符不能删的吧...,你可以映射配置文件进入容器,不一定用环境变量

@chung1912
Copy link
Author

换行符不能删的吧...,你可以映射配置文件进入容器,不一定用环境变量

保留换行符,问题依旧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants