peterldowns / djoauth2

An OAuth2 server implementation for Django.
http://djoauth2.readthedocs.org/
MIT License
44 stars 8 forks source link

Redirect url for mobile app #12

Open camanjj opened 9 years ago

camanjj commented 9 years ago

How would it be possible to add the ability to use a custom url scheme for the redirect_url for a mobile app. For example: mycoolapp://callback

peterldowns commented 9 years ago

Hmm, the only change that needs to be made is in authorization.py – switching away from a validator that enforces https:// to one that disallows http:// but allows {'https://', 'any-custom-scheme://'}. Mind submitting the PR with tests? Would be happy to accept.