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
885ddb99
Commit
885ddb99
authored
Dec 12, 2017
by
Matt Drayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Utilize configured user for SuccessFactors BizX OData API callbacks
parent
bb9e5922
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
common/djangoapps/third_party_auth/saml.py
+8
-1
No files found.
common/djangoapps/third_party_auth/saml.py
View file @
885ddb99
...
...
@@ -230,6 +230,10 @@ class SapSuccessFactorsIdentityProvider(EdXSAMLIdentityProvider):
def
odata_client_id
(
self
):
return
self
.
conf
[
'odata_client_id'
]
@property
def
oauth_user_id
(
self
):
return
self
.
conf
.
get
(
'oauth_user_id'
)
def
invalid_configuration
(
self
):
"""
Check that we have all the details we need to properly retrieve rich data from the
...
...
@@ -282,12 +286,15 @@ class SapSuccessFactorsIdentityProvider(EdXSAMLIdentityProvider):
"""
Obtain a SAML assertion from the SAP SuccessFactors BizX OAuth2 identity provider service using
information specified in the third party authentication configuration "Advanced Settings" section.
Utilizes the OAuth user_id if defined in Advanced Settings in order to generate the SAML assertion,
otherwise utilizes the user_id for the current user in context.
"""
session
=
requests
.
Session
()
oauth_user_id
=
self
.
oauth_user_id
if
self
.
oauth_user_id
else
user_id
transaction_data
=
{
'token_url'
:
self
.
sapsf_token_url
,
'client_id'
:
self
.
odata_client_id
,
'user_id'
:
user_id
,
'user_id'
:
oauth_
user_id
,
'private_key'
:
self
.
sapsf_private_key
,
}
try
:
...
...
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