【发布时间】:2018-09-21 02:46:42
【问题描述】:
我正在使用以下 LDAP 配置与 hyperledger composer 一起使用 ldap 护照策略:
export COMPOSER_PROVIDERS='{
"ldap": {
"provider": "ldap",
"authScheme": "ldap",
"module": "passport-ldapauth",
"authPath": "/auth/ldap",
"callbackURL": "/auth/ldap/callback",
"successRedirect": "/",
"failureRedirect": "/",
"server": {
"url": "ldap://localhost:389",
"bindDn": "cn=admin,dc=example, dc=com",
"bindCredentials": "*****",
"searchBase": "ou=admin,dc=example,dc=com",
"searchFilter": "(uid={{username}})"
}
}
}'
在 github 身份验证中,我们通常必须转到 http://localhost:3000/auth/github/callback 并登录到 github。现在,在这种情况下,我应该在 web url 中提供什么,以便获得身份验证令牌。 http://localhost:3000/auth/ldap/callback 不会产生任何结果。那么我需要在 ldap 中的 web url 中传递现有的用户名吗?如果是,那么该 URL 应该是什么?
【问题讨论】:
标签: ldap passport.js hyperledger-composer