PHP code example of marcorombach / laravel-aaf-oidc
1. Go to this page and download the library: Download marcorombach/laravel-aaf-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/ */
marcorombach / laravel-aaf-oidc example snippets
return [
'provider_url' => '', //issuer URL of the auth provider -> https://<aaf-domainname>/osp/a/<tenant>/auth/oauth2
'client_secret' => '', //Client secret
'client_id' => '', //Client ID
'post-login-route' => '', //Route to redirect to after login - if not set you will be redirected to the base URL
'error-route' => '', //Route to redirect to on login error - redirects with $error variable set
];
$laravelAafOIDC = new Marcorombach\LaravelAafOIDC();
$authenticatable = $laravelAafOIDC->authenticate();