From 7db8eed1192626999e2826310306d66593087ced Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Fri, 8 Nov 2024 03:07:49 -0500 Subject: Expand tutorial message --- fig-web/src/Fig/Web.hs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'fig-web/src') 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] -- cgit v1.2.3