PHP code example of jeffersongoncalves / laravel-oidc
1. Go to this page and download the library: Download jeffersongoncalves/laravel-oidc library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jeffersongoncalves / laravel-oidc example snippets
use JeffersonGoncalves\LaravelOidc\Concerns\HasOidcConfig;
class SsoConnection extends Model
{
use HasOidcConfig;
}
Socialite::driver('oidc')
->setConfig($ssoConnection->toOidcConfig())
->redirect();
use JeffersonGoncalves\LaravelOidc\Facades\Oidc;
$discovery = Oidc::discover('https://login.microsoftonline.com/{tenant-id}/v2.0');
$discovery->authorizationEndpoint;
$discovery->tokenEndpoint;
$discovery->userinfoEndpoint;
$discovery->jwksUri;
$discovery->issuer;