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

Improvements #29

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

Improvements #29

wants to merge 6 commits into from

Conversation

ynodir
Copy link

@ynodir ynodir commented Jan 26, 2024

  • Adding @request-target support
  • Making Signature-Input parameters ordered
  • Making Signer interface public so it can be used by clients too
  • Signature-input fields can have = in their values now
  • Fixed signature expiration check bug.

Added alg description to hmacSha256 signer function.
Added genesys-audiohook test.
Fixed signature expiration check bug - added 1 minute wiggle room for signature expiration.
…tion to transport middleware.

Fixed a bug where signature-input fields were expected to not have `=` symbol - e.g., keyid could be base64 encoded, so could have `=`.
Created a NewSigner() constructor so that `nowFunc` can be set to `time.Now` automatically.
Fixed `@request-target` resolution - setting its value to url.RequestURI().
…the spec.

Also, the error returned now is `401 Unauthorized` instead of `400 Bad Request`.
…ding 1 min instead of subtracting it from current time.
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.

None yet

2 participants