Give an access token the resource it was asked for #56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "land/identity-face"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
oidc: give an access token the resource it was asked for
Every access token said
aud = <this issuer>, which means a resourceserver could only ever check that ensign signed it — not that it was meant
for them. Any token from any client opened every resource.
An
Appwithmode = "resource"registers one./authorizetakes aresourceand mints the access token against it; without one the audiencestays the issuer, which is what
/userinfoanswers to. An unregisteredresource is refused rather than quietly falling back, because a fallback
would let anyone name their own audience and the separation would be
decoration. A client's slug will not do either: mixing the two kinds of
App would blur which of them is a resource.
Renewcarries the audience now. A refresh that forgot it would hand backa token for a different resource than the one the grant was made against.
Teams ride the access token, gated on the same
profilescope thatalready gates login and name. A resource that needs group membership for
its own authorisation no longer has to ask, and cannot learn it merely by
being registered — the person still grants it once.
CodeandWardnow contain the four facts an issuance rests on ratherthan each carrying their own copy. The copy came first and Ectropy named
it: two shapes drifting apart is the cost, and there was nothing to gain.