Al - Mahdi Ali bestowed the fortress Miftah as an appanage .
The rebel resided there until Al - Mahdi Ali 's demise in 1377 .
Al - Mahdi Ali bestowed the fortress Miftah as an appanage , and the rebel resided there until his demise in 1377 .