Pinterest redirect_uri query parameter

戏子无情 提交于 2020-01-04 11:02:16

问题


In my Pinterest app I have set the Redirect URI to https://my.site.com/pinterest/callback. When doing the redirection after authentication back to my site I append a sessionid so the query becomes https://my.site.com/pinterest/callback?sessionid=<string>. This doesn't seem to work as I get

The provided redirect_uri https://my.site.com/pinterest/callback?sessionId=YA6udv2FrdjjV8juij3U5oIBBP6RoEQWWUFNzSHKaHGGf3jRq10uJ2A0-R-eYB8LLwiBTbESEdGzMY0fhYI8d7gOe3kOoPuPS6c-mowaaJBDv0J8D2I does not match any of the registered redirect URIs."

In other apis like the Instagram one this is possible. Can anyone help with this? Thanks a bunch!


回答1:


I have been stucking with this for two days. Basically, Pinterest doesn't support custom parameters like other websites do, for Pinterest you need to provide the EXACT callback url and it has to use https not http, and if you need to pass custom parameters they should be in state parameter.

From Pinterest docs

state: A value you define. This can be used to make sure that the redirect back to your site or app wasn’t spoofed.

See Authentication section at https://developers.pinterest.com/docs/api/overview/



来源:https://stackoverflow.com/questions/34725093/pinterest-redirect-uri-query-parameter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!