apache / dolphinscheduler

Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
https://dolphinscheduler.apache.org/
Apache License 2.0
12.66k stars 4.57k forks source link

Is there a problem with the oauth2 configuration document? #15454

Open MargeDog opened 8 months ago

MargeDog commented 8 months ago

Search before asking

Description

      redirectUri: "http://127.0.0.1:12345/dolphinscheduler/redirect/login/oauth2"
      clientId: ""
      clientSecret: ""
      tokenUri: "https://gitee.com/oauth/token?grant_type=authorization_code"
      userInfoUri: "https://gitee.com/api/v5/user"
      callbackUrl: "http://127.0.0.1:5173/login"

这里的redirectUri是dolphinscheduler的地址,callbackUrl登陆地址配置的是哪里的啊

Documentation Links

https://dolphinscheduler.apache.org/zh-cn/docs/3.2.0/guide/security/authentication-type

Are you willing to submit a PR?

Code of Conduct

github-actions[bot] commented 8 months ago

Search before asking

Description

      redirectUri: "http://127.0.0.1:12345/dolphinscheduler/redirect/login/oauth2"
      clientId: ""
      clientSecret: ""
      tokenUri: "https://gitee.com/oauth/token?grant_type=authorization_code"
      userInfoUri: "https://gitee.com/api/v5/user"
      callbackUrl: "http://127.0.0.1:5173/login"

这里的redirectUri是dolphinscheduler的地址,callbackUrl登陆地址配置的是哪里的啊

Documentation Links

https://dolphinscheduler.apache.org/zh-cn/docs/3.2.0/guide/security/authentication-type

Are you willing to submit a PR?

Code of Conduct

HWENK commented 8 months ago

callbackUrl = http://127.0.0.1:12345/dolphinscheduler/ui/login

hdygxsj commented 7 months ago

Search before asking

  • [x] I had searched in the issues and found no similar feature requirement.

Description

      redirectUri: "http://127.0.0.1:12345/dolphinscheduler/redirect/login/oauth2"
      clientId: ""
      clientSecret: ""
      tokenUri: "https://gitee.com/oauth/token?grant_type=authorization_code"
      userInfoUri: "https://gitee.com/api/v5/user"
      callbackUrl: "http://127.0.0.1:5173/login"

这里的redirectUri是dolphinscheduler的地址,callbackUrl登陆地址配置的是哪里的啊

Documentation Links

https://dolphinscheduler.apache.org/zh-cn/docs/3.2.0/guide/security/authentication-type

Are you willing to submit a PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

How did you configure it?

hdygxsj commented 7 months ago

Could you please send me your configuration file to have a look?

MargeDog commented 7 months ago

@hdygxsj 这是我的配置,但是跳转登录的时候一直失败,请问配置有问题么,我的迷糊点主要在redirectUri,callbackUrl authorizationUri: "http://login.YYY.XXXXX.net/oauth/authorize" redirectUri: "http://dolphinscheduler.bi.XXXXX.net/dolphinscheduler/redirect/login/oauth2" clientId: "154" clientSecret: "xxxxxxxx" tokenUri: "http://login..XXX.YYYY.net/api/oauth/token" userInfoUri: "http://login.XXX.YYYY.net/api/oauth/userinfo" callbackUrl: "http://dolphinscheduler.bi.XXXXXXX.net/dolphinscheduler/ui/login"

hdygxsj commented 7 months ago

@hdygxsj 这是我的配置,但是跳转登录的时候一直失败,请问配置有问题么,我的迷糊点主要在redirectUri,callbackUrl authorizationUri: "http://login.YYY.XXXXX.net/oauth/authorize" redirectUri: "http://dolphinscheduler.bi.XXXXX.net/dolphinscheduler/redirect/login/oauth2" clientId: "154" clientSecret: "xxxxxxxx" tokenUri: "http://login..XXX.YYYY.net/api/oauth/token" userInfoUri: "http://login.XXX.YYYY.net/api/oauth/userinfo" callbackUrl: "http://dolphinscheduler.bi.XXXXXXX.net/dolphinscheduler/ui/login"

Please provide the HTTP request methods required for each OAuth2 API and the corresponding response message formats.

HWENK commented 7 months ago

Please provide me with your error log

yonghen1 commented 1 month ago

dolphinscheduler/ui/login?authType=oauth2&error=oauth2%20auth%20error,跳转过程中有没有遇到这个问题?

github-actions[bot] commented 5 hours ago

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.