All Projects → CodetrixStudio → Capacitorgoogleauth

CodetrixStudio / Capacitorgoogleauth

Licence: mit
Capacitor plugin for Google Auth. Lightweight & no dependencies.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Capacitorgoogleauth

Sapper Ecommerce
Svelte ecommerce - Headless, Authentication, Cart & Checkout, TailwindCSS, Server Rendered, Proxy + API Integrated, Animations, Stores, Lazy Loading, Loading Indicators, Carousel, Instant Search, Faceted Filters, 1 command deploy to production, Open Source, MIT license. Join us as contributor ([email protected])
Stars: ✭ 289 (+214.13%)
Mutual labels:  authentication, pwa
Ngx Auth Firebaseui
Angular Material UI component for firebase authentication
Stars: ✭ 518 (+463.04%)
Mutual labels:  google, authentication
Oauth
🔗 OAuth 2.0 implementation for various providers in one place.
Stars: ✭ 336 (+265.22%)
Mutual labels:  google, authentication
Turnstile
An authentication framework for Swift.
Stars: ✭ 163 (+77.17%)
Mutual labels:  google, authentication
Google Auth Library Nodejs
🔑 Google Auth Library for Node.js
Stars: ✭ 1,094 (+1089.13%)
Mutual labels:  google, authentication
Goth
Elixir package for Oauth authentication via Google Cloud APIs
Stars: ✭ 191 (+107.61%)
Mutual labels:  google, authentication
Cloudfront Auth
An AWS CloudFront [email protected] function to authenticate requests using Google Apps, Microsoft, Auth0, OKTA, and GitHub login
Stars: ✭ 471 (+411.96%)
Mutual labels:  google, authentication
React Most Wanted
React starter kit with "Most Wanted" application features
Stars: ✭ 1,867 (+1929.35%)
Mutual labels:  authentication, pwa
Keyring
Keyring is an authentication framework for WordPress. It comes with definitions for a variety of HTTP Basic, OAuth1 and OAuth2 web services. Use it as a common foundation for working with other web services from within WordPress code.
Stars: ✭ 52 (-43.48%)
Mutual labels:  google, authentication
Nativescript Plugin Firebase
🔥 NativeScript plugin for Firebase
Stars: ✭ 990 (+976.09%)
Mutual labels:  google, authentication
Googleauthr
Google API Client Library for R. Easy authentication and help to build Google API R libraries with OAuth2. Shiny compatible.
Stars: ✭ 150 (+63.04%)
Mutual labels:  google, authentication
Svelte Social Auth
Social Auth for Svelte v3
Stars: ✭ 86 (-6.52%)
Mutual labels:  google, authentication
Gsts
Obtain and store AWS STS credentials to interact with Amazon services by authenticating via G Suite SAML.
Stars: ✭ 136 (+47.83%)
Mutual labels:  google, authentication
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 (+163.04%)
Mutual labels:  google, authentication
Vue Firebase Auth Vuex
Vue Firebase🔥 Authentication with Vuex
Stars: ✭ 248 (+169.57%)
Mutual labels:  authentication, pwa
Micro Auth
A microservice that makes adding authentication with Google and Github to your application easy.
Stars: ✭ 466 (+406.52%)
Mutual labels:  google, authentication
Play Authenticate
An authentication plugin for Play Framework 2.x (Java)
Stars: ✭ 813 (+783.7%)
Mutual labels:  google, authentication
Googleclientplugin
Google Client Plugin for Xamarin iOS and Android
Stars: ✭ 69 (-25%)
Mutual labels:  google, authentication
Gargle
Infrastructure for calling Google APIs from R, including auth
Stars: ✭ 88 (-4.35%)
Mutual labels:  google, authentication
Maskable
Create and preview maskable icons in the browser!
Stars: ✭ 90 (-2.17%)
Mutual labels:  pwa

CapacitorGoogleAuth

Capacitor plugin for Google Auth.

Install

npm i --save @codetrix-studio/capacitor-google-auth

npx cap update

WEB

Add clientId meta tag to head.

<meta name="google-signin-client_id" content="{your client id here}">

Register the plugin by importing it.

import "@codetrix-studio/capacitor-google-auth";

Use it

import { Plugins } from '@capacitor/core';
Plugins.GoogleAuth.signIn();

AngularFire2

async googleSignIn() {
  let googleUser = await Plugins.GoogleAuth.signIn();
  const credential = auth.GoogleAuthProvider.credential(googleUser.authentication.idToken);
  return this.afAuth.auth.signInAndRetrieveDataWithCredential(credential);
}

iOS

Make sure you have GoogleService-Info.plist with CLIENT_ID

Add REVERSED_CLIENT_ID as url scheme to Info.plist

Android

Inside your strings.xml

<resources>
  <string name="server_client_id">Your Web Client Key</string>
</resources>

Import package inside your MainActivity

import com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth;

Register plugin inside your MainActivity.onCreate

this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
  add(GoogleAuth.class);
}});

Configure

Provide configuration in root capacitor.config.json

{
  "plugins": {
    "GoogleAuth": {
      "scopes": ["profile", "email"],
      "serverClientId": "xxxxxx-xxxxxxxxxxxxxxxxxx.apps.googleusercontent.com",
      "forceCodeForRefreshToken" : true
    }
  }
}

Note : forceCodeForRefreshToken force user to select email address to regenerate AuthCode used to get a valid refreshtoken (work on iOS and Android) (This is used for offline access and serverside handling)

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