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

explain excluded scope #30

Open
dickhardt opened this issue Apr 6, 2024 · 3 comments
Open

explain excluded scope #30

dickhardt opened this issue Apr 6, 2024 · 3 comments

Comments

@dickhardt
Copy link

unclear what the excluded scope property is in the credentials response from the server and how it applies to the cookies

@bc-pi
Copy link

bc-pi commented Apr 9, 2024

it wasn't clear to me either

@arnar
Copy link
Collaborator

arnar commented Apr 10, 2024

Sorry, the example in the explainer is bad and has holdovers from somewhat unfinished discussions.

The idea is that the "credentials" instruction has certain scope, e.g. of paths and/or subdomains. The browser will only check for the presence of that credential for requests that are in that scope, and hold them if a refresh is needed. Out-of-scope requests will not be held or deferred. The explainer does gloss over this, but most unhelpfully it also omits the scope in the examples because the default is everything (i.e. any subdomain and any path).

The purpose of excluded_scope then is to allow the website to carve out e.g. paths where it doesn't care about the presence of the short term cookie. This could be useful e.g. for static assets: By excluding '/static', the browser will not hold any requests to its subpaths. Those assets could be fetched in parallel with any potential refreshes.

We'll try to clean this up in the explainer - and possibly this just best left out there.

@bc-pi
Copy link

bc-pi commented Apr 12, 2024

Thanks for the further explanation Arnar - definitely agree that the explainer could benefit from some clean up.

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

3 participants