public static async Task <TestClientUserData> CreateFromJsonAsync(string json) { TestClientUserData userData = JsonConvert.DeserializeObject <TestClientUserData>(json); userData.ReadTokens(); userData.UserInfoClaims = await userData.LoadUserInfoClaimsAsync(); return(userData); }
public async Task <TestClientUserData> GetUserClaimsAsync() { var json = UserData.GetAttribute("value"); if (json != null) { return(await TestClientUserData.CreateFromJsonAsync(json)); } return(null); }