hofstaetter / eid
ID Austria (e-ID) OIDC Provider for Laravel Socialite
Installs: 535
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hofstaetter/eid
Requires
- php: ^7.4 || ^8.0
- gamegos/jws: ^1.0
- socialiteproviders/manager: ~4.0
This package is not auto-updated.
Last update: 2025-10-03 22:29:03 UTC
README
composer require hofstaetter/eid
Installation & Basic Usage
Please see the Base Installation Guide, then follow the provider specific instructions below.
Add configuration to config/services.php
'eid' => [ 'client_id' => env('EID_CLIENT_ID'), 'client_secret' => env('EID_CLIENT_SECRET'), 'redirect' => env('EID_REDIRECT_URI'), 'endpoint' => env('EID_ENDPOINT', 'eid.oesterreich.gv.at'), ],
Add provider event listener
Configure the package's listener to listen for SocialiteWasCalled
events.
Add the event to your listen[]
array in app/Providers/EventServiceProvider
. See the Base Installation Guide for detailed instructions.
protected $listen = [ \SocialiteProviders\Manager\SocialiteWasCalled::class => [ // ... other providers \Hofstaetter\Eid\EidExtendSocialite::class.'@handle', ], ];
Usage
You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):
return Socialite::driver('eid')->redirect();
Within your callback function:
public function callback(Request $request) { $user = Socialite::driver('eid')->user(); // handle user and app auth }
Returned User fields
id
name
email