Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.
/ OAuth Public archive

OAuth is an authorization framework that enables applications to obtain limited access to user accounts on an service, such as Facebook, GitHub, ect..

Notifications You must be signed in to change notification settings

h4rithd/OAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Introduction to OAuth

Introduction to OAuth by using Facebook OAuth 2.0v

Once you download/clone this project, you wish to change the subsequent 2 files.

  1. /src/main/java/com/shapmanasick/oauth/facebookapp/servlet/OAuthCallbackListener.java

This has following code.

        final String REDIRECT_URI = "https://localhost:8443/facebookapp/callback";
        final String CLIENT_ID = "your app id";
        final String CLIENT_SECRET = "your app secret";

Put your App ID and App Secret in on top of. If the port range is completely different from 8080 once you deploy this application, modification the direct URI consequently.

  1. /src/main/webapp/index.jsp

        var CLIENT_ID = "your app id";
        var REDIRECT_URI = "https://localhost:8443/facebookapp/callback";

Put your App ID in client id above.

Read more : https://shapmanasick.wordpress.com/2018/05/07/introduction-to-open-authentication-oauth/

About

OAuth is an authorization framework that enables applications to obtain limited access to user accounts on an service, such as Facebook, GitHub, ect..

Topics

Resources

Stars

Watchers

Forks

Languages