{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/8591","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/8591/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/8591/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/8591/events","html_url":"https://github.com/edx/edx-platform/pull/8591","id":89629375,"number":8591,"title":"SSO - Ability to specify default third_party_auth provider via query param","user":{"login":"bradenmacdonald","id":945577,"avatar_url":"https://avatars.githubusercontent.com/u/945577?v=3","gravatar_id":"","url":"https://api.github.com/users/bradenmacdonald","html_url":"https://github.com/bradenmacdonald","followers_url":"https://api.github.com/users/bradenmacdonald/followers","following_url":"https://api.github.com/users/bradenmacdonald/following{/other_user}","gists_url":"https://api.github.com/users/bradenmacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/bradenmacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradenmacdonald/subscriptions","organizations_url":"https://api.github.com/users/bradenmacdonald/orgs","repos_url":"https://api.github.com/users/bradenmacdonald/repos","events_url":"https://api.github.com/users/bradenmacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/bradenmacdonald/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/edx/edx-platform/labels/needs%20triage","name":"needs triage","color":"e11d21"},{"url":"https://api.github.com/repos/edx/edx-platform/labels/open-source-contribution","name":"open-source-contribution","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-19T18:29:18Z","updated_at":"2015-06-22T16:40:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/8591","html_url":"https://github.com/edx/edx-platform/pull/8591","diff_url":"https://github.com/edx/edx-platform/pull/8591.diff","patch_url":"https://github.com/edx/edx-platform/pull/8591.patch"},"body":"**Description**:\r\nIf 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.\r\n\r\n[Background info in the SSO MVP Spec Doc](https://docs.google.com/document/d/1JFCYH9mvZcGqF1zDGOIWyQu-C7JVAdFJgXLaKu8Rp2U/edit)\r\n\r\nNo JIRA story.\r\n\r\nNo un-merged dependencies.\r\n\r\n**Screenshot**:\r\n![screen shot](https://cloud.githubusercontent.com/assets/945577/8076806/144e396e-0f05-11e5-8c1e-60af6d6ea696.png)\r\n\r\n**Sandbox**:\r\nhttp://sandbox5.opencraft.com/ (Updated Jun 19)\r\n\r\n**Testing Instructions (Sandbox)**:\r\nHere is a link to the courseware:\r\nhttp://sandbox5.opencraft.com/courses/edX/DemoX/Demo_Course/courseware/d8a6192ade314473a78242dfeedfbf5b/edx_introduction/\r\n\r\nHere is a *hinted* link to the courseware, using the UBC SAML provider:\r\nhttp://sandbox5.opencraft.com/courses/edX/DemoX/Demo_Course/courseware/d8a6192ade314473a78242dfeedfbf5b/edx_introduction/?tpa_hint=saml-ubc-staging\r\n\r\nHere is a *hinted* link to the courseware, using the Dummy provider:\r\nhttp://sandbox5.opencraft.com/courses/edX/DemoX/Demo_Course/courseware/d8a6192ade314473a78242dfeedfbf5b/edx_introduction/?tpa_hint=oa2-dummy\r\n\r\n1. Click on all three links. Note the different behaviour. (Assuming you are not currently logged in to our sandbox)\r\n2. Open the Dummy-hinted version in an incognito window, and use sign in with the Dummy provider. You should now be logged in and taken to the courseware.\r\n3. Log out of Adama's account.\r\n4. Open the UBC-hinted version in an incognito window, but instead of signing in via UBC, try signing in as student@example.com or using the Dummy provider. You should be logged in and taken to the courseware.\r\n\r\n**Testing Instructions (Local)**:\r\n1. Create a course and enable at least one third party auth provider (e.g. add a Dummy provider using the dummy backend at localhost:8000/admin/third_party_auth/oauth2providerconfig/ ).\r\n2. Re-create the scenario above but using your local course.\r\n\r\n**Reviewers**:\r\nAll: @Kelketek and Cale?\r\nProduct: Beth and/or Leslie (asked via email)\r\nUX: TBD\r\na11y: TBD"},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/114174083","html_url":"https://github.com/edx/edx-platform/pull/8591#issuecomment-114174083","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/8591","id":114174083,"user":{"login":"edx-webhook","id":8964148,"avatar_url":"https://avatars.githubusercontent.com/u/8964148?v=3","gravatar_id":"","url":"https://api.github.com/users/edx-webhook","html_url":"https://github.com/edx-webhook","followers_url":"https://api.github.com/users/edx-webhook/followers","following_url":"https://api.github.com/users/edx-webhook/following{/other_user}","gists_url":"https://api.github.com/users/edx-webhook/gists{/gist_id}","starred_url":"https://api.github.com/users/edx-webhook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx-webhook/subscriptions","organizations_url":"https://api.github.com/users/edx-webhook/orgs","repos_url":"https://api.github.com/users/edx-webhook/repos","events_url":"https://api.github.com/users/edx-webhook/events{/privacy}","received_events_url":"https://api.github.com/users/edx-webhook/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T16:40:25Z","updated_at":"2015-06-22T16:40:25Z","body":"Thanks for the pull request, @bradenmacdonald! I've created [OSPR-664](https://openedx.atlassian.net/browse/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. \n\nFeel free to add as much of the following information to the ticket:\n- supporting documentation\n- edx-code email threads\n- timeline information ('this must be merged by XX date', and why that is)\n- partner information ('this is a course on edx.org')\n- any other information that can help Product understand the context for the PR\n\nAll technical communication about the code itself will still be done via the Github pull request interface. As a reminder, [our process documentation is here](http://edx-developer-guide.readthedocs.org/en/latest/process/overview.html)."}}