C# OAuth sample stopped working

Michał_Wójcik
Michał_Wójcik Member Posts: 13 ✭
I'm trying to run the sample at https://github.com/onshape-public/app-windows-sample and all I'm getting when I run it is an authentication error. I've set my project up on the developer portal and supplied the environment variables as described in the readme, and this is what happens after I run the sample:



I had a colleague try it to confirm it's not just me, he's having the same issue. Is there a solution? Did the API change to the point of this sample being obsolete?

Answers

  • Michał_Wójcik
    Michał_Wójcik Member Posts: 13 ✭
    Forgot to mention, the browser does not open to go through the authentication process. It just spits out the error end quits. After some debugging i saw it gets the refresh token from somewhere, even though I have not logged in yet, and then tries to get an access token, failing. Thus the exception. Then again, why is it 503 and not 401 or 403? 5xx errors indicate serverside problems. 503 in particular means "Service Unavailable".