Rederiction uri in a project webform .net

I have a Web Forms (.net 4.6) Project and i am trying to include authentication with external servers with Owin.Security.Keycloak.

I have already found examples of uri rederiction with mvc projects in which rederiction is triggered with but I cannot apply it in a webform project can you please tell me how I can do it