From 12b584824379aed3ab08cc43e00f7f74983a75cd Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Fri, 14 Feb 2014 11:44:48 -0500 Subject: [PATCH] Added instructions on how to remove auth providers --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 2ffc75d931..9cac4f4a11 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,9 @@ Obtaining API Keys :pushpin: You could support all 5 authentication methods by setting up OAuth keys, but you don't have to. If you would only like to have **Facebook sign-in** and **Local sign-in** with email and password, in **secrets.js** set `googleAuth: false`, `twitterOauth: false`, `githubAuth: false`. By doing so, *Google, Twitter and Github* buttons will not show up on the *Login* page. If you set `localAuth: false`, users will not be able to login/create an account with email and password or change password in the *Account Management* page. +:bulb: Alternatively, if you would like to completely remove authentication methods that you do not plan on using, you will need to manually delete the code yourself. Let's say you want to keep only **Local authentication**. Start by deleting *FacebookStrategy, TwitterStrategy, GitHubStrategy, GoogleStrategy* `require` lines and their corresponding defined strategies in **passport.js**. Then in **login.jade** template delete the entire `.btn-group`, leaving only the form with Email and Password. +Update **User.js** model by deleting the following fields: `facebook`, `github`, `google`, `twitter`. And finally in **profile.jade** template delete the entire code starting with **h3 Linked Accounts**. + - Visit [Google Cloud Console](https://cloud.google.com/console/project) - Click **CREATE PROJECT** button