Download the PHP package m4n50n/oauth2-azure-bundle without Composer
On this page you can find all versions of the php package m4n50n/oauth2-azure-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package oauth2-azure-bundle
OAuth 2.0 for Azure Bundle
This Symfony bundle serves as a tiny wrapper for the Azure Active Directory Provider for OAuth 2.0 Client. You can find additional documentation in the official repository.
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Enable the Bundle
Enable the bundle by adding it to the list of registered bundles in the config/bundles.php
file of your project.
Configure the Bundle
Configure the bundle in the config/packages/oauth2_azure.yaml
file:
If you want the configuration / environment files to be created automatically inside your /config
folder, you can include my private Symfony Flex recipes repository in your composer.json
by adding the following configuration:
Usage
Inject OAuth2AzureFactory into your Service or Controller, and call the getAuth() method with Request as an argument.
If the redirectToUrl configuration parameter exists and has a true value, it will be redirected to the redirectUrl set after authentication. Otherwise, an AuthResponse object will be returned, containing the getOwnerData() method, which returns the data of the Azure-authenticated account.
Methods
This wrapper defines the following methods:
- Class
OAuth2AzureFactory
:getAuth()
starts the user authentication flow. - Class
OAuth2AzureFactory
:getConfig()
returns the entire bundle configuration object. - Class
AuthResponse
:isError()
returns if there has been an error in the authentication process.
Contributing
See CONTRIBUTING for more information.
Security
See SECURITY for more information.
License
Please see the LICENSE included in this repository for a full copy of the MIT license, which this project is licensed under.
All versions of oauth2-azure-bundle with dependencies
thenetworg/oauth2-azure Version ^2.2.2
symfony/config Version ^6.4 || ^7.0
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/http-foundation Version ^6.4 || ^7.0
symfony/monolog-bundle Version ^3.0
symfony/serializer Version ^6.4 || ^7.0