ow
This commit is contained in:
1 parent
3461a2e921
commit
ddfbd7d0f2
17 files changed
+523
-241
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using CloudBuilder.Core.Application.Builders;
|
||||
using CloudBuilder.Core.Application.Options;
|
||||
using CloudBuilder.Core.Application.Packs;
|
||||
using CloudBuilder.Core.Extensions;
|
||||
using CloudBuilder.Core.Service;
|
||||
@@ -28,6 +29,14 @@ namespace CloudBuilder.Core.DependencyInjection.Service
|
||||
/// <returns></returns>
|
||||
public override IServiceCollection AddServices(IServiceCollection services, CloudBuilderBuilder builder)
|
||||
{
|
||||
services.AddFido2(options =>
|
||||
{
|
||||
// 你的配置:RelyingParty 配置,必须填写
|
||||
options.ServerDomain = builder.CloudBuilderOptions.WebAuthn.RpId; // 例如 localhost 或者正式域名
|
||||
options.ServerName = builder.CloudBuilderOptions.WebAuthn.RpName;
|
||||
// 可选:限制origin
|
||||
options.Origins = new HashSet<string> { builder.CloudBuilderOptions.WebAuthn.Origin };
|
||||
});
|
||||
var baseType = typeof(IService);
|
||||
|
||||
var allAssemblies = CloudBuilderBuilder.GetAssemblies();
|
||||
|
||||
Reference in new issue
Block a user