OATH Tokens
OATH token data model
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
Date |
N/A |
Read-only |
The date the token was added to the environment. |
|
String |
N/A |
Read-only |
The ID of the environment the token is associated with. |
|
String |
Optional |
Immutable |
The algorithm used by the cryptographic hash function to generate OTPs. Can be any of the following values: |
|
Object |
Optional |
Immutable |
Object containing fields that are relevant only for HOTP tokens. |
|
Integer |
Optional |
Immutable |
The counter used by the HOTP token to generate OTPs. If not provided, 0 is used as the default value. |
|
String |
N/A |
Read-only |
The OATH token’s unique identifier. |
|
Integer |
Required |
Immutable |
Length of the OTPs generated - can be 6 or 8 |
|
Integer |
Optional |
Immutable |
When creating OATH tokens with data that originated in a seed file, |
|
String |
Required |
Immutable |
The OATH token’s secret key. Can be up to 200 characters and must be a hexadecimal value. Used only as an input parameter, does not appear in any responses. |
|
String |
Required |
Immutable |
The OATH token’s serial number. Can be up to 50 characters and all characters must be alphanumeric. |
|
Object |
Required |
Immutable |
Object containing fields that are relevant only for TOTP tokens. |
|
Integer |
N/A |
Read-only |
Difference between the token’s time and the server’s time, expressed in time steps. A positive value indicates that the token’s time is ahead. |
|
Integer |
Required |
Immutable |
Interval at which the OTP is refreshed - PingOne supports 30 seconds and 60 seconds. |
|
String |
Required |
Immutable |
Possible values are |
|
Date |
N/A |
Read-only |
The date the token was last updated. |
|
Array |
N/A |
Read-only |
Array of devices associated with an OATH token. |
|
String |
N/A |
Read-only |
ID of device associated with an OATH token. |
|
String |
N/A |
Read-only |
ID of user for a device associated with an OATH token. |
|
Array |
N/A |
Read-only |
Name of the array of tokens returned when all tokens are requested. |
OATH token batch creation data model
These properties are relevant only for batch creation of tokens.
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
N/A |
Read-only |
If the job status is |
|
Integer |
N/A |
Read-only |
The number of tokens created. |
|
Object |
N/A |
Read-only |
Contains information about tokens whose creation was requested but were skipped because they already exist in the environment. |
|
String |
N/A |
Read-only |
The secret for the OATH token, partially-hidden. |
|
Integer |
N/A |
Read-only |
The number of the row where the duplicate token was in the file whose content was imported. |
|
String |
N/A |
Read-only |
The serial number of the duplicate token. |
|
String |
N/A |
Read-only |
The status of the job. Can be |
|
Array |
Required |
Immutable |
Name of the array of tokens provided for creation. Each item in the array should include the same information you would include to create a single token, for example, serial number, as described in the OATH token data model table. |
|
String |
Required |
Immutable |
The type of job to run. For creation of tokens, set to 'CREATE_OATH_TOKENS'. Should not be confused with the |
OATH token batch revoking data model
These properties are relevant only for batch revoking of tokens.
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
Boolean |
Optional |
Immutable |
By default, revoke jobs revoke only unassigned tokens. Set |
|
String |
N/A |
Read-only |
If the job status is |
|
Integer |
N/A |
Read-only |
The number of tokens revoked. |
|
Array |
N/A |
Read-only |
Array of objects that contain information about the tokens that were not revoked because they are associated with a user. |
|
String |
N/A |
Read-only |
ID of device associated with the token that was not revoked. |
|
String |
N/A |
Read-only |
ID of user whose device is associated with the token that was not revoked. |
|
Array |
N/A |
Read-only |
Array of devices associated with the token that was not revoked. |
|
String |
N/A |
Read-only |
ID of the token that was not revoked. |
|
String |
N/A |
Read-only |
The status of the job. Can be |
|
Array |
Required |
Immutable |
Name of the array of tokens provided for revoking. Each element in the array should be the ID of the token to revoke. The maximum number of token IDs you can include in a batch revoke is 1000. |
|
String |
Required |
Immutable |
The type of job to run. For revoking of tokens, set to 'REVOKE_OATH_TOKENS'. |
OATH token resync data model
These properties are relevant only for resyncing tokens.
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
Array |
Required |
Immutable |
Required for resync requests. array of two OTPs for the token, used to calculate the resync. The two OTPs can be provided in a single request or in two separate requests. |