jjzjj

authenticity

全部标签

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# - 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");但出现以下错误:“需要代理身份验证”。我不能使用默认代理,因为我的代码是从

c# - 如何自定义 Forms Authentication cookie 名称?

我有2个网站在不同端口的本地主机上运行。由于浏览器在发送cookie时不区分端口号,我从一个站点发送的表单例份验证票据被发送到另一个站点我该如何解决这个问题?我认为一个好的解决方案是更改表单例份验证票证或其中一个网站,但我不知道该怎么做。 最佳答案 在你的web.config中: 关于c#-如何自定义FormsAuthenticationcookie名称?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.co

c# - ASP.net 核心网络 API : Using Facebook/Google OAuth access token for authentication

这几天我一直在尝试使用Google和Facebook进行OAuth身份验证,以便在我的ASP.net核心WebAPI项目中工作。我目前的状态是:我有一个ASP.net核心WebApi项目,其中的用户需要进行身份验证我有一个Angular2网络应用程序,它应该使用我的网络API(需要身份验证)我有一个android应用程序,它应该使用我的webapi(需要身份验证)我的目标是:使用Google/Facebook作为OAuth提供商进行登录稍后:添加自己的用户帐户(可能使用IdentityServer4)无需重定向到特殊的登录网站(如IdentityServer4解决方案)。只需点击应用程

php - PHP 中的 YouTube 分析 API : I keep getting "Insufficient permissions" while authenticated

我正在尝试使用OAUTH2在PHP中访问YouTubeAnalyticsAPI。在我的场景中,我首先检索channel数据,它工作正常(即使使用经过身份验证的段)。然后我在我的Analytics-call中解析channel-id。YouTubeAnalyticsAPI在我的GoogleDeveloperConsole中激活。我最终遇到以下错误:Anclienterroroccurred:ErrorcallingGEThttps://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3D##MY_CHANNEL

php - 带有 LDAP 错误 : User authentication is temporarily unavailable 的 Dokuwiki

我正在尝试在我的本地计算机上使用LDAP设置Dokuwiki。Dokuwiki版本是2014-05-05“PonderStibbons”身份验证设置authtype:authldap插件Authldap(捆绑插件)设置plugin»authldap»server:localhostplugin»authldap»port:10389plugin»authldap»usertree:ou=People,o=sevenSeasplugin»authldap»grouptree:ou=Groups,o=sevenSeasplugin»authldap»userfilter:plugin»au

php - GAPI : Failed to authenticate user. 永久修复 PHP

关闭。这个问题需要debuggingdetails.它目前不接受答案。编辑问题以包含desiredbehavior,aspecificproblemorerror,andtheshortestcodenecessarytoreproducetheproblem.这将有助于其他人回答问题。关闭7年前。Improvethisquestion我正在尝试从GAPI中获取内容,它有时可以正常工作,但有时会抛出此错误:ExceptionGAPI:Failedtoauthenticateuser.Error:"https://developers.google.com/accounts/docs/A

authentication - Yii - 具有自己的 UserIdentity 组件的模块

我已经开始使用Yii框架,我有一个关于UserIdentity组件使用的新手问题。我的应用程序有一个管理模块,它将充当显示到真实站点的内容的后台。此模块有自己的管理员表tbl_admin_user。我想将模块的登录方法(检查该表而不是tbl_user)与一般站点之一分开。为此,我假设我需要为模块而不是完整的应用程序实现UserIdentity的身份验证方法,如果我错了请更正。当我覆盖该方法时,我什么也得不到。管理模块使用位于*protected\components*的UserIdentity而不是它自己的。有什么建议吗? 最佳答案