If a JavaScript web application consumes a Portal federated service hosted on the same Internet Information Services (IIS) website as the Integrated Windows Authentication (IWA) configured Portal Web Adaptor, users of the application are directed to the Portal login page instead of being logged in automatically.