From 8ee49ebc1cdd35d1d6adae2dc381793775470309 Mon Sep 17 00:00:00 2001 From: erinfox Date: Fri, 7 Feb 2025 14:07:55 -0800 Subject: [PATCH 1/2] add info for getting an app to install on local environments --- oauth-express/README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/oauth-express/README.md b/oauth-express/README.md index dbaa46e..6ba5d24 100644 --- a/oauth-express/README.md +++ b/oauth-express/README.md @@ -4,14 +4,14 @@ ## Usage -1. First you must create your app inside the Kit Developer Settings +1. First you must create your app inside the Kit Developer Settings. If developing locally, you can create the app in the main Kit repository. 2. Then configure API Access: Authorization URL: https://localhost:8080/oauth/kit Redirect URI: https://localhost:8080/oauth/kit/callback -3. Create `.env` file and add the client ID and secret from the Developer Settings: +3. After cloning this repository, create an `.env` file and add the client ID and secret from the Developer Settings: KIT_OAUTH_CLIENT_ID="FILL ME IN" KIT_OAUTH_CLIENT_SECRET="FILL ME IN" @@ -26,7 +26,7 @@ Place cert in `example.com.pem` & `example.com-key.pem` -6. Start server +6. Start the server. If developing locally, change the KIT_SERVER from `kit.com` to `ck.lol` on this [line](https://github.com/Kit/app-demos/blob/0c86c93c34bf5c7b47bb170b6a12dbda31d88e6f/oauth-express/kit-oauth.js#L4). npm start @@ -42,5 +42,4 @@ } Listening on :8080 -7. From here, clicking the "Install" button in the App Store will initiate the OAuth flow - by first going to your configured Authorization URL +7. From here, clicking the "Install" button in the App Store will initiate the OAuth flow by first going to your configured Authorization URL From 980395658fb8c56608c2cbc98baa2919e938ae09 Mon Sep 17 00:00:00 2001 From: erinfox Date: Fri, 7 Feb 2025 15:36:14 -0800 Subject: [PATCH 2/2] update step 3 --- oauth-express/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oauth-express/README.md b/oauth-express/README.md index 6ba5d24..c43c987 100644 --- a/oauth-express/README.md +++ b/oauth-express/README.md @@ -11,10 +11,11 @@ Authorization URL: https://localhost:8080/oauth/kit Redirect URI: https://localhost:8080/oauth/kit/callback -3. After cloning this repository, create an `.env` file and add the client ID and secret from the Developer Settings: +3. After cloning this repository, create an `.env` file and add the client ID and secret ID from the Developer Settings. Set the KIT_SERVER if needed: KIT_OAUTH_CLIENT_ID="FILL ME IN" KIT_OAUTH_CLIENT_SECRET="FILL ME IN" + KIT_SERVER=ck.lol 4. Install dependencies @@ -26,7 +27,7 @@ Place cert in `example.com.pem` & `example.com-key.pem` -6. Start the server. If developing locally, change the KIT_SERVER from `kit.com` to `ck.lol` on this [line](https://github.com/Kit/app-demos/blob/0c86c93c34bf5c7b47bb170b6a12dbda31d88e6f/oauth-express/kit-oauth.js#L4). +6. Start server npm start