Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Basic authentication

A sample project demonstrating how to use basic HTTP authentication in Ktor.

This sample is a part of the codeSnippets Gradle project.

Running

To run this sample, execute the following command in a repository's root directory:

./gradlew :auth-basic:run

Then, open http://localhost:8080/ and enter the jetbrains/foobar credentials in a login dialog to see a web page.