Download the PHP package edrisaturay/filament-azure-socialite without Composer

On this page you can find all versions of the php package edrisaturay/filament-azure-socialite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-azure-socialite

Filament Azure Socialite

Latest Version Total Downloads

A production-ready Filament plugin that adds "Login with Microsoft" (Azure AD) authentication to your Filament panels using Laravel Socialite and SocialiteProviders.

Features

Requirements

Installation

Install the package via Composer:

Configuration

1. Azure App Registration

First, you need to register your application in Azure AD:

  1. Go to Azure Portal
  2. Navigate to Azure Active Directory > App registrations
  3. Click New registration
  4. Enter a name for your app
  5. Select supported account types:
    • Single tenant: Your organization only
    • Multi-tenant: Any organization
    • Multi-tenant + personal: Any organization + personal accounts
  6. Set Redirect URI:
    • Platform: Web
    • URI: {your-app-url}/{panel-path}/auth/azure/callback
    • Example: https://example.com/admin/auth/azure/callback
  7. Click Register
  8. Copy the Application (client) ID to your .env file
  9. Go to Certificates & secrets > New client secret
  10. Copy the secret value to your .env file
  11. Note your Directory (tenant) ID for the .env file

2. Environment Variables

Add these to your .env file:

Note: The AZURE_REDIRECT_URI is optional - it will be auto-computed per panel if not set.

3. Services Configuration

Add this to your config/services.php:

4. Multi-Tenant Configuration

For AZURE_TENANT_ID, use:

5. Register the Plugin

Filament v4

In your panel provider (e.g., app/Providers/Filament/AdminPanelProvider.php):

Filament v3

In your panel provider:

Configuration Options

Basic Configuration

Security Configuration

Custom User Resolution

Callbacks

Artisan Commands

Installation Guide

Get step-by-step installation instructions:

This command will:

Configuration Doctor

Validate your configuration:

This command checks:

Multi-Panel Setup

The plugin supports multiple Filament panels. Each panel can have its own configuration:

User Model

The plugin works with any user model. By default, it uses App\Models\User.

Storing Azure ID

If you want to store the Azure user ID, add an azure_id column to your users table:

The plugin will automatically store the Azure ID if the column exists.

Error Handling

The plugin provides user-friendly error messages via Filament notifications:

Errors are logged in local/dev environments for debugging.

Troubleshooting

Button Not Showing

  1. Ensure the plugin is enabled: ->enabled()
  2. Check that routes are registered: php artisan route:list | grep azure
  3. Run the doctor command: php artisan filament-azure-socialite:doctor

Redirect URI Mismatch

The redirect URI in Azure must match exactly. The plugin auto-computes the URI, but you can verify it:

Make sure the redirect URI in Azure matches the computed one.

HTTPS Required

Azure requires HTTPS for production redirect URIs. If testing locally, you can use http://localhost, but production must use HTTPS.

Proxy Configuration

If you're behind a proxy, set the PROXY environment variable:

Testing

The package includes tests using Pest/PHPUnit and Orchestra Testbench. Run tests with:

Security Considerations

  1. Always use HTTPS in production - Azure requires it
  2. Restrict email domains - Use allowedDomains() for enterprise apps
  3. Restrict tenants - Use allowedTenants() for multi-tenant apps
  4. Disable registration - Set allowRegistration(false) if you only want existing users
  5. Validate redirects - The plugin only redirects within the panel scope

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

The MIT License (MIT). Please see License File for more information.

Support

For issues and questions, please open an issue on GitHub.

filament-azure-socialite-provider


All versions of filament-azure-socialite with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/filament Version ^3.0|^4.0
laravel/framework Version ^10.0|^11.0|^12.0
laravel/socialite Version ^5.0
socialiteproviders/microsoft-azure Version ^5.0
spatie/laravel-package-tools Version ^1.15
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package edrisaturay/filament-azure-socialite contains the following files

Loading the files please wait ...