Changes between Version 6 and Version 7 of login-service
- Timestamp:
- Mar 8, 2016, 10:00:18 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
login-service
v6 v7 5 5 == Server side == 6 6 7 The server is running a python twisted web application, available via git: git://git.mayfirst.org/mfpl/login-service. It is currently installed on hay.mayfirst.org in /usr/local/share/login-service, listens on port 8080, requires tls, and is configured to use the members.mayfirst.org key and certificate.7 The server is running a python twisted web application, available via git: git://git.mayfirst.org/mfpl/login-service. It is currently installed on hay.mayfirst.org in /usr/local/share/login-service, listens on port 8080, requires tls, and is configured to use the id.mayfirst.org key and certificate. 8 8 9 9 The application is managed by runit (via /etc/sv/login-service), so it should restart when the system restarts. … … 24 24 pass="$2" 25 25 app_id="$3" 26 out=$(curl -s "https:// members.mayfirst.org:8080/check?user=$user&password=$pass&app_id=$3")26 out=$(curl -s "https://id.mayfirst.org:8080/check?user=$user&password=$pass&app_id=$3") 27 27 [ "$out" = "yes" ] && exit 0 28 28 exit 1 … … 33 33 34 34 function authenticate_user($user, $password, $app_id) { 35 $url = 'https:// members.mayfirst.org:8080/check?user=' . urlencode($user) .35 $url = 'https://id.mayfirst.org:8080/check?user=' . urlencode($user) . 36 36 '&password=' . urlencode($password) . '&app_id=' . $app_id; 37 37 $out = file_get_contents($url); … … 49 49 50 50 function authenticate_user($user, $password, $app_id) { 51 $url = 'https:// members.mayfirst.org:8080/check';51 $url = 'https://id.mayfirst.org:8080/check'; 52 52 $vars = 'user=' . urlencode($user) . '&password=' . urlencode($password) . 53 53 '&app_id=' . urlencode($app_id);