Skip to content

Commit

Permalink
Merge pull request #15 from davidwindell/patch-1
Browse files Browse the repository at this point in the history
[WIP] Create Xero PKCE provider
  • Loading branch information
calcinai authored Sep 13, 2022
2 parents 157bcdc + 78b9fe5 commit a8e85c5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Provider/XeroPkce.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace Calcinai\OAuth2\Client\Provider;

use League\OAuth2\Client\Provider\AbstractProvider;

/**
* @package Calcinai\OAuth2\Client\Provider
*/
class XeroPkce extends Xero
{
/**
* Enable the PKCE flow
*
* @return string PKCE Method S256
*/
protected function getPkceMethod()
{
return AbstractProvider::PKCE_METHOD_S256;
}
}

0 comments on commit a8e85c5

Please sign in to comment.