How can a foreigner with a residence permit to get «Vergi Mükellefiyet yazısı» («Tax Liability letter»)?

The way via e-Devlet turkiye.gov.tr/gib-ivd-mukellefiyetyazitalep does not work for me because this service redirects me to the Tax Offfice website ivd.gib.gov.tr which does not authenticate me via e-Devlet for an unknown reason:

2023-08-16--19-41-27

https://twitter.com/dmitrii_fediuk/status/1692070203159388470

The solution is to upgrade a «Potansiyel Vergi Kimlik Numarası» / «Non-citizen's potential tax number» to a real one.