dongquan0024 2012-07-18 21:40
浏览 508

使用redirect_uri Shopify OAuth身份验证将返回invalid_request

I am working on creating a shopify and have run into some problems. When trying to authenticate the users, I get this error message:

{
    "error": "invalid_request",
    "error_description": "The redirect_uri and application url must have matching hosts"
}

The redirect_uri and Application URL are both set to 'http://serv.dudeami.com/shopify/public/'. I am not sure if its the subdomain throwing it off, but no matter what I changed the redirect_uri to it would not work. I am url encoding the redirect_uri.

I decided to do some test, and I can only get it to work with setting the client_id and scope. Without setting the scope or having an empty scope, I get an 'invalid_scope' error (even though the API docs say https://SHOP_NAME.myshopify.com/admin/oauth/authorize?client_id=API_KEY is accepted for basic permissions).

This isn't a huge issue, as I can just detect if there was a 'code' param sent and handle the installation that way, but I'd much rather have it sent to a page specifically setup for handling the install process (Verification, Token Exchange, etc).

  • 写回答

1条回答 默认 最新

  • duanfangbunao36970 2012-07-20 04:58
    关注

    Seems I made a silly mistake and the redirect_uri got urlencoded twice.

    评论

报告相同问题?

悬赏问题

  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法