ADAL JS身份验证和查询字符串参数 [英] ADAL JS Authentication and Querystring Parameters

查看:170
本文介绍了ADAL JS身份验证和查询字符串参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我遇到了一个问题:我创建了一个由SharePoint Online托管的角度应用程序.

Angular服务使用ADAL通过使用Azure Active Directory应用程序来获取令牌,以便调用外部自定义的Rest服务.

如果我的页面没有参数,则一切正常.

如果我的代码尝试通过带有参数的页面(例如SharePoint文档集主页)对自身进行身份验证,则身份验证将失败,并显示以下错误:

在请求中指定的回复网址与为该应用程序配置的回复网址不匹配".

Hi to all.

I've a problem: I create an angular application hosted by SharePoint Online.

Angular service uses ADAL to get a token by using Azure Active Directory Application in order to invoke an external custom Rest Service.

All works fine if my page does not have parameter.

If my code try to authenticate itself from a page with parameter (e.g. SharePoint Document Set Home Page), the authentication fails with the error:

"The reply url specified in the request does not match the reply urls configured for the application".

文档设置主页(不带参数)列在应用程序回复"栏上.

Doc Set Home Page (without parameters) is listed on App Reply Urls.

有什么想法吗?

谢谢

塞尔吉奥

此致,
布布
http://zsvipullo.blogspot.it

如果有帮助,请标记我的答案,我将不胜感激.

Regards,
Bubu
http://zsvipullo.blogspot.it

Please mark my answer if it helped you, I would greatly appreciate it.

推荐答案

您是否通过设置来配置重定向URL选项中的redirectUri 选项 adalAuthenticationServiceProvider.init 方法?参考: http://www.cloudidentity.com/blog/2014/10/28/adal-javascript-and-angularjs-deep-dive/

Did you configure the redirect URL by setting redirectUri option in the adalAuthenticationServiceProvider.init method? Reference: http://www.cloudidentity.com/blog/2014/10/28/adal-javascript-and-angularjs-deep-dive/


这篇关于ADAL JS身份验证和查询字符串参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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