oAuth post req during signIn Im getting Status Zero

Sumedh01Sumedh01 Member ✭✭
edited November 2018 in Xamarin.Forms
        var client = new RestClient("https://xxx.auth0.com");
        var request = new RestRequest("oauth/ro", Method.POST);
        request.AddParameter("client_id", "xxxxxxxx");
        request.AddParameter("username", Email);
        request.AddParameter("password", Password);
        request.AddParameter("connection", "Username-Password-Authentication");
        request.AddParameter("grant_type", "password");
        request.AddParameter("scope", "openid");

        IRestResponse response = client.Execute(request);
        LoginToken token = JsonConvert.DeserializeObject<LoginToken>(response.Content);

Im getting** Status Zero**. Im Using oAuth for Authentication.
Anyone have tried this earlier??
Please helpme Out, Im new to Auth Services

Answers

Sign In or Register to comment.