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()
8484 // 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.
8585 // Refer to https://docs.microsoft.com/azure/active-directory/develop/v2-admin-consent for details about the Url format being constructed below
8686 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}" ,
8888 azureADOptions . Instance ,
8989 Uri . EscapeDataString ( azureADOptions . ClientId ) , // The application Id as obtained from the Azure Portal
9090 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()
250250{
251251 .. .
252252 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}" ,
254254 azureADOptions .Instance ,
255255 Uri .EscapeDataString (azureADOptions .ClientId ),
256256 Uri .EscapeDataString (currentUri + " Onboarding/ProcessCode" ),
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ public IActionResult Onboard()
226226{
227227 .. .
228228 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}" ,
230230 azureADOptions .Instance ,
231231 Uri .EscapeDataString (azureADOptions .ClientId ),
232232 Uri .EscapeDataString (currentUri + " Onboarding/ProcessCode" ),
You can’t perform that action at this time.
0 commit comments