public function OAuth2ServerTest::getRedirectParams in OAuth2 Server 8
Same name and namespace in other branches
- 2.0.x tests/src/Functional/OAuth2ServerTest.php \Drupal\Tests\oauth2_server\Functional\OAuth2ServerTest::getRedirectParams()
Get redirect parameters.
Parameters
\Psr\Http\Message\ResponseInterface $response: A response message object.
string $explode: A string to explode on.
Return value
array An associative array of redirect parameters.
6 calls to OAuth2ServerTest::getRedirectParams()
- OAuth2ServerTest::testAuthorization in tests/
src/ Functional/ OAuth2ServerTest.php - Tests the authorization part of the flow.
- OAuth2ServerTest::testAuthorizationCodeGrantType in tests/
src/ Functional/ OAuth2ServerTest.php - Tests the "Authorization code" grant type.
- OAuth2ServerTest::testImplicitFlow in tests/
src/ Functional/ OAuth2ServerTest.php - Tests the implicit flow.
- OAuth2ServerTest::testOpenIdConnectAuthorizationCodeFlow in tests/
src/ Functional/ OAuth2ServerTest.php - Tests the OpenID Connect authorization code flow.
- OAuth2ServerTest::testOpenIdConnectImplicitFlow in tests/
src/ Functional/ OAuth2ServerTest.php - Tests the OpenID Connect implicit flow.
File
- tests/
src/ Functional/ OAuth2ServerTest.php, line 791
Class
- OAuth2ServerTest
- The OAuth2 Server admin test case.
Namespace
Drupal\Tests\oauth2_server\FunctionalCode
public function getRedirectParams(ResponseInterface $response, $explode = '?') {
$redirect_url_parts = explode($explode, $response
->getHeader('location')[0]);
$result = [];
parse_str($redirect_url_parts[1], $result);
return $result;
}