PHPackages                             ride/lib-security-oauth - 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. ride/lib-security-oauth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

ride/lib-security-oauth
=======================

OAuth implementation for the security model of the Ride framework

1.2.0(1y ago)03.9k1MITPHP

Since Mar 26Pushed 1y ago9 watchersCompare

[ Source](https://github.com/all-ride/ride-lib-security-oauth)[ Packagist](https://packagist.org/packages/ride/lib-security-oauth)[ RSS](/packages/ride-lib-security-oauth/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (18)Used By (1)

Ride: Security OAuth
====================

[](#ride-security-oauth)

OAuth implementation for the security library of the PHP Ride framework.

This security model is file based and usefull for a small user base.

What's In This Library
----------------------

[](#whats-in-this-library)

### OAuth2Authenticator

[](#oauth2authenticator)

The *OAuth2Authenticator* implements the *Authenticator* interface to make authentication through OAuth2 possible.

### ConnectPolicy

[](#connectpolicy)

The *ConnectPolicy* interface is used to automatically create users when they try to authenticate themselves for the first time.

#### EverybodyConnectPolicy

[](#everybodyconnectpolicy)

You can use the *EverybodyConnectPolicy* to let everybody create a user in your security model. This is usefull for a public application which needs a user to work properly

#### EmailConnectPolicy

[](#emailconnectpolicy)

The *EmailConnectPolicy* can be used to create users when they have an email address provided. You can easily extends this class to match domains or to add roles to the user.

### OAuth2Client

[](#oauth2client)

The *OAuth2Client* class is an extended HTTP client used to talk with the OAuth service.

This is implemented for Google and Facebook but other providers can be added easily.

### Related Modules

[](#related-modules)

You can check the following related modules of this library:

- [ride/cli-security](https://github.com/all-ride/ride-cli-security)
- [ride/lib-security](https://github.com/all-ride/ride-lib-security)
- [ride/lib-security-generic](https://github.com/all-ride/ride-lib-security-generic)
- [ride/web-security-generic](https://github.com/all-ride/ride-web-security-generic)

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

[](#installation)

You can use [Composer](http://getcomposer.org) to install this library.

```
composer require ride/lib-security-oauth

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 86.2% 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 ~249 days

Recently: every ~758 days

Total

16

Last Release

688d ago

Major Versions

0.6.0 → 1.0.02016-10-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d98d3f0d5db5eb241c6ee74bcee87d1e7dc1aaf7942b933d68e612ee2352eea?d=identicon)[ride-user](/maintainers/ride-user)

---

Top Contributors

[![kayalion](https://avatars.githubusercontent.com/u/2340819?v=4)](https://github.com/kayalion "kayalion (50 commits)")[![kristofser](https://avatars.githubusercontent.com/u/5928907?v=4)](https://github.com/kristofser "kristofser (8 commits)")

### Embed Badge

![Health badge](/badges/ride-lib-security-oauth/health.svg)

```
[![Health](https://phpackages.com/badges/ride-lib-security-oauth/health.svg)](https://phpackages.com/packages/ride-lib-security-oauth)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

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

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)

PHPackages © 2026

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