PHPackages                             aclavijo/cakeopenidconnect - 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. aclavijo/cakeopenidconnect

ActiveCakephp-plugin[Authentication &amp; Authorization](/categories/authentication)

aclavijo/cakeopenidconnect
==========================

Provide Google OpenId Connect feature for cake php 1.3

v0.1.15(8y ago)198MITPHP

Since Nov 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/AClavijo/cakeopenidconnect)[ Packagist](https://packagist.org/packages/aclavijo/cakeopenidconnect)[ Docs](https://github.com/AClavijo/cakeopenidconnect)[ RSS](/packages/aclavijo-cakeopenidconnect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (17)Used By (0)

Plugin Google OpenId Connect for Cake 1.3 applications
======================================================

[](#plugin-google-openid-connect-for-cake-13-applications)

This plugin provide Google OpenId Connect to a cake 1.3 Framework.

> I try to make the installation easy. So please read the installation part :)

Dependancies
------------

[](#dependancies)

This project include one dependancie:

- "google/apiclient": "^2.0" ['Documentation'](https://github.com/google/google-api-php-client)
- "symfony/yaml" : "3.1.\*" ['Documentation'](http://symfony.com/doc/current/components/yaml.html)
- "aclavijo/cakephp-installer-plugin": "0.1.\*" Custom composer installer

Installation
------------

[](#installation)

### via composer

[](#via-composer)

```
composer require aclavijo/cakeopenidconnect

```

When you've done the installation, composer will place the plugin in 'app/plugins/openid'

### Parameter.yml

[](#parameteryml)

you need to create a parameter.yml in app/plugins/openid/config from the parameter.yml.dist

Configuration
-------------

[](#configuration)

```
#parameters.yml
OpenidConnect:
    client_id: string
    secret_id: string
    scopes: array
    #optionnal
    domains: null|array #default null
    log_path: null|array #default null
    cake_log: false|true #default true
    flash_ctp: string #default flash_bas

```

- **client\_id**: client\_id provide by google
- **secret\_id**: client\_id provide by google
- **scopes**: google openid scope \['openid', 'email', 'profile'\] minimum \['openid', 'email'\]
- **domains**: array if you want to only authorize authentification by email address domains (all other will be rejected)
- **log\_path**: specifie another log file path (Apache for example)
- **cake\_log**: false to desactivate cake logging
- **flash\_ctp**: name of the cake 1.3 flash template to display error loggin message

Deploy it on your project
-------------------------

[](#deploy-it-on-your-project)

### User search fonction

[](#user-search-fonction)

- In *app/models/uilisateur.php*, add the following function

```
    function getUserByPseudo($pseudo)
    {
        $params = array(
            'conditions' => array('Utilisateur.pseudo' => $pseudo)
        );
        $result = $this->find('first', $params);

        return $result['Utilisateur'];
    }
```

### (optionnal) add the route to the router

[](#optionnal-add-the-route-to-the-router)

- in the file *app/config/router.php*

```
Router::connect('/openid/oauth/authentification', array('plugin' => 'openid', 'controller' => 'oauth', 'action' => 'authentification'));
```

### Add a connection link

[](#add-a-connection-link)

- In *login.ctp*:

```
 echo $html->link('Name your button', array(
        'plugin' => 'openid',
        'controller' => 'oauth',
        'action' => 'authentification'
    ), array(
        'class' => 'btn btn-primary'
    )); ?>
```

To do
-----

[](#to-do)

- Implement the log\_path feature

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~20 days

Recently: every ~69 days

Total

16

Last Release

3148d ago

### Community

Maintainers

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

---

Top Contributors

[![AClavijo](https://avatars.githubusercontent.com/u/3210773?v=4)](https://github.com/AClavijo "AClavijo (48 commits)")

### Embed Badge

![Health badge](/badges/aclavijo-cakeopenidconnect/health.svg)

```
[![Health](https://phpackages.com/badges/aclavijo-cakeopenidconnect/health.svg)](https://phpackages.com/packages/aclavijo-cakeopenidconnect)
```

###  Alternatives

[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M190](/packages/simplesamlphp-simplesamlphp)[jamesedmonston/graphql-authentication

GraphQL authentication for your headless Craft CMS applications.

2917.0k](/packages/jamesedmonston-graphql-authentication)

PHPackages © 2026

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