ReviewR.Web.Services.Authenticators.MicrosoftAuthenticator.ParseResponse C# (CSharp) Method

ParseResponse() protected method

protected ParseResponse ( string jsonResponse ) : UserInfo
jsonResponse string
return ReviewR.Web.Models.UserInfo
        protected internal override UserInfo ParseResponse(string jsonResponse)
        {
            dynamic response = JObject.Parse(jsonResponse);
            string first = response.first_name;
            string last = response.last_name;
            string email = response.emails.preferred;
            string id = response.link;
            return new UserInfo(
                provider: Name,
                identifier: id,
                displayName: first + " " + last,
                email: email);
        }
MicrosoftAuthenticator