Skip to content

Commit f83e65e

Browse files
authored
Add AWS Cognito VA integration (#445)
* Add AWS Cognito VA integration * Add lock file * Update links and description * Upload logo * Add Changeset * Support sites * Upload preview image * Force HTTPS * Force HTTPS correctly
1 parent 6c303a0 commit f83e65e

File tree

9 files changed

+437
-0
lines changed

9 files changed

+437
-0
lines changed

.changeset/few-lies-drop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/integration-cognito': patch
3+
---
4+
5+
Add AWS Cognito integration

integrations/cognito/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@gitbook/eslint-config/integration"]
3+
}

integrations/cognito/assets/icon.png

27.8 KB
Loading
19.8 KB
Loading
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: cognito
2+
title: AWS Cognito
3+
icon: ./assets/icon.png
4+
previewImages:
5+
- ./assets/preview.png
6+
description: Control who has access to your published documentation with AWS Cognito
7+
8+
visibility: private
9+
script: ./src/index.tsx
10+
scopes:
11+
- space:metadata:read
12+
- space:visitor:auth
13+
- site:visitor:auth
14+
- space:content:read
15+
organization: gitbook
16+
summary: |
17+
# Overview
18+
Visitor Authentication allows you to publish content behind an authentication wall, so your content is only accessible to people you choose.
19+
20+
This integration lets you control access to your published content as determined by AWS Cognito.
21+
22+
# Configure
23+
Install this integration on a space and then populate the configuration screen with the details of your AWS Cognito application and AWS Cognito account.
24+
You can then open the Share menu, publish the space with Visitor Authentication, choose this integration as the authentication backend, and hit Save.
25+
26+
Your space is now published with Visitor Authentication using AWS Cognito.
27+
categories:
28+
- other
29+
configurations:
30+
space:
31+
componentId: config

integrations/cognito/package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "@gitbook/integration-cognito",
3+
"version": "0.0.1",
4+
"private": true,
5+
"dependencies": {
6+
"@gitbook/api": "*",
7+
"@gitbook/runtime": "*",
8+
"itty-router": "^4.0.14",
9+
"@tsndr/cloudflare-worker-jwt": "2.3.2"
10+
},
11+
"devDependencies": {
12+
"@gitbook/cli": "*"
13+
},
14+
"scripts": {
15+
"lint": "eslint ./**/*.ts*",
16+
"typecheck": "tsc --noEmit",
17+
"publish-integrations-staging": "gitbook publish .",
18+
"publish-integrations": "gitbook publish ."
19+
}
20+
}

0 commit comments

Comments
 (0)