Skip to content
Permalink
Browse files
[CXF-8645] Use Bearer as default auth scheme in client and server fil…
…ter (#896)

Co-authored-by: Oliver Wulff <oliver.wulff@zurich.ch>
  • Loading branch information
olwulff and Oliver Wulff committed Jan 28, 2022
1 parent 02403c5 commit 9723e32190d3a820e0eecf19177561155399c867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -43,7 +43,7 @@
public class JwtAuthenticationClientFilter extends JoseJwtProducer
implements ClientRequestFilter {

private static final String DEFAULT_AUTH_SCHEME = "JWT";
private static final String DEFAULT_AUTH_SCHEME = "Bearer";
private String authScheme = DEFAULT_AUTH_SCHEME;
@Override
public void filter(ClientRequestContext requestContext) throws IOException {
@@ -24,7 +24,7 @@
import org.apache.cxf.rs.security.jose.common.JoseException;

public class JwtAuthenticationFilter extends AbstractJwtAuthenticationFilter {
private static final String DEFAULT_AUTH_SCHEME = "JWT";
private static final String DEFAULT_AUTH_SCHEME = "Bearer";
private String expectedAuthScheme = DEFAULT_AUTH_SCHEME;

protected String getEncodedJwtToken(ContainerRequestContext requestContext) {

0 comments on commit 9723e32

Please sign in to comment.