Skip to content

Authentication Flows

alexbool edited this page Jan 6, 2013 · 3 revisions

This page describes some of the options of obtaining OAuth token for different kinds of users.

Registered users

Registered users can obtain OAuth token using resource owner credentials grant type:

curl -X POST \
    --user <client_id>:<client_secret> \
    --data "grant_type=password" \
    --data "username=<username>" \
    --data "password=<password>" \
    http://localhost:8081/oauth/token

Social users

Social users must use the connect API to obtain OAuth token.

Registered users using social login API

Both standard OAuth API and social API are acceptable.

Clone this wiki locally