private function realmHasAuthProvider($realmName)
    {
        foreach ($this->authMethods as $authMethod) {
            foreach ($authMethod['auth_realms'] as $authRealm) {
                if ($authRealm === "*" || $authRealm === $realmName) {
                    return true;
                }
            }
        }

        return false;
    }