ClientCertificate authentication (mTLS) / missing cnf value #339
Unanswered
CaringDev
asked this question in
IdentityServer
Replies: 1 comment 2 replies
-
The I get a feeling here that when client certificates are used to authenticate the user, that triggers code that create mTLS-bound tokens even though that might not be the intention. Could you please let us know a bit more:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For identifying users by their certificate instead or username / pw we're checking the certificate from the code behind of the "standard" Account/Login index page. If there's a match we sign-in the user:
Then, when the app requests a new access token we get an exception stating that
The client certificate in the refresh token request does not match the original used.
due to thecnf
value not being populated in the original token.A workaround is to register a
ICustomTokenRequestValidator
essentially doingrequest.Confirmation = cert.CreateThumbprintCnf();
Is this how it's supposed to be or is there a better solution?
Beta Was this translation helpful? Give feedback.
All reactions