duanpu2272 2019-06-28 11:05
浏览 33

LinkedIn API不会在解析查询字符串的情况下重定向

I'm trying to add intagram login on my hotspot page, however I need some query string data when user is redirected back to my page

I'm using league/oauth2-instagram package After I authorize instagram api, I'm redirected back to my page but only with state and code, the query string passed on redirect_uri are wipped out

What am I doing wrong? When I try at the second time after logged in and authorized, I get redirected with full URL params

Note: This auth flow is beeing used on CNA (Captive Portal)

This is the URL after authorization

/hotspot/sociallogin?code=f74d925d93b04887b81bfa8e351bce0d
state=342013854629631bdd8dcd252dc0bd0c

This is URL to redirect user to authorize API

https://api.instagram.com/oauth/authorize?state=854c56e92ead4e6f3738e6bc87185a65
scope=basic
response_type=code
approval_prompt=auto
redirect_uri=https%3A%2F%2Fmyurl-example.net%2Fhotspot%2Fsociallogin%3Flogintype%3Dinstagram%26permalink%3Dmypermalink%26ip%3DUSERIP%26mac%3DMACADDRESS%26linkloginonly%3D%26chapchallenge%3D%26chapid%3D%26client_id%3DMY_CLIENT_ID

This is what I want after authorize Instagram API :

https://myurl-example.net/hotspot/sociallogin?logintype=instagram&permalink=mypermalink&ip=USERIP&mac=MACADDRESS&linkloginonly=&chapchallenge=&chapid=&client_id=MY_CLIENT_ID
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 msix packaging tool打包问题
    • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
    • ¥15 python的qt5界面
    • ¥15 无线电能传输系统MATLAB仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线