none
Getting an Unauthorized response while Onboarding in the Provider Management Portal sample RRS feed

  • Question

  • I've downloaded, updated, and compiled the new sample HealthVaultProviderManagementPortal. https://github.com/Microsoft/healthvault-samples  I've entered my valid project key and run the application. I ran the Onboarding process and I'm getting an "Unauthorized" error. I delved into the response and found...

    {Pragma: no-cache
    AppEx-Activity-Id: 6ef00fab-ef04-4613-8159-335823a4ec36
    x-content-type-options: nosniff
    Content-Length: 0
    Cache-Control: no-cache
    Date: Thu, 17 Aug 2017 19:28:43 GMT
    Expires: -1
    Server: Microsoft-IIS/8.5
    WWW-Authenticate: MSH-V1 realm="mshealth" error="invalid_token"
    X-Powered-By: ASP.NET

    }

    Seems I've got myself an invalid token. Whut token is it referring too? The only token I've got is for the car wash my dad used to go to. That one's not working. Where do I get one that will work?

    Thanks.


    I'm a puck

    Thursday, August 17, 2017 9:17 PM

Answers

  • Are you using dotNET SDK or dotNETStandard SDK?

    dotNET - https://github.com/Microsoft/healthvault-samples/tree/master/dotNET

    dotNETStandard - https://github.com/Microsoft/healthvault-samples/tree/master/dotNETStandard

    Also, visit application configuration center (config.healthvault-ppe.com), "METHODS" tab, and make sure you have "REST APIs" and "onboarding APIs" checked.


    Takashi Moriyama | Senior Program Manager | Microsoft Health

    • Marked as answer by Puck Wednesday, August 23, 2017 7:15 PM
    Monday, August 21, 2017 6:43 PM
    Moderator

All replies

  • Are you using dotNET SDK or dotNETStandard SDK?

    dotNET - https://github.com/Microsoft/healthvault-samples/tree/master/dotNET

    dotNETStandard - https://github.com/Microsoft/healthvault-samples/tree/master/dotNETStandard

    Also, visit application configuration center (config.healthvault-ppe.com), "METHODS" tab, and make sure you have "REST APIs" and "onboarding APIs" checked.


    Takashi Moriyama | Senior Program Manager | Microsoft Health

    • Marked as answer by Puck Wednesday, August 23, 2017 7:15 PM
    Monday, August 21, 2017 6:43 PM
    Moderator
  • Thanks so much Takashi. I didn't know about the METHODS tab. I'll bet several other issues I've been having are "cured with this one simple fix!".

    I'm a puck

    Wednesday, August 23, 2017 7:18 PM