Code Monkey home page Code Monkey logo

appwerft.ti.signinwith's Introduction

Ti.SignInWith

This is a generic module for signin and retreiving profile informations. Oauth is included. You need appId and appSecret. Both must be added to tiapp.xml as String property

General usage

It is a very simple API:


var SignIn = require('de.appwerft.signinwith');

// we have three methods:

SignIn.createSelectDialog({title:"Select what you want:"},function(_provider){
    console.log("Selected provider: " + _provider);
    // second getting profile, if not signed in a login screen is generated:
    SignIn.getProfile(_provider, function(_e) {
        alert(_e.data);
    });
    // third, a simple helper function for other purpose:
    var bearer = SignIn.getAccessToken(_provider);

});

Currently the module supports linkedin, googleplus, facebook, slack, dropbox In your tiapp.xml you need entries like:

<property name="linkedin_clientId" type="string">77981g**1xfs</property>
<property name="linkedin_clientSecret" type="string">wqApSZ**</property>
<property name="slack_clientId" type="string">3437706020:508**6</property>
<property name="slack_clientSecret" type="string">01f887a1****0c8128f966492f</property>

For slack you must replace '.' with ':' (workaround, interpretation of string with '.' as float and then cutting on the end)

appwerft.ti.signinwith's People

Watchers

James Cloos avatar Brenton House avatar

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.