Skip to content

Commit

Permalink
RESTEASY-2326: Allow extensions of RequestDispatcher.authenticate so …
Browse files Browse the repository at this point in the history
…we can provide our own implementation
  • Loading branch information
bentatham committed May 18, 2022
1 parent 86f360f commit 139359b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -74,7 +74,7 @@ public void service(Context context,
SecurityContext securityContext;
if (domain != null)
{
securityContext = basicAuthentication(vertxReq, vertxResp);
securityContext = authenticate(vertxReq, vertxResp);
if (securityContext == null) // not authenticated
{
return;
Expand Down Expand Up @@ -113,7 +113,7 @@ public void service(Context context,
}
}

private SecurityContext basicAuthentication(HttpRequest request, HttpResponse response) throws IOException
protected SecurityContext authenticate(HttpRequest request, HttpResponse response) throws IOException
{
List<String> headers = request.getHttpHeaders().getRequestHeader(HttpHeaderNames.AUTHORIZATION);
if (!headers.isEmpty())
Expand Down

0 comments on commit 139359b

Please sign in to comment.