This doesn’t work:
/assignments/hw2/*
/assignments/hw3/*
Basic-Auth: user:pass
This does:
/assignments/hw2/*
Basic-Auth: user:pass
/assignments/hw3/*
Basic-Auth: user:pass
Any ideas?
This doesn’t work:
/assignments/hw2/*
/assignments/hw3/*
Basic-Auth: user:pass
This does:
/assignments/hw2/*
Basic-Auth: user:pass
/assignments/hw3/*
Basic-Auth: user:pass
Any ideas?
hm. Is securing the path at /assignments/
an option instead of the subpaths?
Nope. The reason we’re using basic auth is to secure unpublished assignments so that the students can’t find them by predicting the URL. We still want them to be able to see published assignments!
I think that the method you found (listing the paths individually) is as good as it gets without restructuring your site - something like:
/assignments/team1/*
Basic-Auth: team1:pass1
/assignments/team2/*
Basic-Auth: team2:pass2
should work…