Nguyen Van Dung
Nguyen Van Dung

Reputation: 1

Kong 0.10.x - JWT authentication get token access

On Kong document: https://getkong.org/plugins/jwt/#create-a-jwt-credential

After that step, how to i can get access token?

it's like: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhMzZjMzA0OWIzNjI0OWEzYzlmODg5MWNiMTI3MjQzYyIsImV4cCI6MTQ0MjQzMDA1NCwibmJmIjoxNDQyNDI2NDU0LCJpYXQiOjE0NDI0MjY0NTR9.AhumfY35GFLuEEjrOXiaADo7Ae6gt_8VLwX7qffhQN4

My issue:

Please help to clear that.

Thank you so much

Upvotes: 0

Views: 380

Answers (1)

Guilherme Antunes
Guilherme Antunes

Reputation: 41

Using the values returned by the API you'll be able to create the token yourself. In order to help you with that, you can use an existing implementation like this one in Node.js https://github.com/jwtk/njwt

Upvotes: 0

Related Questions