Implicit Auth. Flow - No Access Token Appended on

2019-08-31 06:08发布

I made a web app with Instagram API that uses Client-Side (Implicit) Authentication.

I redirect the user to

https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=token

and the Instagram log-in page appears. Normally, Instagram redirects the app to

http://your-redirect-uri#access_token=ACCESS-TOKEN

And I grab the access_token to use it in the app. This works in Chrome, Firefox, and Edge on my pc.

However, the redirection doesn't work on my iPhone 6. I tried both Chrome and Safari. The redirected address turns out to be the one without #access_token appended, i.e:

http://your-redirect-uri

Is it something to do with security and impossible to work, or am I missing something?

1条回答
一纸荒年 Trace。
2楼-- · 2019-08-31 06:34

Turns out the redirect URI has to end with a / for proper redirection on iOS.

查看更多
登录 后发表回答