AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 07.11.2014, 04:22   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
david_kidder: AzureADSamples on GitHub - Unauthorized Error on Published App (NativeClient-DotNet Sample)
Источник: http://blogs.msdn.com/b/david_kidder...et-sample.aspx
==============

I've been working through some of the AzureAD samples that are out on GitHub to try to get acquainted with how all this stuff works (i.e. Azure AD, ADAL, OpenID Connect).  I was having some problems getting the sample service code running on my machine so I decided to just publish the service to Azure in the hopes that a published app would work better.  For some of the samples it did indeed work better, but for the samples that try to illustrate calling a WebAPI from a native client, I was running into a road block where I was getting an Unauthorized error when I sent a request with what looked to be a legit Authorization Header.  Just prior to throwing my keyboard at Matt Sampson, I decided to check the instructions one more time to see if there were some specific to publish.  Sure enough there were (I had of course skipped these, because if there is one area of web development that I have a lot of experience, it is publishing).

The most important step in these instructions is:
On the Settings tab (of the publish wizard), make sure Enable Organizational Authentication is NOT selected. Click Publish.



That got rid of my Authorization problem, as checking it (which it was by default for this project) caused the web.config to have the ida:Audience setting messed up.

Hopefully this article saves you some time if you run into this.  Onto the next Azure AD challenge...




Источник: http://blogs.msdn.com/b/david_kidder...et-sample.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 21:46.