Skip to content

Commit 83fc803

Browse files
authored
Merge pull request #122 from BrandonPotter/feature/Final30Prep
Tidied up for v3 release
2 parents 9973bec + 9b894ec commit 83fc803

2 files changed

Lines changed: 8 additions & 15 deletions

File tree

Google.Authenticator/Google.Authenticator.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Description>Google Authenticator Two-Factor Authentication Library (Not officially affiliated with Google.)</Description>
88
<Authors>Brandon Potter</Authors>
99
<Company>Brandon Potter</Company>
10-
<Version>3.0.0-beta2</Version>
10+
<Version>3.0.0</Version>
1111
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1212
<PackageProjectUrl>https://github.com/BrandonPotter/GoogleAuthenticator</PackageProjectUrl>
1313
<PackageId>GoogleAuthenticator</PackageId>
@@ -29,6 +29,6 @@
2929
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb
3030
</AllowedOutputExtensionsInPackageBuildOutputFolder>
3131
<PublishRepositoryUrl>true</PublishRepositoryUrl>
32-
<AssemblyVersion>2.0.1.0</AssemblyVersion>
32+
<AssemblyVersion>3.0.0.0</AssemblyVersion>
3333
</PropertyGroup>
3434
</Project>

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ Simple, easy to use server-side two-factor authentication library for .NET that
66

77
[`Install-Package GoogleAuthenticator`](https://www.nuget.org/packages/GoogleAuthenticator)
88

9-
## 1.x Usage
10-
See blog post for usage instructions *(1.x only)*:
11-
12-
https://csharprookie.wordpress.com/2015/03/17/implementing-free-two-factor-authentication-in-net-using-google-authenticator/
13-
14-
## 2.x Usage
9+
## Usage
1510

1611
*Additional examples at [Google.Authenticator.WinTest](https://github.com/BrandonPotter/GoogleAuthenticator/tree/master/Google.Authenticator.WinTest) and [Google.Authenticator.WebSample](https://github.com/BrandonPotter/GoogleAuthenticator/tree/master/Google.Authenticator.WebSample)*
1712

@@ -34,24 +29,22 @@ TwoFactorAuthenticator tfa = new TwoFactorAuthenticator();
3429
bool result = tfa.ValidateTwoFactorPIN(key, txtCode.Text)
3530
```
3631

37-
## Updates
32+
## Update history
3833

39-
### 3.0.0-beta2
40-
Changed from using `EscapeUriString` to `EscapeDataString` to encode the "account title" as the former is [obsolete in .Net 6](https://docs.microsoft.com/en-us/dotnet/fundamentals/syslib-diagnostics/syslib0013). This changes the value in the generated data string from `a@b.com` to `a%40b.com`. We have tested this with Google Authenticator, Lastpass Authenticator and Microsoft Authenticator. All three of them handle it correctl and all three recognise that it is still the same account so this should be safe in most cases.
34+
### 3.0.0
4135

42-
### 3.0.0-beta1
4336
- Removed support for legacy .Net Framework. Lowest supported versions are now netstandard2.0 and .Net 4.6.2.
4437
- All use of System.Drawing has been removed. In 2.5, only Net 6.0 avoided System.Drawing.
4538
- Linux installations no longer need to ensure `libgdiplus` is installed as it is no longer used.
39+
- Changed from using `EscapeUriString` to `EscapeDataString` to encode the "account title" as the former is [obsolete in .Net 6](https://docs.microsoft.com/en-us/dotnet/fundamentals/syslib-diagnostics/syslib0013). This changes the value in the generated data string from `a@b.com` to `a%40b.com`. We have tested this with Google Authenticator, Lastpass Authenticator and Microsoft Authenticator. All three of them handle it correctly and all three recognise that it is still the same account so this should be safe in most cases.
4640
4741
### 2.5.0
42+
4843
Now runs on .Net 6.0.
4944
Technically the QR Coder library we rely on still does not fully support .Net 6.0 so it is possible there will be other niggling issues, but for now all tests pass for .Net 6.0 on both Windows and Linux.
5045

5146
## Common Pitfalls
5247

5348
* Old documentation indicated specifying width and height for the QR code, but changes in QR generation now uses pixels per module (QR "pixel") so using a value too high will result in a huge image that can overrun memory allocations
5449
* Don't use the secret key and `ManualEntryKey` interchangeably. `ManualEntryKey` is used to enter into the authenticator app when scanning a QR code is impossible and is derived from the secret key ([discussion example](https://github.com/BrandonPotter/GoogleAuthenticator/issues/54))
55-
56-
# Notes
57-
*With versions prior to 3.0*, on linux, you need to ensure `libgdiplus` is installed if you want to generate QR Codes. See [https://github.com/codebude/QRCoder/issues/227](https://github.com/codebude/QRCoder/issues/227).
50+
* *With versions prior to 3.0 only*, on linux, you need to ensure `libgdiplus` is installed if you want to generate QR Codes. See [https://github.com/codebude/QRCoder/issues/227](https://github.com/codebude/QRCoder/issues/227).

0 commit comments

Comments
 (0)