Example #1
0
        public ActionResult EnsureAuthorization(string provider, int userId)
        {
            OAuthAuthorizationResult result = null;
            OAuthClient client = OAuthClient.GetClient(provider);

            if (client != null)
            {
                result = client.EnsureAuthorization(userId);
            }

            return(Json(result));
        }