Skip to content

Commit

Permalink
Merge pull request #133 from anjuchamantha/consent-mgr
Browse files Browse the repository at this point in the history
Fixing consent manager white screen issue
  • Loading branch information
hasithakn authored Oct 10, 2024
2 parents 05920d7 + ec50254 commit 99ae88a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,13 @@ import "./css/App.css";
import { Login } from "./login/login.js";
import { ResponseError } from "./errorPage/index.js";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import { logout } from "./login/logout.js";
import { User } from "./data/User";

const idToken = User.idToken;

export const App = () => {
return (
<Router>
<Switch>
<Route path="/consentmgr" exact component={Login} />
<Route path="/consentmgr/error" exact component={ResponseError} />
<Route path="/consentmgr/logout" exact component={() => logout(User?.idToken)} />
</Switch>
</Router>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
if (StringUtils.isEmpty(code)) {
LOG.debug("Logout callback request received. Invalidating cookies.");
oAuthService.removeAllCookiesFromRequest(req, resp);
redirectUrl += "/logout";
} else {
LOG.debug("Authorization callback request received");
final String clientKey = Utils.getParameter(Constants.CONFIGURED_CLIENT_ID);
Expand Down

0 comments on commit 99ae88a

Please sign in to comment.