Table of Contents
This guide will help you set up and run your authorization server(AS) using Authlete 3.0. Follow these steps to create and configure your service, set up a demo authorization server, and test it.
acme
.acme
organization.Demo AS
.Clone the Java OAuth Server repository:
git clone https://github.com/authlete/java-oauth-server.git
cd java-oauth-server
Configure the authlete.properties
file with the following settings:
api_version = V3
base_url = https://us.authlete.com
service.api_key = <<API_KEY>>
service.access_token = <<SERVICE_ACCESS_TOKEN>>
Run the server using Docker (preferred) or Java:
docker-compose up
mvn jetty:run
http://localhost:8080
.CONFIDENTIAL
and click Save Changes.Note down the Client ID for later use.
Go to Endpoints -> Global Settings and add the following Redirect URI:
https://oidcdebugger.com/debug
Leave all other settings as default and click Save Changes.
Visit OpenID Connect Debugger and enter the following required values:
http://localhost:8080/api/authorization
<<Enter the Client ID copied from the Authlete Console.>>
Ensure the Response type is set to code
.
Optional: Test PKCE by selecting the Use PKCE checkbox. PKCE is enabled by default on your Authlete Service.
Scroll down and click the Send Request button to start the authorization process.
This will redirect you to the login page of the Demo AS. Enter the following credentials and click Authorize:
max
max
You will be redirected back to the OIDC Debugger with an Authorization Code issued by Authlete.
id_token
.And that’s it! 🎉 You’ve successfully set up and tested your authorization server with Authlete 3.0.