请求中没有oauth代码(HWIOAuthBundle)


No oauth code in the request (HWIOAuthBundle)

在转到以下链接后,我得到了登录API(windows_live)之一的错误:

/登录/windows_live

我也尝试过谷歌,雅虎和linkedin,它正在为这些工作。

我配置的窗口与其他3个窗口的生活方式相同。

这是我的配置yml:

resource_owners:
    yahoo:
        type:                yahoo
        client_id:           X
        client_secret:       X
    google:
        type:                google
        client_id:           X
        client_secret:       X
        scope:               "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile"    
    windows_live:
        type:                windows_live
        client_id:           X
        client_secret:       X
    linkedin:
        type:                linkedin
        client_id:           X
        client_secret:       X
        scope:               r_basicprofile

你知道它从哪里来吗?

我找到了解决方案,文档中缺少范围:https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/resource_owners/windows_live.md

我不得不加上它:

        windows_live:
        type:                windows_live
        client_id:           X
        client_secret:       X
        scope:               wl.signin