Redirect URIs other than http:// on mobile apps #210
I'm following the following guide for using OAuth2 with mobile apps: http://www.slideshare.net/briandavidcampbell/is-that-a-token-in-your-phone-in-your-pocket-or-are-you-just-glad-to-see-me-oauth-20-and-mobile-devices
It requires different formats of redirect uris. This file seems to require only http://..
I'm overriding it with this in an initializer right now:
class RedirectUriValidator def validate_each(record, attribute, value) end end
Is this the best approach or should doorkeeper include support for these types of redirect uris? Thanks!
The text was updated successfully, but these errors were encountered:
Another +1, I'm also overriding this.
Update: To clarify, I'm overriding it like this, so this is a bit different.
puts 'Warning, overriding Doorkeeper URL validation' Doorkeeper::OAuth::PreAuthorization.class_eval do def validate_redirect_uri return true # or change it to test redirect_uri for *.domain.com end end