private function validateClaims(array $claims)
    {
        if (!isset($claims['iss']) || (strcmp(rtrim($claims['iss'], '/'), rtrim($this->issuerUrl, '/')) !== 0)) {
            throw new HttpException(400, 'Invalid "iss"');
        }
        if (!isset($claims['aud']) || (strcmp($claims['aud'], $this->clientId) !== 0)) {
            throw new HttpException(400, 'Invalid "aud"');
        }
    }
private function validateClaims(array $claims)
    {
        if (!isset($claims['iss']) || (strcmp(rtrim($claims['iss'], '/'), rtrim($this->issuerUrl, '/')) !== 0)) {
            throw new HttpException(400, 'Invalid "iss"');
        }
        if (!isset($claims['aud']) || (strcmp($claims['aud'], $this->clientId) !== 0)) {
            throw new HttpException(400, 'Invalid "aud"');
        }
    }
private function validateClaims ( array $ claims ) { if ( ! isset ( $ claims [ 'iss' ] ) || ( strcmp ( rtrim ( $ claims [ 'iss' ] , '/' ) , rtrim ( $ this -> issuerUrl , '/' ) ) !== 0 ) ) { throw new HttpException ( 400 , 'Invalid "iss"' ) ; } if ( ! isset ( $ claims [ 'aud' ] ) || ( strcmp ( $ claims [ 'aud' ] , $ this -> clientId ) !== 0 ) ) { throw new HttpException ( 400 , 'Invalid "aud"' ) ; } }
Validates the claims data received from OpenID provider.
@param array $claims claims data.
@throws HttpException on invalid claims.
Validates the claims data received from OpenID provider .