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 Web Server OAuth Authentication Flow<br />

OAuth Flows<br />

A user must be authenticated before accessing <strong>Database</strong>.<strong>com</strong>. OAuth has multiple authentication flows. There are several<br />

steps in each authentication flow, as dictated by the OAuth standard and the type of application trying to access <strong>Database</strong>.<strong>com</strong>.<br />

On successful authorization, the client application is provided with access and refresh tokens.<br />

<strong>Database</strong>.<strong>com</strong> supports the following flows for use with the <strong>Chatter</strong> <strong>API</strong>:<br />

• Web server flow<br />

• User-agent flow<br />

In addition, you can also use the refresh token to get a new access token after your application has been authorized for access.<br />

Revoking Access<br />

After a user has granted access to a client application, they can revoke access by clicking My Personal Information > Personal<br />

Information, then in the Remote Access related section, clicking Revoke.<br />

Understanding the Web Server OAuth Authentication Flow<br />

Typically this flow is used by web applications that can confidentially store the client secret. A critical aspect of the Web server<br />

flow is that the application must be able to protect the consumer secret.<br />

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

15

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

Saved successfully!

Ooh no, something went wrong!