I'm trying to test my API with Identity Server Asp.net Core using Postman.
This is the way that I'm trying to do:
- First request
HttpGetto https://localhost:5000/Account/Login and in response body I received:<input name="__RequestVerificationToken" type="hidden" value="CfDJ8MoS9upoM4dNp8Kx-AdvA-uYr13_PAkuMZpzYMV8UmxZq5GdLTvN-Ht5NpTLmPtlhL5d5z2Hu2vUJoJGhk1AMlARDcOwqgq7Cef1dfQL_vl4tIFM4kx9RZPz8DHU26-U9qLnKAIstZgR42-1FuGNh24" />
And in Cookie (not sure for what it is though):

- Then
HttpPostto https://localhost:5000/Account/Login withRequestVerificationTokenwith token received from bodyHttpGetrequest.
And always error 400 as you can see at screen shot above.
In Visual studio I can see that some request was catched but clearly was incorrect.

If I'll remove attribute [ValidateAntiForgeryToken] then of course everything works fine but obviously because that validation is disabled.

__RequestVerificationToken. Note the double underscore at the start. - Brad