我已经在我的html中尝试并使用了gigya showLoginUI javascript插件。该插件渲染了社交图标。我正在尝试使用gigya的重定向功能。我在javascript中提到了redirectURL。仍然gigya不会重定向到指定的网址。请找到belwo代码示例
gigya.socialize.showLoginUI({
height: 85
,width: 100,
showTermsLink:false // remove 'Terms' link
,hideGigyaLink:true // remove 'Gigya' link
,buttonsStyle: 'standard' // Change the default buttons design to "Full Logos" design
,enabledProviders: 'facebook,twitter'
,showWhatsThis: false // Pop-up a hint describing the Login Plugin, when the user rolls over the Gigya link.
,containerID: 'loginDiv' // The component will embed itself inside the loginDiv Div
,sessionExpiration:0,
redirectURL:'https:...',
authCodeOnly:'true',
});
答案 0 :(得分:3)
根据gigya文档,如果redirectURL需要工作,showLoginUI js应该有param
authFlow:'redirect'
包含在其中。您的javascript中缺少此参数。请参阅
中的文件