4

Similar question to this; I've started working on an Azure Functions app that'll trigger AzDO build pipelines, but am having trouble authenticating via Oauth. I'm either getting a 203 Non-Authoritative Information status code, or a 400 bad request so far. I've gotten it to work with a personal access token, but would rather have users log in via Azure AD and authenticate that way.

I've tried using the instructions from Authorize access to REST APIs with OAuth 2.0, registering the app and sending requests to the auth and token URLs to no avail.

Is the best option to perform something similar to Service to service calls on behalf of the user, or is there another option I'm missing? Any help and/or examples would be greatly appreciated!

Ber K.
  • 41
  • 3
  • Did you have try this Azure DevOps oauth sample? https://github.com/microsoft/azure-devops-auth-samples/tree/master/OAuthWebSample – Frank Wang-MSFT Nov 13 '19 at 06:37
  • @FrankWang-MSFT I have, but haven't figured out how to get the Az Function to generate the browser popup for the user to login; it currently also just returns a 203 status code and continues – Ber K. Nov 13 '19 at 15:41
  • Could you please share a simple sample of your code, then I will check where the error is. – Frank Wang-MSFT Nov 22 '19 at 02:47

0 Answers0