【问题标题】:Custom Oauth Server and ampersand in query string issue查询字符串问题中的自定义 Oauth 服务器和 & 符号
【发布时间】:2012-11-13 07:28:35
【问题描述】:

我一直在尝试将 oauth2 操场与 Laravel oauth2-server 捆绑包一起使用,但遇到了问题。授权发生后,我使用header('location: 将我带回谷歌。我放入重定向的字符串是

https://developers.google.com/oauthplayground/?state=1&code=d84024740acc22646b9636421406c88abeab9c8e 

但是,当我找到它时,& 已被替换为 &,这导致操场无法进入第 2 步。这是怎么回事?

【问题讨论】:

    标签: php laravel oauth2-playground


    【解决方案1】:

    您是否尝试过使用 Laravel 的 Redirect 类,而不是标题?它应该更好地处理编码:

    Redirect::to('https://developers.google.com/oauthplayground/?state=1&code=d84024740acc22646b9636421406c88abeab9c8e');
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-16
      • 2011-12-21
      • 1970-01-01
      • 1970-01-01
      • 2010-09-29
      • 2017-07-22
      相关资源
      最近更新 更多