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

Subclass OAuth2ImplicitGrant for a non-standard case #262

Merged
merged 3 commits into from
May 4, 2018
Merged

Conversation

tschmitz
Copy link
Contributor

@tschmitz tschmitz commented May 4, 2018

Handles APIs that return token and other info in the query instead of the fragment.

Handles APIs that return token and other info in the query instead of the fragment.
Copy link
Owner

@p2 p2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks! Can you fix the comment and then use tabs instead of spaces to keep consistent with the rest of the project? Also, see https://github.com/p2/OAuth2/blob/master/CONTRIBUTING.md → add your name!

override open func handleRedirectURL(_ redirect: URL) {
logger?.debug("OAuth2", msg: "Handling redirect URL \(redirect.description)")
do {
// token should be in the URL fragment
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment is not quite correct. ;)

@tschmitz
Copy link
Contributor Author

tschmitz commented May 4, 2018

Spaces, ack, what was I thinking! Shows what I get for making changes in the web interface. Fixes applied!

@p2
Copy link
Owner

p2 commented May 4, 2018

Haha, you, who wants spaces! ;)

Thanks, looks good to me though haven't tested, accepting!

@p2 p2 merged commit 71ad611 into p2:master May 4, 2018
MaximeLM pushed a commit to MaximeLM/OAuth2 that referenced this pull request Aug 23, 2018
…2#262)

Handles APIs that return token and other info in the query instead of the fragment.
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