-
Notifications
You must be signed in to change notification settings - Fork 2k
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
added ability to pass down url query parameters to initial oauth2.0 authorization page #503
Conversation
…sed argument error
…st and accidentally wrapping the brackets in wrong place
… in token2.0 'sign' function should have been self$params$auth_page_query_params if actually needed
…ult to list() not NULL
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please do a pass over your changes with styler, or by manually following the rules at http://style.tidyverse.org/? It's currently rather hard for me to read the code.
# Conflicts: # man/init_oauth2.0.Rd # man/oauth2.0_token.Rd
fixing styler overreach
Done - used 'styler' and tweaked manually when it didn't work so well. Let me know if it needs further tweaking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the idea is sound. I've made a bunch of suggestions to improve the style.
Done. |
Done. Replaced the empty input test with something that's hopefully clearer, more concise and more useful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. One last thing: can you please add a bullet to NEWS? It should briefly describe the change and end with (@yourname, #issuenumber)
.
Done - let me know if it's too wordy (or should be split up into more bullets). |
Thanks! |
My pleasure - thanks for the all the help & guidance with this. :) |
Hey @cosmomeese, you might like to know this feature comes in handy for Google OAuth flow too. We can pass the user's email address as a hint to the auth server, which pre-selects the targeted identity in the consent screen: |
That's so great @jennybc! Thanks for letting me know - it's always nice to see one's work end up being useful to someone else :) |
added ability pass down url query parameters to the initial oauth2.0 authorization page. e.g. this is useful for the Fitbit API which defines additional URI parameters (such as token expiration duration, ability to force authorization page/consent and others - see Authorization Page @ https://dev.fitbit.com/build/reference/web-api/oauth2/) that must be appended to the initial authorization URL.