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 }}
This repository was archived by the owner on Feb 11, 2025. It is now read-only.
According to rfc6749, authentication via headers is recommended.
"Including the client credentials in the request-body using the two
parameters is NOT RECOMMENDED and SHOULD be limited to clients unable
to directly utilize the HTTP Basic authentication scheme"
The reasoning behind the recommendation is:
Every authorization server MUST support the HTTP Basic authentication scheme, therefore it should work with every authorization server that follows the specification
Authorization headers are recognized and specially treated by HTTP proxies and servers. Thus, the usage of such headers for sending client credentials to resource servers reduces the likelihood of leakage or unintended storage of these credentials
The reason we default to body was that historically many AS had (or have) a wrong implementation of the header method - since it is not HTT basic authentication - but a slight variation.
Maybe these problems are ironed out today so we can re-visit this for the next major version (since this is a behaviorial breaking change).
Thanks for clarifying the reasoning behind the current default value.
Would be nice to have this in identityModel 6.0 so the default will use the safest authentication method.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have any further concerns, please open a new issue.
According to rfc6749, authentication via headers is recommended.
"Including the client credentials in the request-body using the two
parameters is NOT RECOMMENDED and SHOULD be limited to clients unable
to directly utilize the HTTP Basic authentication scheme"
The reasoning behind the recommendation is:
https://tools.ietf.org/html/rfc6749#section-2.3.1
Therefore I think the
AuthorizationHeader.AuthorizationHeader
is a better default forProtocolRequest.ClientCredentialStyle
.Can this be changed?
The text was updated successfully, but these errors were encountered: