Clean up error flow for sso

error messages can now propagate to the user's browser
This commit is contained in:
Grant Limberg 2022-05-12 17:00:43 -07:00
parent e7fee4c6ce
commit da179d9930
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735
3 changed files with 68 additions and 48 deletions

View file

@ -1740,7 +1740,6 @@ public:
} else {
scode = 200;
sprintf(resBuf, ssoResponseTemplate, "Authentication Successful. You may now access the network.");
responseBody = std::string(resBuf);
}
} else {
// not an object? We got a problem
@ -1750,7 +1749,8 @@ public:
zeroidc::free_cstr(code);
zeroidc::free_cstr(ret);
responseBody = std::string(resBuf);
responseContentType = "text/html";
return scode;
} else {