Adding a query parameter to the Instagram auth redirect_uri doesn't work?

后端 未结 3 1438
迷失自我
迷失自我 2021-01-17 11:41

Steps to reproduce

  1. Register a redirect_uri in the client: http://example.com/publisher/auth
  2. Direct a user to the /oauth/authorize endpoint with the
3条回答
  •  花落未央
    2021-01-17 12:25

    Had the same issue today. To get the custom data passed between requests you must include it as state param. My authorize request url looked something like this:

    https://www.instagram.com/oauth/authorize?client_id=SOME_CLIENT_ID&response_type=code&redirect_uri=http://example.com/auth/InstagramRedirect/&state=855C0114-F860-420A-AEB1-A276644FCCEA

    Notice the & and state=...

提交回复
热议问题