I want to check if my ADFS account is still active in C#. I request an RST token which I wanted to use to issue a new token and if this fails I want to display a message that their account it disabled.
The problem is that if I request a securitytoken via WS-Trust usernamemixed and delete the account that I requested the token with the securitytoken remains active to issue new tokens.
Is there any other way to verify if an ADFS account is still active from C# via an endpoint for example.
Indeed but it's not an ADFS function.
You need to query AD directly via LDAP calls.