Update website
This commit is contained in:
parent
a0b0d3dae7
commit
ae7ef6ad45
3151 changed files with 566766 additions and 48 deletions
|
@ -17,6 +17,7 @@ namespace League\OAuth2\Client\Provider;
|
|||
use GuzzleHttp\Client as HttpClient;
|
||||
use GuzzleHttp\ClientInterface as HttpClientInterface;
|
||||
use GuzzleHttp\Exception\BadResponseException;
|
||||
use GuzzleHttp\Exception\GuzzleException;
|
||||
use InvalidArgumentException;
|
||||
use League\OAuth2\Client\Grant\AbstractGrant;
|
||||
use League\OAuth2\Client\Grant\GrantFactory;
|
||||
|
@ -405,6 +406,7 @@ abstract class AbstractProvider
|
|||
*
|
||||
* @param array $options
|
||||
* @return array Authorization parameters
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
protected function getAuthorizationParameters(array $options)
|
||||
{
|
||||
|
@ -476,6 +478,7 @@ abstract class AbstractProvider
|
|||
*
|
||||
* @param array $options
|
||||
* @return string Authorization URL
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function getAuthorizationUrl(array $options = [])
|
||||
{
|
||||
|
@ -492,6 +495,7 @@ abstract class AbstractProvider
|
|||
* @param array $options
|
||||
* @param callable|null $redirectHandler
|
||||
* @return mixed
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function authorize(
|
||||
array $options = [],
|
||||
|
@ -613,18 +617,16 @@ abstract class AbstractProvider
|
|||
*
|
||||
* @param mixed $grant
|
||||
* @param array<string, mixed> $options
|
||||
* @throws IdentityProviderException
|
||||
* @return AccessTokenInterface
|
||||
* @throws IdentityProviderException
|
||||
* @throws UnexpectedValueException
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function getAccessToken($grant, array $options = [])
|
||||
{
|
||||
$grant = $this->verifyGrant($grant);
|
||||
|
||||
if (empty($options['scope'])) {
|
||||
$options['scope'] = $this->getDefaultScopes();
|
||||
}
|
||||
|
||||
if (is_array($options['scope'])) {
|
||||
if (isset($options['scope']) && is_array($options['scope'])) {
|
||||
$separator = $this->getScopeSeparator();
|
||||
$options['scope'] = implode($separator, $options['scope']);
|
||||
}
|
||||
|
@ -709,6 +711,7 @@ abstract class AbstractProvider
|
|||
*
|
||||
* @param RequestInterface $request
|
||||
* @return ResponseInterface
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function getResponse(RequestInterface $request)
|
||||
{
|
||||
|
@ -719,8 +722,10 @@ abstract class AbstractProvider
|
|||
* Sends a request and returns the parsed response.
|
||||
*
|
||||
* @param RequestInterface $request
|
||||
* @throws IdentityProviderException
|
||||
* @return mixed
|
||||
* @throws IdentityProviderException
|
||||
* @throws UnexpectedValueException
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function getParsedResponse(RequestInterface $request)
|
||||
{
|
||||
|
@ -868,6 +873,9 @@ abstract class AbstractProvider
|
|||
*
|
||||
* @param AccessToken $token
|
||||
* @return ResourceOwnerInterface
|
||||
* @throws IdentityProviderException
|
||||
* @throws UnexpectedValueException
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function getResourceOwner(AccessToken $token)
|
||||
{
|
||||
|
@ -881,6 +889,9 @@ abstract class AbstractProvider
|
|||
*
|
||||
* @param AccessToken $token
|
||||
* @return mixed
|
||||
* @throws IdentityProviderException
|
||||
* @throws UnexpectedValueException
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
protected function fetchResourceOwnerDetails(AccessToken $token)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue