dv-team / ms-entra-auth
A entra id auth helper
Installs: 139
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/dv-team/ms-entra-auth
Requires
- php: >= 8.1
- psr/http-client: ^1.0
- psr/http-factory: ^1.1
Requires (Dev)
- guzzlehttp/guzzle: ^7.9
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2025-09-20 14:50:51 UTC
README
Setup details
https://www.adminlabs.de/anmeldung-mit-microsoft-azuread-php-anwendung/
![]() |
![]() |
![]() |
---|---|---|
![]() |
![]() |
![]() |
PHP-DI:
return [ /* ... */ EntraIDEndpoints::class => autowire() ->constructorParameter('authorizationEndpoint', 'https://login.microsoftonline.com/<id>/oauth2/v2.0/authorize') ->constructorParameter('tokenEndpoint', 'https://login.microsoftonline.com/<id>/oauth2/v2.0/token'), EntraIDAuthFactory::class => autowire(EntraIDAuthFactory::class) ->constructorParameter('landingPageUri', 'https://<host>/entra-id-login.html'), EntryIDAuthClient::class => factory(function (EntraIDAuthFactory $factory, Container $container) { /** @var string $clientId */ $clientId = $container->get('microsoft.entra-id.client-id'); /** @var string $clientSecret */ $clientSecret = $container->get('microsoft.entra-id.client-secret'); return $factory->createAuthClient($clientId, $clientSecret); }), /* ... */ ];