Fork me on GitHub

Demo App

Demo a Better You

OAuth2.0 Demo Application

Welcome to the OAuth2.0 Demo Application! This is an application that demos some of the basic OAuth2.0 Workflows.

The Authorization Code grant type is the most common workflow for OAuth2.0. Clicking the "Authorize" button below will send you to an OAuth2.0 Server to authorize:

Authorize

The Implicit grant type is very similar to the Authorization Code grant type, except that the Access Token is returned as part of the URL fragment instead of an API request to the OAuth2.0 Server. Clicking the "Authorize" button below will send you to an OAuth2.0 Server to authorize:

Authorize

The User Credentials grant type is a Two-Legged approach that allows you to obtain an Access Token in exchange for a set of end-user credentials.

The OAuth2 Server supports the following user credentials:

  • Username: demouser
  • Password: testpass

Make the following cURL request to receive an access token:

  $ curl -v "http://brentertainment.com/oauth2/lockdin/token" \
    -d "grant_type=password&client_id=demoapp&client_secret=demopass&username=demouser&password=testpass"

...or just click below to let us do it for you

Get Access Token