2 code examples of PHP Elabftw\Services\SamlAuth extracted from open source projects
public function testNotParsableToken(): void
{
$this->expectException(UnauthorizedException::class);
SamlAuth::decodeToken('this can not be parsed');
}
public function testUndecodableToken(): void
{
$this->expectException(UnauthorizedException::class);
SamlAuth::decodeToken('..');
}