Programming Language PHP
Namespace Elabftw\Services
Class SamlAuth
Method/Function decodeToken
Total Examples 2
2 code examples of PHP Elabftw\Services\SamlAuth::decodeToken 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('..');
}