2018-10-02 13:16:58 +00:00
|
|
|
created: 20181002124825195
|
2018-12-16 18:20:33 +00:00
|
|
|
modified: 20181216181934282
|
2018-10-02 13:16:58 +00:00
|
|
|
tags: [[WebServer API]]
|
|
|
|
title: WebServer API: Force Basic Authentication Login
|
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
|
|
|
Forces the server to request basic authentication login, and then redirects to the root
|
|
|
|
|
|
|
|
```
|
2018-12-16 18:20:33 +00:00
|
|
|
GET /login-basic
|
2018-10-02 13:16:58 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Requests an basic authentication from the browser, and redirects to the root if successful.
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
* none
|
|
|
|
|
|
|
|
Response:
|
|
|
|
|
|
|
|
* 302 Found
|
|
|
|
*> `Location: /`
|
|
|
|
* 401 Unauthorized
|
|
|
|
*> `WWW-Authenticate: Basic realm="Please provide your username and password to login to <servername>"
|
|
|
|
|