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

Latest commit

 

History

History
25 lines (16 loc) · 1.03 KB

README.md

File metadata and controls

25 lines (16 loc) · 1.03 KB

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/