About 761,000 results
Open links in new tab
  1. Java HttpClient Basic Authentication - Baeldung

    Mar 26, 2025 · In this short tutorial, we saw what is basic authentication and how it works. We used the Java HttpClient with basic authentication by setting an authenticator for it. We used a …

  2. java - Basic authentication for REST API using spring restTemplate

    There are multiple ways to add the basic HTTP authentication to the RestTemplate. 1. For a single request. // request url. String url = "https://jsonplaceholder.typicode.com/posts"; // create …

  3. Securing Spring Boot REST API with Basic Auth - HowToDoInJava

    Dec 9, 2022 · Learn to use basic authentication to secure the REST APIs created in a Spring boot application. The secured API will ask for user authentication credentials before giving access …

  4. What Is Basic Auth for REST APIs and How to Debug It With Code …

    Nov 12, 2024 · Basic Auth (Basic Authentication) is a simple yet effective method to secure REST APIs. It requires the client to send the username and password encoded in Base64 format in …

  5. RestTemplate Example with Basic Authentication

    Apr 4, 2023 · This tutorial will teach you how to leverage RestTemplate to access RESTful APIs protected by basic authentication. You will learn to create a Basic Authentication-secured …

  6. Using Basic Authentication with Java HttpClient

    In this tutorial, we will explore how to implement Basic Authentication in Java using the HttpClient library. Basic Authentication is a simple, yet effective authentication scheme where credentials …

  7. REST API Authentication Methods: A Comprehensive Guide - Java

    REST APIs use several authentication methods to validate client requests and safeguard sensitive data. In this guide, we’ll explore the four most common REST API authentication …

  8. Basic Authentication with Java 11 HttpClient - Medium

    Nov 4, 2019 · In this article, we will create Java 11 HttpClient that accesses Basic Auth protected REST API resource using sync and async mode. We will use Kotlin for a reference …

  9. Basic Authentication with the RestTemplate - Baeldung

    Dec 25, 2023 · In this article, we attempt to change that by going through a detailed, step by step discussion on how to set up Basic Authentication with the RestTemplate and use it to …

  10. java - Basic authentication in REST-application - Stack Overflow

    Apr 11, 2013 · I am working on Spring MVC framework with spring security and use basic Authentication: Basically, in HTTP basic authentication the username and password are …

  11. Some results have been removed
Refresh