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

Fill public fields of jose.Signature after signing #41

Open
apoloval opened this issue Mar 24, 2023 · 0 comments
Open

Fill public fields of jose.Signature after signing #41

apoloval opened this issue Mar 24, 2023 · 0 comments

Comments

@apoloval
Copy link

When jose.Signer receives a Sign() call, it produces a *JSONWebSignature object that only have the raw/private fields of the jose.Signature filled. The public fields such as Header, Protected and Unprotected have zero values. As they are only used when JSONWebSignature is parsed. This causes an inconsistency and misleading behavior, as one would expect that a signature created by the signer reflects the right values in the headers.

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

No branches or pull requests

1 participant