Package
Socialiteproviders Microsoft
Microsoft OAuth2 Provider for Laravel Socialite
Overview
What Socialiteproviders Microsoft does
For Laravel developers seeking seamless Microsoft OAuth integration, the socialiteproviders/microsoft package extends Socialite to encompass Microsoft OAuth2 capabilities.
This package addresses the need for smooth integration with Microsoft services, allowing developers to authenticate users via Microsoft accounts. By enhancing Socialite, it keeps the developer experience consistent with native functionality, requiring only minor configuration updates in the services.php file to get started.
Key features include the validation of ID tokens and handling of Microsoft Entra ID's periodic key rollovers. This ensures that authentication remains robust even as Microsoft rotates its signing keys, minimizing potential login failures.
Beyond authentication, the package enables retrieval of user roles and groups within Microsoft 365 and Azure AD environments, which can be crucial for assigning roles and managing access within applications. Additionally, developers can access ID token claims and tenant details, providing deeper integration points with Microsoft's identity platform.
For applications needing extended session capabilities, the package supports requesting refresh tokens by adding the offline_access scope. This flexibility makes it suitable for applications that rely on long-lived sessions or require frequent reconnections to Microsoft services.
This overview was generated by AI from the package README and may not reflect the latest release.
Read the full README →