如何在 Azure API 管理的策略中包含令牌



我正在使用一个令牌,当包含在帖子请求的表单数据主体中时,该令牌在邮递员中起作用。如何在策略中包含令牌?

将令牌附加到入站标记中的请求正文解决了问题。

        string temp = context.Request.Body.As<string>(preserveContent: true); 
        temp = temp + "&token={{MyTokenName}}";
        return temp; 

相关内容

最新更新