Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What is oauth, and how to setup facebook oauth api access in rails app?


Asked by Xander Hunt on Dec 08, 2021 OAuth 2.0 Series



So, if you a haven’t added your application to your Facebook developer account, visit https://developers.facebook.com/ and add a new app. Make sure you set up your app’s URL. If you don’t, Facebook will not recognize your app and will think you’re making a request from an invalid site, will never let your user log in.
Accordingly,
OAuth2 Facebook workflow The client or the application sends requests for authorization to access resources from the resource server. If the user accepts the request, the application receives permission to access the user's data, as per the scope of the permission.
Furthermore, Google APIs use the OAuth 2.0 protocol for authentication and authorization. Google supports common OAuth 2.0 scenarios such as those for web server, client-side, installed, and limited-input device applications. To begin, obtain OAuth 2.0 client credentials from the Google API Console.
Besides,
This document explains how web server applications use Google API Client Libraries or Google OAuth 2.0 endpoints to implement OAuth 2.0 authorization to access Google APIs. OAuth 2.0 allows users to share specific data with an application while keeping their usernames, passwords, and other information private.
Consequently,
The OAuth 2.0authorization framework is a protocol that allows a user to grant a third-party web site or application access to the user's protected resources, without necessarily revealing their long-term credentials or even their identity. OAuth introduces an authorization layer and separates the role of the client from that of the resource owner.