[tag:bug] [tag:support]  
@Nathan Osman, I have been trying to get authentication working with your library (which is very useful BTW). However, whenever I use the explicit flow I end up with an error on the stack exchange.com/oauth/submit page saying:

> Cannot return to provided redirect_uri

The uri I am attempting to provide is generated using `BeginExplicitFlow` in `auth.php` from Stack.PHP and I have checked that it is correct (uses the same protocol, same subdomain). However I can't get it to work, I just get the "Cannot return to provided redirect_uri" error. I have also tried the implicit flow but that doesn't work for me either.

Since this library hasn't been updated in a while, I was wondering if you (or other helpful samaritans) could confirm that the authentication part of this library still works so that I can be sure it is something wrong with my setup.

To clarify, my redirect_uri uses a subdomain, and this is also specified in my app's "OAuth Domain". The page from which I am attempting to authenticate from does reside under my "OAuth Domain", I cannot think what could be wrong with my setup...

I have been struggling with this for weeks and have searched online for hours and don't know what else to try, I have found similar problems but nothing that solved my issues. Thanks for the help.