protected static void StartWebServer()
 {
     if (ws == null)
     {
         X509Certificate2 certificate = new X509Certificate2("certificate.crt", "");
         ws = new SimpleWebServer(myBaseUrl.ToString(), certificate);
         ws.addUrlAction("/my_public_keys.jwks", RespondWithJwks);
         ws.addUrlAction("/id_token_flow_callback", IdTokenFlowCallback);
         ws.addUrlAction("/code_flow_callback", CodeFlowCallback);
         ws.addUrlAction("/request.jwt", RequestUriCallback);
         ws.addUrlAction("/initiated_login", ThirdPartyInitiatedLoginCallback);
         ws.Run();
     }
 }