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

feat: allow authorization token for JsonApiCondition to support endpoints requiring OAuth, JWT authorization #599

Merged
merged 5 commits into from
Oct 30, 2024

Conversation

derekpierre
Copy link
Member

@derekpierre derekpierre commented Oct 28, 2024

Type of PR:

  • Bugfix
  • Feature
  • Documentation
  • Other

Required reviews:

  • 1
  • 2
  • 3

What this does:

Based over #598 .

Updates the taco-web code to allow authorizationToken to be optionally provided for OAuth/JWT support.

Issues fixed/closed:

Notes for reviewers:

What should reviewers focus on? Is there a particular commit/function/section
of your PR that requires more attention from reviewers?

@derekpierre derekpierre self-assigned this Oct 28, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (epic-v0.6.x@3b67142). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff               @@
##             epic-v0.6.x     #599   +/-   ##
==============================================
  Coverage               ?   89.23%           
==============================================
  Files                  ?       73           
  Lines                  ?     6524           
  Branches               ?      172           
==============================================
  Hits                   ?     5822           
  Misses                 ?      702           
  Partials               ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@derekpierre derekpierre changed the title [WIP] feat: allow authorization token for JsonApiCondition to support endpoints requiring OAuth, JWT authentication [WIP] feat: allow authorization token for JsonApiCondition to support endpoints requiring OAuth, JWT authorization Oct 28, 2024
@derekpierre derekpierre changed the title [WIP] feat: allow authorization token for JsonApiCondition to support endpoints requiring OAuth, JWT authorization feat: allow authorization token for JsonApiCondition to support endpoints requiring OAuth, JWT authorization Oct 28, 2024
@derekpierre derekpierre marked this pull request as ready for review October 28, 2024 14:56
…tion.

The value for an authorization token must be a context variable.
There is a difference between checking that an entire string is a context variable, and checking whether a context variable is a substring within a string - make that difference clearer with respect to regexp constants.
Copy link
Member

@manumonti manumonti left a comment

Choose a reason for hiding this comment

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

LGTM!

@cygnusv cygnusv merged commit 8a7e72d into nucypher:epic-v0.6.x Oct 30, 2024
4 checks passed
@derekpierre derekpierre mentioned this pull request Nov 8, 2024
20 tasks
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.

6 participants