persistent_id field when you read the user.printf 'OC|%s|%s' "$FEDERATED_APP_ID" "$FEDERATED_APP_SECRET" |
curl -X POST \
--data-urlencode "access_token@-" \
--data-urlencode "persistent_id=$PERSISTENT_ID" \
"https://graph.oculus.com/$FEDERATED_APP_ID/federated_user_gen_access_token/"
curl through standard input, which keeps the app secret out of the process list.POSThttps://graph.oculus.com/{federated_app_id}/federated_user_gen_access_token/| Name | Description |
|---|---|
{federated_app_id} | The federated application ID which can be obtained from the Developer Dashboard API page. |
| Name | Description | Optional | Type |
|---|---|---|---|
persistent_id | A unique immutable ID that is used for federated user indexing. • From 3-31 characters in length; dashes, underscores, colons and all alphanumeric characters allowed •Must be unique within the developer organization | String | |
access_token | Bearer token that contains OC|$FEDERATED_APP_ID|$FEDERATED_APP_SECRET | String |
| Name | Description | Optional | Type |
|---|---|---|---|
access_token | A federated access token for a federated user created under the same developer team as the targeted federated app belongs to. |