Skip to content

Additional signature components such as @query are treated as HTTP headers by the signer #49

Open

Description

@joshuagay

At commit f44587f6317f886a2b7e1cbe081270ed55d6f8d8, the additional-component signing API cannot generate derived components such as @query.

The draft-10 metadata definition allows a resource to require additional RFC 9421 HTTP message components. @query gets its value from the request URI. The verifier already resolves it, alongside other derived components.

The signer resolves every additional component through header lookup. There is no derived-component branch. For a request to https://resource.example/search?q=travel, setting AdditionalComponentsKey to ["@query"] cannot produce the URI query and fails before signing. The adaptive challenge path reaches the same resolver after learning required_input="@query".

Expected behavior: a configured or challenged @query requirement is signed using RFC 9421 query canonicalization and verifies against the actual URI.

Impact: the SDK client cannot interoperate with a resource that requires this component to bind query parameters, even though the corresponding verifier supports it. This does not mean the base AAuth profile requires every request to sign its query.

Suggested change: resolve supported derived components from the request rather than its header collections. Add tests for both direct configuration and an in-process invalid_input challenge, with empty and escaped query values. Document any intentionally unsupported component subset.

Review basis: declared draft-10, source inspection only. I did not run .NET locally and am not asserting an observed exception subtype.

Activity

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