Authenticating Cloudera AI Inference service
Cloudera AI Inference service uses Cloudera Workload Authentication JSON Web Token (JWT) to authenticate users and clients that interact with all HTTP endpoints exposed by the service workload.
Authenticating using JWT: All client applications must present a valid JWT as an HTTP Authorization Bearer token, as shown in the following example:
$ export CDP_TOKEN=${JWT}
$ curl -H "Authorization: Bearer ${CDP_TOKEN}" <URL>
UMS Token Expiration
- UMS tokens expire after one hour by default.
- If a token is expired, the service returns an HTTP 401 Unauthorized response.
Supported JWT Issuers
Cloudera AI Inference service supports JWTs issued by the following identity providers:
- User Management Service (UMS) (part of the Cloudera Control Plane)
-
Obtain the CDP_TOKEN from the User Management Service (UMS) using either the
CDP CLI or Cloudera AI Inference service UI.
-
Set the
/tmp/jwt
file in the Cloudera AI Workbench.