POSTMAN标题中的JWT令牌 [英] JWT Token in POSTMAN Header

查看:523
本文介绍了POSTMAN标题中的JWT令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在根据以下文章。我已经成功地从测试服务器收到了一个令牌。我不知道如何让Chrome POSTMAN REST客户端程序在标题中发送令牌。

I'm testing an implementation of JWT Token based security based off the following article. I have successfully received a token from the test server. I can't figure out how to have the Chrome POSTMAN REST Client program send the token in the header.

我的问题如下:

1)我使用正确的标题名和/或POSTMAN界面?

1) Am I using the right header name and/or POSTMAN interface?

2)我需要基于64个令牌的编码吗?我以为我可以发回令牌。

2) Do I need to base 64 encode the token? I thought I could just send the token back.

推荐答案

对于请求,头文件名只是使用授权。
在承诺之前放置承载。我只是试过了,它适用于我。

For the request Header name just use Authorization. Place Bearer before the Token. I just tried it out and it works for me.

授权:承载TOKEN_STRING

Authorization: Bearer TOKEN_STRING

JWT的每一部分是一个base64url编码值。

Each part of the JWT is a base64url encoded value.

这篇关于POSTMAN标题中的JWT令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆