Getting Started


This document is a quick guide to run an OAuth 2.0 authorization server using Authlete.

Sign Up

To begin with, please sign up. After account registration, you will receive an email that contains an instruction in how to try OAuth 2.0 flow.

Try OAuth 2.0 Flow

You can try OAuth 2.0 flow right after account registration. This is because your first OAuth 2.0 authorization server and the first client application of the server have already been created and running.

Make An Authorization Request

Click “Authorization Endpoint” button in the email you received after account registration. It will open an authorization page in your web browser.

Input Credentials

Input the API key and the API secret of your first service into the login form in the authorization page. You can see the API credentials by clicking “Service Owner Console” button in the email.

Authorize The Request

Click “Authorize” button in the authorization page, and your browser will be redirected to the redirection endpoint. You can find an access token in the fragment part of the destination URL like below. (The line breaks are just for display purpose.)

Congratulations! You confirmed your OAuth 2.0 authorization server is working!

Authorization Server Implementation

In the previous chapter, you used the default implementation of authorization endpoint, but you have another option. You can implement your own authorization server using Authlete Web APIs.

java-oauth-server is an open-source authorization server written using Authlete Web APIs. It is the reference implementation in Java and a good starting point for your own authorization server implementation.

Because, of course, the reference implementation uses Authlete as its backend, you don’t have to set up a database server that stores authorization data (e.g. as access tokens), settings of the authorization server itself, and settings of client applications. Therefore, all you have to type to download and start the authorization server are only few commands as shown below.

Please check the documents at java-oauth-server for details.

$ git clone
$ cd java-oauth-server
$ vi
$ mvn jetty:run"

Please check the documents at spring-oauth-server for details.

$ git clone
$ cd spring-oauth-server
$ vi
$ mvn spring-boot:run

Please check the documents at csharp-oauth-server for details.

$ git clone
$ cd csharp-oauth-server/AuthorizationServer
$ vi
$ dotnet run

Please check the documents at authlete-php-laravel for details.

$ laravel new authorization-server
$ cd authorization-server
$ composer require authlete/authlete-laravel
$ php artisan authlete:authorization-server
$ vi config/authlete.php

If you implement your own authorization server using Authlete Web APIs, you don’t have to implement an authentication callback endpoint, but instead you are required to customize some source files related to end-user authentication.

Next Steps

Authlete API Tutorial

Authlete API Tutorial describes how Authlete APIs work. Read “Authlete API Tutorial” for details.

Service Owner Console

Service Owner Console is a Web console for you to manage services. Read “Service Owner Console” for details.

Developer Console

Developer Console is a Web console for developer to manage client applications. Read “Developer Console” for details.

Protected Resource

The main purpose to implement OAuth 2.0 is to protect Web APIs by access tokens. Read “Protected Resource” about how to do it.