mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-06 10:50:45 +00:00
9c849eb10a
To avoid clashing with tiddlers called "login-basic" :) We also need to revise the rout for /status for the same reason, but there are backward compatibility issues there
26 lines
553 B
Plaintext
26 lines
553 B
Plaintext
created: 20181002124825195
|
|
modified: 20181002125214104
|
|
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
|
|
|
|
```
|
|
GET /login/basic
|
|
```
|
|
|
|
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>"
|
|
|