30.03.2014 Views

Database.com Chatter REST API Developer's Guide - Salesforce.com

Database.com Chatter REST API Developer's Guide - Salesforce.com

Database.com Chatter REST API Developer's Guide - Salesforce.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introducing <strong>Chatter</strong> <strong>REST</strong> <strong>API</strong><br />

Understanding the User-Agent OAuth Authentication Flow<br />

Parameters<br />

issued_at<br />

Description<br />

and issued_at. This can be used to verify the identity<br />

URL was not modified since it was sent by the server.<br />

When the signature was created.<br />

Understanding the User-Agent OAuth Authentication Flow<br />

Typically this flow is used by mobile apps or applications that directly access the <strong>Chatter</strong> <strong>API</strong> from JavaScript. In this flow,<br />

it is assumed that the client application can’t be trusted to store client credentials, nor the user login credentials.<br />

Warning: Because the access token is encoded into the redirection URI, it might be exposed to the end-user and<br />

other applications residing on the <strong>com</strong>puter or device.<br />

If you are authenticating using JavaScript, we re<strong>com</strong>mend calling window.location.replace(); to remove the<br />

callback from the browser’s history.<br />

The following is the general flow. The individual step descriptions follow.<br />

The following is a general description of the OAuth user-agent flow:<br />

19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!