Skip to content
Sample Spring Boot Basic Auth Server
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

spring-basic-auth-server

Sample Spring Boot Basic Auth Server

Pre-requisites

  1. Java 8 or Java 11
  2. IDEA (IntelliJ IDEA or Eclipse)

Build the project

To build the project, run the below command

./gradlew clean build

Running the project

We can run the project using gradle task

./gradlew :bootRun

Endpoints

Credentials

username: admin
password: password

Http GET endpoints:

GET /secured/hello
Header: Basic Auth

Http POST endpoint:

POST /secured/hello
Header: Basic Auth    
Body: {"name": "test"}
You can’t perform that action at this time.