File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
2-WebApp-graph-user/2-3-Multi-Tenant Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public IActionResult Onboard()
84
84
// Create an OAuth2 request, using the web app as the client. This will trigger a consent flow that will provision the app in the target tenant.
85
85
// Refer to https://docs.microsoft.com/azure/active-directory/develop/v2-admin-consent for details about the Url format being constructed below
86
86
string authorizationRequest = string . Format (
87
- "{0}common /v2.0/adminconsent?client_id={1}&redirect_uri={2}&state={3}&scope={4}" ,
87
+ "{0}organizations /v2.0/adminconsent?client_id={1}&redirect_uri={2}&state={3}&scope={4}" ,
88
88
azureADOptions . Instance ,
89
89
Uri . EscapeDataString ( azureADOptions . ClientId ) , // The application Id as obtained from the Azure Portal
90
90
Uri . EscapeDataString ( currentUri + "Onboarding/ProcessCode" ) , // Uri that the admin will be redirected to after the consent
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ public IActionResult Onboard()
250
250
{
251
251
.. .
252
252
string authorizationRequest = string .Format (
253
- " {0}common /v2.0/adminconsent?client_id={1}&redirect_uri={2}&state={3}&scope={4}" ,
253
+ " {0}organizations /v2.0/adminconsent?client_id={1}&redirect_uri={2}&state={3}&scope={4}" ,
254
254
azureADOptions .Instance ,
255
255
Uri .EscapeDataString (azureADOptions .ClientId ),
256
256
Uri .EscapeDataString (currentUri + " Onboarding/ProcessCode" ),
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ public IActionResult Onboard()
226
226
{
227
227
.. .
228
228
string authorizationRequest = string .Format (
229
- " {0}common /v2.0/adminconsent?client_id={1}&redirect_uri={2}&state={3}&scope={4}" ,
229
+ " {0}organizations /v2.0/adminconsent?client_id={1}&redirect_uri={2}&state={3}&scope={4}" ,
230
230
azureADOptions .Instance ,
231
231
Uri .EscapeDataString (azureADOptions .ClientId ),
232
232
Uri .EscapeDataString (currentUri + " Onboarding/ProcessCode" ),
You can’t perform that action at this time.
0 commit comments