I am trying to implement sample Call Your API Using the Client Credentials Flow
I am getting the token fine but the Auth call is failing.
Uri uri = new Uri($"{_url}/roles", UriKind.Absolute);
var client = new RestClient(uri);
var request = new RestRequest(Method.GET);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "Bearer " + _tokenResponse.access_token);
IRestResponse response = client.Execute(request);
The SSL connection could not be established, see inner exception. The remote certificate is invalid according to the validation procedure.