Skip to content

Commit

Permalink
Add AWS Cognito VA integration (#445)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
vibhanshub authored Apr 24, 2024
1 parent 6c303a0 commit f83e65e
Show file tree
Hide file tree
Showing 9 changed files with 437 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-lies-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@gitbook/integration-cognito': patch
---

Add AWS Cognito integration
3 changes: 3 additions & 0 deletions integrations/cognito/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@gitbook/eslint-config/integration"]
}
Binary file added integrations/cognito/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added integrations/cognito/assets/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions integrations/cognito/gitbook-manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: cognito
title: AWS Cognito
icon: ./assets/icon.png
previewImages:
- ./assets/preview.png
description: Control who has access to your published documentation with AWS Cognito

visibility: private
script: ./src/index.tsx
scopes:
- space:metadata:read
- space:visitor:auth
- site:visitor:auth
- space:content:read
organization: gitbook
summary: |
# Overview
Visitor Authentication allows you to publish content behind an authentication wall, so your content is only accessible to people you choose.
This integration lets you control access to your published content as determined by AWS Cognito.
# Configure
Install this integration on a space and then populate the configuration screen with the details of your AWS Cognito application and AWS Cognito account.
You can then open the Share menu, publish the space with Visitor Authentication, choose this integration as the authentication backend, and hit Save.
Your space is now published with Visitor Authentication using AWS Cognito.
categories:
- other
configurations:
space:
componentId: config
20 changes: 20 additions & 0 deletions integrations/cognito/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "@gitbook/integration-cognito",
"version": "0.0.1",
"private": true,
"dependencies": {
"@gitbook/api": "*",
"@gitbook/runtime": "*",
"itty-router": "^4.0.14",
"@tsndr/cloudflare-worker-jwt": "2.3.2"
},
"devDependencies": {
"@gitbook/cli": "*"
},
"scripts": {
"lint": "eslint ./**/*.ts*",
"typecheck": "tsc --noEmit",
"publish-integrations-staging": "gitbook publish .",
"publish-integrations": "gitbook publish ."
}
}
Loading

0 comments on commit f83e65e

Please sign in to comment.