@celljs/oauth2-core 4.6.1 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.zh-cn.md +15 -0
- package/package.json +4 -4
package/README.zh-cn.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Cell - OAuth2 核心组件
|
|
2
|
+
|
|
3
|
+
由 [`@celljs/oauth2-client`](../oauth2-client) 和 [`@celljs/oauth2-jose`](../oauth2-jose) 共享的 OAuth 2.0 和 OpenID Connect 词汇表:授权请求和响应、访问和刷新 token、授权类型、客户端认证方法、OIDC scope、标准声明名、参数名和错误码(`OAuth2Error`、`OAuth2ErrorCodes`)。
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install @celljs/oauth2-core
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
应用通常不直接依赖它:安装 `@celljs/oauth2-client`,它会把它带进来。当你编写自己的授权、token 存储或用户服务时从它导入:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { AuthorizationGrantType, OidcScopes } from '@celljs/oauth2-core';
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
所有导出都仅限后端。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/oauth2-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cell-component"
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@celljs/core": "4.
|
|
35
|
-
"@celljs/security": "4.
|
|
36
|
-
"@celljs/web": "4.
|
|
34
|
+
"@celljs/core": "4.7.0",
|
|
35
|
+
"@celljs/security": "4.7.0",
|
|
36
|
+
"@celljs/web": "4.7.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|