Hi,
I am using the FrontEnd Sample (jmix-samples-2/react-frontend-sample at main · jmix-framework/jmix-samples-2 · GitHub) and configured the custom login in the spring application configuration as below:
# Login page configuration
jmix.authserver.login-page-view-name=custom-as-login.html
jmix.authserver.login-page-url=/as-login
but when i logout in React Js, it routes me to the default login page. I want to route to my custom login page, when i logout from my react frontend.
I configured the LogoutRedirect, but it doesn’t routes me to the custom login page, when i logout.
logoutRedirect: “http://localhost:8080/as-login”
Authetication configuration shown below:
const authConfig: TAuthConfig = {
clientId: "zhfkegazct",
authorizationEndpoint: "http://localhost:8080/oauth2/authorize",
tokenEndpoint: "http://localhost:8080/oauth2/token",
redirectUri: "http://localhost:1420",
logoutEndpoint: "http://localhost:8080/logout",
logoutRedirect: "http://localhost:8080/as-login",
decodeToken: false,
onRefreshTokenExpire: (event: TRefreshTokenExpiredEvent) =>
window.confirm(
"Session expired. Refresh page to continue using the site?"
) && event.logIn(),
};
Please help, thanks & regards.