-
Notifications
You must be signed in to change notification settings - Fork 87
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
feat: support granular token #443
Conversation
神奇,chatgpt 的 cr 机器人好像只针对 @elrrrrrrr 能够跑起来。 |
065933a
to
2643a92
Compare
Codecov Report
@@ Coverage Diff @@
## master #443 +/- ##
==========================================
+ Coverage 97.16% 97.23% +0.07%
==========================================
Files 157 159 +2
Lines 14123 14445 +322
Branches 1810 1861 +51
==========================================
+ Hits 13722 14046 +324
+ Misses 401 399 -2
... and 11 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
e3f9fb7
to
0c54334
Compare
0f5e81d
to
93e9af1
Compare
06d5bdf
to
1544d0e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
[skip ci] ## [3.14.0](v3.13.2...v3.14.0) (2023-04-20) ### Features * support granular token ([#443](#443)) ([92ddf2c](92ddf2c))
🎉 This PR is included in version 3.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
> 🚀 Added implementation related to [granularToken](https://docs.npmjs.com/about-access-tokens#about-granular-access-tokens), mainly used for web authorization scenarios. * 📝 Added `1.14.0.sql` to add fields and `token_packages` for granularToken. * 🛣️ Added gat related routes, including `create`, `query`, and `delete` api. * 🌟 Added `tokenService` to check granularToken access. * 🔄 Modified Token to perform options and data attribute conversions internally in the model. ----------- > 🚀 新增 [granularToken](https://docs.npmjs.com/about-access-tokens#about-granular-access-tokens) 相关实现,主要用于 web 端授权场景 * 📝 新增 `1.14.0.sql` 添加 granularToken 相关字段及 `token_packages` 中间表 * 🛣️ 新增 gat 相关路由,包括`创建`、`查询`、`删除`接口 * 🌟 新增 `tokenService` ,处理 granularToken 鉴权 * 🔄 修改 Token ,在 model 内部进行 options 和 data 属性转换
[skip ci] ## [3.14.0](cnpm/cnpmcore@v3.13.2...v3.14.0) (2023-04-20) ### Features * support granular token ([cnpm#443](cnpm#443)) ([92ddf2c](cnpm@92ddf2c))
1.14.0.sql
to add fields andtoken_packages
for granularToken.create
,query
, anddelete
api.tokenService
to check granularToken access.1.14.0.sql
添加 granularToken 相关字段及token_packages
中间表创建
、查询
、删除
接口tokenService
,处理 granularToken 鉴权