microsoft / microsoft/Intune-Data-Warehouse

AuthenticationContext is not properly scripted

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

Nobody has claimed this yet.

Dominant language
No language data
Stars
48
Forks
21
PR merge metrics
No merged PRs in 30d

Description

I was trying to build the console app using the code but kept getting errors like this:
: AADSTS900023: Specified tenant identifier 'token' is neither a valid DNS name, nor a valid external domain.

It turns out the AuthenticationContext doesn't need to have the "/oauth2/token" part. After taking off that, the code works:
new AuthenticationContext("https://login.windows.net/" + tenantDomain;

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

Locate the console-app sample that constructs AuthenticationContext and compare its authority URL with the issue's working example. Remove the /oauth2/token suffix from that AuthenticationContext URL, then rebuild the sample to confirm the tenant identifier error is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
authentication
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.