认证与授权接口设计 #8
sparrowzoo
started this conversation in
Ideas
Replies: 1 comment
-
抽象类实现 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
说明
实现基本功能
不限于具体技术,支持Shiro+JWT实现,也可以自己实现,框架提供自实现抽象类(最少依赖)
https://github.com/sparrowzoo/sparrow-protocol/blob/develop/src/main/java/com/sparrow/protocol/AuthorizingSupport.java
接口定义如下:
参考资料
https://jwt.io/introduction
![JWT结构示例](https://camo.githubusercontent.com/81827b6e14d159efa1d640a16d6bd7e41b25f03ae5e064844202060bd73329cc/68747470733a2f2f75706c6f61642d696d616765732e6a69616e7368752e696f2f75706c6f61645f696d616765732f31303138363632392d323334616639633965613130656662342e706e673f696d6167654d6f6772322f6175746f2d6f7269656e742f7374726970253743696d61676556696577322f322f772f31323430)
https://shiro.apache.org
Beta Was this translation helpful? Give feedback.
All reactions