Exemplo n.º 1
0
        public ActionResult AccessToken(string id, string model)
        {
            id = Server.UrlDecode(id);
            var user = userReader.GetUser(id);

            ValidateAccess(user);
            userReader.GenerateAccessToken(id);
            ViewBag.UserId = id;
            return(View(new ReaderKey {
                Key = user.GetAccessToken()
            }));
        }