A common method for logging in is to use another service like Facebook or Google where you already have an account.
This is called Single Sign On, or SSO, and you can now add these options to your Knack logins.
This will allow your users to use these services to register and log in to your apps:
You can add these SSO links by editing a Login View and clicking on the “Options” section:
There are two options you can add:
Google: no configuration needed, the user will simply use any Google account they have.
Facebook: you’ll need to create a Facebook App and configure this option with the credentials that Facebook provides:
You set this up directly in Facebook. You’ll also need to enter the app URL where the login requests are coming from. Add this by clicking on App, Settings, and then adding a Platform for “Web”. You can then enter the URL.
Here’s an example of getting the Facebook credentials:
Once added you’ll have login links show up to the right of the login form (see above).
- If the user already has an account they should still be able to use the SSO options, but only if the emails are the same. If their Google or Facebook email is different then a new account will be added.
- If you require users to fill out multiple fields to register for access, new users will be directed to the registration form after logging in with an SSO option.