-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the tech-standard-android-auth wiki!
This is repo contains multiple helper modules which help you quickly adapt your Authentication
process to your application.
See sample code & each library module for more detail.
This Credentials auth library
provides a simple way to help you easy to handle credentials authentication and token management.
Some of features are signIn
, signOut
, refreshToken
...
This Biometric authentication library
is a small wrapper androidx biometric
library which provides a simple way to help you easy to handle biometric authentication.
Combine with Credentials auth library
to support your user to use biometric to sign in.
There are 2 small libraries built on top of Firebase authentication
and Google Sign-In SDK
for android.
- With Firebase authentication you can manage the authentication result from Firebase.
- With Google Standard authentication
you get the
GoogleSignInAccount
result directly from Google, and provide signIn info to your BackEnd.
Same with Google, the 2 libraries built on top of Firebase authentication
and Facebook SDK
for android.
- With Firebase authentication you can manage the authentication result from Firebase.
- With Facebook Standard authentication you get the result directly from Facebook, and provide signIn info to your BackEnd.
From project build.gradle
(or settings.gradle
), add Jitpack maven
repositories {
maven { url 'https://jitpack.io' }
}
Then add required dependencies to your app/build.gradle
dependencies {
implementation "com.github.sun-asterisk.tech-standard-android-auth:core:${latest_version}" // required
implementation "com.github.sun-asterisk.tech-standard-android-auth:credentialsauth:${latest_version}"
implementation "com.github.sun-asterisk.tech-standard-android-auth:googleauth:${latest_version}"
implementation "com.github.sun-asterisk.tech-standard-android-auth:googlefirebaseauth:${latest_version}"
implementation "com.github.sun-asterisk.tech-standard-android-auth:facebookauth:${latest_version}"
implementation "com.github.sun-asterisk.tech-standard-android-auth:facebookfirebaseauth:${latest_version}"
}
For more installation detail, read each library's wiki.
To run sample project, you need provide some info below
- Add your
google-services.json
to sampleapp
folder. - Replace social keys in
res/keys.xml