Beispiel #1
0
 // Replace local IP with localhost if the server does not accept IP
 private static string AdjustRedirectUrl(string url, OAuthServerOptions serverOptions)
 {
     if (serverOptions.IsSet(OAuthServerOptions.TokenReplaceLocalIpWithLocalHost))
     {
         return(url.Replace("127.0.0.1", "localhost"));
     }
     else
     {
         return(url);
     }
 }