No email data returned with wl.signin, wl.emails scopes

I am using the https://github.com/jaredhanson/passport-windowslive NPM package to implement Microsoft account authentication for my NodeJS application. Recently (since April 22), I saw several cases in the server logs that show a user trying to log in, but the data in the OAuth callback to our server contains an empty array for letters. This is despite the fact that I explicitly indicate the area wl.signin,wl.emails. These cases are rare (occurring once or twice a day), but are frequent enough to annoy my service monitoring notifications.

This is a returned user object: note that in addition to the user ID that I hid for privacy reasons, all other fields are indeed null or empty, as indicated in the callback. {"id":"<id hidden>","displayName":null,"name":{"familyName":null,"givenName":null},"emails":[],"photos":[{"value":"https://apis.live.net/v5.0/<id hidden>/picture"}],"provider":"windowslive","_raw":"{\r \"id\": \"<id hidden>\", \r \"name\": null, \r \"first_name\": null, \r \"last_name\": null, \r \"gender\": null, \r \"emails\": {\r \"preferred\": null, \r \"account\": null, \r \"personal\": null, \r \"business\": null\r }, \r \"locale\": null\r}","_json":{"id":"<id hidden>","name":null,"first_name":null,"last_name":null,"gender":null,"emails":{"preferred":null,"account":null,"personal":null,"business":null},"locale":null}}

Has something changed recently on the Windows Live API server? Is there a mistake somewhere?

+4
source share
2 answers

Not sure if you have found a solution to your problem. Anyway, I came across the same problem.

Apparently, you will only receive an email address if "First Name" and "Last Name" are missing. If this information is filled out, the letter will not be provided. (in my case this was wrong, maybe this behavior has changed over time with MS)

, : "wl.contacts_emails"

, , : "wl.signin, wl.emails, wl.contacts_emails"

Oauth, , , . , , .

, , .

- , , / , .

0

. , .

(OneDrive) ( " " ) . API .

, - , ​​ .

0

All Articles