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

插件提供小程序访问接口,但没有JWT登录的接口可以使用 #5913

Closed
Ccl2007 opened this issue May 14, 2024 · 6 comments
Closed
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@Ccl2007
Copy link

Ccl2007 commented May 14, 2024

系统信息

使用的哪种方式运行?

Docker

发生了什么?

小程序通过微信登录,然后转到系统登录,获取token,然后请求带上token。这个token无需通过页面登录生成,再交给小程序,而是通过接口获取一个token。没有发现这个获取token的接口。

相关日志输出

No response

附加信息

No response

@guqing
Copy link
Member

guqing commented May 14, 2024

/ping @JohnNiang

@XiaoMo-Donald
Copy link

哦嚯?要开放 jwt登录了吗

@JohnNiang
Copy link
Member

Hi @Ccl2007 , thank you for reaching out here!

请问你提到的登录流程是 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/login.html 所描述的么?如果是的话,Halo Core 中无法实现以上流程,需要你在插件中自定义认证相关的扩展才可以实现。

具体请参考:

@JohnNiang JohnNiang added the kind/support Categorizes issue or PR as a support question. label May 14, 2024
@Ccl2007
Copy link
Author

Ccl2007 commented May 14, 2024

特别感谢,我在插件里实现这个流程。

@Ccl2007 Ccl2007 closed this as completed May 14, 2024
@XiaoMo-Donald
Copy link

大佬,有思路了吗 @Ccl2007

@Ccl2007
Copy link
Author

Ccl2007 commented May 23, 2024

这个没有难度,计划之中,写好了,分享插件给你。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

4 participants