PHP code example of ijodkor / one-id

1. Go to this page and download the library: Download ijodkor/one-id 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/ */

    

ijodkor / one-id example snippets


    /*
    |--------------------------------------------------------------------------
    | OneId Integration
    |--------------------------------------------------------------------------
    | This is the OneId package
    |
    */
    'one_id_sso_url' => env('ONE_ID_SSO_URL'),
    'one_id_client_id' => env('ONE_ID_CLIENT_ID'),
    'one_id_client_secret' => env('ONE_ID_CLIENT_SECRET'),
    'one_id_client_scope' => env('ONE_ID_CLIENT_SCOPE'),

# OneId
Route::get('/one-id/access', [OneIdWebAuthController::class, 'access']);

# OneId
Route::post('/auth/token', [OneIdAuthController::class, 'token']);
bash
php artisan vendor:publish --provider="Ijodkor\OneId\OneIdServiceProvider"