我正在使用來自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編寫的,因此我似乎遇到了傳遞數組或參數的問題。 任何想法?
我沒有提到這一點,但它不能正常工作。 結果與:「無法找到有效連接」 我已更新問題。 –