求助L站outh怎么接入

用AI搓了个中转站,准备公益使用,但是研究了一下午接入outh愣是没研究明白

后端用的go语言,前端用的react

Golang 用这个库,其他的可以请教 GPT 老师,就是标准的 OAuth2

golang/oauth2: Go OAuth2

authorization_endpoint: "https://connect.linux.do/oauth2/authorize"
token_endpoint: "https://connect.linux.do/oauth2/token"
user_endpoint: "https://connect.linux.do/api/user"
3 个赞

我卡在了那个回调的位置

看看这里。

1 个赞

我看了这个。今天论坛的我都看了。但就是没研究明白 :sweat_smile:

回调怎么了

是不是我本地测试的原因 我设置http://127.0.0.1:9000 一直回调失败

贴一下你的关键代码。

可以callback到本地的。

我这会儿没有弄那个。下午一直不成功,我就搞别的功能去了,就把相关的代码给去掉,这会儿刚下班,等回去之后我再试一下,不行的话我就把代码贴出来

1 个赞

回掉地址后面的后缀是统一的吗?

不是统一的。这个是你的接口。

看我自己咋填对吧。 我到家试一下

1 个赞

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。