Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

working oauth2 provider server implemented on java

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
like image 638
Muhammed şahsuvaroğlu Avatar asked Oct 11 '11 13:10

Muhammed şahsuvaroğlu


People also ask

How does OAuth work in Java?

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 OAuth2 server work?

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.

What is OAuth2 server implementation?

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.

What is OAuth2 in Java?

Summary: OAuth 2.0 is a standard specification for allowing end users to securely authorize a client application to access protected server-side resources.


2 Answers

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

like image 50
Lukasz Moren Avatar answered Nov 12 '22 17:11

Lukasz Moren


ınside spring security package there has 2 example one tonr other sparklr implemented with oauth2

like image 23
Muhammed şahsuvaroğlu Avatar answered Nov 12 '22 16:11

Muhammed şahsuvaroğlu