TheNetworg / oauth2-azure

Azure AD provider for the OAuth 2.0 Client.
https://packagist.org/packages/thenetworg/oauth2-azure
MIT License
229 stars 108 forks source link

Class "TheNetworg\OAuth2\Provider\Azure" not found #173

Open muhamadnazmi99 opened 1 year ago

muhamadnazmi99 commented 1 year ago

get the error after implement Authorization Code Flow and when i include require_once DIR . '/vendor/autoload.php'; its show require_once(C:\xxxxxxxxxxxxx\wwwroot\app\Http\Controllers/vendor/autoload.php): Failed to open stream: No such file or directory.

chrisforrence commented 1 year ago

Is this for a Laravel application? If so, it already autoloads composer (in public/index.php); you'd require thenetworg/oauth2-azure at the repository root ("C:\xx\wwwroot" in your case)