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

Do we need to support tokens, and if so, how? #12

Closed
RubenVerborgh opened this issue Mar 13, 2019 · 5 comments
Closed

Do we need to support tokens, and if so, how? #12

RubenVerborgh opened this issue Mar 13, 2019 · 5 comments
Assignees

Comments

@RubenVerborgh
Copy link
Member

No description provided.

@RubenVerborgh
Copy link
Member Author

See #8 (comment) and w3c/dxwg#290

@larsgsvensson
Copy link
Member

Tokens are considered important in the W3C work on profiles, particularly for the Query String Implementation, so I think we need to cater for that.

@RubenVerborgh
Copy link
Member Author

Oh… that's a part of the spec I really don't like. I understand how it ended up there, and I'm probably too puristic, but that's a very pragmatic solution for the short term, that is bound to cause trouble in the longer term.

Especially

A short token to specify a profile may be used as long as there is a discoverable mapping from it to the profile's identifying URI [ID5] (5.5)

is bound to cause trouble. Nothing is mentioned about the sustainability of that mapping, etc. This is going to bite back so hard, just because implementers want to look in the query string but not in the headers.

But yes, if I dislike it, I should have been more active in the DXWG, my bad 🙂

That said, I'm not sure to what extent we could/should bring such tokens, which seem to be an artifact of an API, to the protocol level.

@larsgsvensson
Copy link
Member

What we could do is to keep tokens out of Accept-Profile / Content-Profile and only keep them in the profile target attribute in the Link header. And we probably also need a solution for the 300 Multiple Choices reply

@larsgsvensson
Copy link
Member

This has been resolved over at DXWG/conneg-by-ap:

Servers can use a second link header to publish any mapping between a profile URI and the corresponding token. This is now part of conneg-by-ap in example 12, and the Link header attribute token is defined in the same document in §7.1

Thus this issue can be closed

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

2 participants