我正在尝试在我的asp.net Web应用程序中使用实时身份验证.我按照下面的帖子中的步骤
在本地主机中创建应用程序和设置域工作正常.在应用设置中设置重定向网址是个问题.当我运行应用程序时,它会提示错误
"输入参数'redirect_uri'的提供值无效.预期值为' https://login.live.com/oauth20_desktop.srf '或与此客户端应用程序注册的重定向URI匹配的URL."
我试过" http://www.mysampleapp.com/Account/ExternalLoginCallback "和" http://www.mysampleapp.com/signin-microsoft".它不起作用的网址.(mysampleapp是我在本地托管的网址)
当我点击外部认证部分中的"Microsoft"时,我将被定向到以下网址
"https://login.live.com/err.srflc=1033#error=invalid_request&error
_description=The%20provided%20value%20for%20the%20input%20parameter%20'redirect_uri'%
20is%20not%20valid.%20The%20expected%20value%20is%20'https://login.live.com/oauth20_desktop.srf
'%20or%20a%20URL%20which%20matches%20the%20redirect%20URI%20registered%20for
%20this%20client%20application."
Run Code Online (Sandbox Code Playgroud)
有什么办法找出网址?
我正在运行一个PowerShell脚本,它安装了sharepoint先决条件.在需要重新启动安装服务器并且必须运行另一个脚本之后
有没有办法在powershell中自动化这个过程?
重启并恢复?