social network intergration

29
Social Networking Integration to your products using Janrain

Upload: dinesh-kumar

Post on 08-May-2015

489 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Social Network Intergration

Social Networking Integration to your products using Janrain

Page 2: Social Network Intergration

Agenda

• Introduction

• Brushing up terms which we know

• OAuth -An Introduction

• Architecture

• 3rd party – Janrain

• Implementation with Demo

• Happy Ending

Page 3: Social Network Intergration

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

Page 4: Social Network Intergration

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

Page 5: Social Network Intergration

Introduction

Preferences and statistics

Page 6: Social Network Intergration

Lets Start Achieving it

So Let's Start Achieving it.

Page 7: Social Network Intergration

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

Page 8: Social Network Intergration

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.

Page 9: Social Network Intergration

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.

Page 10: Social Network Intergration

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.

Page 11: Social Network Intergration

Oauth Working

Page 12: Social Network Intergration

Oauth Example

Page 13: Social Network Intergration

Oauth Example

Page 14: Social Network Intergration

Oauth Example

Page 15: Social Network Intergration

Oauth Example

Page 16: Social Network Intergration

Oauth Example

Page 17: Social Network Intergration

Oauth Example

Page 18: Social Network Intergration

Oauth Example

Page 19: Social Network Intergration

Oauth Example

Page 20: Social Network Intergration

Oauth Example

Page 21: Social Network Intergration

Yes Congrats !!!

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

Page 22: Social Network Intergration

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.

Page 23: Social Network Intergration

Architecture

Page 24: Social Network Intergration

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

Page 25: Social Network Intergration

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.

Page 26: Social Network Intergration

Demo with explanation

• Janrain User Login/Registration

Page 27: Social Network Intergration

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.

Page 28: Social Network Intergration

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

Page 29: Social Network Intergration

Thank you!

By,

Dinesh Kumar