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
{{ message }}
Repository navigation
Commit 21040e6
Browse filesBrowse the repository at this point in the historyBrowse files
The authorization request travels in the processing chain state, which
every authentication processing filter reads and which SimpleSAMLphp
serializes into the session store whenever a filter shows the End-User
a page of its own (consent, a warning page, MFA). The request's client
went with it, holding its secret in plain text and the hash of its
registration access token; the client's metadata in the state left the
secret out but not the hash.
- ClientEntity::withoutCredentials() (declared in ClientEntityInterface)
gives a copy of the client with an empty secret and no registration
access token hash.
- AuthenticationService::prepareStateArray() puts a copy of the request
into the state whose client is that copy, and leaves the hash out of
the client's metadata as well as the secret. The request handed in is
not changed.
Nothing after the login needs either: the request is completed with the
client's identifier, redirect URIs and metadata, and the token endpoint
authenticates a client against the one the repository holds. The
protocol cache keeps client state arrays, not objects, so it is not
affected. Checked end to end through a filter page on the dev OP: the
saved session holds the client but not its secret (it held it once
before), and the code is still redeemed with the secret.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Google Antigravity (gemini-3.8-flash-high review)
0 commit comments