Extend AuthCodeMSALBrowserAuthenticationProvider to support for multi-tenancy.

Open
#1,908 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript

Research direction

Start by locating AuthCodeMSALBrowserAuthenticationProvider and reviewing how it obtains the Microsoft Graph token. Read the linked MSAL multi-tenant accounts guidance to understand the authority input. Done means callers can select an authority for the token and the provider uses it for the Graph instance, with coverage for the new behavior.

Written by the indexing model from the issue text.

Description

status:waiting-for-triage type:feature
Is your feature request related to a problem? Please describe the problem.

On my multi-tenancy application, I cannot see an option how I can get a token for a user for a specific tenant. The provider AuthCodeMSALBrowserAuthenticationProvider always provides the MSGraph instance with the token of the home tenant of the user.

Describe the solution you'd like.

When instantiating AuthCodeMSALBrowserAuthenticationProvider, allow user user to pass in the authority of the token he wants to use.

Additional context?
Dominant language
TypeScript
Stars
833
Forks
240
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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.

More from microsoftgraph/msgraph-sdk-javascript

All issues in microsoftgraph/msgraph-sdk-javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.