-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fixed an OAuth 2.0 Authorization issue in ServiceNow V2 #17337
Conversation
…ured with OAuth 2.0 Authorization
Hi @moishce, In my first commit I added a unit test that is failing due to the bug described in the PR's body. In my second commit I added the support for getting an attachment file of a ServiceNow ticket by using an OAuth 2.0 client. In my third commit I added the RN and improved the unit test doc string. Let me know if you have any question or suggestion :) |
727c636
to
921928a
Compare
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.
great work 👍
@@ -32,6 +32,12 @@ def __init__(self, credentials: dict, use_oauth: bool = False, client_id: str = | |||
self.password = credentials.get('password') | |||
self.auth = (self.username, self.password) | |||
|
|||
if '@' in client_id: # for use in OAuth test-playbook | |||
self.client_id, refresh_token = client_id.split('@') | |||
integration_context = get_integration_context() |
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.
is there a reason for that? will there be anything in the context?
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.
Changed that. thanks!
|
||
#### Integrations | ||
##### ServiceNow v2 | ||
- Fixed the ***servicenow-get-ticket*** command to correctly authorize the request when getting an attachment from a 'ServiceNow' ticket. |
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.
- Fixed the ***servicenow-get-ticket*** command to correctly authorize the request when getting an attachment from a 'ServiceNow' ticket. | |
- Fixed an issue where the ***servicenow-get-ticket*** command failed when to get attachments when using *OAuth Login*. |
Contributing to Cortex XSOAR Content
Make sure to register your contribution by filling the contribution registration form
The Pull Request will be reviewed only after the contribution registration form is filled.
Status
Related Issues
fixes: 46055
Description
The edited TPB:
Minimum version of Cortex XSOAR
Does it break backward compatibility?
Must have