我正在使用来自www.auth0.com和AngularJS的auth0-lock。 我能够通过一些参数如在SDK:https://auth0.com/docs/libraries/lock/customization#connections-array-使用auth0-angular自定义auth0-lock
auth.signin({
disableSignupAction: true,
socialBigButtons: true,
//these lines don't work
//no changes (username, password appears)
//connection: 'windows-live'
//this line returns 'No valid connection found'
//connections: 'windows-live'
//this line returns 'No valid connection found'
//connections: ['windows-live']
//this line doesn't change anything
//connection: ['windows-live']
}
,但我不能够通过连接(从SDK非角版本)
lock.show({
connections: ['twitter', 'facebook', 'linkedin']
});
这两个参数的连接或连接的别工作。
我的问题是,如果我不指定连接(连接)用户名和密码将出现。根据SDK,我需要对其进行硬编码,以隐藏这些字段。 由于SDK是为JS而不是AngularJS编写的,因此我似乎遇到了传递数组或参数的问题。 任何想法?
我没有提到这一点,但它不能正常工作。 结果与:“无法找到有效连接” 我已更新问题。 –