Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/facile-it/openid-bundle

A Symfony bundle to do authorization through a third-party OpenId provider
https://github.com/facile-it/openid-bundle

openid openid-client symfony symfony-bundle symfony3 symfony4

Last synced: about 2 months ago
JSON representation

A Symfony bundle to do authorization through a third-party OpenId provider

Awesome Lists containing this project

README

        

# facile-it/openid-bundle

**WARNING**: this package is abandoned. Use an OAuth2 client instead, since OpenId Connect is a superset of that funtionality.

[![PHP Version](https://img.shields.io/badge/php-%5E7.1-blue.svg)](https://img.shields.io/badge/php-%5E7.1-blue.svg)
[![Stable release][Last stable image]][Packagist link]
[![Unstable release][Last unstable image]][Packagist link]

[![Build status][Master build image]][Master build link]
[![Coverage Status][Master coverage image]][Master coverage link]

This bundles add a new [custom authentication provider](https://symfony.com/doc/current/security/custom_authentication_provider.html) for your Symfony firewall, allowing authentication of your users using a third party OpenId provider.

## Installation

Require the package through Composer

```bash
composer require facile-it/openid-bundle
```

Add the bundle to your app kernel:

```php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
// ...
new Facile\OpenIdBundle\OpenIdBundle(),
];

// ...
```

## Configuration

Add the two needed routes to your routing configuration; names and paths are up to you:
```yaml
## app/config/routing.yml

facile_openid_login: # your login route, that will redirect your user to the OpenId service
path: /openid/login

facile_openid_check: # your check route, where your user will return back for authentication on your app
path: /openid/check
```

Define a service that implements the `\Facile\OpenIdBundle\Security\UserProvider` interface:
```php