GithubHelp home page GithubHelp logo

cmolina / cordova-plugin-kunder-accountmanager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kunder-lab/cordova-plugin-kunder-accountmanager

0.0 0.0 0.0 40 KB

Use Android Account Manager and iOS Keychain to manage accounts of one user and share with other applications of the same vendor

Home Page: https://kunder.cl

License: MIT License

JavaScript 9.35% Java 52.16% Objective-C 38.49%

cordova-plugin-kunder-accountmanager's Introduction

cordova-plugin-kunder-accountmanager

This cordova plugin enables you to use Android Account Manager and iOS Keychain to manage accounts of one user and share with other applications of the same company (e.g google apps like gmail, youtube, etc).

It's possible to moddify this plugins to allow multiple accounts.

By default, this plugin cypher the key and message before setting data into Account Manager with AES 256 bits (Android only).

Installation

cordova plugin add https://github.com/kunder-lab/cordova-plugin-kunder-accountmanager.git#1.0.1 (the lastest stable version)

Account Manager settings

You need to add the following settings in your config.xml file for Android Account Manager to work:

<preference name="AccountManagerLabel" value="Your Label Here" />
<preference name="AccountManagerIconUrl" value="your_icon_url_here.png" />
<preference name="AccountManagerType" value="your.unique.identifier" />

Supported Platforms

  • Android
  • iOS

Methods

  • initWithKey: register the encryptionKey for AES encryption. It must be called before other Account Manager methods
  • registerAccount: register an user in Account Manager
  • removeAccount: remove an account from Account Manager (Android) and remove all data from keychain (iOS)
  • getUserAccount: returns an String with account name if account exist
  • getPassword: returns password if account exist
  • getDataFromKey: returns data from specified key
  • setUserData: set object with information into Account Manager or Keychain
  • setPassword: update account password
  • resetPassword: update account password with String "0000"

Key Parameters

  • accountType: the same account type unique identifier set in config.xml file
  • group (Nullable): group identifier. Only for iOS shared keychain
  • data: key-value object
  • encryptionKey: the key used to encrypt/decrypt key and value data.

Notes

  • You can not delete user data from Account Manager. Use "setUserData" to change value to empty.
  • You can delete account from Account Manager.
  • removeAccount remove all keychain data from your app.
  • You can not set user data to Account Manager if it doesn't have an account for your identifier.
  • You need to call initWithKey method before other Account Manager method, otherwise it will not work (Android only).

License

MIT

cordova-plugin-kunder-accountmanager's People

Contributors

arturokunder avatar lhpaul avatar pcortez avatar sebalagos90 avatar xchopox 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.