Skip to content
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

[Palo Alto] Error 401 correctly #2955

Merged
merged 1 commit into from
Nov 8, 2024
Merged

Conversation

nmccullagh-r7
Copy link
Collaborator

@nmccullagh-r7 nmccullagh-r7 commented Nov 8, 2024

Proposed Changes

https://rapid7.atlassian.net/browse/SOAR-18176

Description

@nmccullagh-r7 nmccullagh-r7 changed the base branch from master to develop November 8, 2024 15:11
@nmccullagh-r7 nmccullagh-r7 force-pushed the error-401-correctly branch 2 times, most recently from 23f6bbf to e5a50dc Compare November 8, 2024 16:07
@nmccullagh-r7 nmccullagh-r7 changed the title Error 401 correctly [Palo Alto] Error 401 correctly Nov 8, 2024
@nmccullagh-r7 nmccullagh-r7 force-pushed the error-401-correctly branch 4 times, most recently from 0789168 to 02fafbc Compare November 8, 2024 16:27

new_headers = self._advanced_authentication(api_key=self.api_key, api_key_id=self.api_key_id)
new_response = self.build_request(url=url, headers=new_headers, post_body=post_body)

if new_response.status_code in [401, 403]:
self.logger.info("Token is still invalid, raising exception")
Copy link
Collaborator

Choose a reason for hiding this comment

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

np: I think should be self.logger.error

@nmccullagh-r7 nmccullagh-r7 merged commit d5a7989 into develop Nov 8, 2024
10 checks passed
@nmccullagh-r7 nmccullagh-r7 deleted the error-401-correctly branch November 8, 2024 16:50
nmccullagh-r7 added a commit that referenced this pull request Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants