** This component is under development. **
- PHP >= 7.2.5 |
- Laravel/Socialite >= 5.1.0
Request CLIENT_ID and CLIENT_SECRET at https://www.autenticacao.gov.pt/
composer require noopstudios/autenticacaogov
config/services.php
'autenticacaogov' => [
'client_id' => env('AUTENTICACAO_GOV_CLIENT_ID'),
'client_secret' => env('AUTENTICACAO_GOV_SECRET'),
'redirect' => env('AUTENTICACAO_GOV_REDIRECT')
]
.env
AUTENTICACAO_GOV_AUTHORIZATION_ENDPOINT=
AUTENTICACAO_GOV_TOKEN_ENDPOINT=
AUTENTICACAO_GOV_RESOURCE_API=
AUTENTICACAO_GOV_DOMAIN=
// Redirect to Sign in with Apple in controller.
return Socialite::driver('autenticacaogov')->redirect();
// Handle callback, fetch user information from `code` in controller.
$user = Socialite::driver('autenticacaogov')->user();
socialite-apple is open-sourced software licensed under the MIT license.