Skip to content

Commit e04d592

Browse files
author
Tiago Brenck
authored
Merge pull request #224 from Azure-Samples/tibre/multiTenantSample
Minor refactor
2 parents db10333 + 95aa2cd commit e04d592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: 2-WebApp-graph-user/2-3-Multi-Tenant/Controllers/OnboardingController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ public IActionResult Onboard()
104104
/// <param name="state">A value included in the request that also will be returned in the token response. It can be a string of any content you want. The state is used to encode information about the user's state in the app before the authentication request occurred, such as the page or view they were on..</param>
105105
/// <remarks>Refer to https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-admin-consent for details on the response</remarks>
106106
/// <returns></returns>
107-
public async Task<IActionResult> ProcessCode(string tenant, string error, string error_description, string admin_consent, string state)
107+
public async Task<IActionResult> ProcessCode(string tenant, string error, string error_description, bool admin_consent, string state)
108108
{
109109
if (error != null)
110110
{
111111
TempData["ErrorMessage"] = error_description;
112112
return RedirectToAction("Error", "Home");
113113
}
114114

115-
if (admin_consent.ToUpper() != "TRUE")
115+
if (!admin_consent)
116116
{
117117
TempData["ErrorMessage"] = "The admin consent operation failed.";
118118
return RedirectToAction("Error", "Home");

0 commit comments

Comments
 (0)