]> git.openstreetmap.org Git - rails.git/commit
Allow any valid (per RFC 3986) scheme name in OAuth callback URLs
authorMendhak <mendhak@hotmail.com>
Sat, 23 Apr 2011 09:29:49 +0000 (10:29 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 11 May 2011 21:23:06 +0000 (22:23 +0100)
commit9375b397fa1ab6f4c5ded24c84c774e3d67a60e5
tree9b91a7c65cee5d9522f7ad6853c65f557ebc11b0
parent7e5bbd72eb1fb26e07cc0b771d5df2c2bbd4124a
Allow any valid (per RFC 3986) scheme name in OAuth callback URLs

Changed the callback_url regex so that you can have custom schemes such
as myapp: or my-lovely-app: instead of just http and https. This should
help with mobile development where users can authorize with OSM in their
browser and are automatically redirected to the registered app.
app/models/client_application.rb