Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sureness
Sureness
提交
ad3ba2b0
Sureness
项目概览
sureness
/
Sureness
8 个月 前同步成功
通知
32
Star
813
Fork
161
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Sureness
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ad3ba2b0
编写于
3月 29, 2021
作者:
sinat_25235033
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change version 1.0.0 to 1.0.1
上级
426ec77b
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
15 addition
and
16 deletion
+15
-16
README.md
README.md
+2
-2
README_CN.md
README_CN.md
+5
-6
core/pom.xml
core/pom.xml
+1
-1
docs/_coverpage.md
docs/_coverpage.md
+1
-1
docs/cn/_coverpage.md
docs/cn/_coverpage.md
+1
-1
docs/cn/quickstart.md
docs/cn/quickstart.md
+2
-2
docs/quickstart.md
docs/quickstart.md
+2
-2
pom.xml
pom.xml
+1
-1
未找到文件。
README.md
浏览文件 @
ad3ba2b0
...
...
@@ -93,11 +93,11 @@ When use maven or gradle build project, add coordinate
<dependency>
<groupId>com.usthe.sureness</groupId>
<artifactId>sureness-core</artifactId>
<version>1.0.
0
</version>
<version>1.0.
1
</version>
</dependency>
```
```
compile group: 'com.usthe.sureness', name: 'sureness-core', version: '1.0.
0
'
compile group: 'com.usthe.sureness', name: 'sureness-core', version: '1.0.
1
'
```
#### 🐵 Use the Default Configuration to Configure Sureness
...
...
README_CN.md
浏览文件 @
ad3ba2b0
...
...
@@ -78,11 +78,10 @@
#### 🐕 <font color="red">使用前一些约定</font>
-
`sureness`
尽量简洁,基于
`rbac`
,只有(角色-资源)的映射,没有(权限)动作映射,即 用户-角色-资源
-
`sureness`
基于
`rbac`
,即用户-角色-资源:用户所属角色--角色拥有资源(api)--用户拥有资源(api)
-
我们将
`restful api`
请求视作一个资源,资源格式为:
`requestUri===httpMethod`
即请求的路径加上其请求方式(
`post,get,put,delete...`
)作为一个整体被视作一个资源
`eg: /api/v2/book===get`
`get`
方式请求
`/api/v2/book`
接口数据
-
角色资源映射: 用户所属角色--角色拥有资源--用户拥有资源(用户就能访问此
`api`
)
即请求的路径加上其请求方式(
`post,get,put,delete...`
)作为一个整体被视作一个资源来赋权配置
`eg: /api/v2/book===get`
`get`
方式请求
`/api/v2/book`
接口数据
资源路径匹配详见
[
URI路径匹配
](
docs/cn/path-match.md
)
...
...
@@ -93,11 +92,11 @@
<dependency>
<groupId>com.usthe.sureness</groupId>
<artifactId>sureness-core</artifactId>
<version>1.0.
0
</version>
<version>1.0.
1
</version>
</dependency>
```
```
compile group: 'com.usthe.sureness', name: 'sureness-core', version: '1.0.
0
'
compile group: 'com.usthe.sureness', name: 'sureness-core', version: '1.0.
1
'
```
#### 🐵 使用默认配置来配置sureness
...
...
core/pom.xml
浏览文件 @
ad3ba2b0
...
...
@@ -6,7 +6,7 @@
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.usthe.sureness
</groupId>
<artifactId>
sureness-core
</artifactId>
<version>
1.0.
0
</version>
<version>
1.0.
1
</version>
<packaging>
jar
</packaging>
<name>
sureness
</name>
...
...
docs/_coverpage.md
浏览文件 @
ad3ba2b0
![
logo
](
_media/hat-128.svg
)
# sureness <small>1.0.
0
for jvm</small>
# sureness <small>1.0.
1
for jvm</small>
> Focusing on Protection of Restful Api.
...
...
docs/cn/_coverpage.md
浏览文件 @
ad3ba2b0
![
logo
](
../_media/hat-128.svg
)
# sureness <small>1.0.
0
for jvm</small>
# sureness <small>1.0.
1
for jvm</small>
> 面向`restful api`的高性能认证鉴权框架
...
...
docs/cn/quickstart.md
浏览文件 @
ad3ba2b0
...
...
@@ -17,11 +17,11 @@
<dependency>
<groupId>com.usthe.sureness</groupId>
<artifactId>sureness-core</artifactId>
<version>1.0.
0
</version>
<version>1.0.
1
</version>
</dependency>
```
```
compile group: 'com.usthe.sureness', name: 'sureness-core', version: '1.0.
0
'
compile group: 'com.usthe.sureness', name: 'sureness-core', version: '1.0.
1
'
```
#### 使用默认配置来配置sureness
...
...
docs/quickstart.md
浏览文件 @
ad3ba2b0
...
...
@@ -17,11 +17,11 @@ When use maven or gradle build project, add coordinate
<dependency>
<groupId>com.usthe.sureness</groupId>
<artifactId>sureness-core</artifactId>
<version>1.0.
0
</version>
<version>1.0.
1
</version>
</dependency>
```
```
compile group: 'com.usthe.sureness', name: 'sureness-core', version: '1.0.
0
'
compile group: 'com.usthe.sureness', name: 'sureness-core', version: '1.0.
1
'
```
#### Use the default configuration to configure sureness
...
...
pom.xml
浏览文件 @
ad3ba2b0
...
...
@@ -17,7 +17,7 @@
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<sureness-core.version>
1.0.
0
</sureness-core.version>
<sureness-core.version>
1.0.
1
</sureness-core.version>
<java.version>
1.8
</java.version>
<maven.compiler.source>
1.8
</maven.compiler.source>
<maven.compiler.target>
1.8
</maven.compiler.target>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录