3.1.12. Create token using basic auth


POST /access/token/login

Description

Creates a token for accessing the REST API via username/password. The user credentials must be passed in standard HTTP Basic Auth format. That is: 'Authorization: Basic <credentials>', where <credentials> is the base64 encoded value of '<username>:<password>'. The token returned is formatted as a JSON Web Token (JWT). The token is base64 encoded and comprised of three parts. The header, the body, and the signature. The expiration of the token is a contained within the body. The token can be used in the Authorization header in the format 'Authorization: Bearer <token>'.

Responses

HTTP Code Description Schema

200

successful operation

string

400

NiFi Registry was unable to complete the request because it was invalid. The request should not be retried without modification.

No Content

401

Client could not be authenticated.

No Content

409

NiFi Registry was unable to complete the request because it assumes a server state that is not valid. The NiFi Registry may not be configured to support login with username/password.

No Content

500

NiFi Registry was unable to complete the request because an unexpected error occurred.

No Content

Consumes

  • /

Produces

  • text/plain

Security

Type Name

basic

BasicAuth

Example HTTP request

Request path


/access/token/login

Example HTTP response

Response 200


         "string"