
ruoji (ruoji) asked a question.
I am trying to integrate Okta as the OAuth provider for my CommerceTools project. CommerceTools performs token introspection and it requires the API to complete introspection within 500ms.
It seems that Okta takes ~1 second to respond (including all TCP/SSL overhead). My CommerceTools server is located in Europe (GCP) and I am not sure where my Okta instance is located, as I am evaluating the service and I have yet to pay for the service.
This is the example request:
curl --request POST \
--url 'https://dev-09263567.okta.com/oauth2/default/v1/introspect' \
-w "\n\n%{time_connect} + %{time_starttransfer} = %{time_total}\n" \
-H 'Authorization: Basic MG9hN....TA==' \
-H 'cache-control: no-cache' \
-H 'content-type: application/x-www-form-urlencoded' \
-d 'token=eyJraWQiOiJPR1c2dXNw....Q'
Is this normal that it takes this long or can I do anything to improve performance?

Hi @Erik Slagter (Customer),
It looks like your Okta instance is in US (us-east-1). Anyway, I tested this a bit from my location (North America) and response times are between 0.15-0.60 seconds. I don't know if there's a way to improve the performance, but with payed contract I would assume you'll at least hit the Okta's Germany servers.
-Jani
Thanks Jani, I will try and get a paid account and see if that resolves this issue!