Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
df80a8d6
Commit
df80a8d6
authored
May 19, 2015
by
Tyler Nickerson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8075 from edx/tyler-jwt-fullname
LMS now passes the full name of users to the ecommerce api client
parents
e9164a72
5359ff9d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
lms/djangoapps/commerce/__init__.py
+1
-1
lms/djangoapps/commerce/tests/__init__.py
+1
-0
requirements/edx/github.txt
+1
-1
No files found.
lms/djangoapps/commerce/__init__.py
View file @
df80a8d6
...
...
@@ -16,4 +16,4 @@ def create_tracking_context(user):
def
ecommerce_api_client
(
user
):
""" Returns an E-Commerce API client setup with authentication for the specified user. """
return
EcommerceApiClient
(
settings
.
ECOMMERCE_API_URL
,
settings
.
ECOMMERCE_API_SIGNING_KEY
,
user
.
username
,
user
.
email
,
tracking_context
=
create_tracking_context
(
user
))
user
.
profile
.
name
,
user
.
email
,
tracking_context
=
create_tracking_context
(
user
))
lms/djangoapps/commerce/tests/__init__.py
View file @
df80a8d6
...
...
@@ -58,6 +58,7 @@ class EcommerceApiClientTest(TestCase):
actual_header
=
httpretty
.
last_request
()
.
headers
[
'Authorization'
]
expected_payload
=
{
'username'
:
self
.
user
.
username
,
'full_name'
:
self
.
user
.
profile
.
name
,
'email'
:
self
.
user
.
email
,
'tracking_context'
:
{
'lms_user_id'
:
self
.
user
.
id
,
# pylint: disable=no-member
...
...
requirements/edx/github.txt
View file @
df80a8d6
...
...
@@ -50,7 +50,7 @@ git+https://github.com/edx/edx-lint.git@8bf82a32ecb8598c415413df66f5232ab8d974e9
-e git+https://github.com/edx/xblock-utils.git@581ed636c862b286002bb9a3724cc883570eb54c#egg=xblock-utils
-e git+https://github.com/edx-solutions/xblock-google-drive.git@138e6fa0bf3a2013e904a085b9fed77dab7f3f21#egg=xblock-google-drive
-e git+https://github.com/edx/edx-reverification-block.git@2ff0d21f6614874067168bd244e68d8215041f3b#egg=edx-reverification-block
git+https://github.com/edx/ecommerce-api-client.git@
0.4.3#egg=ecommerce-api-client==0.4.3
git+https://github.com/edx/ecommerce-api-client.git@
1.0.0#egg=ecommerce-api-client==1.0.0
# Third Party XBlocks
-e git+https://github.com/mitodl/edx-sga@172a90fd2738f8142c10478356b2d9ed3e55334a#egg=edx-sga
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment