The OpenID Connect client and identity provider are built based on open-source Apache Oltu source repository which only consists of OAuth 2.0 client demo application.
The OpenID Connect client and identity provider demo application has been developed to illustrate the OpenID Connect authentication flow and provide instructions on how to develop a standalone OpenID Connect server using Apache Oltu library.
- Download the source repository from GitHub.
git clone https://github.com/winstonhong/Apache-Oltu-OpenID-Connect-Client-and-Provider
- Build OAuth 2.0 and OpenID Connect library from Apache Oltu source code.
cd Apache-Oltu-OpenID-Connect-Client-and-Provider
mvn clean
mvn package
- Run OpenID Connect client demo application
cd Apache-Oltu-OpenID-Connect-Client-and-Provider/demos/client-demo/
mvn jetty:run
- Run OpenID Connect identity provider demo application
cd Apache-Oltu-OpenID-Connect-Client-and-Provider/demos/provider-demo/
mvn jetty:run
- Access the link "http://localhost:8080" to launch the OpenID Connect authentication demo
- Click OpenID Connect Application
- Input Requested Access Scope : openid ,
input End-User Authorization URL : http://localhost:9001/auth/oauth2/authz ,
input Token Endpoint : http://localhost:9001/auth/oauth2/token ,
input Client ID : client_id ,
input Client Secret : client_secret ,
and then click Get Authorization - Input Username/Password : username/password ,
and then click Login - Click Grant permission
- Click Get Token
- Ensure that the message "ID Token is valid" is displayed within the OpenId Connect block,
input Resource URL : http://localhost:9001/auth/oauth2/resource_server/resource_query ,
select queryParameter from the drop-down list of Authenticated Request Type,
and then click Get Resource to retrieve User Info.
Apache Oltu https://oltu.apache.org/
OAuthh 2.0 and OpenID Connect libraries https://github.com/apache/oltu
OpenID Connect client and identity provider developed by winstonhong @ inbaytech