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

Test that auth token format must match #1400

Merged
merged 1 commit into from
May 23, 2023
Merged

Commits on May 22, 2023

  1. Test that auth token format must match

    If some task accepts an `AuthenticationToken::DapAuth`, it should not be
    possible to present its value as an `AuthenticationToken::Bearer` and
    have it be accepted (or vice versa, should a Bearer token happen to also
    be a legal `DAP-Auth-Token` value). This was already the case because we
    evaluate tokens using `AuthenticationToken::eq`, but this commit adds a
    test to explicitly verify this.
    
    While we're in here, improve a doccomment to explain that
    `AuthenticationToken::DapAuth` complies with the interop testing
    framework as well as the now-obsolete `draft-ietf-ppm-dap-01`, and add a
    constant for the collection job route to match the ones for aggregation
    jobs and aggregate shares.
    
    Closes #1300
    tgeoghegan committed May 22, 2023
    Configuration menu
    Copy the full SHA
    93e7754 View commit details
    Browse the repository at this point in the history