config.php
1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* Example VATSIM SSO Script package.
* Configuration file for OAuth integration
*
* @author Kieran Hardern
* @version 0.2
*/
/*
* Contains all temporary config variables
*/
$sso = array();
/*
* The location of the VATSIM OAuth interface
*/
$sso['base'] = 'http://sso.hardern.net/server/';
/*
* The consumer key for your organisation (provided by VATSIM)
*/
$sso['key'] = 'SSO_DEMO_VACC';
/*
* The secret key for your orgnisation (provided by VATSIM)
* Do not give this to anyone else or display it to your users. It must be kept server-side
*/
$sso['secret'] = '04i_~ruVUE.1-do1--sc';
/*
* The key for whic temporary (token) details for each user will be stored e.g. $_SESSION['mykey']
* If you chose to handle the tokens yourself by another method, you can remove this
*/
define('SSO_SESSION', 'oauth');
/*
* The URL users will be redirected to after they log in, this should
* be on the same server as the request
*/
// Using https or http?
$http = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) ? 'https://' : 'http://';
// determing location from URL (comment out if manually defining - example below)
$sso['return'] = 'http://localhost:4040/sso/index.php?return';
//$sso_return = 'http://example.com/index.php?return';
/*
* The signing method you are using to encrypt your request signature.
* Different options must be enabled on your account at VATSIM.
* Options: RSA / HMAC
*/
$sso['method'] = 'HMAC';
/*
* Your RSA **PRIVATE** key
* If you are not using RSA, this value can be anything (or not set)
*/
$sso['cert'] = <<<EOD
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
EOD;
?>