locked
Can't authenticate to sandbox RRS feed

  • Question

  • Following the directions in https://ucwa.lync.com/documentation/KeyTasks-CreateApplication, I and working with a C++ client (not Javascript like much of the samples assume), and and getting stuck at step 5, "Send a POST request on the OAuth URL."

    What do I use for credentials to authenticate to the sandbox environment?  Presumably if we have access to a sandbox, we have some credentials to log into it, no?   It seems that the web-based samples sidestep the initial authentication process by giving you temporary OAuth tokens, so you just jump ahead.

    I'm getting a 400 response with a X-Ms-Diagnostics header that point out the obvious - that I don't have valid credentials.

    POST /WebTicket/oauthtoken HTTP/1.1
    Host: ocsrp.gotuc.net
    Accept: application/json
    X-Ms-Origin: http://localhost
    Referer: https://ocsrp.gotuc.net/Autodiscover/XFrame/XFrame.html
    Content-Length: 72
    Content-Type: application/x-www-form-urlencoded

    grant_type=password&username=lenea%40contoso%2Ecom&password=pass%40word1

    < HTTP/1.1 400 Bad Request
    < Connection: Keep-Alive
    < Content-Length: 25
    < Date: Thu, 11 Apr 2013 00:33:30 GMT
    < Content-Type: application/json
    < Server: Microsoft-IIS/8.0
    < Cache-Control: no-store
    < Pragma: no-cache
    < X-Ms-diagnostics: 28020;source="FE01.corp.gotuc.net";reason="No valid security token."
    < X-MS-Server-Fqdn: FE01.corp.gotuc.net
    < X-Powered-By: ASP.NET
    < X-Content-Type-Options: nosniff
    <

    Thursday, April 11, 2013 12:57 AM

Answers

  • What do I use for credentials to authenticate to the sandbox environment?  Presumably if we have access to a sandbox, we have some credentials to log into it, no? - You get OAuth tokens to use against the sandbox environment as opposed to accounts tied to your user credentials (live login).  You get to skip ahead to Step #7 essentially.  While it may not be ideal it is a way to test out UCWA without the need for an on-premise deployment of Lync Server 2013.

    If you do have your own environment to test with you can go through the initial steps (Autodiscovery/Authentication), but in the grand scheme of things they are fairly minor to code up and test (no matter the language used).


    Thursday, April 11, 2013 1:18 PM