Download the PHP package wolfpack-it/yii2-oauth without Composer
On this page you can find all versions of the php package wolfpack-it/yii2-oauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wolfpack-it/yii2-oauth
More information about wolfpack-it/yii2-oauth
Files in wolfpack-it/yii2-oauth
Package yii2-oauth
Short Description Yii2 OAuth2 server implementation of https://oauth2.thephpleague.com/
License MIT
Informations about the package yii2-oauth
OAuth2 Server module for Yii2
This extension provides The PHP League: OAuth 2.0 Server module for the Yii2 Framework.
The PHP League: OAuth 2.0 Server is a package that makes setting up a OAuth2 server easy.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require
section of your composer.json
file.
Configuring
Configure module
The basic configuration is a module in your application:
See the public variables of the Module for the full configuration options.
An example on how to generate keys can be found here.
Whenever the AccessTokenService
is being injected via DI, the module needs to be added to the bootstrap of the application.
Running migrations
The migrations can be ran automatically by adding them to the migration namespaces:
To get this working, you will need to add an alias:
If you want to override the database connection in the migrations, you will need to bootstrap the oauth module also in the console.
Add routes
To have the module accessible, make sure the correct routes are set in your urlManager.
For example when your module is called oauth
:
TODO
- Add tests
Credits
License
The MIT License (MIT). Please see LICENSE for more information.
All versions of yii2-oauth with dependencies
jc-it/yii2-blameable-behavior Version ^1.0.0
jc-it/yii2-timestamp-behavior Version ^1.0.0
kartik-v/yii2-builder Version ^1.6.5
kartik-v/yii2-icons Version ^1.4.5
league/oauth2-server Version ^8.5.2
lcobucci/jwt Version ^5.2.0
sam-it/yii2-magic Version ^2.2.0
unclead/yii2-multiple-input Version ^2.21.3
yiisoft/yii2-bootstrap4 Version ~2.0.1
yiisoft/yii2 Version ~2.0.19