| navigation-title: | Installation |
|---|
Note
Composer is the recommended way to install this extension.
Install the extension via Composer:
composer req oliverkroener/ok-azure-loginAfter installation, update the database schema to create the configuration table:
vendor/bin/typo3 database:updateschemaSee also Installing extensions in the TYPO3 Getting Started guide.
- In the TYPO3 backend, go to the :guilabel:`Template` module
- Select the root page of your site
- Choose :guilabel:`Info/Modify` and click :guilabel:`Edit the whole template record`
- Switch to the :guilabel:`Includes` tab
- Add Azure Login from the list of available static templates
The extension provides two content elements, available under the Azure Login group in the New Content Element Wizard:
- Azure Login
- Renders a "Sign in with Microsoft" button. When a user authenticates via
Microsoft Entra ID, the extension matches their email to an existing
fe_usersrecord and logs them in. - Azure Logout
- Renders a "Sign out" button for logged-in users. Can optionally redirect to the Microsoft logout endpoint to sign the user out of Microsoft as well.
To add them:
- Go to the :guilabel:`Page` module and select the page where the login or logout button should appear
- Click :guilabel:`Create new content element`
- Select from the Azure Login group: either Azure Login or Azure Logout
- Configure the element settings (button theme, redirect URL, etc.) as needed
- Save and clear caches
The extension automatically registers a backend login provider. Once configured
(see :ref:`Configuration <configuration>`), a "Sign in with Microsoft" button
appears as a separate tab on the TYPO3 backend login screen at /typo3/.
No additional setup is needed for backend login beyond configuring the Azure credentials. The backend redirect URI is automatically derived from the route configuration and shown as a read-only field with a copy button in the backend module. Register this URL in your Azure app registration.