Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
make sure audience captures full origin #82
ok, port is already in there, but it seems like we'll need to make sure we're normalizing (so that foo.com:80 and foo.com match).
I wrote a little library to do that once upon a time: https://github.com/lloyd/urlmatch.js - but I think that's overkill, because we can just use node's libs (normalization is work to be done inside the verifier): http://nodejs.org/docs/v0.4.12/api/url.html
More interesting to me is breaking our external contracts. Here's my proposal: