Skip to content

Commit

Permalink
Fix consent manager white screen issue and logout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
anjuchamantha committed Oct 9, 2024
1 parent 05920d7 commit ec50254
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 ec50254

Please sign in to comment.