microsoft / microsoft/azure-devops-auth-samples

DeviceProfileSample throws Exception on missing parameter "client_assertion" or "client_secret"

Open
#85 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
277
Forks
307
Avg merge
3d 18h
Merged PRs (30d)
2

Description

Have updated App.config as mentioned in README.md.
When I ran the csproj, after authorising the app to our DevOps site, it still says "Something went wrong".
Can be easily re-produced.

Here's the error:

Message: A configuration issue is preventing authentication - check the error message from the server for details. You can modify the configuration in the application registration portal. See https://aka.ms/msal-net-invalid-client for details. Original exception: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing README.md and the sample's App.config, then run the referenced csproj to reproduce the authentication failure after authorization. Compare the configured application registration with the error's missing client credential parameters; done means the sample authenticates successfully without the AADSTS7000218 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.