I am searching a working oauth2 provider server implemented on java, leeloo and spring security are some that I have found, but there is no working example.
https://github.com/SpringSource/spring-security-oauth/wiki/tutorial
https://bitbucket.org/smartproject/oauth-2.0/wiki/Home
OAuth2. 0 is an open authorization protocol, which allows accessing the resources of the resource owner by enabling the client applications on HTTP services such as Facebook, GitHub, etc. It allows sharing of resources stored on one site to another site without using their credentials.
How Does OAuth 2.0 Work? At the most basic level, before OAuth 2.0 can be used, the Client must acquire its own credentials, a client id and client secret, from the Authorization Server in order to identify and authenticate itself when requesting an Access Token.
Essentially, OAuth 2.0 allows arbitrary clients (for example, a first-party iOS application or a third-party web application) to access user's (resource owner's) resources on resource servers via authorization servers in a secure, reliable, and efficient manner.
Summary: OAuth 2.0 is a standard specification for allowing end users to securely authorize a client application to access protected server-side resources.
There is the Apache Oltu (formerly Apache Amber) implementation that supports building OAuth 2.0 Authorization and Resource Servers: https://cwiki.apache.org/confluence/display/OLTU/OAuth+2.0+Authorization+Server and is not dependent on any framework.
You have examples of AS (Auth and Token endpoints) and RS test implementation in integration tests: https://github.com/apache/oltu/tree/trunk/oauth-2.0/integration-tests/src/test/java/org/apache/oltu/oauth2/integration/endpoints
ınside spring security package there has 2 example one tonr other sparklr implemented with oauth2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With