Connection problem accessing Auth extension

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.

What is the URL that you are using to make requests to? Is it your own server? If so, does it have a proper SSL certificate set up?

@phil.fitzgerald responded via email:

I am making a request to the Auth0 URL for the Authentication Extension but, I see I had the base url incorrect and was calling the authentication not the Authentication url.

Thanks,

Phil Fitzgerald

…was calling the authentication not the authorization url

I guess we have the problem sorted :smiley: