M**A 发帖数: 78 | 1 请教各位Maven和Java Servlet高手, 如何在本地机(local host)运行Apache OLTU
OAUTH2.0 Authorization Server 和 Resource Server?
OAUTH2.0的官方网页
http://oauth.net/2/
Java库有Apache Oltu, Apis Authorization Server (v2-31), 等
Apis的官方网页用户指南比较详细。 不过这个项目似乎不太活跃。
https://github.com/OpenConextApps/apis
Apache Oltu的官方网页基本没有用户指南。
http://oltu.apache.org/
按照Apache Oltu的用户指南
https://cwiki.apache.org/confluence/display/OLTU/OAuth+2.0+Authorization+
Server
找到integration-tests module
https://svn.apache.org/repos/asf/oltu/trunk/oauth-2.0/integration-tests/
integration-tests module的配置文件上为Authorization Server, Client Server
和 Resource Server设定9001, 9002 和 9003端口号。
https://svn.apache.org/repos/asf/oltu/trunk/oauth-2.0/integration-tests/src/
test/resources/oauth-beans.xml
在最上层目录(integration-tests的上级目录oauth-2.0的上级目录) mvn clean
install
在integration-tests/target目录下有org.apache.oltu.oauth2.integration-tests-1
.0.1-SNAPSHOT.jar文件。
但是这个文件内没有包含运行Authorization Server, Client Server 和 Resource
Server的文件
请教各位Maven和Java Servlet高手,如何在本地机(local host)让Authorization
Server, Client Server 和 Resource Server在9001, 9002 和 9003端口号运行?
万分感谢。 |
z*******3 发帖数: 13709 | 2 这个oauth protocol
跟servlet啥关系? |
M**A 发帖数: 78 | 3 非常感谢赵老师的回答。
Apache OLTU实现OAUTH2.0 protocol采用Java Servlet的framework。
integration-tests module是用来测试OAUTH2.0 3个Server即Authorization Server,
Client Server 和 Resource Server是否运行正常。
通常是用
java -jar target/org.apache.oltu.oauth2.integration-tests-1.0.1-SNAPSHOT.jar
让3个Server即Authorization Server, Client Server 和 Resource Server运行
然后用curl命令测试每个Server是否运行正常。
Apis项目就是采用这种方法测试的。
但是Apache OLTU项目和Apis项目设计方法不一样。
org.apache.oltu.oauth2.integration-tests-1.0.1-SNAPSHOT.jar=文件内没有包含运
行Authorization Server, Client Server 和 Resource Server的文件 |
z*******3 发帖数: 13709 | 4 酱紫啊
那这个东西太新了
恐怕不是很多人有经验的说
jar
【在 M**A 的大作中提到】 : 非常感谢赵老师的回答。 : Apache OLTU实现OAUTH2.0 protocol采用Java Servlet的framework。 : integration-tests module是用来测试OAUTH2.0 3个Server即Authorization Server, : Client Server 和 Resource Server是否运行正常。 : 通常是用 : java -jar target/org.apache.oltu.oauth2.integration-tests-1.0.1-SNAPSHOT.jar : 让3个Server即Authorization Server, Client Server 和 Resource Server运行 : 然后用curl命令测试每个Server是否运行正常。 : Apis项目就是采用这种方法测试的。 : 但是Apache OLTU项目和Apis项目设计方法不一样。
|