From 17ebfca6a543a5a2c8b6ab8c2edb4126273f4ce2 Mon Sep 17 00:00:00 2001 From: Wiktor Lawski Date: Mon, 19 Oct 2020 21:41:25 +0200 Subject: [PATCH] Fix a few typos --- OAuthConsoleApp/OAuthConsoleApp/Program.cs | 2 +- OAuthConsoleApp/README.md | 2 +- OAuthDesktopApp/OAuthDesktopApp/MainWindow.xaml.cs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OAuthConsoleApp/OAuthConsoleApp/Program.cs b/OAuthConsoleApp/OAuthConsoleApp/Program.cs index dc1c5b6..8c930dc 100644 --- a/OAuthConsoleApp/OAuthConsoleApp/Program.cs +++ b/OAuthConsoleApp/OAuthConsoleApp/Program.cs @@ -74,7 +74,7 @@ private async void doOAuth() // Creates an HttpListener to listen for requests on that redirect URI. var http = new HttpListener(); http.Prefixes.Add(redirectURI); - output("Listening.."); + output("Listening..."); http.Start(); // Creates the OAuth 2.0 authorization request. diff --git a/OAuthConsoleApp/README.md b/OAuthConsoleApp/README.md index 5883641..d6345f2 100644 --- a/OAuthConsoleApp/README.md +++ b/OAuthConsoleApp/README.md @@ -14,7 +14,7 @@ an embedded browser). This sample demonstrates how you can open the user's browser with your OAuth 2.0 authorization request (where they might already be logged in!), have them -complete the consent, recieve the Authorization Code using a local loopback +complete the consent, receive the Authorization Code using a local loopback socket, and exchanging that code for authorization tokens. Google Documentation diff --git a/OAuthDesktopApp/OAuthDesktopApp/MainWindow.xaml.cs b/OAuthDesktopApp/OAuthDesktopApp/MainWindow.xaml.cs index 68c9138..1a620fc 100755 --- a/OAuthDesktopApp/OAuthDesktopApp/MainWindow.xaml.cs +++ b/OAuthDesktopApp/OAuthDesktopApp/MainWindow.xaml.cs @@ -68,7 +68,7 @@ private async void button_Click(object sender, RoutedEventArgs e) // Creates an HttpListener to listen for requests on that redirect URI. var http = new HttpListener(); http.Prefixes.Add(redirectURI); - output("Listening.."); + output("Listening..."); http.Start(); // Creates the OAuth 2.0 authorization request. @@ -245,11 +245,11 @@ public static string randomDataBase64url(uint length) /// /// Returns the SHA256 hash of the input string. /// - /// + /// /// - public static byte[] sha256(string inputStirng) + public static byte[] sha256(string inputString) { - byte[] bytes = Encoding.ASCII.GetBytes(inputStirng); + byte[] bytes = Encoding.ASCII.GetBytes(inputString); SHA256Managed sha256 = new SHA256Managed(); return sha256.ComputeHash(bytes); }