dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

Is there a problem with the oauth2 configuration document?

Open MargeDog opened this issue 2 years ago • 8 comments

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

MargeDog avatar Jan 10 '24 03:01 MargeDog

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

github-actions[bot] avatar Jan 10 '24 03:01 github-actions[bot]

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

ghost avatar Jan 12 '24 05:01 ghost

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 avatar Jan 26 '24 01:01 hdygxsj

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

hdygxsj avatar Jan 26 '24 01:01 hdygxsj

@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"

MargeDog avatar Jan 26 '24 06:01 MargeDog

@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.

hdygxsj avatar Jan 29 '24 01:01 hdygxsj

Please provide me with your error log

ghost avatar Jan 29 '24 02:01 ghost

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

yonghen1 avatar Aug 13 '24 03:08 yonghen1

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.

github-actions[bot] avatar Sep 13 '24 00:09 github-actions[bot]

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.

github-actions[bot] avatar Sep 23 '24 00:09 github-actions[bot]

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

可能是取token的请求不兼容,ds取token的post请求secret放在body,其他放到param。而有些认证系统所有请求信息都从body取的

code link: https://github.com/apache/dolphinscheduler/blob/5e2abd7442b8aaf50e7f76e150ab12732c32e362/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/LoginController.java#L232

jasgok avatar Nov 13 '24 06:11 jasgok