OAuth Login Files Information

OauthLoginV2

This folder contains all api functions used in the application. oauth_lib

This folder contains OAuth library files.

oauth_button_css

This folder contains CSS files for social login buttons.

oauth_config.php

This is main configuration file for OAuth login script, here you have to modify all of the client IDs and client secret keys and database configurations.

oauthLogin.php

This file is a class for handling user social signups.

login_with_facebook.php

Facebook login file, use this for button or anchor hyper link.

login_with_google.php

Google login file, use this for button or anchor hyper link.

login_with_microsoft.php

Microsoft login file, use this for button or anchor hyper link.

login_with_linkedin.php

LinkedIn login file, use this for button or anchor hyper link.

login_with_github.php

Github login file, use this for button or anchor hyper link.

index.php

Index file contains all of the social button links

home.php

Sample application welcome screen with login session check .

logout.php

Logout the page and clear all the user login session values.

oauth_redirect.php

Redirection file for social login, once login success this file will help you redirect to home.php.

oauth_users.sql

User table for social login entries.

Facebook

Step 1: Click here to create a Facebook application.
create a new facebook application
Step 2: Give your application name.
create an application name
create an application id
Step 3: Configure Facebook App Id and App Secret in
oauth_config.php file.
configure app id and app secret
Step 4: Go to APP settings, scrolldown click on "Add Platform " button and add your website.
add your website
Step 5: Go to "App Review " and make it available to the public.
select no to make the website unavailable to the public
select yes to make the website live
Step 6: You applications status will change to green/public.
confirmation to show if the website is live or not

Google

Step 1: Go to Google API Console create OAuth client ID
create a new oauth client id
Step 2: Google APIConsole create client ID OAuth Console here.
create the OAuth console
Step 3: Google APIConsole create client ID OAuth Console here.
create the application name

Microsoft

Step 1: Click here to launch Microsoft development dashboard and create an application.
create a new application
Step 2: Microsoft will provide you Client ID and Client secret, configure in oauth_config.php file.
configure app id and app secret in oauth_config.php
Step 3: Add platform for Web.
Add platform
Add platform for web or mobile application
Step 4: Configure redirect url in following way.
Give your redirect url

LinkedIn

Step 1: Click here and create a LinkedIn app.
create a new application for linkedin
Step 2:Configure client ID and client secret values in oauth_config.php, make sure enable permissions for r_basicprofile and r_emailaddress.
configure app id and app secret in oauth_config.php

Github

Step 1: Go create a Github application, give rediction URL as your domain.
create a new application for Github
Step 2: Github will provide you the client ID and client secret values, configure these values in oauth_login.php
configure app id and app secret in oauth_config.php

OAuth Login Installtion.