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

实现生成apiKey接口,便于第三方应用直接在token里携带过来进行认证 #718

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jjzhoujun
Copy link

@jjzhoujun jjzhoujun commented Dec 5, 2024

参考了别的项目apiKey生成和鉴权机制,结合本项目的Oauth2的鉴权机制,在不多新增表的情况下,复用Oauth2的生成token机制,将apiKey的key过期时间设置50年后,并且不需要refreshToken的刷新机制。
目前还有点待完善的是当前clientId在代码里设置成apiKey,用户如果在创建第三方应用时如果也写apiKey为客户端编码的话,可能会有一些冲突。
当前简单实现后的效果如下:
image

@jjzhoujun
Copy link
Author

vue2版本的前端pr在 yudaocode/yudao-ui-admin-vue2#7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant