google-iap-laravel maintained by yumemi-inc
Description
Authentication guard on Laravel for verifying requests from Google IAP (Identity-Aware Proxy).
Author
Last update
2026/04/02 04:16
(dev-dependabot/composer/kelvinmo/simplejwt-1.1.1)
License
Downloads
3 140
Last update
2026/04/02 04:16
License
Require
- php ^8.1
- google/auth ^1.37
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0 || ~0.8.0 || dev-master || ~0.9.0 || dev-master || ~1.1.0 || dev-master || dev-master
- symfony/cache ^6.4 || ^7.0
Last update
2026/04/02 04:15
License
Require
- php ^8.1
- google/auth ^1.37
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0 || ~0.8.0 || dev-master || ~0.9.0 || dev-master
- symfony/cache ^6.4 || ^7.0
Last update
2026/04/02 04:15
License
Require
- php ^8.1
- google/auth ^1.37
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0 || ~0.8.0 || dev-master || ~0.9.0 || dev-master
- symfony/cache ^6.4 || ^7.0
Last update
2026/04/02 04:15
License
Require
- php ^8.1
- google/auth ^1.37
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0 || ~0.8.0 || dev-master || ~0.9.0 || dev-master
- symfony/cache ^6.4 || ^7.0
Last update
2024/12/10 02:26
License
Require
- php ^8.1
- google/auth ^1.37
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0 || ~0.8.0 || dev-master || ~0.9.0 || dev-master
- symfony/cache ^6.4 || ^7.0
Last update
2024/11/13 02:04
License
Require
- php ^8.1
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- google/auth ^1.37
- symfony/cache ^6.4 || ^7.0
- kelvinmo/simplejwt ~0.7.0 || ~0.8.0 || dev-master || ~0.9.0 || dev-master
Last update
2024/03/13 03:24
License
Require
- php ^8.1
- google/auth ^1.37
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0 || ~0.8.0 || dev-master
- symfony/cache ^6.4 || ^7.0
Last update
2024/03/05 02:21
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0 || ~0.8.0
- symfony/cache ^6.2
Last update
2023/06/02 11:56
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0
- symfony/cache ^6.2
Last update
2023/06/01 18:08
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0
- symfony/cache ^6.2
Last update
2023/06/01 18:05
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0
- symfony/cache ^6.2
Last update
2023/06/01 17:45
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0
- symfony/cache ^6.2
Last update
2023/06/01 17:45
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0
- symfony/cache ^6.2
Last update
2023/06/01 17:30
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0
- symfony/cache ^6.2
Last update
2023/05/29 10:24
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
- kelvinmo/simplejwt ~0.7.0
- symfony/cache ^6.2
Last update
2023/05/26 16:36
License
Require
- php ^8.1
- kelvinmo/simplejwt ~0.7.0
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
Last update
2023/05/26 16:23
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
Last update
2023/05/26 16:18
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
Last update
2023/05/26 16:11
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
Last update
2023/05/26 15:48
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
Last update
2023/05/26 15:46
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
Last update
2023/05/26 15:45
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
Last update
2023/05/26 15:44
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
Last update
2023/05/26 15:39
License
Require
- php ^8.1
- google/auth ^1.28
- illuminate/auth ^9|^10|^11
- illuminate/contracts ^9|^10|^11
- illuminate/http ^9|^10|^11
- illuminate/support ^9|^10|^11
Laravel Authentication for Google IAP
Warning
This is not an official product of YUMEMI Inc.
Authentication guard on Laravel for verifying requests from Google IAP (Identity-Aware Proxy).
Prerequisites
- PHP 8.1 or later
- ext-gmp for JWT verification
- Laravel 9, 10, or 11 (dev)
Getting Started
-
Require this package as a dependency.
composer require yumemi-inc/google-iap-laravel -
Implement
GoogleUserResolveras you need.<?php // app/Security/AppGoogleUserResolver.php (new) use Illuminate\Contracts\Auth\Authenticatable; use Illuminate\Contracts\Auth\UserProvider; use YumemiInc\GoogleIapLaravel\Claims; use YumemiInc\GoogleIapLaravel\GoogleUserResolver; class AppGoogleUserResolver implements GoogleUserResolver { public function provide(Claims $claims, UserProvider $userProvider): ?Authenticatable { return $userProvider->retrieveByCredentials([ 'google_user_id' => $claims->id(), ]); } } -
Register the user resolver as a service.
<?php // app/Providers/AppServiceProvider.php use YumemiInc\GoogleIapLaravel\GoogleUserResolver; public function register(): void { $this->app->bind(GoogleUserProvider::class, AppGoogleUserProvider::class); } -
Use the guard provided in this package.
<?php // config/auth.php 'guards' => [ 'google-iap' => [ 'driver' => 'google-iap', 'provider' => 'users', ], ]