Joey
Joey

Reputation: 190

Verify ADFS account active C#

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.

Upvotes: 1

Views: 107

Answers (1)

rbrayb
rbrayb

Reputation: 46803

Indeed but it's not an ADFS function.

You need to query AD directly via LDAP calls.

Upvotes: 1

Related Questions