Coder Social home page Coder Social logo

noahmwolfe / touchidlogin Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 4.25 MB

Xamarin.Forms mobile app - Login Page that uses TouchID to authenticate the user. In the event that touchID fails/is not enabled, a user can put in their username or password instead. Based off of JummyPun610's original XamarinTouchID Project.

HTML 43.71% C# 56.29%

touchidlogin's Introduction

XamarinTouchID

Screenshots for Android:

Screenshots for iOS:

Example for using Fingerprint authentication in Xamarin Android and Xamarin iOS

Using Rg.Plugin.Popup for Android custom popup screen

https://github.com/rotorgames/Rg.Plugins.Popup

This sample is assuming device already have an valid touchID.

Here is the setup.

Xamarin Android and Form project

  1. Install AiForm.Effect

https://github.com/muak/AiForms.Effects

Xamarin iOS project

  1. Install dannycabrera/Get-iOS-Model

https://github.com/dannycabrera/Get-iOS-Model

  1. Create interface for dependency service in PCL project. Please refer to the sample.

Android:

  1. Add permission in manifest.xml
	<uses-permission android:name="android.permission.USE_FINGERPRINT" />
  1. Create Class TouchIDAuthenticationAndroid.cs, CryptoObjectHelper.cs and AuthenticationCallBack.cs

iOS:

  1. Create Class TouchIDAuthenticationIOS.cs

To use it:

  1. Check the device is able to do the fingerprint authentication
bool canFingerprint = DependencyService.Get<Interface.TouchIDAuthentication>().IsFingerprintAuthenticationPossible();
  1. Authenticate
DependencyService.Get<Interface.TouchIDAuthentication>().Authenticate(actionIfSuccess, actionIfFail);

touchidlogin's People

Contributors

noahmwolfe avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

liqiao225

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.