riddler7 / silverstripe-oauth2-graphql
SilverStripe模块,用于添加OAuth2服务器的GraphQL支持
dev-master
2019-06-29 03:34 UTC
Requires
- php: >=7.1
- advanced-learning/silverstripe-oauth2-server: dev-master
- silverstripe/framework: ^4.0
- silverstripe/graphql: ^3.0
- silverstripe/vendor-plugin: ^1.0
Requires (Dev)
- phpunit/phpunit: ^5.7@stable
- silverstripe/sqlite3: ^2.1
- squizlabs/php_codesniffer: ^3.3
This package is auto-updated.
Last update: 2019-12-03 01:49:24 UTC
README
添加对OAuth2认证的支持(使用advanced-learning/silverstripe-oauth2-server)。
要求
silverstripe/framework
^4.0advanced-learning/silverstripe-oauth2-server
PHP >= 7.1
安装
使用Composer安装
composer require riddler7/silverstripe-oauth-graphql
使用方法
将OAuth2添加到GraphQL的上下文中。为了启用此功能,您需要配置自己的GraphQL端点,使用此模块中的控制器,因为它覆盖了默认GraphQL控制器的index方法,以允许它访问请求并添加上下文。
SilverStripe\Control\Director: rules: mygraphqlurl: Controller: 'Riddler7\Oauth2GraphQL\Controller'