New third party provider configuration options - #8603
Conversation
|
Thanks for the pull request, @bradenmacdonald! It looks like you're a member of a company that does contract work for edX. If you're doing this work as part of a paid contract with edX, you should talk to edX about who will review this pull request. If this work is not part of a paid contract with edX, then you should ensure that there is an OSPR issue to track this work in JIRA, so that we don't lose track of your pull request. To automatically create an OSPR issue for this pull request, just visit this link: http://openedx-webhooks.herokuapp.com/github/process_pr?number=8603&repo=edx%2Fedx-platform |
00a9f9d to
ace8afc
Compare
|
Thanks for the pull request, @bradenmacdonald! I've created OSPR-665 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. |
|
@bradenmacdonald You've got JS test failures which appear to be related to this task. |
There was a problem hiding this comment.
I believe the UX team is trying to get away from specific pixel values like this in favor of predefined variables that handle spacing. I'm not sure if it will be requested here or not, since nothing else in the file is so updated, so maybe they'd rather handle it in a future task. Just a heads up. I'm sure @talbs or someone else on that team may clarify if it's needed.
There was a problem hiding this comment.
@Kelketek is correct, for anything that can be a derivative of our $baseline Sass spacing/layout scale variable (~20px), please reference it. In this case, something like ($baseline/4) would be best.
|
@bradenmacdonald The sandbox makes it difficult to see if the tertiary providers can actually be used, as all of them appear to be disabled. |
|
@Kelketek Yeah, I'll look into the JS failures. For some reason they're passing locally so I was having trouble figuring out what the cause it. |
|
@bradenmacdonald I know they just recently did some sort of RequireJS optimizations that caused these items to be pipelined, and I think they're doing some stuff to make it fail early if your assets aren't put in the build pipeline, but I'm not sure. https://openedx.atlassian.net/browse/SOL-977 The earlier issues with Content Libraries were solved by adding the JS assets to the required pipeline, so maybe that's something you need to do if you added some assets and haven't plugged them in. |
|
FYI, there is a "TestEmailMessageWithCustomICRVBlock" test failure that is unrelated. It is what I call a "test time bomb" - a hard-coded date that causes the test to fail after June 22, 2015. |
559ae71 to
e9a4b2e
Compare
|
@Kelketek I have added two "TestShib" provider options to the sandbox, and they should now be active. The rest of the University login options are not enabled, as you noticed. They're just there to show the UI. |
|
@bradenmacdonald Looks good to me. 👍 if the tests pass. |
|
@cpennington This is ready for your review. "TestEmailMessageWithCustomICRVBlock" test failure is unrelated. |
e9a4b2e to
a9f6068
Compare
|
@cpennington should the platform team or destination team review this? |
|
👍 |
|
👍 @bradenmacdonald rebasing should pick up test fixes. @talbs still needs to review. @mhoeber please assess for doc impact. |
There was a problem hiding this comment.
Do you need to specify a height here? If not, I'd prefer this removed and the element's height be automatically calculated from its contents. If you need to sync up heights across buttons, I'd recommend either min-height.
There was a problem hiding this comment.
This is also not something I changed. I can convert this to min-height if you want, but then you get this (sorry this is in RTL mode, but it still illustrates the point):
Currently the buttons don't expand at all, and extra text gets cut off. An alternative is to change the width to min-width, which I think is less bad:

That said, these styles are not part of my change so let me know if we can postpone this.
There was a problem hiding this comment.
Gotcha. Apologies. Yeah, we can definitely table this and make it part of edX's clean up.
There was a problem hiding this comment.
When adding structural or styling-minded wrapper elements, we add the wrapper- prefix. Please change to wrapper-other-login.
|
@talbs Thanks for the review - I appreciate you fitting it in to this week! I have addressed all your comments (I think!):
You can see my commits above if you'd like to review the diff. |
|
Wow, thanks for the quick turn around, @bradenmacdonald. Things look great all around! I'll circle back with edX Product on some other points, but this is solid from a UX PoV. 👍 |
|
Oh, also, @bradenmacdonald. Apologies for the feedback on existing code. I partook in far too much coffee today. That always means me on a Sass/CSS cleaning frenzy. :) |
|
:-) Thanks @talbs. Cheers. |
|
shit I did forget to tag @cptvitamin on these. Braden can you tag him on On Thu, Jun 25, 2015 at 10:30 PM, Braden MacDonald <notifications@github.com
|
|
This looks good from a product perspective. @talbs I know that edge reg/enroll flows need work. We can tackle them in our Onboarding UX Audit. So, add edge to the list (after Open & White Label). We'll want to pull this SSO flow onto edX.org at some point in the not too distant future; so, that's when we can tackle the outstanding UX issues. |
|
@bradenmacdonald I have a little bit of feedback here from an accessibility perspective. None of them are show-stoppers. If you wanted to introduce them in another PR, that would be cool:
That's it! Otherwise, this looks great. |
|
Braden, I just spoke with Mark. Let's merge this now to get into the On Fri, Jun 26, 2015 at 2:46 PM, Mark Sadecki notifications@github.com
|
|
@cptvitamin Thanks for the review! I think both of those would be great improvements but they do both sound like existing issues so I agree with the plan of merging this now, and I'll prepare a separate PR for those later today. |
New third party provider configuration options
|
Ok, follow-up a11y PR posted at https://github.com/edx/edx-platform/pull/8699 |
|
@bradenmacdonald the requirement of Removing python-saml from my requirements file fixes the |
|
@sarina To fix that, there are two ubuntu packages that must be installed: I knew about these dependencies so I put them into Is there somewhere else that they need to be listed, or do we just have to ask people to manually install them? (Or re-provision?) |
|
@bradenmacdonald It would be good to send an email to eng-global about this change. I was aware of your PRs and didn't put it together. Please also forward the email to edx-code (ideally after people on eng-global confirm the instructions work for them). |
|
@bradenmacdonald @sarina This didn't work for me on my devstack. Am I doing this wrong? |
|
@andy-armstrong You likely just need to do |
|
Thanks @bradenmacdonald. That indeed did it for me. |

This implements three new options for third party auth providers. All three options are controlled via the Django admin (ConfigurationModel[s]).
Screenshots:

Look for the new "Use Institution Credentials" button in these screenshots:
And here's what would be seen when one clicks on the link (except it would be an alphabetical list of real universities):

Sandbox:
http://sandbox4.opencraft.com/login (Updated June 25 to 5f6cbab)
Reviewers:
Engineering: @Kelketek and @cpennington
Product: @ebporter
UX: @talbs
a11y: @cptvitamin