question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Allow to pass tenantId when requesting application access token

See original GitHub issue

Is your feature request related to a problem? Please describe. We would use a multi-tenant application which is authorized in several tenants. In each tenant, the application would be added in the Dynamics CRM as an app user. For each of those, we need to request the token using the tenant authority.

Describe the solution you’d like Add tenantId parameter to GetAccessTokenForAppAsync - similar as in GetAccessTokenForUserAsync

Describe alternatives you’ve considered n/a

Additional context https://github.com/AzureAD/microsoft-identity-web/blob/master/src/Microsoft.Identity.Web/TokenAcquisition.cs

__

Addition. Given that for client credentials, we can only pass one scope (resource/.default), we’d want to change the signature to pass only one string (instead of a collection)

=> This is a breaking change. So proposing to take it (PM would say easy) in 0.3.0-preview cc: @jennyf19 @henrik-me @pmaytak

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
jmprieurcommented, Aug 9, 2020

Taking it as there is an API breaking change so I’d like it to be in 0.3.0-preview

0reactions
jennyf19commented, Aug 25, 2020

Included in 0.3.0-preview release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access tokens in the Microsoft identity platform
Access tokens enable clients to securely call protected web APIs. Web APIs use access tokens to perform authentication and authorization.
Read more >
JWT & Refresh Token APIs
APIs that allow you to manage Refresh Tokens, verify Access Tokens and retrieve public keys used for verifying JWT signatures.
Read more >
Managing multi-tenant APIs using Amazon API Gateway
The access/id token stores information about the granted permissions including tenant ID to which this user belongs to. The client application ...
Read more >
The standard authorization code flow
From there, you can make API calls by providing both a valid access token and authorized tenant id with each request. 1. Send...
Read more >
Cloudentity Financial Data Exchange APIs
REQUIRED for requests when the client application uses CIBA as an authorization grant type, and the token delivery mode is set to ping...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found