SSO - Ability to specify default third_party_auth provider via query param - #8591
Conversation
|
Thanks for the pull request, @bradenmacdonald! I've created OSPR-664 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the Github pull request interface. As a reminder, our process documentation is here. |
3bccf35 to
c6cf374
Compare
855ed9b to
6eefc63
Compare
|
Jenkins, test this please. flaky test failure. |
There was a problem hiding this comment.
True; I had just copy-pasted that line from account_spec. If I need to amend this commit I'll fix that up :)
|
@bradenmacdonald This looks solid to me. 👍 |
|
@cpennington @sarina This PR is ready for review. It targets the SSO feature branch and is mostly JavaScript and HTML changes. Let me know if you want an OSPR. |
There was a problem hiding this comment.
Question: does it make sense to have this as a query param, rather than as a separate url?
There was a problem hiding this comment.
My thought was that a query param is easier for partner universities to construct - just copy the URL to some part of the courseware, then append the query string part. If it's a separate URL we'd probably need to create a UI/tool that creates the URL for them, no? And there may be many different types of links that we'd need to accommodate - so several new URL patterns may be required.
Edit: I guess something like /hinted_login?next=... would work as well, as a new URL. It would just be harder for partner universities to construct such a URL. It is likely a cleaner and more generic approach though.
There was a problem hiding this comment.
I that makes sense. I was thinking there was just one url, but if the idea is to just have any of our normal urls, but decorate with an optional query param, then that sounds fine.
|
@cpennington should the platform team or destination team review this? |
There was a problem hiding this comment.
Is there binding that I'm missing that makes this button work?
There was a problem hiding this comment.
@cpennington Yep, it's an existing handler for the page as a whole in AccessView: https://github.com/edx/edx-platform/pull/8591/files#diff-aa10400ca417043aab41f33394c90790R15
|
👍 from a high level review. |
|
@cpennington does someone else need to review this as well? |
There was a problem hiding this comment.
Just a note (totally don't have to fix this) but in python since you can define a string with single or double quotes, if you define it with single quotes you don't have to escape the double quotes (and vice versa).
|
@mhoeber please assess for doc impact |
|
@sarina, no, it's good (assuming we decide there's no UX or doc impact) |
|
Docs are going to come after this merges, so we are not blocked on docs. Just waiting on UX, which should happen this week. Thanks! |
There was a problem hiding this comment.
You're really compounding this selector (especially with https://github.com/edx/edx-platform/pull/8603). Please place each new selector on a different line for better legibility with that in mind.
There was a problem hiding this comment.
When adding structural or styling-minded wrapper elements, we add the wrapper- prefix. Please change to wrapper-hint.
There was a problem hiding this comment.
When adding structural or styling-minded wrapper elements, we add the wrapper- prefix. Please change to wrapper-hint.
There was a problem hiding this comment.
Any objection to me changing this to wrapper-other-login, the same class that the other PR is using for the same purpose?
|
@bradenmacdonald, thanks for the work on this. Its much appreciated. Assuming that this is just being released on Edge and that @ebporter has reviewed from a Product perspective, this is fine from a UX perspective. Let me know once you've addressed my feedback and if you have any questions. |
|
@talbs re: "uneven spacing between your auth buttons (screengrab below). Please make this consistent." - that was an existing issue and I've fixed it with the other PR. When both are merged, it will be fixed :) |
|
@talbs Ok, I just pushed a commit to fix:
I replied to all the other comments and updated the sandbox. |
|
Thanks, @bradenmacdonald. The fixes and sandbox look generally good. I left one visual thing (in what looks like a collapsed thread in this PR's history) about a display issue with the default provider button state. Once you've addressed that, 👍 |
|
@cptvitamin Can you please review this for a11y? It's just the one fairly minimal new page shown in the screenshot in the PR description above, and linked to under "Testing Instructions". Like the other PR where Brian just pinged you, this is extending the existing logistration page and we're trying to get merged in prior to the next release. |
|
@bradenmacdonald, thanks for the extra clarification. 👍 |
|
Looks good from a Product perspective. |
|
👍 This looks great |
|
Braden - go ahead and merge this one! On Fri, Jun 26, 2015 at 2:25 PM, Mark Sadecki notifications@github.com
|
|
Great, thanks @cptvitamin and everyone :) This one needs a rebase now that the other has merged and I just noticed a bok choy failure that's showing up now, likely from renaming CSS classes during the UX review. I'll rebase, fix that test, and merge as soon as the tests pass (save that unrelated test failure that's fixed on master). |
78206a8 to
8362058
Compare

Description:
If link to a course includes a query parameter (
?tpa_hint=) that specifies one of the enabled third_party_auth providers, and the user is not logged in, the third_party_auth sign in flow with the specified provider should be automatically started instead of redirecting the user to the login page.Background info in the SSO MVP Spec Doc
JIRA: OSPR-664
No un-merged dependencies.
Screenshot:

Sandbox:
http://sandbox5.opencraft.com/ (Updated Jun 25)
Testing Instructions (Sandbox):
Here is a link to the courseware:
http://sandbox5.opencraft.com/courses/edX/DemoX/Demo_Course/courseware/d8a6192ade314473a78242dfeedfbf5b/edx_introduction/
Here is a hinted link to the courseware, using the UBC SAML provider:
http://sandbox5.opencraft.com/courses/edX/DemoX/Demo_Course/courseware/d8a6192ade314473a78242dfeedfbf5b/edx_introduction/?tpa_hint=saml-ubc-staging
Here is a hinted link to the courseware, using the Dummy provider:
http://sandbox5.opencraft.com/courses/edX/DemoX/Demo_Course/courseware/d8a6192ade314473a78242dfeedfbf5b/edx_introduction/?tpa_hint=oa2-dummy
Testing Instructions (Local):
Reviewers:
All: @Kelketek and Cale?
Product: Beth and/or Leslie (asked via email)
UX: @talbs
a11y: @cptvitamin