<?php
/* config.inc Configuration for oAuth Demo project
 *
 * Katy Nicholson, last updated 17/11/2021
 *
 * https://github.com/CoasterKaty
 * https://katytech.blog/
 * https://twitter.com/coaster_katy
 *
 
 
***RENAME TO config.inc ***

*/
// MySQL connection details
define('_MYSQL_HOST', 'localhost');
define('_MYSQL_USER', 'bisonconst_stand');
define('_MYSQL_DB', 'bisonconst_jobtracker');
define('_MYSQL_PASS', 'xKpU7CgTfAYKuChxKpU7CgTfAYKuCh');
//define('_MYSQL_CHARSET', 'utf8mb4');


// oAuth details



// TENANTID: Your tenant's ID if you set up the app reg as single tenant, otherwise 'common'

//Scope needs to include the services you wish to access - at a minimum you'll need openid and offline_access for logging on to work. Add in user.read if you want to query user profile via Graph. Separate with %20.

define('_OAUTH_TENANTID', '838550a8-cd56-45cb-80ff-4172a51f1970');
define('_OAUTH_CLIENTID', 'd9d02085-d83f-4366-b6ef-4962de9528d5');
define('_OAUTH_LOGOUT', 'https://login.microsoftonline.com/common/wsfederation?wa=wsignout1.0');
define('_OAUTH_SCOPE', 'openid%20offline_access%20profile%20user.read');

// Define either the client secret, or the client certificate details
// method = 'certificate' or 'secret'

define('_OAUTH_METHOD', 'secret');

define('_OAUTH_SECRET', '6n78Q~pycgpQAbg_6NSpGPyg85gRaFkeLXvG7c2T');
//define('_OAUTH_AUTH_CERTFILE', '/path/to/certificate.crt');
//define('_OAUTH_AUTH_KEYFILE', '/path/to/privatekey.pem');

// on Windows, the certificate paths should be in the form c:/path/to/cert.crt
//define('_OAUTH_SERVER', 'https://login.microsoftonline.com/common/oauth2/v2.0/');
//define('_OAUTH_SERVER', 'https://login.microsoftonline.com/838550a8-cd56-45cb-80ff-4172a51f1970/oauth2/v2.0/');

// URL to this website, no trailing slash.
define('_URL', 'https://sms.bisonconstructions.com.au');
?>