How to get code for accesstoken

public string Authorize()
string status = “”;
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls| SecurityProtocolType.Tls11| SecurityProtocolType.Tls12| SecurityProtocolType.Ssl3;
RestClient client = new RestClient(REQUESTTOKENURL);
RestRequest request = new RestRequest();
request.AddHeader(“Content-Type”, “application/json”);
request.AddParameter(“client_id”, “g9yrw3uey8wjasasaasamknzhrqzad8w”);
request.AddParameter(“redirect_uri”, “https://localhost:44111/”);
request.AddParameter(“response_type”, “code”);
request.AddParameter(“scope”, “full”);
request.Method = Method.GET;

            IRestResponse response = client.Execute(request);
            string content = response.Content;
            if (response.StatusCode == System.Net.HttpStatusCode.OK)
                var inf = content.Split(new string[] { "code=" }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault().Split('&').FirstOrDefault();
                status = inf;

        catch (Exception ex) {
            var error=ex.Message;

        return status;

please help,

@pradip_Kondalkar, I’m not sure what you’re asking, exactly? The process for generating an access token is laid out in the Authentication guide. Is there a particular part of the flow that is causing you problems?

Hey thanks for reply

yes when i try to make request for access code it redirect to sign in page but doesn’t go further
please help me with getting access code of access-token

Is the redirect_uri the same one that the Application was registered with when you setup your Key/Secret?