partnerToken
is a secure, digitally signed JSON Web Token (JWT) issued by your IDP after it successfully authenticates one of your users. This token is proof that the user is who they say they are. You must pass this token to the Suki SDK during initialization. It contains verifiable information (claims) about the user and the token itself, such as an expiration time.
The partnerToken
must be signed using the RS256 (RSA Signature with SHA-256) algorithm.
exp
: The expiration time of the token, as a Unix timestamp.
aud
: The “audience” of the token, which can be a string or an array of strings.
iss
: The “issuer” of the token, which should be a string or URI that identifies your IDP.
User Identifier
: The token must contain a claim that uniquely identifies the user. This can be a standard claim like email, sub, or a custom claim like userId or username. You must notify Suki which claim to use as the primary user identifier.
partnerToken
.
While Suki supports several methods, using a JWKS_URL is the most common and recommended approach due to its adherence to open standards and ease of key rotation. The rest of this guide focuses primarily on the JWKS_URL method.
You will finalize your chosen method with the Suki team during the onboarding process. The table below outlines all available options.
Method | Description |
---|---|
STORED_SECRET | The public key is securely stored as an encrypted file in Suki’s database |
JWKS_URL | (Recommended)The public key is hosted at a public JWKS URL you provide. |
OKTA | The public key is stored in Okta, and you share the issuer URL with Suki. |
JWTASSERTION | The public key is shared as a JWT signed by Suki’s private key. |
partnerToken
(JWT) is signed using a private key that only your system controls. To verify that this token is authentic and has not been altered, Suki must use the corresponding public key. The JWKS URL provides a standard, secure way for Suki to access that key and confirm that the partnerToken
was legitimately signed by your IDP.
.well-known/openid-configuration
path.
partnerToken
to the Suki SDK during initialization. This token must be a standard JSON Web Token (JWT).
partnerToken
.
partnerToken
you will pass to the Suki SDK.
partnerToken
, Suki uses your partnerId
to find your registered JWKS URL and verify the token’s signature, trusting that the user has been properly authenticated by you.partnerToken
to the Suki SDK during initialization.
partnerToken
and your partnerId
to the Suki Developer Platform (SDP).
partnerToken
by verifying its signature against your public key.
partnerId
to identify your partner configuration.setPartnerToken
method when your application refreshes its own token.Missing configured user identifier
partnerToken
includes the user identifier claim that was specified during your onboarding.
Invalid or expired partnerToken
JWKS endpoint connectivity issues
Partner configuration issues
partnerId
you provide during SDK initialization is correct.
Token format problems
header.payload.signature
JWT format.
Key rotation issues
kid
) in the JWT header matches one of the keys listed in your JWKS endpoint.