For Tenant Management API (organization-level)
Tenant management is authenticated using your organization-level application. Tokens obtained with these credentials are scoped for tenant management operations only.How to get token
- Generate an RSA key pair and securely store the private key
- Provide the public key to Resistant AI so it can be registered for your OAuth2 client.
- Once completed, we return the corresponding client_id.
- Create JWT assertion token based on your private RSA key
- This assertion token will be used to authenticate against our okta authorization server.
- AT needs to contain:
- audience -> server toward which you’re authenticating
- issuer -> your client_id provided by us
- subject -> your client_id provided by us
- issuedAt
- expiration -> cannot have expiration longer than 60 minutes
- Helpful resource: https://developer.okta.com/docs/guides/build-self-signed-jwt/js/main/
- Send your JWT assertion token to the our okta authorization server (example below)
- This endpoint returns your access_token, which you can use to communicate with our Tenants API
Post to get token