Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/facile-it/openid-bundle
- Owner: facile-it
- Archived: true
- Created: 2019-05-03T08:23:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-03T09:12:28.000Z (over 5 years ago)
- Last Synced: 2024-09-26T04:02:33.429Z (about 2 months ago)
- Topics: openid, openid-client, symfony, symfony-bundle, symfony3, symfony4
- Language: PHP
- Size: 156 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.ymlfacile_openid_login: # your login route, that will redirect your user to the OpenId service
path: /openid/loginfacile_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