realm-android-user-store


Source link: https://github.com/realm/realm-android-user-store

Realm is a mobile database that runs directly inside phones, tablets or wearables.

This repository holds the library to allow Sync client under Android Realm Object Server to encrypt the token saved in SharedPreferences, once the user is authenticated. The encryption uses the Android KeyStore available to generate and uses RSA and AES keys for encryption operations.

Getting Started

This library only works together with Realm Java. Please see the detailed instructions in our docs to add Realm to your project.

To add the this library to your project, add the following to you app's dependencies:

repositories {

  jcenter() 
}
  dependencies {

  compile 'io.realm:secure-userstore:1.0.1' 
}
 

This library is only compatible with Realm Java 0.90 and above.

Documentation

Documentation for Realm can be found at realm.io/docs/java. The API reference is located at realm.io/docs/java/api.

Getting Help

  • Need help with your code?: Look for previous questions on the #realm tag — or ask a new question. We activtely monitor & answer questions on SO!
  • Have a bug to report? Open an issue. If possible, include the version of Realm, a full log, the Realm file, and a project that shows the issue.
  • Have a feature request? Open an issue. Tell us what the feature should do, and why you want the feature.
  • Sign up for our Community Newsletter to get regular tips, learn about other use-cases and get alerted of blogposts and tutorials about Realm.

Using Snapshots

If you want to test recent bugfixes or features that have not been packaged in an official release yet, you can use a -SNAPSHOT release of the current development version of Realm via Gradle, available on OJO

repositories {

  maven {

url 'http://oss.jfrog.org/artifactory/oss-snapshot-local'
  
}
 
}
  dependencies {

  compile 'io.realm:secure-userstore:<version>' 
}

See version.txt for the latest version number.

Building Realm Sync User Encryption

In case you don't want to use the precompiled version, you can build the library yourself from source.

Prerequisites:

  • Download/the JDK 7 or JDK 8 from Oracle and install it.
  • Download & install the Android SDK, Android 6.0 (API 23) (for example through Android Studio’s Android SDK Manager)

Once you have completed all the pre-requisites building the library is done with a simple command

./gradlew assemble 

That command will generate:

  • an aar file for the library in app/build/outputs/aar/android-sync-user-encryption-release.aar

you can also install the aar into your local maven repository.

./gradlew publishAARPublicationToMavenLocal 

Contributing

See CONTRIBUTING.md for more details!

This project adheres to the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].

License

Realm Sync User Encryption is published under the Apache 2.0 license.

Feedback

If you use Realm or the library and are happy with it, all we ask is that you please consider sending out a tweet mentioning @realm, or email [email protected] to let us know about it!

And if you don't like it, please let us know what you would like improved, so we can fix it!

Resources

A easy to use social authentication android library (Facebook, Google, Twitter, Instagram).

Orin is a music player.

A simple event bus.

This library helps you to integrate Facebook and Google login and gives you the required result.

A very simple Gradle plugin (and/or a factory method) to generate version data based on environment status.

Simple custom view implementation that allows you to control the input of a numeric code

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes