Github
Introduction
Authorization
<?php
require dirname(__FILE__, 2) . '/vendor/autoload.php';
$client_id = 'yourClient_id';
$session_key = 'YWQ4Q1Hpb_zQliS5wGYDDPZm2xC7PzyfjgLKBNodkazkN_pEPlm7yVBw5r9_pDzSwHJRsFVZShQyb_LFUSMBGQ';
$callback_url = 'https://yourAPPurl/callback.php';
$client = new Svgta\OidcClient\init();
$client->setSessionKey($session_key);
$client->client_id($client_id);
$client->add_OP_info('authorization_endpoint', 'https://github.com/login/oauth/authorize');
$auth = $client->authorization($callback_url);
$auth->set_state();
$auth->exec();Callback
Last updated