Code Monkey home page Code Monkey logo

auth_with_email's Introduction

Auth via different services

VK

https://vk.com/dev/android_sdk

Notes:

  1. Add a dependence to module gradle file like this instead of using a jar or copying the wole lib:

    implementation ('com.vk:androidsdk:2.0.0') {
         exclude group: 'com.android.support'
     }
    

    Its is necessary to avoid error with different android support version. VKsdk uses 27.0.2

  2. Use AuthVkInteractor interactor with a callback in the constructor

  3. Ask to reauthorize when access to email was forbidden.

  4. To get a developer SHA hash key start gradle task android -> sign report. You need a SHA1 from a output.

  5. Implementation of an email getter in AuthVkInteractor.

Facebook

https://developers.facebook.com/docs/facebook-login/android

Notes:

  1. You need a convert SHA from point #4 for VK to base64.

  2. Add a dependence as follow:

    implementation ('com.facebook.android:facebook-login:4.40.0')  {
        exclude group: 'com.android.support'
    }
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.android.support:customtabs:28.0.0'
    

    Its is necessary to avoid error with different android support version. FB uses 27.0.2

  3. Do not use a LoginButton from the instruction, use a AuthFbInteractor

Google

https://developers.google.com/identity/sign-in/android/start-integrating

Notes:

  1. Should try without a creation of the app in console.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.