You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On operations with optional authentication, a request with an invalid or expired token is treated as anonymous. The client isn't told that its token failed and sees a public view that looks like missing data. cloud-registry works around this with its own check_read_token; trs-filer needs the same.
Proposal
An option under security.auth that answers 401 with the RFC 6750 challenge when a token is present but invalid, also on optional-auth operations. Requests without a token stay anonymous. Decide in the PR whether the default changes; if so, it has to land by 1.0.0-rc1 and goes into the migration guide.
Acceptance criteria
Tests: no token, valid, expired, wrong audience and untrusted issuer, each with the option on and off; 100% coverage.
Docs: authentication page; migration guide if the default changes.
Activity