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

Improve documentation for development usage, prohibiting query parameters in document URLs #24

Merged
merged 5 commits into from
Jan 10, 2025

Conversation

ThisIsMissEm
Copy link
Contributor

A pattern that we've seen sometimes used is to have a service generate Client ID Metadata Documents by taking in data from query parameters and transposing those into the contents of the document, this should probably be considered an anti-pattern, since it circumvents a fair few of the security properties of stable URLs for client id metadata documents.

This is noted in #23 and #12, where workarounds have tried to be developed.

For instance, for AtProto / Bluesky, they could host a client_id.atproto.dev service which allows you to preregistered a client for development purposes (specifying redirect_uris, scopes, etc), giving back a https URL to a document that you can use for that client.

We could expand this to allow a Authorization Server to apply additional constrains on the contents of the client metadata document, based on the hostname of the document itself, e.g., only documents on client_id.atproto.dev hostname can include redirect URIs that are localhost URIs.

@ThisIsMissEm ThisIsMissEm requested a review from aaronpk as a code owner January 6, 2025 23:13
@ThisIsMissEm
Copy link
Contributor Author

@matthieusieben I think you may want to review this.

@aaronpk aaronpk merged commit d69da84 into aaronpk:main Jan 10, 2025
1 check passed
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.

2 participants