Skip to content

Commit

Permalink
💄
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed May 13, 2024
1 parent 53ab3ef commit 240e5f8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/Core/OAuth2Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@ public function getRequestAuthorization(RequestInterface $request, AccessToken|n
throw new ProviderException('invalid auth AUTH_METHOD'); // @codeCoverageIgnore
}


/*
* ClientCredentials
*/

/**
* @param string[]|null $scopes
* @implements \chillerlan\OAuth\Core\ClientCredentials
Expand Down Expand Up @@ -328,6 +333,11 @@ protected function sendClientCredentialsTokenRequest(string $url, array $body):R
return $this->http->sendRequest($request);
}


/*
* TokenRefresh
*/

/**
* @implements \chillerlan\OAuth\Core\TokenRefresh
* @throws \chillerlan\OAuth\Providers\ProviderException
Expand Down Expand Up @@ -373,6 +383,11 @@ protected function getRefreshAccessTokenRequestBodyParams(string $refreshToken):
];
}


/*
* CSRFToken
*/

/**
* @implements \chillerlan\OAuth\Core\CSRFToken::checkState()
* @throws \chillerlan\OAuth\Providers\ProviderException|\chillerlan\OAuth\Core\CSRFStateMismatchException
Expand Down Expand Up @@ -419,6 +434,11 @@ final public function setState(array $params):array{
return $params;
}


/*
* PKCE
*/

/**
* @implements \chillerlan\OAuth\Core\PKCE::setCodeChallenge()
* @internal
Expand Down Expand Up @@ -506,6 +526,11 @@ final public function generateChallenge(string $verifier, string $challengeMetho
return sodium_bin2base64($verifier, SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING);
}


/*
* PAR
*/

/**
* @implements \chillerlan\OAuth\Core\PAR::getParRequestUri()
* @internal
Expand Down

0 comments on commit 240e5f8

Please sign in to comment.