# Custom administrator login identity provider (SSO)

**URL:** <https://forum.shopware.com/t/custom-administrator-login-identity-provider-sso/93605>\
**Category:** Programming (EN)\
**Tags:** administration\
**Created:** [22. März 2022 um 15:18 UTC](https://forum.shopware.com/t/custom-administrator-login-identity-provider-sso/93605 "2022-03-22T15:18:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jannes.d](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@jannes.d](https://forum.shopware.com/u/jannes.d)\
**Post date:** [22. März 2022 um 15:18 UTC](https://forum.shopware.com/t/custom-administrator-login-identity-provider-sso/93605/1 "2022-03-22T15:18:59Z")

</div>

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:

```auto
    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.

---

<div class="post-metadata">

**Author:** ![Moorleiche](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@Moorleiche](https://forum.shopware.com/u/Moorleiche)\
**Post date:** [22. März 2022 um 18:05 UTC](https://forum.shopware.com/t/custom-administrator-login-identity-provider-sso/93605/2 "2022-03-22T18:05:13Z")

</div>

> **[Login mit Facebook, Google, Amazon, Paypal, Apple, Keycloak usw...](https://store.shopware.com/moorl48017823224/login-mit-facebook-google-amazon-paypal-apple-keycloak-usw....html)**
>
> Social Media ist allgegenwertig – Dies kannst Du als Shop Betreiber zu Deinem Vorteil nutzen!  Eines jeden Shop Betreibers Ziel ist es, dass der…

Keycloak supported. You can also block shop pages for not logging in customers.

---

<div class="post-metadata">

**Author:** ![Moorleiche](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@Moorleiche](https://forum.shopware.com/u/Moorleiche)\
**Post date:** [22. März 2022 um 22:13 UTC](https://forum.shopware.com/t/custom-administrator-login-identity-provider-sso/93605/3 "2022-03-22T22:13:56Z")

</div>

Sorry I did not see, that you need this for the admin login. The Plugin supports login for customers. Maybe I could write a second one for the admin login.

---

<div class="post-metadata">

**Author:** ![jannes.d](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@jannes.d](https://forum.shopware.com/u/jannes.d)\
**Post date:** [23. März 2022 um 11:07 UTC](https://forum.shopware.com/t/custom-administrator-login-identity-provider-sso/93605/4 "2022-03-23T11:07:40Z")

</div>

Hi @Moorleiche ,

Thanks for your response. We already have our storefront coupled to Keycloak with our own custom implementation. We’re looking for ways we can accomplish this ourselves on the administrator side since it’d be a highly customized solution for our specific needs. All we need to know is how we can execute our own javascript and use keycloak-js on the login page without having to completely override the admin controller and render our own login template.
