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:
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:
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://zanjo.io/projects/lift_buddy_api/oauth2-demo-php/web/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
The Refresh Token
grant type is typically used in tandem with the Authorization Code
grant type. Click the "Authorize" button to receive an authorization code:
OpenID Connect is a special way of obtaining information about a user. Click the button below to go through the OpenID connect flow. It is initiated with an authorize request (just like in Authorization Code
) but with the scope
querystring parameter including the value "openid"
.
implicit
grant type, but the Access Token also returns with an ID Token.