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.

provide method for admin consent request

See original GitHub issue

Please follow the issue template below. Failure to do so will result in a delay in answering your question.

Library

  • [x ] msal@1.x.x or @azure/msal@1.x.x
  • [x ] @azure/msal-browser@2.x.x
  • [ x] @azure/msal-angular@0.x.x
  • [x ] @azure/msal-angular@1.x.x
  • [x ] @azure/msal-angularjs@1.x.x

Description

Please describe the functionality or improvement you would like to see added.

A common task with multi-tenant applications is to obtain admin consent for certain delegated permissions:

// Line breaks are for legibility only.
GET https://login.microsoftonline.com/{tenant}/v2.0/adminconsent?
client_id=6731de76-14a6-49ae-97bc-6eba6914391e
&state=12345
&redirect_uri=http://localhost/myapp/permissions
&scope=
https://graph.microsoft.com/calendars.read
https://graph.microsoft.com/mail.send

Since the task is repetitive and constructing the request url manually is error prone, it would be helpful for users if the library were to offer a method for this.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
capc0commented, Oct 25, 2022

any update for admin consent requests?

3reactions
jasonnuttercommented, Sep 1, 2020

Is there a reason MSAL only makes some URLs and not URLs that require admin consent?

Frankly, there hasn’t been a large demand, and we have other features that were higher priority. That said, this is a feature we would like to add at some point, which is why I requested @derisen open this feature request to track it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Review and take action on admin consent requests
Approve the request. To approve a request, grant admin consent to the application. Once a request is approved, all requestors are notified that ......
Read more >
How to grant admin consent to applications in Azure
Navigate to Azure Active Directory. You need to be a global administrator to complete these steps; Open Enterprise applications > under Manage, ...
Read more >
Use Azure AD Admin Consent Requests to help avoid attacks ...
In this article, you'll learn how to enable Azure AD Admin consent, which helps prevent users from accidentally allowing someone to access ...
Read more >
Enterprise Application Consent Requests in Azure
If the administrator instead chooses to click the consent checkbox and then accept the request then this is known as Admin Consent and...
Read more >
How to Resolve the Need Admin Approval Error
1. Open the Permissions tab and click Grant Admin consent for %CompanyName% · 2. Log in with O365 Admin credentials and click Accept...
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