Google Sign-In Extension
Overview
The SignInWithGoogle extension for MIT App Inventor created by MrKoder provides a convenient way for developers to implement Google Sign-In functionality in their Android applications. This extension facilitates the process of obtaining a user's consent, exchanging device codes for access tokens, and retrieving user profile information from Google APIs.
Example Preview
Blocks
Features
- Request device code from Google OAuth2 Flow API using this block :
Description:
Initiates the GoogleSignIn OAuth2 authentication flow using the device code grant type. This flow is suitable for devices that don’t have a web browser or when users can’t easily copy and paste verification codes.
- Exchange device code for access token in Google OAuth.
- Request user profile information from Google People API.
Video Preview
Installation
To use the SignInWithGoogle extension, follow these steps:
- You can see this video to get your credentials (Client-ID, Client-Secret):
- Download the
V1
AIA file (227.5 KB)** If you want .
V2
AIA file (4.7 MB)
** If you want .
- Or you can Select "Import Extension" and choose the
V1 SignInWithGoogle.aix (20.8 KB)** file.
(you have to use external WebViewer)
V2
SignInWithGoogle.aix (2.3 MB)(the Auth2 Flow is injected inside the Extension so just click on **StartGoogleDeviceLogin** block)
- The extension will be added to your palette, and you can now use its blocks in your project.
Properties
ClientId
- Description: Set or get the client ID used for Google Sign-In.
- Type: String
ClientSecret
- Description: Set or get the client secret associated with the client ID.
- Type: String
RefreshToken
- Description: Set or get the refresh token required for token refreshing.
- Type: String
AccessToken
- Description: Set or get the access token obtained after successful sign-in.
- Type: String
Sign-in process
files
SignInWithGoogle.aix (20.8 KB)
AIA file (227.5 KB)
my website that has all of my extensions
https://ahmed2300.github.io/extensionslake.github.io/
Donate
if you liked my extension you can support me