Categories

Versions

Get JWT (AI Hub) (Admin Tools)

Synopsis

Get a JSON Web Token (JWT) from an AI Hub.

Description

This operator gets a JSON Web Token (JWT) from an AI Hub on behalf of the user. The resulting ExampleSet contains both an unsigned token and a signed JWT (it contains a kid in the header and is labeled as bearer token in the ExampleSet). Depending on the use case, one or the other can be used for webservice queries downstream (e.g. using the GET, POST, etc... operators).

An AI Hub JWT can also allow users to request information about the AI Hub itself via the administrative AI Hub REST API. See https://app.swaggerhub.com/apis-docs/RapidMiner/Server for the full API specification.

As with other operators in this extension, the input of this operator requires an AI Hub Connection IOObject with sufficient information and credentials (server_url, client_secret, and refresh_token) to access the AI Hub API. You can create an AI Hub connection IOObject in Studio by going to Create Connections selection in the Connections menu. The client_secret and refresh tokens can be obtained by logging to the AI Hub as an administrator in the web interface and then directly navigating to this URL: [server_url]/get-token. If all the information is entered correctly, a new AI Hub Connection IOObject will appear in the Connections folder of your repository. This Connection IOObject now can be connected to any Admin extension operator con input port when needed.

Input

  • con (Connection)

    An AI Hub Connection IOObject.

Output

  • con

    The AI Hub Connection IOObject from the input port, delivered as a passthru.

  • exa (Data table)

    An ExampleSet containing an unsigned JWT (token) and a signed JWT (bearer token).

Parameters