Download the PHP package ageid/aad without Composer
On this page you can find all versions of the php package ageid/aad. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package aad
services: active-directory platforms: php author: AgeID
Authenticating requests to an Azure AD resource from a PHP web app
This PHP class allows obtaining an authentication token object from Azure Active Directory, which in turn is used to generate an Authorization header that you must add to all your requests to the desired Azure Active Directory application (resource). This class uses OAuth 2.0 Client Credentials to authenticate and get authorization to the Graph API. Pre-existing access to an Azure tenant is required. Using a standard Microsoft account will not be enough.
Using the PHP class
- Construct your AzureActiveDirectoryHelper instance by passing the $clientId, $tenant and, if desired, a custom implementation of the Guzzle client inside $options['httpClient']
- Obtain an Auth Token object by providing the appropriate parameter values, as generated and obtained from above: $authToken = $aadHelper->getToken($clientId, $resource).
- Prepare your cURL request to the AAD service according to its API usage definition.
- Add the obtained $authToken to your cURL request along with any other applicable headers. Example: curl_setopt($ch, CURLOPT_HTTPHEADER, array($authToken, 'OtherExampleHeaderName:OtherExampleHeaderValue', ...)).
- Execute the cURL request.
All versions of aad with dependencies
PHP Build Version
Package Version
The package ageid/aad contains the following files
Loading the files please wait ....