From 8b03ab824668b93e606551ea21a24c96f4cc0124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arwid=20Thornstr=C3=B6m?= Date: Tue, 5 Oct 2021 13:53:33 +0200 Subject: [PATCH] changes to readme to reflect auth changes (#63) * changes to readme to reflect auth changes * updated text a bit --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 188575a..47aa333 100644 --- a/README.md +++ b/README.md @@ -6,18 +6,17 @@ Apollo graphql api server for Photowall Create an .env file (see .env.example for what to set). ### Development Run - ``` $ npm install $ docker compose build $ docker compose up ``` -For browse query testing use Insomnia or similar tool with token from `/admin/auth/token` +For testing use a tool like Insomnia or similar. Server is running on http://localhost:4000/ and to +connect you need to use `basic auth` with username and password from "GraphQl Basic Auth" in lastpass. +If you wish the Bearer Token used in prodlike environment also works. -Take the value of the token param and add header in insomnia:Authorization: Bearer . The token is valid for 2-3 hours. - -See context function of src/index.ts for Authentication options for development. +If you dont have access to photowall shared lastpass please contact any collegaue. ### Run prod-like container locally Run @@ -26,6 +25,10 @@ $ docker compose -f docker-compose-prodlike.yml build $ docker compose -f docker-compose-prodlike.yml up ``` +Get your AD-token from this path in the browser `/admin/auth/token` +Take the value of the token param and add header in insomnia:Authorization: Bearer . +The token is valid for 2-3 hours. + ## Run tests Scripts will create the insert sql files for a randomized fake data postgres database. This database is based of the actual db in photowall project.