SAP / gigya-android-sdk

SAP CDC (Gigya) android sdk for mobile
Apache License 2.0
19 stars 13 forks source link

Social Login: Invalid redirect uri #50

Closed skyphantomhz closed 1 year ago

skyphantomhz commented 1 year ago

Hi, I'm working on social login (Microsoft, apple and Twitter). But got screen Failed connecting when i inspect the web view both of them return message.

errorCode: 400011,
errorMessage: 'Invalid redirect uri',
requestId: '84303c1f1cfc4a91b3fed7fa6317468d',
callId: '84303c1f1cfc4a91b3fed7fa6317468d'}

The docs(gigya-mircrosoft gigya-twitter) recommend me add url like https://socialize.au1.gigya.com/GS/GSLogin.aspx but i see the sdk use final String redirectUri = "gigya://gsapi/" + context.getPackageName() + "/login_result"; Then i replace redirectUri to url (https://socialize.au1.gigya.com/GS/GSLogin.aspx) and paste to browser, the error not happen.

Please help me

skyphantomhz commented 1 year ago

Hi, Anything new regarding this issue?

tal-mi commented 1 year ago

redirect Uri should include your application id / package (context.getPackageName()) In addition, see that you have whitelisted the redirect URI in your console.

skyphantomhz commented 1 year ago

Thanks for your response. You mean we need add redirect URI in gigya console or provider console(microsoft console, twitter console)

skyphantomhz commented 1 year ago

Thank you, finally i found Trusted Site URLs