PowerApps自定义连接器AADSTS50011:请求中指定的回复URL与为应用程序配置的回复URL不匹配 [英] PowerApps Custom Connector AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application
问题描述
我正在尝试在PowerApps中创建自定义连接器,以便可以连接到我们的Jira Server.
I am trying to create a Custom Connector in PowerApps so I can connect to our Jira Server.
我正在尝试使用OAuth身份验证,但无法正确配置它. 我得到这个:
I am trying to use OAuth Authentication but I can't configure it properly. I am getting this:
AADSTS50011:请求中指定的回复网址与 回复为应用程序配置的网址:此处的应用程序ID"
AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: "App Id here"
在Azure中,我尝试将Reply URL更改为几件事,但是没有运气:
In Azure I have tried to change the Reply url to several things but with no luck:
- https://tenantName.tenantNamelogin.com/tenantName.onmicrosoft.com /oauth2/authresp
- https://login.windows.net/.auth/login/aad /callback
- http://localhost:31544
- http://localhost:61659/signin-oidc
- https://tenantName.tenantNamelogin.com/tenantName.onmicrosoft.com/oauth2/authresp
- https://login.windows.net/.auth/login/aad/callback
- http://localhost:31544
- http://localhost:61659/signin-oidc
我已经以管理员身份授予了多个权限(图形).我尝试使用管理员帐户和非管理员帐户登录,错误仍然相同. 我遵循了一些指南,包括这一个.
I have granted several rights (Graph) as admin. I have tried to login with admin accounts and non admin accounts, error remains the same. I have followed several guides including this one and this one.
是什么导致此错误,我该怎么做才能正确配置此错误?
推荐答案
您代码中的回复URL必须与Azure门户中的URL相同.
The reply url in your code must be the same as the one in azure portal.
您可以使用提琴手捕获请求的URL,您将在授权端点中找到redirect_uri.然后在Azure门户中使用它.
You can use the fiddler to capture the request url, you will find the redirect_uri in the authorize endpoint. Then use this one in Azure portal.
类似于https://login.microsoftonline.com/{tenant}/oauth2/authorize? client_id=6731de76-14a6-49ae-97bc-6eba6914391e &response_type=code &redirect_uri=http%3A%2F%2Flocalhost%3A12345 &response_mode=query &resource=https%3A%2F%2Fservice.contoso.com%2F &state=12345
复制redirect_uri
这篇关于PowerApps自定义连接器AADSTS50011:请求中指定的回复URL与为应用程序配置的回复URL不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!