Skip to content

mfpdev/social-login-sample

Repository files navigation

Prerequisites

Running the sample

Cloning the Git repository

Configuring the Android app

  • string.xml
<resources>
    ...
    <string name="facebook_app_id">Put your Facebook app id here</string>
    <string name="google_server_client_id">Put your Google web client id here</string>
    ...
</resources>

Register the application on IBM MobileFirst Platform Foundation Server

  • Ensure you have installed MobileFirst CLI
  • Open your command line in the root of the Android project
  • Register the app by typing mfpdev app register

Deploying the adapters

Configuring the adapters

  • From your command line run mfpdev server console - this command will open your server console.
  • From the Adapters menu click on Social Login Adapter, and move to Security Checks tab.
  • Here you will find place to add your google client id. This id will use the adapter to validate the Google account.
  • If you need to use the social platform token later on, set the keep original token attribute to be true.
  • Adapter Configuration

Running the application

  • You can now back to your Android Studio and run the app.

Supported Levels

IBM MobileFirst Platform Foundation 8.0

License

Copyright 2016 IBM Corp.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages