{"repo":"TheNetworg/oauth2-azure","free":true,"listed":false,"github":"https://github.com/TheNetworg/oauth2-azure","clone":"git clone https://github.com/TheNetworg/oauth2-azure.git","description":"Azure AD provider for the OAuth 2.0 Client.","language":"PHP","stars":251,"topics":["azure","php","azure-active-directory","microsoft","microsoft-graph","aad","aad-b2c"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Azure Active Directory Provider for OAuth 2.0 Client This package provides Azure Active Directory OAuth 2.0 support for the PHP League's OAuth 2.0 Client. Table of Contents - Installation - Usage - Authorization Code Flow - Advanced flow - Using custom parameters - NEW - Call on behalf of a token provided by another app - NEW - Logging out - Making API Requests - Variables - Resource Owner - UPDATED - Microsoft Graph - NEW - Protecting your API - experimental - Azure Active Directory B2C - experimental - Multipurpose refresh tokens - experimental - Known users - Contributing - Credits - Support - License Installation To install, use composer: Usage Usage is the same as The League's OAuth client, using \\TheNetworg\\OAuth2\\Client\\Provider\\Azure as the provider. Authorization Code Flow Advanced flow The Authorization Code Grant Flow is a little bit different for Azure Active Directory. Instead of scopes, you specify the resource which you would like to access - there is a param $provider- authWithResource which will automatically populate the resource param of request with the value of either $provider- resource or $provider- urlAPI . This feature is mostly intended for v2.0 endpoint of Azure AD (see more here). Using custom parameters With oauth2-client of version 1.3.0 and higher, it is now possible to specify custom parameters for the authorization URL, so you can now make use of options like prompt , login hint and similar. See the following example of obtaining an authorizat","default_branch":null,"files":null,"tree":[],"storefront":"/r/TheNetworg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/TheNetworg/oauth2-azure/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}