Is there an OAuth 2.0 Provider implementation in J

2019-01-20 22:04发布

So basically I want to protect my APIs with OAuth 2.0 and implement an OAuth Provider to enable acquiry of accessTokens etc.

Can it be done with JOAuth out of the box?

Has anybody already implemented something like this with an Open Source library (Java)?

9条回答
地球回转人心会变
2楼-- · 2019-01-20 22:34

The implementations section of OAuth 2.0 Code and Services listed both server side libraries and client libraries in a quite comprehensive manner.

查看更多
Rolldiameter
3楼-- · 2019-01-20 22:38

Spring Security has an OAuth sub-project with support for OAuth 1.0a and OAuth2 (both client and server). They have sample code on their GitHub repo:

Apache Amber (http://oltu.apache.org/) is another project (now deprecated) that makes it fairly straightforward to build an OAuth2 provider. See:

查看更多
一纸荒年 Trace。
4楼-- · 2019-01-20 22:45

You could fork the scribe git repository on github. I've used scribe and it's super easy, and Pablo (the creator) is great to work with. He'll help you out.

查看更多
贼婆χ
6楼-- · 2019-01-20 22:49

you can download provider & client source codes.

https://github.com/stepanowon/OAuth_20

but, the comment was written by korean. you must read rfc documents. i didn't use spring-security.

http://tools.ietf.org/html/draft-ietf-oauth-v2-31

查看更多
The star\"
7楼-- · 2019-01-20 22:49

For Play Framework (Scala) you can use https://github.com/nulab/scala-oauth2-provider

查看更多
登录 后发表回答