草庐IT

wcf-authentication

全部标签

mongodb - Meteor 项目部署和 mup 设置命令给出 "sshpass required for password based authentication"错误

我正在尝试部署一个基于Meteor的项目。我在服务器上使用nitrous.io,digitalocean,在MongoDB上使用compose.io。我已经想完成我的部署并运行“mup设置”命令并收到此消息:MeteorUp:ProductionQualityMeteorDeploymentssshpassrequiredforpasswordbasedauthentication尝试从此处http://git.io/_vHbvQ安装sshpass并运行命令“apt-getinstallsshpass”后,出现以下错误:E:Couldnotopenlockfile/var/lib/dp

java - 无法使用带参数的构造函数 NO_CONSTRUCTOR 实例化 org.springframework.security.authentication.UsernamePasswordAuthenticationToken

我正在使用MongoDB编写自己的TokenStore(org.springframework.security.oauth2.provider.token.TokenStore)实现。为此,我使用了thecodeofIainPorter.我能够在mongo中保留token。我通过Autowiring我的自定义TokenStore的一个实例来做到这一点,然后我将它传递给端点。因此,我可以毫无问题地登录,但无法从资源服务器的mongo存储库中检索token。我的猜测是,将数据库中的对象转换/映射回Java对象时存在一些问题,该类是OAuth2AuthenticationReadConve

node.js - Node Passport 错误 : Unknown authentication strategy "local-login"

我一直在尝试在nodejs上使用Passport进行本地身份验证,据我所知,我的所有代码都是正确的,但我一直收到关于“未知身份验证策略”的同样烦人的错误,所以也许其他人可以帮助我对于这个问题,我的代码如下所示。这是我在nodejs中配置Passport的代码。varpassport=require('passport');varLocalStrategy=require('passport-local').Strategy;varUser=require('../models/user');module.exports=function(passport){passport.seria

MongoDB shell 历史不记得 'authentications'

当我在名为“authentications”的集合上使用命令时,MongoDB(MacOSXLion上的2.0.4)交互式shell的命令行历史记录不起作用,但它似乎适用于其他所有内容。$mongomydbMongoDBshellversion:2.0.4connectingto:mydb>db.aimsx.find().count()45>现在如果我点击向上箭头,我会得到这个:>db.aimsx.find().count()工作正常。但是,现在我对集合“身份验证”运行命令:>db.authentications.find().count()795>当我现在点击向上箭头时,我得到了这个

authentication - 如何验证以查看 mongodb 的 http 控制台?

我正在使用以下行运行一个mongodb进程:/usr/bin/mongod--dbpath/var/db/mongo--journal根据mongodb的文档:http://www.mongodb.org/display/DOCS/Http+Interface我应该能够使用http://myhost:28017访问http控制台当我尝试访问该页面时,它要求进行身份验证。根据文档,如果配置了安全性,我将需要进行身份验证。但是在查看mongodb.org/display/DOCS/Security+and+Authentication之后,我似乎很清楚我没有使用任何身份验证。我不使用--a

WCF服务应用程序的创建和使用

1.创建WCF服务应用程序:https://blog.csdn.net/weixin_44690047/article/details/119087706usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Runtime.Serialization;usingSystem.ServiceModel;usingSystem.ServiceModel.Web;usingSystem.Text;namespaceWcfService1{//注意:使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件

c# - 为什么 WCF/Mongo 抛出异常 : An item with the same key has already been added

我有以下精简的DTO:[DataContract]publicclassChartDefinitionBase{[DataMember]publicstringId{get;privateset;}}...以及以下精简的Mongo服务定义:publicclassMongoChartService:IChartService{privatereadonlyIMongoCollection_collection;privateconststring_connectionStringKey="MongoChartRepository";internalMongoChartService(){

mongodb - 应用程序无法连接到带有 "Authentication failed"的 MongoDB Enterprise,Ops Manager 卡在 "AdjustUsers"

新部署的应用程序的凭据被MongoDB拒绝并显示“身份验证失败”。MongoDBOpsManager已经停留在“AdjustUsers”几个小时了。验证者:cfservice-connector8080opsmanager.service.consul:8080打开浏览器http://localhost:8080并使用在门户网站上获得的mongodb服务key登录:"ops_manager_url":"http://opsmanager.service.consul:8080","ops_manager_user":"xxx","ops_manager_password":"xxx",

Java Future - Spring Authentication 在 AuditorAware 中为空

这是我的场景:我的应用程序启用了Mongo审核,并使用自定义AuditorAware从SecurityContext获取当前用户。这适用于同步方法,并且成功保存了当前审计员,但我无法使用@Async方法使其正常工作。我有一个异步方法(CompletableFuture)可以对我的Mongo数据库进行一些更新。当调用AuditorAware.getCurrentAuditor()时,不存在身份验证信息,我无法获取当前审计员(SecurityContextHolder.getContext().getAuthentication()返回空)。@OverridepublicUsergetCu

navicat连接服务器报错:Client does not support authentication protocol requested by server解决办法

注:原因为MySql8.0.11换了新的身份验证插件(caching_sha2_password),原来的身份验证插件为(mysql_native_password)。而客户端工具NavicatPremium12中找不到新的身份验证插件(caching_sha2_password),对此,我们将mysql用户使用的登录密码加密规则还原成mysql_native_password,即可登陆成功。1、先登录mysqlmysql-uroot-p2、进入mysql数据库mysql>usemysql;3、查看user及hostmysql>selectuser,hostfromuser;user:root