My actual requirement is that I have 2 AWS servers on both servers, I have added the xml file, my requirement is that I want to login from our application page using email and password, in active directory This credential checks if the user exists and if so it should be returned to my application with user details like email id etc. I want to implement this functionality in PHP.
ADFS supports WS-Fed, SAML 2.0, and OpenId Connect, so you'll need a PHP client stack to implement one of these.
ADFS sits on top of AD, so it will check for users in AD.
You must use the ADFS login screen. Unable to use custom ones.