예제 #1
0
        public static async Task <TestClientUserData> CreateFromJsonAsync(string json)
        {
            TestClientUserData userData = JsonConvert.DeserializeObject <TestClientUserData>(json);

            userData.ReadTokens();
            userData.UserInfoClaims = await userData.LoadUserInfoClaimsAsync();

            return(userData);
        }
예제 #2
0
        public async Task <TestClientUserData> GetUserClaimsAsync()
        {
            var json = UserData.GetAttribute("value");

            if (json != null)
            {
                return(await TestClientUserData.CreateFromJsonAsync(json));
            }
            return(null);
        }