문제

I get this error for one of the login API (windows_live) after going to this link :

/login/windows_live

I tried with also with google, yahoo, and linkedin and it's working for these.

I configured windows live in the same way than the 3 others.

Here is my config.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

Do you have any idea of where it can come from ?

도움이 되었습니까?

해결책

I found the solution, the scope was missing in the doc : https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/resource_owners/windows_live.md

I had to add it :

        windows_live:
        type:                windows_live
        client_id:           X
        client_secret:       X
        scope:               wl.signin   
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top