1
0
mirror of https://github.com/XFox111/SimpleOTP.git synced 2026-07-02 19:52:42 +03:00

5 Commits

Author SHA1 Message Date
xfox111 beec314b3e 10.0.4 package version update 2026-06-03 16:26:09 +12:00
dependabot[bot] bd876fa0d1 Bump the all group with 4 updates (#58)
Bumps Microsoft.Extensions.Configuration.Binder from 10.0.7 to 10.0.8
Bumps Microsoft.Extensions.DependencyInjection.Abstractions from 10.0.7 to 10.0.8
Bumps Microsoft.NET.Test.Sdk from 18.5.1 to 18.6.0
Bumps NUnit from 4.5.1 to 4.6.1

---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Configuration.Binder
  dependency-version: 10.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all
- dependency-name: Microsoft.Extensions.DependencyInjection.Abstractions
  dependency-version: 10.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-version: 18.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: NUnit
  dependency-version: 4.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-03 16:22:40 +12:00
xfox111 14f45e1da5 10.0.3 package version update 2026-05-14 08:27:53 +00:00
xfox111 9327264f18 Fixed incorrect OTP config validation 2026-05-14 08:26:11 +00:00
xfox111 3cbb8003a7 Updated devcontainers config 2026-05-14 08:21:55 +00:00
5 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
{
"name": "SimpleOTP",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/dotnet:1-10.0",
"image": "mcr.microsoft.com/devcontainers/dotnet:10.0",
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
+2 -2
View File
@@ -10,8 +10,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.5.1" />
<PackageReference Include="NUnit" Version="4.5.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.6.0" />
<PackageReference Include="NUnit" Version="4.6.1" />
<PackageReference Include="NUnit3TestAdapter" Version="6.2.0" />
</ItemGroup>
@@ -9,7 +9,7 @@
<PropertyGroup>
<PackageId>EugeneFox.SimpleOTP.DependencyInjection</PackageId>
<Version>10.0.2.0</Version>
<Version>10.0.4.0</Version>
<Authors>Eugene Fox</Authors>
<Copyright>Copyright © Eugene Fox 2026</Copyright>
<NeutralLanguage>en-US</NeutralLanguage>
@@ -37,7 +37,7 @@
service in your application.
</Description>
<PackageReleaseNotes>
Updated `Microsoft.Extensions.Configuration.Binder` and `Microsoft.Extensions.DependencyInjection.Abstractions` to version 10.0.7.
Updated `Microsoft.Extensions.Configuration.Binder` and `Microsoft.Extensions.DependencyInjection.Abstractions` to version 10.0.8.
</PackageReleaseNotes>
</PropertyGroup>
@@ -57,8 +57,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.7" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.7" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.8" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.8" />
</ItemGroup>
</Project>
@@ -114,12 +114,12 @@ public partial record class OtpConfig
if (format.HasFlag(OtpUriFormat.Yubico))
{
if (config.Type == OtpType.Totp && config.Period is not 15 or 30 or 60)
if (config is { Type: OtpType.Totp, Period: not (15 or 30 or 60) })
errors.Add($"- '{nameof(config.Period)}' must be 15, 30 or 60.");
}
// Check for digits value
if (config.Digits is not 6 or 8)
if (config.Digits is not (6 or 8))
{
// Now it's time for IBM and Yubico to be weird
if (format.HasFlag(OtpUriFormat.IBM) && config.Digits is not 7 and not 9)
+2 -3
View File
@@ -15,7 +15,7 @@
<PropertyGroup>
<PackageId>EugeneFox.SimpleOTP</PackageId>
<Version>10.0.2.0</Version>
<Version>10.0.4.0</Version>
<Authors>Eugene Fox</Authors>
<Copyright>Copyright © Eugene Fox 2026</Copyright>
<NeutralLanguage>en-US</NeutralLanguage>
@@ -36,8 +36,7 @@
Feature-rich, fast, and customizable library for implementation TOTP/HOTP authenticators and validators.
</Description>
<PackageReleaseNotes>
- Added support for .NET 10
- Marked library as AOT compatible
- Fixed OTP config incorrect validation of TOTP period and code length.
</PackageReleaseNotes>
</PropertyGroup>