Skip to content

include base64url-encoded unpadded nonce in ChallengeResponseSession #45

Closed

Description

@atulfj

After this change: veraison/services#428, the nonce returned in a challenge-response session is base64url-encoded and without padding. The ChallengeResponseSession nonce may be updated to:

#[serde_as(as = "serde_with::base64::Base64<serde_with::base64::UrlSafe, serde_with::formats::Unpadded>")]
nonce: Vec<u8>,

Edit: Added the Unpadded attribute after a quick look at the new cha-res spec in veraison/docs.

Activity

  1. changed the title [-]base64url-encoded nonce in `ChallengeResponseSession`[/-] [+]include base64url-encoded nonce in `ChallengeResponseSession`[/+] on Aug 27, 2026
  2. changed the title [-]include base64url-encoded nonce in `ChallengeResponseSession`[/-] [+]include base64url-encoded unpadded nonce in `ChallengeResponseSession`[/+] on Aug 28, 2026
  3. cowbon commented on Sep 1, 2026

    @cowbon
    Contributor

    Hi @atulfj ,

    Thanks for pointing this out, please take a look at #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions