PHP code example of gwsn / bizhost-auth-sdk
1. Go to this page and download the library: Download gwsn/bizhost-auth-sdk 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/ */
gwsn / bizhost-auth-sdk example snippets
php
$apiUrl = 'https://auth-test.bizhost.nl';
$clientId = 'your-client-id';
$clientSecret = 'your-client-secret';
$redirectUrl = 'http://localhost:8000/code-flow.php';
$issuerMetaDataPath = '/.well-known/oauth-authorization-server';
$config = new AuthClientConfig(
apiUrl: $apiUrl,
clientId: $clientId,
clientSecret: $clientSecret,
redirectUrl: $redirectUrl,
issuerMetaDataPath: $issuerMetaDataPath
);
$authService = new AuthenticateService(
$config,
);