Social Media Login

In this article

Facebook

Google

Apple

Rafræn skilríki

See also

Facebook

Support for Facebook Login has been removed, the libraries supporting it for .net Maui are out of date.

Google

To enable Google login you must enable the feature flag GOOGLE LOGIN ENABLED.

Android

  1. Open your project in the Google Cloud Console, or create a project, if you do not already have one.
  2. 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.
  3. 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.
  4. 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

  1. Open your project in the Google Cloud Console, or create a project, if you do not already have one.
  2. 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.
  3. 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.
  4. 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.)
  5. Open your ScanPayGo/Platforms/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.

Firebase

  1. Open your project in the Firebase Console or create a project, if you do not already have one.
  2. Go to Authentication and add the Google sign in method.
  3. Add the Web Client Id and Web Client Secret.
  4. Go to Project Settings, add Android and iOS apps and fill in the relevant info, note that the SHA-1 Signature is required for Android.
  5. Download the GoogleService-Info.plist and google-services.json files and replace the ones in the ScanPayGo project, best to do this is the File Explorer so the Build Action on them does not change.
  6. Add the feature flag GOOGLE REQUEST ID with the Web Client ID from the Google Cloud 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