![]() |
CSC309 Programming on the Web
|
| Due: | March 5, 2017, 11:50 PM |
|---|---|
| Late penalty: | 20% penalty for 48 hours late, not excepted after that. |
| Hand in: | Electronic submit here |
| Preliminary Marking Scheme: | here |
| Groups: | Work in teams of size 2 |
| Environment: | We will run your code under Firefox and cs.utm.utoronto.ca. |
It should be noted that a RESTful api uses authentication slightly differently. That is, the simple case has the client store the credentials and repeatedly send them on each request. In this way, the server does not maintain session information. As an extra feature, you can implement rest api login pattern instead of simply sending the credentials on each request.
keypress event.
.htaccess and htpasswd. In general,
you would not put the htpasswd file in such a 'convenient' place. In any case, I have set this up so that self can access the directory with password changeThis.
Your job is to fix .htaccess so that it points to your htpasswd and also change the password using the htpasswd command.
Otherwise, curious students can simply browse into your directory, download your
game and play with it, and then look at your code.
See Authentication and Authorization. By the way,
this is not great security, at least cs uses https though, so the whole conversation is encrypted.