Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(auth)!: 认证系统查询已有用户的API归类到创建用户API中 (#313)
#307 的设计不够全面。一些第三方的认证系统(例如学校的统一认证系统)一般都不会提供随意查询一个用户是否存在的接口。另外,此API也只会在创建用户的时候用到,用于查询用户是否已经存在,如果认证系统声明不支持创建用户,SCOW也不会主动去查询一个用户是否在认证系统中存在。 所以此PR修改了此设计,使`GET /user`接口从之前必须实现的改变为只有在支持创建用户的时候情况下才要求实现。 此PR还重新组织了自定义认证系统相关的文档,同时把`@scow/lib-auth`的`getUser.ts`文件合并到了`createUser.ts`下。
- Loading branch information
Showing
14 changed files
with
262 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"label": "自定义认证系统", | ||
"position": 5 | ||
} |
Oops, something went wrong.