Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jersey-dev] Proxy Basic Authentication Tips
  • From: Thiago Cardoso Silva <t.cardoso@xxxxxxxxxxxxxx>
  • Date: Tue, 15 Aug 2023 23:01:31 +0000
  • Accept-language: pt-BR, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GYtwRoAR0NqHI2YQlMuPoO5x91dqkfj3JyFqrLMe2ts=; b=XtHiEuqZ07cC+A5WCnzLGVqyw9q0xAMk7u0jFdt2uDzIR//KPtviywnkCYJtt/9YA7ujtaYL+KkYSyjyhYLNzqH9panITbL6CJx8lPY1582N63LLD61D0MF9VI09wm1rdwNYTvBBrRDwHOPJx2Twj8d699KbZX+LAA8FIVzlEgc1QnqnTo2G9buFeM7COtcuUaam3ugMtYq9VFRv8IhS4LHEDclQV9ZuxHnagCwTHhoXVHOZaAZjEJXqi7dbo21VoiK42EerlPe7itvx7vLrDKlRAj4jVo3pbBEIDblUkCdNX68zljYB6zG5BxAvmhx4mepqzYJIg/4RwH4uqzESEA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MFCMyn20SOA/IoiHRYASsnP1PQq+iIokpOfHftfrVoe+gfJa+XM7iAgm1CsTvbkrI7fIMUWjXgM5I2ZjLUBxfK0p3/UIfyHLgZLI/mMJUHfuuFotSvoAZOwZI/20uhfpKWXIyFhvNgHm+dMvfmhHqBobx6ZM3LO20Ub4vcX5dgCOgzePWH0dSzzyqTjdEbjTke4wuFMgHa9OhnFgzXbJjhr2KfP3wl72z3xP04R09qmwBoRL90OYtTJ4c7b9QYfr/YCYT2VwwarKXB0X8h4ulmyL9e4LOWeMQG5hd1UA7hsux7kK/mEcknXtiRf5Va4i9WDfRJz29vLZgK9Ly1uMAQ==
  • Delivered-to: jersey-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jersey-dev/>
  • List-help: <mailto:jersey-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHZz8qK0UBwtvMYCUqS5XVZqIvGTw==
  • Thread-topic: Proxy Basic Authentication Tips

Hi!

I'm facing a problem at work and can't find any alternatives. 
We need to call an external API and for that, we have to pass by the proxy with authentication. For the first request, to get an access token, we are using the feature that adds the HttpAuthenticationFilter.

So, for that, with my user and password, everything is ok. But now, I need to call another endpoint passing the token from the previous request as an Authorization header.

We saw that the HttpAuthenticationFilter adds an Authorization header with the basic authentication, and that's why there's a condition to not execute the authentication process if this header exists on the original request.

We got the working using OkHttp, but I know they use another process for the authentication. There's something we can do to provide something similar?

Thanks in advance.

Back to the top