Zum Hauptinhalt springen

Kurzlebiges NATS App-JWT

Gibt ein kurzlebiges NATS-Token inkl. effektiver Subject-Berechtigungen für den aktuell authentifizierten User zurück.

Responses
200

Successful response

Schema OPTIONAL
token string
expiresInSeconds number
permissions object
pub object
allow string[]
deny string[]
sub object
allow string[]
deny string[]
identity object
userId string
spaceId string
email
role
400

Invalid input data

Schema OPTIONAL
message string

The error message

code string

The error code

issues object[] OPTIONAL

An array of issues that were responsible for the error

message string
401

Authorization not provided

Schema OPTIONAL
message string

The error message

code string

The error code

issues object[] OPTIONAL

An array of issues that were responsible for the error

message string
403

Insufficient access

Schema OPTIONAL
message string

The error message

code string

The error code

issues object[] OPTIONAL

An array of issues that were responsible for the error

message string
404

Not found

Schema OPTIONAL
message string

The error message

code string

The error code

issues object[] OPTIONAL

An array of issues that were responsible for the error

message string
500

Internal server error

Schema OPTIONAL
message string

The error message

code string

The error code

issues object[] OPTIONAL

An array of issues that were responsible for the error

message string