Skip to content

Patch stateless tokens tutorial #1808

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tlaumen
Copy link

@tlaumen tlaumen commented Jun 23, 2025

You guys have created an amazing auth tutorial! I have learned a lot from implementing this myself.

I noticed a few small things missing or things that I needed to figure out myself in the 'stateless-tokens' tutorial because they were not clear straight away. I have added these in the PR.

Things added:

  1. Missing keyUsages argument in crypto.subtle.importKey calls. Based on this documentation: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey.
  2. Missing signature argument in the oslo_jwt.encodeJWT call. Also, I added some pointers on how to safely create, store and obtain the signing key.

I am curious what you guys think about the additions :).

Kind regards,
Tom

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.

1 participant