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.

2 Likes

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?

1 Like

@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

1 Like

…was calling the authentication not the authorization url

1 Like

I guess we have the problem sorted :smiley:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.