PHPackages                             ekapusta/oauth2-esia-bundle - 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. ekapusta/oauth2-esia-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

ekapusta/oauth2-esia-bundle
===========================

Configuration and symfony services for ekapusta/oauth2-esia.

2.0(5y ago)72.9k3MITPHPPHP ^5.6 || ^7.0

Since May 23Pushed 5y ago4 watchersCompare

[ Source](https://github.com/ekapusta/oauth2-esia-bundle)[ Packagist](https://packagist.org/packages/ekapusta/oauth2-esia-bundle)[ RSS](/packages/ekapusta-oauth2-esia-bundle/feed)WikiDiscussions develop Synced today

READMEChangelogDependencies (10)Versions (6)Used By (0)

OAuth2 ESIA bundle
==================

[](#oauth2-esia-bundle)

[![Build Status](https://camo.githubusercontent.com/be5f431db194e00fb3e5f3f5b020e96a65be7d08bf8d568faa1653c1f94ac9c5/68747470733a2f2f7472617669732d63692e6f72672f656b6170757374612f6f61757468322d657369612d62756e646c652e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/ekapusta/oauth2-esia-bundle)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](https://github.com/ekapusta/oauth2-esia-bundle/blob/develop/LICENSE.md)[![](https://camo.githubusercontent.com/3ca7c27a49132aef6a2b308ba624328505b6e7dfaeefb7f03b7ca6f31d7b54c7/68747470733a2f2f657369612e676f7375736c7567692e72752f6964702f7265736f75726365732f696d672f666c742f72752f6c6f676f2d73696d706c652e706e67)](https://esia.gosuslugi.ru/)

Configuration and symfony services for [ekapusta/oauth2-esia](https://github.com/ekapusta/oauth2-esia).

Install
-------

[](#install)

`composer require ekapusta/oauth2-esia-bundle`

In your kernell add to other bundles:

`new Ekapusta\OAuth2EsiaBundle\EkapustaOAuth2EsiaBundle(),`

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

[](#configuration)

### Signer

[](#signer)

Decide [which signer to use](https://github.com/ekapusta/oauth2-esia#which-signer-to-use) and set these params in your config:

```
ekapusta_oauth2_esia.signer.class_name: Ekapusta\OAuth2Esia\Security\Signer\OpensslCli
ekapusta_oauth2_esia.signer.certificate_path: /path/to/your/certificate/with/public-key-inside.cer
ekapusta_oauth2_esia.signer.private_key_path: /path/to/your/certificates/private.key
ekapusta_oauth2_esia.signer.private_key_password: 'some password'
ekapusta_oauth2_esia.signer.tool_path: /path/to/your/openssl
```

### Provider

[](#provider)

You must configure your `client_id` and `redirect_uri`.

```
ekapusta_oauth2_esia.client_id: SOMESYSTEM
ekapusta_oauth2_esia.redirect_uri: https://your-system.domain/auth/finish
```

Scopes should be configured if you need more info from authorized user. Please note, that you should set here only scopes, for which you have permission to use. Full list of scopes are at [methodical recommendations](http://minsvyaz.ru/ru/documents/?type=50&directions=13).

```
ekapusta_oauth2_esia.default_scopes: ['openid', 'fullname', '...']
```

### Test mode

[](#test-mode)

To use test mode put your provider to test portal as:

```
ekapusta_oauth2_esia.remote_url: 'https://esia-portal1.test.gosuslugi.ru'
ekapusta_oauth2_esia.remote_public_key: '%ekapusta_oauth2_esia.vendor.resources_path%/esia.test.public.key'
```

### RS256 algo

[](#rs256-algo)

By default we now use GOST algo for remote verification. To use RSA RS256:

```
ekapusta_oauth2_esia.remote_public_key: '%ekapusta_oauth2_esia.vendor.resources_path%/esia.prod.public.key'
ekapusta_oauth2_esia.remote_signer.algorytm: 'RS256'
```

### Logging

[](#logging)

Currently logger is used only at transport level: injected into guzzle http client. You can configure your own logger class by `ekapusta_oauth2_esia.logger.class` param. Or just redefine at your config service `ekapusta_oauth2_esia.logger`.

Usage
-----

[](#usage)

There are two DI-services available: `ekapusta_oauth2_esia.provider` and `ekapusta_oauth2_esia.service`. When you need just authorize user and get information, then you could use `ekapusta_oauth2_esia.service`. In other cases use `ekapusta_oauth2_esia.provider`. 2nd is just a simplified facade for 1st.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

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

Total

4

Last Release

2099d ago

Major Versions

1.1.1 → 2.02020-09-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77981?v=4)[Alexander Ustimenko](/maintainers/garex)[@garex](https://github.com/garex)

---

Top Contributors

[![garex](https://avatars.githubusercontent.com/u/77981?v=4)](https://github.com/garex "garex (26 commits)")

---

Tags

esiaoauth2oauth2-provideropenid-connectsymfonysymfoy-bundlesymfonybundleoauth2OpenID Connectoauth2-provideresia

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ekapusta-oauth2-esia-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ekapusta-oauth2-esia-bundle/health.svg)](https://phpackages.com/packages/ekapusta-oauth2-esia-bundle)
```

PHPackages © 2026

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