Reputation: 1
I have error "401 Unauthorized" when try create application by request:
POST //pool-lync-fe02.****.net/ucwa/v1/applications HTTP 1.1
Two another requests is correct and returns "OK":
POST https://pool-lync-fe02.****.net/WebTicket/oauthtoken and
GET //pool-lync-fe02.****/Autodiscover/AutodiscoverService.svc/root/oauth/user?originalDomain=moscow.alfaintra.net
After AutodiscoverService i have this(lines have different sites!):
self":{"href":"//pool-lync-fe02.****.net/Autodiscover/AutodiscoverService.svc/root/oauth/user
applications":{"href":"//webext.****.ru/ucwa/oauth/v1/applications
xframe":{"href":"//webext.****.ru/Autodiscover/XFrame/XFrame.html
Please, help. Why token failed when get created ucwa apps?
Upvotes: 0
Views: 1385
Reputation: 11
Each time when you target a different host, in your case webext.***.ru vs pool-lync-fe..., you need to get a new oauth token where the audience is pointing to the host of the HTTP request you are sending it to.
Ganesh
Upvotes: 1