简体   繁体   English

Azure 逻辑应用程序 HTTP 触发身份验证问题

[英]Azure Logic Apps HTTP Trigger auth issue

I'm running a HTTP as trigger to hit an endpoint which takes in username and parameters and issues an Access Token for use with future requests.我正在运行 HTTP 作为触发器来命中一个端点,该端点接受用户名和参数并发出访问令牌以供将来的请求使用。 Below is my HTTP, which is giving me: {"error_code":"103","error_message":"Username or Password cannot be empty"}下面是我的 HTTP,它给了我:{“error_code”:“103”,“error_message”:“用户名或密码不能为空”}

I even tried changing the Authentication to Basic and entered username and password in the credentials sections, still same error.我什至尝试将身份验证更改为基本并在凭据部分输入用户名和密码,仍然是同样的错误。

I debuged this, by pinging the URI using postman with POST request, passing credentials and it worked and I received the Access token.我调试了这个,通过使用 postman 和 POST 请求 ping URI,传递凭据并且它工作并且我收到了访问令牌。

在此处输入图像描述

Your body content perhaps should be inside the URI您的正文内容可能应该在 URI 内

https://.....API/Login?username=XXXX&password=YYYY

I got it but passing creds in the body,我明白了,但在身体里传递了信誉,

{ "username":"xxx", "password":"yyy" } { "用户名":"xxx", "密码":"yyy" }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM