How to redirect user to original page after login via IdentityServer3
<p>I have very similar requirement described in this question <a href="https://stackoverflow.com/questions/39487444/get-redirect-link-from-client-in-identityserver3-login-page">Get redirect link from client in IdentityServer3 login page</a>. 
When user, being not logged in, opens any specific client application page, for example, from bookmarks, or when session expired, and user refreshes specific page or does some action, then s/he is redirected to login page of IdentityServer3. </p>

<p>But I am confused how to implement that original page is <em>remembered</em>, and user is redirected back to originally opened application page and not to the application root (configured as static redirect url in both idsrv3 and OIDC middleware). </p>

<p>Could someone please guide me if it is possible and how to do that?</p>

<p>My assumptions so far:</p>

<ol>
<li>Originally opened page should be somehow passed to idsrv3 login page, for example, as some redirect url query string parameter. And probably OIDC middleware should be adjusted/extended in order to do that?</li>
<li>Idsrv3 should support redirect url or it should be possible somehow to configure/extend it to support redirect url.</li>
<li>If idsrv3  doesn't not support such redirect fully, then might need to implement custom redirectUri validator to pass redirectUri validation (this is the only clear part).
Could</li>
</ol>

<p>My client application based on Angular 1.X, WebApi 2, OWIN and with three middleware configured: UseCookieAuthentication, UserIdentityServerBearerTokenAuthentication and UseOpenIdConnectAuthentication,  pretty <em>standard</em> setup. And application is a fork of IdentityManager with some modifications.</p>