PHPackages                             dmstr/yii2-oauth-module - 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. dmstr/yii2-oauth-module

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

dmstr/yii2-oauth-module
=======================

Yii2 OAuth2 Module

1.1.0(1y ago)11.5kBSD-3-ClausePHP

Since Mar 10Pushed 1y ago3 watchersCompare

[ Source](https://github.com/dmstr/yii2-oauth-module)[ Packagist](https://packagist.org/packages/dmstr/yii2-oauth-module)[ Docs](https://www.dmstr.io/)[ RSS](/packages/dmstr-yii2-oauth-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (7)Used By (0)

Yii OAuth Module
================

[](#yii-oauth-module)

The package provides a module for [Yii 2.0](https://www.yiiframework.com/) that allows you to use [OAuth 2.0](https://www.oauth.com/) authentication. It is based on the [league/oauth2-client](https://github.com/thephpleague/oauth2-server) package.

Features
--------

[](#features)

- Client credentials grant
- Admin module to manage clients
- User id attribute for clients
- Access token encryption
- Access token issuer
- Access token in JWT format

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

```
composer require dmstr/yii2-oauth-module
```

Setup
-----

[](#setup)

Add the module to your web application configuration:

```
