Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
gradle/wrapper
src
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

User Authentication

This example shows how to perform user authentication in a Gluon Mobile application using Gluon Cloudlink.

Prerequisites

You need a valid subscription to Gluon CloudLink. You can get it here, and there is a 30-day free trial. Sign up and get a valid account on Gluon CloudLink and a link to download the Gluon CloudLink Dashboard.

Install and open the Dashboard, and sign in using the Gluon account credentials provided above. You can then create a login method using the "User Management" section.

To configure Cloudlink in mobile application, go to the App Management view in the Dashboard, and you will find a pair of key/secret tokens. Save the file gluoncloudlink_config.json under your mobile project src/main/resources/ folder. The content of the file is a JSON object with the key and secret that will grant access to Gluon CloudLink:

{
  "gluonCredentials": {
    "applicationKey": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
    "applicationSecret": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
  }
}

Instructions

To execute the sample, do as follows:

  • Desktop

Just run it from your IDE or from command line: ./gradlew run

  • Android

Connect your Android device and run ./gradlew androidInstall

  • iOS

Connect your iOS device and run ./gradlew launchIOSDevice