Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unescape uri in HandleAuthorizeRequest #9

Merged
merged 1 commit into from
Feb 4, 2014

Conversation

snovgorodsky
Copy link

I suggest to unescape redirect uri in handleCodeRequest() and handleTokenRequest().
I think it's safe to assume that people will be storing unescaped client redirect uri (baseUri) in a database, so we need to be consistent and always compare unescaped both baseUri & redirectUri - otherwise, if we get an escaped redirect uri from a login page, ValidateUri() will fail.
Please let me know what you think.

@RangelReale
Copy link
Contributor

Yes you're right, as urls get passed in various ways (url, post variables), it is a good thing to do.

RangelReale added a commit that referenced this pull request Feb 4, 2014
unescape uri in HandleAuthorizeRequest
@RangelReale RangelReale merged commit 1c078ba into openshift:master Feb 4, 2014
@snovgorodsky
Copy link
Author

Cool, thanks! Great job on osin library, btw :) Saved me tons of time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants