Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Properly fetch user_id during LMS SSO flow#41

Merged
bradenmacdonald merged 1 commit intomasterfrom
oauth2-update
Jun 20, 2019
Merged

Properly fetch user_id during LMS SSO flow#41
bradenmacdonald merged 1 commit intomasterfrom
oauth2-update

Conversation

@bradenmacdonald
Copy link
Contributor

Description

This is a quick follow-up to #38, to remove a workaround now that I know what settings on the LMS must be changed for the SSO flow to work as intended.

Author Comments, Concerns, and Open Questions

Test Instructions

Check out this branch and restart Blockstore. Configure your devstack per the updated README instructions in this PR, then login to Blockstore by going to http://localhost:18250/login in an incognito window.

Then go to http://localhost:18250/admin/social_django/usersocialauth/ and click on the user you used (e.g. "staff") and confirm that the user_id is present in the "Extra Data" JSON field.

#. Check "Skip authorization"
#. Press "Save and continue editing"
#. Go to http://localhost:18000/admin/oauth_dispatch/applicationaccess/
#. Click "Add Application Access +", choose Application: ``blockstore-sso`` and set Scopes to ``user_id``, then hit "Save"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

^ The above two steps are the new ones

@bradenmacdonald
Copy link
Contributor Author

@ormsbee Do you have a minute to look at this?

@bradenmacdonald bradenmacdonald merged commit 6380a5f into master Jun 20, 2019
@bradenmacdonald bradenmacdonald deleted the oauth2-update branch June 20, 2019 17:47
@openedx-webhooks openedx-webhooks added merged open-source-contribution PR author is not from Axim or 2U labels Jan 22, 2021
@openedx-webhooks
Copy link

Although this pull request is already merged, I've created OSPR-5448 so that we can track it in Jira.

There is nothing you have to do. No action is needed from your side. Thanks again for your contribution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

merged open-source-contribution PR author is not from Axim or 2U

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants