Skip to content

Demo Spring Boot app showing Swagger UI secured with Basic Authentication

License

Notifications You must be signed in to change notification settings

little-pinecone/spring-boot-swagger-ui-basic-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-swagger-ui-basic-auth

keep_growing logo

About this project

This Spring Boot project shows an example configuration of Spring Security and OpenAPI that ensures that only authenticated users can call endpoints available through Swagger UI:

swagger ui with basic auth for endpointsscreenshot

Prerequisites

  • JDK 13+
  • Maven (or you can use mvnw provided in the project)

Getting started

First, clone this repository.

Then, build it locally with:

mvn clean install

You can run the app in a command line with:

mvn spring-boot:run

Visit API documentation

Default credentials

  • username: spring
  • password: spring

Features

  • Spring Security
  • Basic Authentication in Swagger UI
  • OpenAPI 3 specification

Built With

About

Demo Spring Boot app showing Swagger UI secured with Basic Authentication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages