Skip to content

Add headers parameter to generate() #8

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
merged 5 commits into from
Dec 23, 2020
Merged

Add headers parameter to generate() #8

merged 5 commits into from
Dec 23, 2020

Conversation

jay0lee
Copy link
Contributor

@jay0lee jay0lee commented Dec 22, 2020

Adds a dict headers parameter to generate() so that additional headers like kid can be added. kid is needed for Google's service account JWT authentication.

headers parameter allows optional headers to be set on generated JWT such as "kid".
@brentru
Copy link
Member

brentru commented Dec 22, 2020

@jay0lee Thanks for the PR, looks like the action is failing here: https://github.com/adafruit/Adafruit_CircuitPython_JWT/pull/8/checks?check_run_id=1596851924#step:12:8

I'll review once it's passing.

@brentru brentru self-requested a review December 22, 2020 20:09
@jay0lee
Copy link
Contributor Author

jay0lee commented Dec 22, 2020

Thanks @brentru

I was just looking into those. Glad to add a fix here but as far as I can tell Actions haven't run in 6 months and these are new PyLint warnings unrelated to my changes. Again, I'll see what I can do to solve them but it might also be worth scheduling a GitHub Actions run every week or so and not just on PRs.

@jay0lee
Copy link
Contributor Author

jay0lee commented Dec 23, 2020

OK, tests are all green now.

@brentru
Copy link
Member

brentru commented Dec 23, 2020

Looks good, thanks!

@brentru brentru merged commit a7b79ae into adafruit:master Dec 23, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 24, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_JWT to 1.2.0 from 1.1.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_JWT#8 from jay0lee/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_PortalBase to 1.0.2 from 1.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_PortalBase#5 from slootsky/feature/get_local_time_ignores_location
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.

2 participants