Simple stand-alone library to handle Azure AD SSO flow.
- Tested with
PHP 5.6 - 8.1
allow_url_fopen
must betrue
inphp.ini
to use HTTP requests.- Requires
ext-openssl
.
MIT License
You can use Composer:
composer require nhujanen/aad-sso
See test/
for code examples.
You can run example with PHP's built-in web server:
foo@bar test]$ AAD_TENANT=foobar.com AAD_ID=00000000-0000-0000-0000-000000000000 AAD_SECRET=foo php -S localhost:8080 -t .
Remember: you need to add http://localhost:8080/auth.php
as valid Redirect URI.
Refer to Register an application with the Microsoft identity platform.