summaryrefslogtreecommitdiff
path: root/fig-web/src/Fig
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-11-08 03:07:49 -0500
committerLLLL Colonq <llll@colonq>2024-11-08 03:07:49 -0500
commit7db8eed1192626999e2826310306d66593087ced (patch)
treec840be5b86cbaa2956242b899c235ba2568cd423 /fig-web/src/Fig
parent89638019139dd73fc4fa120e5b58937f20ee943a (diff)
Expand tutorial message
Diffstat (limited to 'fig-web/src/Fig')
-rw-r--r--fig-web/src/Fig/Web.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/fig-web/src/Fig/Web.hs b/fig-web/src/Fig/Web.hs
index b227911..05296e2 100644
--- a/fig-web/src/Fig/Web.hs
+++ b/fig-web/src/Fig/Web.hs
@@ -79,6 +79,16 @@ app cfg cmds liveEvents currentlyLive = do
Sc.text $ mconcat
[ "your request was rejected because that endpoint requires authentication\n"
, "you can log in by POSTing your credentials to https://auth.colonq.computer/api/firstfactor\n"
+ , "for example:\n"
+ , " curl https://auth.colonq.computer/api/firstfactor \\\n"
+ , " --header \"Content-Type: application/json\" \\\n"
+ , " --request POST \\\n"
+ , " --data '{\"username\":\"AzureDiamond\",\"password\":\"hunter2\"}' \\\n"
+ , " --cookie-jar cookies.txt"
+ , "this will write a cookie called \"authelia_session\" to cookies.txt\n"
+ , "send this cookie along with your requests to use the secure endpoints\n"
+ , "for example:\n"
+ , " curl https://secure.colonq.computer --cookie cookies.txt\n"
]
Sc.get "/api/check" $ authed cfg \auth -> do
Sc.json @[Text] [auth.id, auth.name]