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

Was this example useful?
0
                                                    public function testNotParsableToken(): void
    {
        $this->expectException(UnauthorizedException::class);
        SamlAuth::decodeToken('this can not be parsed');
    }
                                            
Was this example useful?
0
                                                    public function testUndecodableToken(): void
    {
        $this->expectException(UnauthorizedException::class);
        SamlAuth::decodeToken('..');
    }
                                            
SamlAuth's Other Methods