Authentication ADFS server from server side c#

Hi Guys,

I have been trying to implement the authentication to ADFS server that we setup locally. Evrything is working fine if we do this from Angularjs or you can say by using AUth0 login widget. But I am trying to implement authentication from server side. I have set up the deault directory to ADFS connection. After this I am getting error:
{“error”:“invalid_request”,“error_description”:“getaddrinfo ENOTFOUND win-s9jsjqo9n0g.matrix.loc win-s9jsjqo9n0g.matrix.loc:443”}

I am not sure why this occurring. I see that “win-s9jsjqo9n0g.matrix.loc” is the ADFS login URL from where user can login to our locally setup ADFS server.
Kindly revert me on this issue so that I can proceed further.

Thanks,
Satinder