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
Originally posted by egorsivenko November 19, 2024
I'm making a custom OAuth authorization server with Quarkus Renarde.
It includes quarkus-rest-csrf dependency which is used for securing endpoints that accept application/x-www-form-urlencoded such as /login, /register, /oauth2/clients/new, etc.
As follows from the OAuth specs, the client sends POST request of type application/x-www-form-urlencoded to get the token after previously obtaining the authorization code.
As the client represents an external application, the authorization server doesn't need to verify CSRF token upon receiving token POST request, because otherwise it's basically impossible to communicate with it.
The only thing I have found in the docs is to restrict CSRF token creation after GET request, but it doesn't seem to fit the case. Is there a way to disable CSRF filter for such a specific endpoint?
The text was updated successfully, but these errors were encountered:
Discussed in #44582
Originally posted by egorsivenko November 19, 2024
I'm making a custom OAuth authorization server with Quarkus Renarde.
It includes
quarkus-rest-csrf
dependency which is used for securing endpoints that accept application/x-www-form-urlencoded such as/login
,/register
,/oauth2/clients/new
, etc.As follows from the OAuth specs, the client sends POST request of type application/x-www-form-urlencoded to get the token after previously obtaining the authorization code.
As the client represents an external application, the authorization server doesn't need to verify CSRF token upon receiving token POST request, because otherwise it's basically impossible to communicate with it.
The only thing I have found in the docs is to restrict CSRF token creation after GET request, but it doesn't seem to fit the case. Is there a way to disable CSRF filter for such a specific endpoint?
The text was updated successfully, but these errors were encountered: