hirerId
is the SEEK hirer object identifier associated with your frontend’s user.
The returned browser token will only be able to access data related to the specified hirer.scope
is a space-separated list of permitted scopes, e.g. query:ontologies
or query:ad-products query:organizations
.
Each scope represents an action your frontend can perform with the returned browser token.Queries or mutations accepting browser tokens will indicate the required scope in their schema documentation.
You can combine multiple scopes together to allow a browser token to be reused across different operations.
However, including unnecessary scopes increases the security impact of a lost or compromised token.userId
is a partner-specified identifier for the end user of your software.For effective tracking and debugging this should uniquely identify an end user.
Do not include any personal information such as a legal name or email address.
Instead, you can use an anonymous identifier such as a numeric ID or UUID assigned by your software.graphql.seek.com
.auth.seek.com
issues your backend a partner token.POST https://graphql.seek.com/auth/token HTTP/1.1
Authorization: Bearer PARTNER_TOKEN_HERE
Content-Type: application/json
User-Agent: YourPartnerService/1.2.3
{
"hirerId": "seekAnzPublicTest:organization:seek:93WyyF1h",
"scope": "query:ad-products query:ontologies query:organizations",
"userId": "317665"
}
graphql.seek.com
validates your relationship with the SEEK hirer and issues your backend a browser token.HTTP/1.1 200 OK
Content-Type: application/json
{
"access_token": "BROWSER_TOKEN_HERE",
"expires_in": 3600,
"token_type": "Bearer"
}
expires_in
.
The cache expiry must be read from each response;
it cannot be hardcoded as the token lifetime is dynamic and may be updated without notice.
Alternatively, you can use an UNAUTHENTICATED
error from the GraphQL endpoint to trigger a new token request.
Caching browser tokens is important for frontend performance as requesting a new token can require multiple steps.Authorization
header when making requests to the GraphQL endpoint.POST https://graphql.seek.com/graphql HTTP/1.1
Authorization: Bearer BROWSER_TOKEN_HERE
UNAUTHENTICATED
error.You can use the self
query to return the associated SEEK hirer for a browser token.
This requires that the token includes the query:organizations
scope.
If the token has expired the query will fail with an UNAUTHENTICATED
error.