All Projects → CodelightStudios → Android Smart Login

CodelightStudios / Android Smart Login

Licence: apache-2.0
A smart way to add Login functionality to your Android app.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Smart Login

KASocialLogins
This is Social login library in which you can login through Facebook , LinkedIn and Google
Stars: ✭ 15 (-97.76%)
Mutual labels:  facebook-login, google-login
Auth
:atom: Social (OAuth1\OAuth2\OpenID\OpenIDConnect) sign with PHP
Stars: ✭ 457 (-31.89%)
Mutual labels:  facebook-login, google-login
social-auth-kivy
Integrate Google, Facebook, Github & Twitter login in kivy applications
Stars: ✭ 133 (-80.18%)
Mutual labels:  facebook-login, google-login
Pwa Auth
Web component that lets your users sign-in/sign-up using their Microsoft, Google, Facebook, or Apple account. Your app receives their email address, name, and profile picture.
Stars: ✭ 139 (-79.28%)
Mutual labels:  facebook-login, google-login
worker-auth-providers
worker-auth-providers is an open-source providers to make authentication easy with workers. Very lightweight script which doesn't need a lot of dependencies. Plug it with any framework or template of workers.
Stars: ✭ 85 (-87.33%)
Mutual labels:  facebook-login, google-login
Socialloginmanager
DEPRECATED
Stars: ✭ 178 (-73.47%)
Mutual labels:  facebook-login, google-login
PopMovies
Aplicativo em Android para organização dos seus filmes favoritos.
Stars: ✭ 41 (-93.89%)
Mutual labels:  facebook-login, google-login
Argus Android
Login/Registration Module for Android
Stars: ✭ 89 (-86.74%)
Mutual labels:  facebook-login, google-login
SimpleOAuth
Simple OAuth 2.0 for Android
Stars: ✭ 15 (-97.76%)
Mutual labels:  facebook-login, google-login
Bon Voyage
A Hotel booking Android application. This app consists of a Google, Facebook and email login. Firebase is used as the database. The user can select the destination, select the hotel, and book the rooms there. After the booking process is complete, a confirmation email is sent to the user.
Stars: ✭ 19 (-97.17%)
Mutual labels:  facebook-login, google-login
React Most Wanted
React starter kit with "Most Wanted" application features
Stars: ✭ 1,867 (+178.24%)
Mutual labels:  facebook-login, google-login
Angularx Social Login
Social login and authentication module for Angular 9
Stars: ✭ 442 (-34.13%)
Mutual labels:  facebook-login, google-login
Mern Boilerplate
Fullstack boilerplate with React, Redux, Express, Mongoose, Passport Local, JWT, Facebook and Google OAuth out of the box.
Stars: ✭ 112 (-83.31%)
Mutual labels:  facebook-login, google-login
Simpleauth
A easy to use social authentication android library. (Facebook, Google, Twitter, Instagram)
Stars: ✭ 216 (-67.81%)
Mutual labels:  facebook-login, google-login
Feedfire
FeedFire is a project to help developers integrate with Google Firebase.
Stars: ✭ 100 (-85.1%)
Mutual labels:  facebook-login, google-login
TinderBotz
Automated Tinder bot and scraper using selenium in python.
Stars: ✭ 265 (-60.51%)
Mutual labels:  facebook-login, google-login
Spring Boot React Oauth2 Social Login Demo
Spring Boot React OAuth2 Social Login with Google, Facebook, and Github
Stars: ✭ 676 (+0.75%)
Mutual labels:  facebook-login, google-login
Svelte Social Auth
Social Auth for Svelte v3
Stars: ✭ 86 (-87.18%)
Mutual labels:  facebook-login, google-login
angular5-social-login
Social authentication module for Angular 5. Includes Facebook and Google login with AOT compatibility.
Stars: ✭ 40 (-94.04%)
Mutual labels:  facebook-login, google-login
nest-angular-auth-client
Angular client for NestJS authentication (Login, Register, Google Login, Facebook Login, Apple Login, Messages, Rooms, Private DMs)
Stars: ✭ 16 (-97.62%)
Mutual labels:  facebook-login, google-login

Android Arsenal

Image

What's in the box

  • The login framework for your app
  • Implementation of Facebook and Google login
  • Easy way to implement custom login and sign up

Setup

1. Include in your project

Using Gradle

The Android-Smart-Login library is pushed to jcenter, so you need to add the following dependency to your app's build.gradle.

compile 'codelight.studios:android-smart-login:1.2'

As a module

If you can't include it as gradle dependency, you can also download this GitHub repo and copy the library folder to your project.

2. Usage

First step in configuring the Smart Login Framework is to implement SmartLoginCallbacks in your Activity.

public interface SmartLoginCallbacks {
    void onLoginSuccess(SmartUser user);
    void onLoginFailure(SmartLoginException e);
    SmartUser doCustomLogin();
    SmartUser doCustomSignup();
}

Next step is to configure the SmartLoginConfig.

Example:

SmartLoginConfig config = new SmartLoginConfig(this /* Context */, this /* SmartLoginCallbacks */);
config.setFacebookAppId(getString(R.string.facebook_app_id));

This is the simplest way to configure the library to enable Custom login mode along with Facebook and Google login modes.

Next step is to override the onActivityResult of your Activity.

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    smartLogin.onActivityResult(requestCode, resultCode, data, config);
}

Final step is to call the login method when user clicks on the login button.

/* Facebook Login */
SmartLogin smartLogin = SmartLoginFactory.build(LoginType.Facebook);
smartLogin.login(config);

/* Google Login */
SmartLogin smartLogin = SmartLoginFactory.build(LoginType.Google);
smartLogin.login(config);

That's it!

Once the login succeeds, SmartUser object is returned in onLoginSuccess(SmartUser user).

For detailed usage and examples check the Project's Wiki

Included Libraries

The following third-party libraries were used in this framework.

  • Facebook SDK
  • Google Play Services - Auth
  • GSON library

Other Features

Get the current logged in user at anytime from your application by just calling UserSessionManager.getCurrentUser method.

SmartUser currentUser = UserSessionManager.getCurrentUser(context);
if(currentUser != null){
    //You have got what you need
}

Contribution

All contributions are welcome. Encounter any issue? Don't hesitate to open an issue

Convention: Master branch would be the development branch. So feel free to fork from the Master branch. Release branch will be merged with master branch after every major release.

Our other libraries

Weather Downloader library

An easy and efficient way to get weather information into your app.

License

Copyright 2017 Codelight Studios

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].