<?php
#
# Application is registered for github user TestlinkOauthProvider
# using ngrok to provide a public URL.
#
# Here the command:
# ngrok http -region eu -subdomain=testlink 80
#
$tlCfg->OAuthServers[2]['redirect_uri'] = 
  'http://testlink.eu.ngrok.io/development/github-oauth/login.php?oauth=github';

$tlCfg->OAuthServers[2]['oauth_client_id'] ='39eaa098ffffcda54b63';
$tlCfg->OAuthServers[2]['oauth_client_secret'] = 
  'd5dbe0344ca9b5f0857769d87ba14cf99bdc2b1c';

$tlCfg->OAuthServers[2]['oauth_enabled'] = true;
$tlCfg->OAuthServers[2]['oauth_name'] = 'github';

// Can be authorization_code (by default), client_credentials or password
$tlCfg->OAuthServers[2]['oauth_grant_type'] = 'authorization_code';  
$tlCfg->OAuthServers[2]['oauth_url'] = 'https://github.com/login/oauth/authorize';

$tlCfg->OAuthServers[2]['token_url'] = 'https://github.com/login/oauth/access_token';
$tlCfg->OAuthServers[2]['oauth_force_single'] = false; 
$tlCfg->OAuthServers[2]['oauth_profile'] = 'https://api.github.com/user';
$tlCfg->OAuthServers[2]['oauth_scope'] = 'user:email';

# End Of File




