News

Getting Started with the Authlete APIs in Java

You’re a Java developer working on AuthleticGear’s loyalty program web application. The company is planning to launch a new e-commerce site, and you’ve been given the task of implementing a proof-of-concept to demonstrate OAuth 2.0 integration between the new site and the loyalty program web app. The requirement is to allow loyalty members visiting the e-commerce site to link their loyalty account, enabling the e-commerce site to access their points balance via the loyalty app’s REST API. The e-commerce team has already implemented an OAuth 2.0 client; your task is to add Authorization Server and Resource Server functionality to the loyalty web app.

This is the starting point of our new tutorial, Getting Started with the Authlete APIs in Java. In about an hour or so, you’ll extend the loyalty web app to receive an authorization request from the e-commerce site, issue an access token, and then allow the e-commerce site access to a REST API on behalf of a loyalty program member.

The tutorial is implemented as a pair of Docker containers, so all you need to get started is some basic knowledge of Java EE, Docker Desktop, and your favorite code editor. You’ll work through the process of creating a free Authlete account, configuring the loyalty program service and e-commerce client app, and then OAuth-enabling the loyalty web app.

By the end of the tutorial you’ll understand how to use Authlete’s APIs to simply forward incoming requests from OAuth 2.0 clients to a handful of API endpoints and use each API response as the basis of an OAuth 2.0 response. There’s never been an easier way for Java developers to get started with OAuth 2.0!