Skip to content

add c_hash, s_hash, update at_hash #315

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 2 commits into from
May 10, 2018
Merged

add c_hash, s_hash, update at_hash #315

merged 2 commits into from
May 10, 2018

Conversation

panva
Copy link
Contributor

@panva panva commented May 9, 2018

Its value is the base64url encoding of the left-most half of the hash of the octets of the ASCII representation of the code value, where the hash algorithm used is the hash algorithm used in the alg Header Parameter of the ID Token's JOSE Header. For instance, if the alg is HS512, hash the code value with SHA-512, then take the left-most 256 bits and base64url encode them.

added c_hash (core), s_hash (fapi part 2) and updated at_hash not to mention SHA256 since it's only valid for *256 signed tokens.

@panva panva changed the title add c_hash, update at_hash add c_hash, s_hash, update at_hash May 9, 2018
@sebadoom sebadoom merged commit 6605f3a into jsonwebtoken:master May 10, 2018
@sebadoom
Copy link
Contributor

Merged, thank you for your contribution.

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