jjzjj

two-factor-authentication

全部标签

Windows 安装程序 : can two different installer share the same componet

我有两个安装程序-一个用于64位Windows,另一个用于32位Windows。32位安装程序安装32位可执行文件和DLls,而64位安装程序安装64位exe和dll以及32位的。32位组件由两个安装程序共享。WindowsInstaller是否明确允许这种情况?谢谢。 最佳答案 是的,这是受支持的。只需确保32位组件在两个安装程序中具有相同的名称和GUID。这样就为它们使用了引用计数。 关于Windows安装程序:cantwodifferentinstallersharethesame

windows - Jenkins Windows 从站 : Authentication failed if running as service

我有一个在Windows10(1607)上运行的Jenkins从站。如果我以JNLP的形式直接运行从站,这个从站可以从git存储库克隆(使用用户名和密码进行身份验证)。如果我启动同一个从服务器作为服务,gitclone会失败并显示Authenticationfailedfor...。该服务是通过从站的"file"菜单创建的,并作为“本地系统帐户”运行。出了什么问题?这是Jenins的输出:00:00:00.003Startedbyuser00:00:00.005ln-sbuilds/lastSuccessfulBuild/var/jenkins_home/jobs/Xamarin/jo

c# - Azure 存储 : 403 Server failed to authenticate the request

我在此处和Google中进行了搜索,但找不到解决方案。我想使用我的C#代码从Azure存储Blob中读取文件。代码(仅6行)在另一个项目(Windows8.1通用应用程序)中运行良好,但在我的新Windows10UWP应用程序中运行不佳。这是我的代码:CloudStorageAccountstorageAccount=CloudStorageAccount.Parse(azureConnectionString);CloudBlobClientblobClient=storageAccount.CreateCloudBlobClient();CloudBlobContainercont

c# - 更改默认的 ASP.NET 身份双因素记住 Cookie 过期时间

我一直在使用ASP.NETIdentity2.2.1。以下是VerifyCodeAction的post方法中的代码。varresult=awaitSignInManager.TwoFactorSignInAsync(model.Provider,model.Code,isPersistent:model.RememberMe,rememberBrowser:model.RememberBrowser);switch(result){caseSignInStatus.Success:returnRedirectToAction("Dashboard","Index");caseSignI

C#、Linq2Sql : Is it possible to concatenate two queryables into one?

我有一个可查询的,我在其中使用了各种Where和WhereBetween将集合缩小到特定集合的语句。现在我需要添加一种Where||WhereBetween。换句话说,我不能像到目前为止那样将它们链接在一起,因为那样可以用作And。那么,我该怎么做呢?我看到两种可能性:创建两个可查询对象,一个使用Where,另一个使用WhereBetween。然后连接它们。不知道这是否可能?此外,虽然不是我的特殊情况,但你很可能会得到重复项......以某种方式将Where表达式和在WhereBetween中创建的表达式与某种Or合并。第一个,如前所述,我什至不确定是否可能。如果是的话,我不太确定这是

c# - ASP.NET Core 2.0 预览版 1 : How to set up Cookie Authentication with custom login path

在ASP.NETCore2.0中,.UseAuthentication()中间件有一个重大更改,不再允许oldsyntaxmentionedhere去工作。新版本似乎在addAuthentication中处理配置,但我无法在任何地方找到任何关于如何更改指定自定义登录和注销url的旧代码的详细信息。services.AddAuthentication(o=>{//WherecanIspecifythis?????varopt=newCookieAuthenticationOptions(){LoginPath="/api/login",LogoutPath="/api/logout",}

c# - ASP.NET Web API Authentication.GetExternalLoginInfoAsync 总是返回 null

我有ASP.NET5项目,我正在使用WebAPI建立外部登录(用于Facebook和Google)。就我而言,我有包含以下代码的WebAPIController(不是MVCController):[OverrideAuthentication][HostAuthentication(DefaultAuthenticationTypes.ExternalCookie)][AllowAnonymous][Route("ExternalLogin",Name="ExternalLogin")]publicasyncTaskGetExternalLogin(stringprovider,str

c# - C# : generate a list of two dimension arrays with the same shape 中的 FsCheck

假设我正在编写一些视频分析代码。这是视频类的简化版本:publicclassVideo{publicreadonlyintWidth;publicreadonlyintHeight;publicreadonlyListFrames;publicVideo(intwidth,intheight,IEnumerableframes){Width=width;Height=height;Frames=newList();foreach(varframeinframes){if(frame.GetLength(0)!=height||frame.GetLength(1)!=width){thr

c# - Firebase 3 : creating a custom authentication token using . 网络和 c#

我正在尝试使用自定义token实现Firebase3身份验证机制(如https://firebase.google.com/docs/auth/server/create-custom-tokens中所述)。我的服务器是ASP.NETMVC应用程序。因此,根据说明(https://firebase.google.com/docs/server/setup),我为我的Firebase应用程序创建了一个服务帐户,并生成了一个“.p12”格式的key。之后,根据此处的说明(https://firebase.google.com/docs/auth/server/create-custom-t

c# - WebProxy 错误 : Proxy Authentication Required

我使用以下代码从互联网上获取html数据:WebProxyp=newWebProxy("localproxyIP:8080",true);p.Credentials=newNetworkCredential("domain\\user","password");WebRequest.DefaultWebProxy=p;WebClientclient=newWebClient();stringdownloadString=client.DownloadString("http://www.google.com");但出现以下错误:“需要代理身份验证”。我不能使用默认代理,因为我的代码是从