Skip to content

Commit 2d9444b

Browse files
committed
Improve readme instructions for issuer when using the web server
1 parent 30f5a48 commit 2d9444b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,20 @@ Next you need to decide if you'd like to deploy with lambda/API Gateway (follow
9494
vim config.sh # Or whatever your favourite editor is
9595

9696
- Source the config file:
97-
98-
source config.sh
97+
98+
```
99+
source config.sh
100+
```
99101

100102
- Run `npm run start` to fire up an auto-refreshing development build of the
101-
server (production deployment is out of scope for this repository).
103+
server (production deployment is out of scope for this repository, but you can expose it using something like [ngrok](https://ngrok.com/) for easy development and testing with Cognito).
102104

103105
### 3: Finalise Cognito configuration
104106

105107
- Configure the OIDC integration in AWS console for Cognito (described below, but following [these instructions](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-oidc-idp.html)). The following settings are required:
106108
- Client ID: The GitHub Client ID above
107109
- Authorize scope: `openid read:user user:email`
108-
- Issuer: `https://<Your API Gateway DNS name>/Prod`
110+
- Issuer: either `https://<Your API Gateway DNS name>/Prod` (for lambda with API gateway) or `https://<your webserver>/` (for the node server).
109111
- If you have deployed the web app: Run discovery (big blue button next to Issuer).
110112
- If you have deployed the lambda/Gateway: For some reason, Cognito is unable to
111113
do OpenID Discovery. You will need to configure the endpoints manually. They are:

0 commit comments

Comments
 (0)