PHPackages                             cesnet/simplesamlphp-module-authgoogleoauth2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. cesnet/simplesamlphp-module-authgoogleoauth2

Abandoned → [league/oauth2-google](/?search=league%2Foauth2-google)ArchivedSimplesamlphp-module[Authentication &amp; Authorization](/categories/authentication)

cesnet/simplesamlphp-module-authgoogleoauth2
============================================

A SimpleSAMLPHP module which allows authentication against Google OAuth2

1.0.0(7y ago)0151MITPHPPHP &gt;=5.4.0

Since Apr 14Pushed 3y ago2 watchersCompare

[ Source](https://github.com/CESNET/simplesamlphp-authgoogleoauth2)[ Packagist](https://packagist.org/packages/cesnet/simplesamlphp-module-authgoogleoauth2)[ RSS](/packages/cesnet-simplesamlphp-module-authgoogleoauth2/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

simplesamlphp-authgoogleoauth2
==============================

[](#simplesamlphp-authgoogleoauth2)

##### This repository is forked from [rgeyer](https://github.com/rgeyer/simplesamlphp-authgoogleoauth2)

[](#this-repository-is-forked-from-rgeyer)

An authentication module for simplesamlphp which authenticates against Google OAuth2

I created this largely because of Google's OpenID 2.0 deprecation. I used OpenID for authentication to RightScale, among other things.

Installation
============

[](#installation)

Git clone this repo into your modules/ directory, then be sure to install the dependencies with composer

```
cd /path/to/simplesaml/modules/
git clone https://github.com/rgeyer/simplesamlphp-authgoogleoauth2.git authgoogleoauth2
cd authgoogleoauth2
# Install composer, skip this step if you've already got it
curl -s https://getcomposer.org/installer | php
# Install the authgoogleoauth2 module dependencies, you can just do `composer install` if you've already
# installed composer globally
php composer.phar install

```

Configuration
=============

[](#configuration)

You'll first need to go to the Google developer console and create an application which your users will be asked to "trust" when they use this authentication mechanism. This is the same as the typical OAuth process when you enable an application to access your google account information. In this case, the only thing this application accesses about your account are your user details.

Then, a simple entry in your simplesamlphp config is all you need.

config/authsources.php
----------------------

[](#configauthsourcesphp)

```
  'authgoogleoauth2' => array(
      'authgoogleoauth2:authgoogleoauth2',
      'client_id' => 'yourclientid.apps.googleusercontent.com',
      'client_secret' => 'Your Secret',
      'developer_key' => 'Your API Key',
      # Optional value, default is 'profile' and 'email'
      'scopes' => array(
	'openid',
	'profile',
	'email',
    ),

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~619 days

Total

3

Last Release

2805d ago

Major Versions

0.0.1 → 1.0.02018-09-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7d816afabcd45ddb7019917733605f761f84146b1a809923e04c7b82bd37b90?d=identicon)[cesnet](/maintainers/cesnet)

---

Top Contributors

[![rgeyer](https://avatars.githubusercontent.com/u/428415?v=4)](https://github.com/rgeyer "rgeyer (3 commits)")[![tauceti2](https://avatars.githubusercontent.com/u/1469280?v=4)](https://github.com/tauceti2 "tauceti2 (2 commits)")[![melanger](https://avatars.githubusercontent.com/u/17325174?v=4)](https://github.com/melanger "melanger (1 commits)")[![vyskocilpavel](https://avatars.githubusercontent.com/u/28349779?v=4)](https://github.com/vyskocilpavel "vyskocilpavel (1 commits)")

---

Tags

googleoauth2simplesamlphp

### Embed Badge

![Health badge](/badges/cesnet-simplesamlphp-module-authgoogleoauth2/health.svg)

```
[![Health](https://phpackages.com/badges/cesnet-simplesamlphp-module-authgoogleoauth2/health.svg)](https://phpackages.com/packages/cesnet-simplesamlphp-module-authgoogleoauth2)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M161](/packages/google-auth)[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M68](/packages/hwi-oauth-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[javanile/php-imap2

PHP IMAP with OAUTH2

64227.0k1](/packages/javanile-php-imap2)[cirrusidentity/simplesamlphp-module-authoauth2

SSP Module for Oauth2 authentication sources

3399.8k](/packages/cirrusidentity-simplesamlphp-module-authoauth2)[and/oauth

Simple and amazing OAuth library with many providers. Just try it out!

4645.2k2](/packages/and-oauth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
