# Local to Test/QA Server Application Testing

**URL:** <https://devforum.okta.com/t/local-to-test-qa-server-application-testing/1463>\
**Category:** Questions\
**Tags:** dotnet\
**Created:** [March 19, 2018, 7:29pm UTC](https://devforum.okta.com/t/local-to-test-qa-server-application-testing/1463 "2018-03-19T19:29:34Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![JDizonCK](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@JDizonCK](https://devforum.okta.com/u/JDizonCK)\
**Post date:** [March 21, 2018, 7:31pm UTC](https://devforum.okta.com/t/local-to-test-qa-server-application-testing/1463/8 "2018-03-21T19:31:34Z")

</div>

@nate.barbettini @frederico.hakamine Updated Code based on the Github update (3-21-18), Updated Startup.cs and web.config. Run locally (LocalHost) works great, gets to the Okta sign-in, logs in and returns to the application. Deployed code to test server, created new application with same setting as local except the URI’s. Able to get to the Okta sign-in, can log-in and Okta logs shows success in log-in, but still fails to do the redirect back to the application. Loops/ tries several times as to redirect (monitors via Fiddler) then just fails to a HTTP 400. Even tried setting the redirect URI to the base uri or uri that I know exists and yet still unable to redirect.

And to make sure my code is not the problem, I used the code from GitHub, works locally but once on the test server it fails to do the redirect after log-in.

Appreciate the help. Trying / testing Okta for our company as a SSO solution but if it’s only working locally, is not a great solution.

---

_[View the full topic](https://devforum.okta.com/t/local-to-test-qa-server-application-testing/1463)._
