You are viewing an old version of this content. View the current version.
Compare with Current View Version History
Version 1 Current »
The USTA API uses Okta as an identity provider organized using the OAuth2 access model. Web and mobile applications interact with Okta using https.
Applications can use one of two OAuth2 grant types:
Authorization Code used for browser applications where the user authenticates as themselves.
Client Credentials used for server-side applications where the service authenticates as the service and establishes a session.
After discussion with the USTA API team, USTA will issue credentials for the appropriate grant type to the application developers.
Stage Domain Name:
Replace {OKTA_DOMAIN} with https://account.usta.com/
Replace {AUDIENCE} with https://services.usta.com/
Registration URL: https://services.usta.com/en/registration.html
Okta (Target)
Cognito (Legacy)
Authorize endpoint
Method: GET
URL: /wiki/spaces/UDTP/pages/40676753780
Parameters:
client_id={client_id}
response_type=code
scope=openid offline_access
redirect_uri={client_redirect_uri}
audience= {AUDIENCE}
organization={organization_id}
state={state}
Token endpoint
(Authorization code flow)
Method: POST
Headers:
Authorization='Basic {client_id&client_secret}'
Body:
grant_type=refresh_token
refresh_token={refresh_token}
(Client credentials flow)
URL: /wiki/spaces/UDTP/pages/40550268943
grant_type=client_credentials
client_secret={client_secret}
Content-type: x-www-form-urlencoded
Refresh token endpoint
Logout endpoint
returnTo={logout_uri}
logout_uri={logout_uri}
Userinfo endpoint
Authorization='Bearer {ACCESS_TOKEN}'
Forgot password endpoint
Not directly supported by OKTA. Flow needs to be changed https://community.auth0.com/t/feature-request-allow-a-direct-link-to-forgot-password/60754
Signup endpoint
screen_hint=signup
Login endpoint
Get Customer endpoint
https://services.usta.com/v1/customers/me
Post Customer endpoint
https://services.usta.com/v1/customers
On This Page:
Overview
Grant Types - Might change need to check with Okta
Credentials
API Endpoints
Subtopics:
/wiki/spaces/UDTP/pages/40676753826
/wiki/spaces/UDTP/pages/40676753872
/wiki/spaces/UDTP/pages/40676753920
/wiki/spaces/UDTP/pages/40676753999
/wiki/spaces/UDTP/pages/40676754084
/wiki/spaces/UDTP/pages/40676754145
/wiki/spaces/UDTP/pages/40676754195
/wiki/spaces/UDTP/pages/40676754247
/wiki/spaces/UDTP/pages/40676754297
/wiki/spaces/UDTP/pages/40676754347
/wiki/spaces/UDTP/pages/40676754412
/wiki/spaces/UDTP/pages/40676755440