riddler7/silverstripe-oauth2-graphql

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

SilverStripe module for adding graphql support to oauth2 server

Installs: 145

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

Type:silverstripe-vendormodule

dev-master 2019-06-29 03:34 UTC

This package is auto-updated.

Last update: 2019-12-03 01:49:24 UTC


README

Build Status Scrutinizer Code Quality codecov

Adds support for oauth2 authentication (using advanced-learning/silverstripe-oauth2-server).

Requirements

  • silverstripe/framework ^4.0
  • advanced-learning/silverstripe-oauth2-server
  • PHP >= 7.1

Installation

Install with Composer:

composer require riddler7/silverstripe-oauth-graphql

Usage

Adds the oauth to the context in graphql. To enable you need to configure your own graphql endpoint to use the controller from this module as it overwrites the index method of the default graphql controller to allow it access the the request add add contexts.

SilverStripe\Control\Director:
  rules:
    mygraphqlurl:
      Controller: 'Riddler7\Oauth2GraphQL\Controller'