@AnandVyas - Here is the doc that I followed, along with the SAS general documentation.
https://support.sas.com/resources/papers/proceedings16/SAS3720-2016.pdf
Also , I found the logs for SAS EVM where the error is mentioned. The Environment manager was working fine until I set up the IWA. I am wondering how even after restoring back to what the configuration was, it is not working.
27-02-2020 22:44:12,100 CST ERROR [tomcat-http--17] [com.sas.svcs.security.authentication.web.providers.AbstractAuthenticationClientProvider@252] Log-on destination could not be found
com.sas.svcs.security.authentication.client.LogonFailureException: Unable to logon user: sasevs@saspw (server not responding) <!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">h1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> /SASLogon/v1/tickets</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Pivotal tc Runtime 3.2.5.RELEASE/8.5.13.B.RELEASE</h3></body></html>
at com.sas.svcs.security.authentication.client.AuthenticationClient.doLogon(AuthenticationClient.java:188)
at com.sas.svcs.security.authentication.client.AuthenticationClient.logon(AuthenticationClient.java:151)
at com.sas.svcs.security.authentication.client.AuthenticationClient.logon(AuthenticationClient.java:231)
at com.sas.svcs.security.authentication.client.AuthenticationClient.logon(AuthenticationClient.java:122)
at com.sas.svcs.security.authentication.web.providers.UsernamePasswordCasAuthenticationProvider.getAuthenticationClient(UsernamePasswordCasAuthenticationProvider.java:22)
at com.sas.svcs.security.authentication.web.providers.AbstractAuthenticationClientProvider.authenticate(AbstractAuthenticationClientProvider.java:247)
at com.sas.hyperic.security.UsernamePasswordCasAuthenticationProvider.authenticate(UsernamePasswordCasAuthenticationProvider.java:45)
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:156)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:168)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:230)