Skip to content

Commit a4088e9

Browse files
authored
Rename access_token.php to token.php (#150)
Co-authored-by: Marko Ivančić <[email protected]>
1 parent 022c17c commit a4088e9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/Services/OidcOpenIdProviderMetadataService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function initMetadata(): void
3636
$this->metadata['issuer'] = $this->configurationService->getSimpleSAMLSelfURLHost();
3737
$this->metadata['authorization_endpoint'] =
3838
$this->configurationService->getOpenIdConnectModuleURL('authorize.php');
39-
$this->metadata['token_endpoint'] = $this->configurationService->getOpenIdConnectModuleURL('access_token.php');
39+
$this->metadata['token_endpoint'] = $this->configurationService->getOpenIdConnectModuleURL('token.php');
4040
$this->metadata['userinfo_endpoint'] = $this->configurationService->getOpenIdConnectModuleURL('userinfo.php');
4141
$this->metadata['jwks_uri'] = $this->configurationService->getOpenIdConnectModuleURL('jwks.php');
4242
$this->metadata['scopes_supported'] = array_keys($this->configurationService->getOpenIDScopes());

spec/Controller/OpenIdConnectDiscoverConfigurationControllerSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class OpenIdConnectDiscoverConfigurationControllerSpec extends ObjectBehavior
2525
public const OIDC_OP_METADATA = [
2626
'issuer' => 'http://localhost',
2727
'authorization_endpoint' => 'http://localhost/authorize.php',
28-
'token_endpoint' => 'http://localhost/access_token.php',
28+
'token_endpoint' => 'http://localhost/token.php',
2929
'userinfo_endpoint' => 'http://localhost/userinfo.php',
3030
'jwks_uri' => 'http://localhost/jwks.php',
3131
'scopes_supported' => ['openid'],

spec/Services/OidcOpenIdProviderMetadataServiceSpec.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public function let(
1818
->willReturn('http://localhost');
1919
$configurationService->getOpenIdConnectModuleURL('authorize.php')
2020
->willReturn('http://localhost/authorize.php');
21-
$configurationService->getOpenIdConnectModuleURL('access_token.php')
22-
->willReturn('http://localhost/access_token.php');
21+
$configurationService->getOpenIdConnectModuleURL('token.php')
22+
->willReturn('http://localhost/token.php');
2323
$configurationService->getOpenIdConnectModuleURL('userinfo.php')
2424
->willReturn('http://localhost/userinfo.php');
2525
$configurationService->getOpenIdConnectModuleURL('jwks.php')
@@ -40,7 +40,7 @@ public function it_returns_expected_metadata(): void
4040
$this->getMetadata()->shouldBe([
4141
'issuer' => 'http://localhost',
4242
'authorization_endpoint' => 'http://localhost/authorize.php',
43-
'token_endpoint' => 'http://localhost/access_token.php',
43+
'token_endpoint' => 'http://localhost/token.php',
4444
'userinfo_endpoint' => 'http://localhost/userinfo.php',
4545
'jwks_uri' => 'http://localhost/jwks.php',
4646
'scopes_supported' => ['openid'],
File renamed without changes.

0 commit comments

Comments
 (0)