We’d like to use our own identity provider (keycloak) to let our employees do their jobs across multiple stores and applications using the same login, and with single sign-on. We wanted to add this ability to our new shopware installations too but we seem to be struggling because shopware does not load the full application until after login:
startBootProcess(): Promise<void|ApplicationBootstrapper> {
const loginService = this.getContainer('service').loginService;
const isUserLoggedIn = loginService.isLoggedIn();
// if user is not logged in
if (!isUserLoggedIn) {
loginService.logout();
return this.bootLogin();
}
return this.bootFullApplication();
}
Is there any way we can load our own javascript on the login page so we can do our single sign-on checks? The backend changes seem quite easy since it’s just symfony services and api endpoints.
Thanks.