Skip to content

Commit

Permalink
fix iss claims for eseye 3.0 (#95)
Browse files Browse the repository at this point in the history
* fix iss claims for seat 5

* allow old claim
  • Loading branch information
recursivetree authored Nov 8, 2023
1 parent 3d2b777 commit e3495b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Checker/EsiTokenValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of SeAT
*
* Copyright (C) 2015 to 2022 Leon Jacobs
* Copyright (C) 2015 to present Leon Jacobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -148,7 +148,8 @@ private function getJWTClaimsPolicy(string $client_id): ClaimCheckerManager
{
return new ClaimCheckerManager([
new IssuerChecker([
Configuration::getInstance()->sso_host,
sprintf('%s://%s', Configuration::getInstance()->sso_scheme, Configuration::getInstance()->sso_host), // the currently used iss claim
Configuration::getInstance()->sso_host, // just to be sure, still allow the old claim without protocol
]),
new ExpirationTimeChecker(),
new AudienceChecker('EVE Online'),
Expand Down
2 changes: 1 addition & 1 deletion tests/Fetchers/FetcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ private function getJwsToken(JWK $jwk): string
'name' => 'Warlof Tutsimo',
'owner' => 'svnSjVa1uGYyp/ZL3mfkIwkJYzQ=',
'exp' => $time + 3600,
'iss' => 'login.eveonline.com',
'iss' => 'https://login.eveonline.com',
]);

$builder = new JWSBuilder($manager);
Expand Down

0 comments on commit e3495b5

Please sign in to comment.