Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

This guide is a quick reference that lists the steps for accessing the customer information of the currently logged in user. In USTA parlance, this is 'Bound' access. In this mode, the customer UAID is bound to the session under which the user has logged in to USTA.com.  The token will restrict access to only data for this one UAID.

...

When working in Bound mode, 'me' represents the only customer to which you will have access to data.  In other words, data that is about me ie the logged in user.

Before Development

...

This is the API call.  Janrain only has two environments.  Please note the difference in base urls:

Test:  https://usta-dev.us-dev.janraincapture.com

Prod: https://usta-prod.us.janraincapture.com

Data/Payload

You must use the client_id and currentPassword assigned by USTA.  The signInEmailAddress is your unique user identity at Janrain. 

...

KeyValue
client_id<YOUR ASSIGNED JANRAIN CLIENT ID>
currentPassword<YOUR JANRAIN PASSWORD>
signInEmailAddress<YOUR UNIQUE EMAIL ADDRESS>
flowstandard
flow_version20161114171439489756
redirect_urihttp://localhost
response_typetoken
formsignInForm
localeen-US

...

This API calls the USTA OAuth Service to retrieve a JWT token that will be used to define the scope of permissions for future calls.  Please note that if you are working within the context of a browser application, this token will be visible to users and could be used for subsequent calls.  The scope restricts access as defined by USTA at the time of client_id setup  This is the equivalent of establishing a durable session.

Headers

This API call uses Basic Authorization.  Use the supplied client_id and secret to generate a Basic Authentication token.  There are many online generators you can use for testing.  One is here.

KeyValue
authorization'Basic [SUPPLY YOUR GENERATED BASIC AUTHENTICATION TOKEN]'

...

This is the API call.  Please note the difference in base urls:

Test:  https://stage-services.usta.com

Prod: https://services.usta.com

Result

The important info returned from this call are the following:

...

For instance, you can retrieve your Customer Profile information using the following API call:   https://stage-services/v1/customer/me

Headers

KeyValue
Content-Typeapplication/json
authorization'Bearer ZTc2ZGQxZWItZjVjMC00MDFiLWFjYTktZWYxZGRlNTcyYzg4OkhOOUU2U2ovdmtWUWEyR2pKYUxBSDF4WndWTzN0dHZWQmJRQnpRaVlpbWc1RWFvVVJ5bUVhTzc4SVRtNVh5NjQzSUo0UThTcHpTNXQ2c2Jz'

...