Share E-Book
Scan to open this page

Scan with your phone to open this page

AuthorRyan Boyd

Whether you develop web applications or mobile apps, the OAuth 2.0 protocol will save a lot of headaches. This concise introduction shows you how OAuth provides a single authorization technology across numerous APIs on the Web, so you can securely access users’ data—such as user profiles, photos, videos, and contact lists—to improve their experience of your application. Through code examples, step-by-step instructions, and use-case examples, you’ll learn how to apply OAuth 2.0 to your server-side web application, client-side app, or mobile app. Find out what it takes to access social graphs, store data in a user’s online filesystem, and perform many other tasks. Understand OAuth 2.0’s role in authentication and authorization Learn how OAuth’s Authorization Code flow helps you integrate data from different business applications Discover why native mobile apps use OAuth differently than mobile web apps Use OpenID Connect and eliminate the need to build your own authentication system

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Brief outline
【One-Line Pitch】 Whether you develop web applications or mobile apps, the OAuth 2.0 protocol will save a lot of headaches. This concis… 【Book Arc】 - **Opening (~0%–12%)**: Find out what it takes to access social graphs, store data in a user’s online filesystem, and perform many other tasks.; ok logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. - **Early (~12%–35%)**: authorization and authenti- cation technologies for the Web.; oprietary pro- tocols that tackled this problem on the Web. - **Middle (~35%–65%)**: pplications, desktop applications, JavaScript applications, browser extensions, or other situations.; such as a crypto- graphic key, is needed to make API calls. - **Late (~65%–88%)**: _SESSION['access_token'] accessToken;; response httpClient- getData( tasksUrl, headers); - **Ending (~88%–100%)**: The same error handling process applies to this flow.; With Basic authenti- cation, an application needs to have continuous access to the user’s password in order to make API calls. 【Key Takeaways】 - **Find out what it takes…** (Opening): Find out what it takes to access social graphs, store data in a user’s online filesystem, and perform many other tasks. - **ok logo** (Opening): ok logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. - **Each of these APIs has…** (Opening): Each of these APIs has required authorization from users to act on their behalf. - **authorization and authenti** (Early): authorization and authenti- cation technologies for the Web. - **oprietary pro** (Early): oprietary pro- tocols that tackled this problem on the Web. - **Terminology In order t…** (Early): Terminology In order to understand OAuth, it’s important to first understand the relevant termi- nology. 【Reading Tips】 - Use Passage locations below to jump into the text and set reading anchors - If this is a brief outline, click Regenerate (top right) for a synthesized guide 【Coverage Limits】 Compressed outline without the model (~32 index chunks). Full structured guide needs AI available.
Page 4
ok logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. Getting Started with OAuth 2.0, the image of a horned trunk fish, and relate...
View in text
Page 12
ty and auth teams at Google for providing years of guidance and expertise, and most importantly Eric Sachs, Marius Scurtescu, and Breno de Me- deiros for the...
View in text
Page 18
finalization in the standards community, there remains some strong individual opposition to not requiring the use of signatures, including by Eran Hammer-Lah...
View in text
Excerpt 4
s created to enable OAuth to be used on devices that do not have built-in web browsers or have limited input options—such as a game console or electronic pho...
View in text
Excerpt 5
d used in the initial request to the authorization endpoint grant_type The value authorization_code, indicating that you’re exchanging an authorization code...
View in text
Excerpt 6
"message": "Error validating access token." } } Here’s an example response resulting from the use of an expired access token with one of Google’s newer APIs:...
View in text
Excerpt 7
r 2). The same error handling process applies to this flow. Step 2: Parsing the access token from the URL After the user approves access, the pop up window i...
View in text
Excerpt 8
o its employees through a corporate application direc- tory. This method of distribution indicates to the employees that it is a “trusted” ap- plication and...
View in text
Tags
AI categories
Technology
ISBN: 1449311601
Publisher: O'Reilly Media
Publish Year: 2012
Language: English
Pages: 80
File Format: PDF
File Size: 6.0 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…