plugin/create

Creates and returns access and refresh tokens for the given user and access rights.

Request

HTTP Request

POST /token/plugin/create

Authorization

Access JSON Web Token (ManagePlugin)

Request Body

In the request body, supply user identifier, rights and expiration date.

Property NameRequiredTypeDescription
tpcYesstringPermitted topic name.
eNodatetimeExpiration date (UTC).
tYesintegerToken type:
0 - REFRESH,
1 - ACCESS.

Response

If successful, this method returns a pair of access and refresh plugin tokens.

Property NameTypeDescription
accessTokenstringAccess JSON Plugin Web Token.
refreshTokenstringRefresh JSON Plugin Web Token.