Skip to content

Minor refactor #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ public IActionResult Onboard()
/// <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>
/// <remarks>Refer to https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-admin-consent for details on the response</remarks>
/// <returns></returns>
public async Task<IActionResult> ProcessCode(string tenant, string error, string error_description, string admin_consent, string state)
public async Task<IActionResult> ProcessCode(string tenant, string error, string error_description, bool admin_consent, string state)
{
if (error != null)
{
TempData["ErrorMessage"] = error_description;
return RedirectToAction("Error", "Home");
}

if (admin_consent.ToUpper() != "TRUE")
if (!admin_consent)
{
TempData["ErrorMessage"] = "The admin consent operation failed.";
return RedirectToAction("Error", "Home");
Expand Down