cookieY / Yearning

🐳 A most popular sql audit platform for mysql
http://next.yearning.io/
GNU Affero General Public License v3.0
8.5k stars 1.99k forks source link

[Question] 使用OIDC服务提供商无法登录到Yearning #1107

Closed potatoone closed 2 weeks ago

potatoone commented 1 month ago

描述问题 我使用了两个开源SSO授权服务,Authentik和Casdoor,两者均有实现标准OIDC登录协议,但是配置之后都无法跳转到个人用户界面 ,仍然停留在登录页

toml配置文件如下 image

应用程序oidc返回状态,1200应该是正常吧 image

一直停留在此处 image

部署方式

环境 (请填写环境信息):

应用程序日志信息 [Info] 2024-09-29 11:36:45 "url":"/lang" "method":"GET" "status":200 "protocol":"HTTP/1.1" "remote_ip":"x.x.x.x" "bytes_in": "0 bytes" "bytes_out": "42 bytes" [Info] 2024-09-29 11:36:45 "url":"/oidc/state" "method":"GET" "status":200 "protocol":"HTTP/1.1" "remote_ip":"x.x.x.x" "bytes_in": "0 bytes" "bytes_out": "252 bytes" [Info] 2024-09-29 11:36:45 "url":"/fetch" "method":"GET" "status":200 "protocol":"HTTP/1.1" "remote_ip":"x.x.x.x" "bytes_in": "0 bytes" "bytes_out": "48 bytes"

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: [Question] Unable to log in to Yearning using OIDC service provider

dellnoantechnp commented 2 weeks ago

image keycloak 测试没问题,能跑通。

Issues-translate-bot commented 2 weeks ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


image There is no problem with the keycloak test and it can run through.

potatoone commented 2 weeks ago

@dellnoantechnp 搞好了。Casdoor也可以用了,重定向url必须是这个/oidc/_token-login

Issues-translate-bot commented 2 weeks ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@dellnoantechnp Done. Casdoor can also be used, the redirect url must be this /oidc/_token-login