예제 #1
0
        public JsonResult OAuthUserId(string clientId, string token)
        {
            if (string.IsNullOrEmpty(clientId))
            {
                throw new ArgumentNullException("clientId");
            }

            if (string.IsNullOrEmpty(token))
            {
                throw new ArgumentNullException("token");
            }

            var id = _authService.GetUserId(clientId, token);

            return(Json(id));
        }