social network intergration

Post on 08-May-2015

484 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Social Networking Integration to your products using Janrain

Agenda

• Introduction

• Brushing up terms which we know

• OAuth -An Introduction

• Architecture

• 3rd party – Janrain

• Implementation with Demo

• Happy Ending

Introduction

What this ppt is all about? Why we need Social Media? What kind of products needs Social

Integration? Content Sites Community Sites Commerce Sites Media & Entertainment

Retail Non-profit

Introduction

The User – Vital Part of products

Take aways:

Keep it simple, don't hide it Provide a choice in how a user registers Make the most of user profile data

The Ultimate Key is to use Social Media

Introduction

Preferences and statistics

Lets Start Achieving it

So Let's Start Achieving it.

Authentication

Authentication is the act of confirming the truth of an attribute of a datum or entity.

Three factors of authentication

ownership factors knowledge factors Inherence factors

Authorization

Authorization is the function of specifying access rights to resources, which is related to information security and computer security in general and to access control in particular.

Two phases:

Policy definition phase where access is authorized, and

Policy enforcement phase where access requests are approved or disapproved.

OAuth

OAuth is a authorization Protocol.

It enables users to provide 3rd party access to their web resources without sharing their passwords.

OAuth is built on support of other protocols like cURL, SSL etc..

Oauth is an extension in php.

Current version is 2.0 implemented throughout.

Google, Facebook, Twitter uses Oauth 2.0 for sharing their user resources.

Oauth Working

OAuth depends on these terms, they deserve some explanation,

Service Provider – the Service Provider controls all aspects of the OAuth implementation. The Service Provider is the term used to describe the website or web-service where the restricted resources are located.

User – the user is why OAuth exists and without users, there is no need for Oauth.

Consumer – this is a fancy name for an application trying to access the User’s resources. This can be a website, a desktop program, a mobile device, a set-top box, or anything else connected to the web. The Consumer is the one getting permission to access resources and the Consumer is where the useful part of OAuth happens.

Protected Resources - the ‘stuff’ OAuth protects and allow access to. Tokens - are used instead of User credentials to access resources. A

Token is generally a random string of letters and numbers (but not limited to) that is unique, hard to guess, and paired with a Secret to protect the Token from being abused.

Oauth Working

Oauth Example

Oauth Example

Oauth Example

Oauth Example

Oauth Example

Oauth Example

Oauth Example

Oauth Example

Oauth Example

Yes Congrats !!!

• WOW !!! We learnt the basics, Now we start with the Idea

Architecture

Our architecture can use Oauth's Authentication and authorization mechanism to handle users in our product.

Social Media can authenticate and provide resources of the user.

Our product can use those resources to make the user happy.

Architecture

Architecture- The Idea

Our architecture can use any service provider and create a user in our product.

Pull the user's data in to the registration so that we reduce pain of the user.

Either we so an auto registration or we can still provide the form to collect any extra data.

Add multiple service providers like Google, FB, Twitter

3rd party Janrain

• Janrain is a 3rd party organization which provide Saas.

• Janrain does all your Oauh work for you for both free and payment.

• Janrain allows you to customize service providers and configure them for your need.(Supports 18 providers)

• Lot of plugins available by default.

Demo with explanation

• Janrain User Login/Registration

Janrain Content Sharing

• Sharing Works in the same principle Oauth

• the terms of Oauth are different,

– Service provider : Google, FB, Twitter.

– Consumer : is the App which we create in their site

– User : is normal user

– The App uses the authorization provided by the user (I.e) by the Oauth's token to post things in your FB Wall.

Demo Janrain Content Sharing

• Sharing Works in the same principle Oauth

• Facebook App(ConsumerConsumer) gets the access token to post the content in the user's wall.

• Wordpress Implementation

• Drupal Implementation

• Other sites

• PHACT Implementations

Thank you!

By,

Dinesh Kumar

top related