All Projects → rohjk → SimpleOAuth

rohjk / SimpleOAuth

Licence: MIT License
Simple OAuth 2.0 for Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to SimpleOAuth

Auth
:atom: Social (OAuth1\OAuth2\OpenID\OpenIDConnect) sign with PHP
Stars: ✭ 457 (+2946.67%)
Mutual labels:  oauth2, facebook, facebook-login, google-login
Svelte Social Auth
Social Auth for Svelte v3
Stars: ✭ 86 (+473.33%)
Mutual labels:  facebook, facebook-login, google-login
KASocialLogins
This is Social login library in which you can login through Facebook , LinkedIn and Google
Stars: ✭ 15 (+0%)
Mutual labels:  facebook, facebook-login, google-login
Spring Boot React Oauth2 Social Login Demo
Spring Boot React OAuth2 Social Login with Google, Facebook, and Github
Stars: ✭ 676 (+4406.67%)
Mutual labels:  oauth2, facebook-login, google-login
Perfect-Authentication
OAuth2 Implementations with Facebook, Google, LinkedIn, Slack, SalesForce and GitHub providers.
Stars: ✭ 14 (-6.67%)
Mutual labels:  oauth2, facebook, oauth2-provider
Flask Oauthlib
YOU SHOULD USE https://github.com/lepture/authlib
Stars: ✭ 1,429 (+9426.67%)
Mutual labels:  oauth2, oauth2-provider, oauth2-client
angular5-social-login
Social authentication module for Angular 5. Includes Facebook and Google login with AOT compatibility.
Stars: ✭ 40 (+166.67%)
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 (+26.67%)
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 (+466.67%)
Mutual labels:  facebook-login, google-login
psd2
API client for banks supporting PSD2 APIs with OAuth2 authentication.
Stars: ✭ 26 (+73.33%)
Mutual labels:  oauth2, oauth2-client
Hackathon Starter Kit
A Node-Typescript/Express Boilerplate with Authentication(Local, Github, Facebook, Twitter, Google, Dropbox, LinkedIn, Discord, Slack), Authorization, and CRUD functionality + PWA Support!
Stars: ✭ 242 (+1513.33%)
Mutual labels:  oauth2, facebook
android-facebook-login
Demo Facebook Login Android Application
Stars: ✭ 20 (+33.33%)
Mutual labels:  facebook, facebook-login
PopMovies
Aplicativo em Android para organização dos seus filmes favoritos.
Stars: ✭ 41 (+173.33%)
Mutual labels:  facebook-login, google-login
TinderBotz
Automated Tinder bot and scraper using selenium in python.
Stars: ✭ 265 (+1666.67%)
Mutual labels:  facebook-login, google-login
social-auth-kivy
Integrate Google, Facebook, Github & Twitter login in kivy applications
Stars: ✭ 133 (+786.67%)
Mutual labels:  facebook-login, google-login
LeonSocialLogin
Leon Social Login is an Android library written to Integrate (Twitter, Facebook, Google, SnapChat) login.
Stars: ✭ 16 (+6.67%)
Mutual labels:  facebook, facebook-login
Light Oauth2
A fast, light and cloud native OAuth 2.0 authorization microservices based on light-4j
Stars: ✭ 247 (+1546.67%)
Mutual labels:  oauth2, oauth2-provider
nest-angular-auth-client
Angular client for NestJS authentication (Login, Register, Google Login, Facebook Login, Apple Login, Messages, Rooms, Private DMs)
Stars: ✭ 16 (+6.67%)
Mutual labels:  facebook-login, google-login
facebook-node-sdk
Modeled from the (Facebook Javascript SDK), now with the facebook-node-sdk you can now easily write the same code and share between your server (nodejs) and the client (Facebook Javascript SDK).
Stars: ✭ 519 (+3360%)
Mutual labels:  facebook, facebook-login
OAuthLogin.AspNetCore
第三方平台联合登陆(facebook、微信、微博、QQ、Kakao)
Stars: ✭ 43 (+186.67%)
Mutual labels:  oauth2, facebook

Simple OAuth

An Android Library used to Sign in Google, Facebook.

A library designed to use Oauth 2.0 easily

Simple OAuth Login!

Super simple, super easy to use!

Specs

API Android Arsenal

Quick Setup

1. Include library

Using Gradle

Step 1. Add the JitPack repository to your build file

allprojects {
    repositories {
    	...
        maven { url 'https://jitpack.io' }
        
    }
}

Step 2. Add the dependency

dependencies {
    implementation 'com.github.rohjk:SimpleOAuth:1.2'
}

2. Usage

  • In AndroidManifest.xml :

Nothing

  • In Activity :

a. Set IDP Provider

set Google OAuth 2.0 'Web Client ID', Facebook 'App ID'

 SimpleSession.setAuthProvider(IdpType.GOOGLE,"<OAuth 2.0 Web Client ID>");
 SimpleSession.setAuthProvider(IdpType.FACEBOOK,"<App ID>");

b. Override onActivityResult

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

        SimpleSession.onActivityResult(requestCode,resultCode,data);
    }

C. Call Login API

 IdpType idpType; // IdpType.GOOGLE or IdpType.FACEBOOK
 
 SimpleSession.login(this, idpType, new SimpleAuthResultCallback<Void>() {
          @Override
          public void onResult(SimpleAuthResult<Void> result) {
               if(result.isSuccess()){
                    //Success to Login!
                }else{
		    //Fail to Login!
                    int errorCode = result.getErrorCode();
                    String errorMessage = result.getErrorMessaage();
                }
          }
 });

D. Done! Super Simple

3. Others

A. Get Sign in Status

 SimpleSession.isSignedIn(<Activity>);

B. Get Signed IDP Type

 SimpleSession.getCurrentIdpType();

C. Get Access Token

 SimpleSession.getAccessToken();

D. Get Email

 SimpleSession.getEmail();

E. Logout

 SimpleSession.logout();

3. dependencies

play-services-auth:16.0.1 , facebook-android-sdk:4.+

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].