Changes between Version 6 and Version 7 of login-service


Ignore:
Timestamp:
Mar 8, 2016, 5:00:18 PM (6 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • login-service

    v6 v7  
    55== Server side ==
    66
    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.
     7The 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.
    88
    99The application is managed by runit (via /etc/sv/login-service), so it should restart when the system restarts.
     
    2424pass="$2"
    2525app_id="$3"
    26 out=$(curl -s "https://members.mayfirst.org:8080/check?user=$user&password=$pass&app_id=$3")
     26out=$(curl -s "https://id.mayfirst.org:8080/check?user=$user&password=$pass&app_id=$3")
    2727[ "$out" = "yes" ] && exit 0
    2828exit 1
     
    3333
    3434function 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) .
    3636   '&password=' . urlencode($password) . '&app_id=' . $app_id;
    3737  $out = file_get_contents($url);
     
    4949
    5050function authenticate_user($user, $password, $app_id) {
    51         $url = 'https://members.mayfirst.org:8080/check';
     51        $url = 'https://id.mayfirst.org:8080/check';
    5252        $vars = 'user=' . urlencode($user) . '&password=' . urlencode($password) .
    5353         '&app_id=' . urlencode($app_id);