Social Media Login
In this article
To enable Facebook login you must enable the feature flag FACEBOOK LOGIN ENABLED, and create a Meta developer account at developers.facebook.com.
Android
The easiest way to configure Facebook login for Android is by following instructions here.
- Select an existing app or create a new one in the developer console.
- Open the ScanPayGo project, navigate to the ScanPayGo.Android/Resources/values/strings.xml file, and change the string to your IDs.
- Add your package name to the App (the package name is in ScanPayGo.Android/Properties/AndroidManifest.xml).
- Add the correct keyhash to the app.
iOS
The easiest way to configure Facebook login for iOS is by following instructions here.
- Select an existing app or create a new one in the developer console.
- Add the Bundle ID to the app (can be found in ScanPayGo.iOS/info.plist).
- Configure the info.plist, and change the Facebook keys to your own keys.
To enable Google login you must enable the feature flag GOOGLE LOGIN ENABLED.
Android
- Open your project in the API Console, or create a project, if you do not already have one.
- On the OAuth Consent Screen page, make sure all of the information is complete and accurate. In particular, make sure you have specified the URLs of your app's privacy policy and terms of service.
- On the Credentials page, create an Android client ID for your app, if you do not already have one. Specify your app's package name and SHA-1 signature.
- On the Credentials page, create a web application client ID, if you do not already have one. You can leave the Authorized JavaScript Origins and AuthorizedRredirect URIs fields blank. This client ID represents your authentication backend server. (You would use this client ID when calling Google APIs from your server, but you need it here even if you do not call any APIs.)
iOS
- Open your project in the API Console, or create a project, if you do not already have one.
- On the OAuth Consent Screen page, make sure all of the information is complete and accurate. In particular, make sure you have specified the URLs of your app's privacy policy and terms of service.
- On the Credentials page, create an iOS client ID for your app, if you do not already have one. Specify your app's Bundle ID.
- On the Credentials page, create a web application client ID, if you do not already have one. You can leave the Authorized JavaScript Origins and Authorized Redirect URIs fields blank. This client ID represents your authentication backend server. (You would use this client ID when calling Google APIs from your server, but you need it here even if you do not call any APIs.)
- Open your ScanPayGo.iOS/info.plist file, and go to Advanced > URL Types > Google, and change the URL Schemes field to your iOS URL Scheme found on the API console.
- Add the feature flag GOOGLE IOS CLIENT ID and the iOS Client ID from the API Console
Apple
To enable Apple login you need to enable the feature flag APPLE LOGIN ENABLED. Note: If you have any social media login enabled, Apple requires you to have an Apple login enabled as well.
- Open the Apple Developer Console, go to Identifiers and find the correct one. In Capabilities, select Sign in with Apple.
Rafræn skilríki
Rafræn skilríki is a login method specific to Iceland where a phone number is used for login. To enable this configure the following feature flags:
- AUDKENNI LOGIN ENABLED
- AUDKENNI BASE URL
- AUDKENNI CLIENT ID
- AUDKENNI MESSAGE TO USER
- AUDKENNI REDIRECT URL
- AUDKENNI SECRET
See also
LS Central Profiles and Feature Flags