-
Notifications
You must be signed in to change notification settings - Fork 66
V2 for release 2.4 #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
adorton-adobe
merged 5 commits into
adobe-apiplatform:v2
from
shasibhusanJena:V2-for-release-2.4
Feb 6, 2019
Merged
V2 for release 2.4 #443
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4a66ce8
https://github.com/adobe-apiplatform/user-sync.py/issues/416
shasibhusanJena e91b360
https://github.com/adobe-apiplatform/user-sync.py/issues/416
shasibhusanJena fd0b974
- removed line from app.py default AssertionException block - added …
shasibhusanJena 34f8bf0
Log a meaningful error if Okta connector isn't invoked correctly
shasibhusanJena 1de4d6e
Update config.py
shasibhusanJena File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -323,6 +323,11 @@ def get_directory_connector_options(self, connector_name): | |
""" | ||
options = {} | ||
connectors_config = self.get_directory_connector_configs() | ||
|
||
if ( 'okta' in connectors_config.value) and (connector_name == 'ldap'): | ||
if connectors_config.accessed_keys is not None: | ||
shasibhusanJena marked this conversation as resolved.
Show resolved
Hide resolved
|
||
raise AssertionException("Failed to match request : for Okta Connector type receiving LDAP as input type from commnand line") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you make the check more generic you'll need to make this message generic as well. I'd do something like this: raise AssertionException("Config file must be specified for connector type '{}'".format(connector_name)) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. modified. please review |
||
|
||
if connectors_config is not None: | ||
connector_item = connectors_config.get_list(connector_name, True) | ||
options = self.get_dict_from_sources(connector_item) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that I've had more time to look at this, I think we need to make this check more generic. If you do the opposite of what we're checking here - enable the link to the Okta config, but make sure the
--connector
is "ldap" - then we still get an unhelpful message.The check should ensure that the correct config file is specified for the connector type. The only exception is CSV, which does not require a configuration file.
Here is how I would modify your check:
You will also need to change the error message - I'll address that separately.