MudraX.XAF.GoogleOtp
24.2.8.4
dotnet add package MudraX.XAF.GoogleOtp --version 24.2.8.4
NuGet\Install-Package MudraX.XAF.GoogleOtp -Version 24.2.8.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MudraX.XAF.GoogleOtp" Version="24.2.8.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MudraX.XAF.GoogleOtp" Version="24.2.8.4" />
<PackageReference Include="MudraX.XAF.GoogleOtp" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MudraX.XAF.GoogleOtp --version 24.2.8.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MudraX.XAF.GoogleOtp, 24.2.8.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MudraX.XAF.GoogleOtp@24.2.8.4
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MudraX.XAF.GoogleOtp&version=24.2.8.4
#tool nuget:?package=MudraX.XAF.GoogleOtp&version=24.2.8.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MudraX.XAF.GoogleOTP
SingleSignOn.Google OTP module for Devexpress XAF
Add reference to SSO.GoogleOTP in your Module project
Add this for Module.cs
RequiredModuleTypes.Add(typeof(MudraX.XAF.Core.UtilsModule)); RequiredModuleTypes.Add(typeof(MudraX.XAF.GoogleOTP.GoogleOTPModule));Remove ApplicationUser & ApplicationUserLoginInfo in BusinessObjects
Change using for ApplicationUser & ApplicationUserLoginInfo in Startup.cs
Change using for ApplicationUser & ApplicationUserLoginInfo in Updater.cs
add permission for user to save OTP secret key in Updater.cs CreateDefaultRole
// Add permissions for OTP module defaultRole.AddMemberPermissionFromLambda<ApplicationUser>(SecurityOperations.Write, "OtpSecretKey", cm => cm.Oid == (Guid)CurrentUserIdOperator.CurrentUserId(), SecurityPermissionState.Allow); defaultRole.AddMemberPermissionFromLambda<ApplicationUser>(SecurityOperations.Write, "OtpQrCode", cm => cm.Oid == (Guid)CurrentUserIdOperator.CurrentUserId(), SecurityPermissionState.Allow); defaultRole.AddMemberPermissionFromLambda<ApplicationUser>(SecurityOperations.Write, "IsOtpEnabled", cm => cm.Oid == (Guid)CurrentUserIdOperator.CurrentUserId(), SecurityPermissionState.Allow);Add this for Blazor/Web API Startup.cs
builder.Security .UseIntegratedMode(options => ... options.Events.OnSecurityStrategyCreated += securityStrategy => { ((SecurityStrategy)securityStrategy).PermissionsReloadMode = PermissionsReloadMode.NoCache; }; }) //.AddPasswordAuthentication(options => //{ // options.IsSupportChangePassword = true; //}); // Add the following line to enable the OTP authentication .AddAuthenticationProvider<AuthenticationStandardProviderOptions, OtpAuthenticationStandardProvider>(options => { options.IsSupportChangePassword = true; options.LogonParametersType = typeof(AuthenticationStandardLogonParameters); });Add this for Win Startup.cs
builder.Security .UseIntegratedMode(options => { ... options.Events.OnSecurityStrategyCreated += securityStrategy => { ((SecurityStrategy)securityStrategy).PermissionsReloadMode = PermissionsReloadMode.NoCache; // Add the following line to enable the OTP authentication var strategy = (SecurityStrategy)securityStrategy; strategy.Authentication = new OtpAuthentication(); }; }) .AddPasswordAuthentication();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- DevExpress.Document.Processor (>= 24.2.8)
- DevExpress.ExpressApp (>= 24.2.8)
- DevExpress.ExpressApp.CodeAnalysis (>= 24.2.8)
- DevExpress.ExpressApp.Security (>= 24.2.8)
- DevExpress.ExpressApp.Xpo (>= 24.2.8)
- DevExpress.Persistent.Base (>= 24.2.8)
- DevExpress.Persistent.BaseImpl.Xpo (>= 24.2.8)
- MudraX.XAF.Core (>= 24.2.8.4)
- Otp.NET (>= 1.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.