Skip to content

Conversation

@lpardoRH
Copy link
Contributor

This PR adds OAUTH2 offline token handle for ZAP users.

  • Authentication/OfflineTokenRefresher.js will automatically fetch the new access token for every unauthorized request determined by the "Logged Out" or "Logged In" indicator previously set in Context -> Authentication.

  • HTTP Sender/AddBearerTokenHeader.js will add the new access token to all requests in scope made by ZAP (except the authentication ones) as an "Authorization: Bearer [access_token]" HTTP Header.

Signed-off-by: Laura Pardo <lpardo@redhat.com>
@lpardoRH
Copy link
Contributor Author

lpardoRH commented Sep 7, 2021

any updates on this? Am I missing a previous step or anything for this to get reviewed/accepted?

Copy link
Member

@kingthorin kingthorin left a comment

Choose a reason for hiding this comment

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

Just minor things for consistency

@kingthorin
Copy link
Member

The conflict in CHANGELOG.md also needs to be addressed.

@kingthorin
Copy link
Member

To address the DCO requirement you'll need to sign-off the commit(s):

lpardoRH and others added 2 commits September 13, 2021 16:55
Co-authored-by: Rick M <kingthorin@users.noreply.github.com>
Signed-off-by: Laura Pardo <lpardo@redhat.com>
@lpardoRH lpardoRH requested a review from kingthorin September 15, 2021 07:09
@kingthorin
Copy link
Member

Copy link
Member

@kingthorin kingthorin left a comment

Choose a reason for hiding this comment

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

Getting close

Copy link
Member

@kingthorin kingthorin left a comment

Choose a reason for hiding this comment

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

Looks good to me

@thc202 thc202 merged commit b1f3726 into zaproxy:main Sep 17, 2021
@thc202
Copy link
Member

thc202 commented Sep 17, 2021

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants