GET请求语法/REST Web服务方法调用/存储令牌信息 [英] GET Request syntax / REST Web Service method call / Storing Token information

查看:103
本文介绍了GET请求语法/REST Web服务方法调用/存储令牌信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Chrome浏览器中使用POSTMAN客户端调用REST Web服务方法.

I am using POSTMAN Client in Chrome Browser to call a REST web Service method.

首先,我使用POST调用身份验证方法并接收令牌,然后我使用GET调用另一种方法并将令牌包含在方法调用中.

First i call authentication method using POST and receive a token and then i am calling another method using GET and including the token in the method call.

尽管我在使用GET调用方法并将其包含令牌的情况下都获取了数据,而无论令牌是按以下方式发送的 标题参数或url参数

Though i am getting data back when i am calling the method using GET and including the token in it regardless token is sent as Header parameter or url parameter

我想知道并确认执行此操作的正确方法是什么,令牌应该放在哪里,参数应该放在哪里? 在标题或URL中?

I want to know and confirm what is the correct way to do it and where should the token go and where should the parameters go ? In Header or URL ?

谢谢

谢谢

推荐答案

如果要创建基于令牌的身份验证WCF Rest服务,请参考以下链接,

refer to the following link if you want to create a Token Based Authentication WCF Rest Service,


这篇关于GET请求语法/REST Web服务方法调用/存储令牌信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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