Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
9b0bbfa
Removes Auth0-related GitHub actions
simonbs Feb 5, 2024
7e73c0f
Replaces Auth0 with Auth.js
simonbs Feb 5, 2024
1e910b5
Removes script for updating Auth0 connection
simonbs Feb 5, 2024
4b7c6f8
Removes last mentions of Auth0
simonbs Feb 5, 2024
dcf8c05
Removes unneeded store
simonbs Feb 5, 2024
850e8f6
Fixes imports
simonbs Feb 5, 2024
296a251
Removes unneeded unit tests
simonbs Feb 5, 2024
e64f16c
Renames IAccessTokenService to IAccessTokenReader
simonbs Feb 7, 2024
56f1f98
WIP authenticating GitHub accounts with Auth.js
simonbs Feb 8, 2024
dcb5253
Clean up
simonbs Feb 8, 2024
61a51ec
Removes config types
simonbs Feb 8, 2024
d532fa2
Stores initial OAuth credentials
simonbs Feb 8, 2024
deb7dd7
Clean up
simonbs Feb 8, 2024
69eaefa
Adds unit tests for OAuthAccountCredentialPersistingLogInHandler
simonbs Feb 8, 2024
c8d8282
Clean up
simonbs Feb 8, 2024
2017542
Fixes unit test
simonbs Feb 8, 2024
c30cba2
Removes GitHubProjectRepositoryDataSource
simonbs Feb 8, 2024
e0a2fd9
Removes HostOnlySessionValidator
simonbs Feb 8, 2024
a2abf21
Removes final "guest" terminology
simonbs Feb 8, 2024
f7b35d4
Removes CachingRepositoryAccessReader
simonbs Feb 8, 2024
484bb77
Removes unused import
simonbs Feb 8, 2024
365b550
Add magic link based on postgres adapter
ulrikandersen Feb 6, 2024
c2764f6
Basic setup for guest user admin
ulrikandersen Feb 7, 2024
ca56c23
Init db in composition.ts
ulrikandersen Feb 8, 2024
d3853c6
Add db backed guest repo
ulrikandersen Feb 8, 2024
cb849c7
Document db schemas
ulrikandersen Feb 8, 2024
ce23130
Fix minor error
ulrikandersen Feb 8, 2024
6150da1
Refactor admin page
ulrikandersen Feb 8, 2024
d0e1c40
Remove unused and duplicate imports
ulrikandersen Feb 16, 2024
8f722fd
Declare gitHubAppCredentials earlier
ulrikandersen Feb 16, 2024
7918fda
Sign in using email and obtain access token via app auth
ulrikandersen Feb 16, 2024
87ccbe9
Move guest table schema to create-tables.sql
ulrikandersen Feb 16, 2024
534baa7
Make refresh_token nullable
ulrikandersen Feb 16, 2024
7c3a98d
Add guests to drop table sql
ulrikandersen Feb 20, 2024
79f9fdc
Add "Manage guests" menu item
ulrikandersen Feb 20, 2024
dfa12af
Removes OAuthAccountCredentialPersistingLogInHandler
simonbs Apr 25, 2024
25c80a0
Renames TransferringAccessTokenReader to AccessTokenReader
simonbs Apr 25, 2024
de9194a
Removes OAuthAccountCredentialPersistingLogInHandler tests
simonbs Apr 25, 2024
0519262
Send magic link emails via SMTP
ulrikandersen Apr 29, 2024
7568723
Send guest invitation via email
ulrikandersen Apr 29, 2024
d65080e
Basic styling of admin page
ulrikandersen Apr 29, 2024
8ab9d26
Improve invite guest + remove guest
ulrikandersen Apr 30, 2024
cc79270
Ask for confirmation before removing guest
ulrikandersen Apr 30, 2024
33953ce
Add testwatch task
ulrikandersen Apr 30, 2024
654a866
Fixes imports
simonbs May 6, 2024
4b2a52f
Adds index to admin/data
simonbs May 6, 2024
d6e738e
Adds default exports in admin/domain
simonbs May 6, 2024
0b46f31
Transfers OAuth tokens
simonbs May 6, 2024
a0380c5
Merge branch 'feature/authjs' of github.com:shapehq/shape-docs into f…
simonbs May 6, 2024
8ad4e52
Removes unused import
simonbs May 6, 2024
5d49d49
Uses Auth.js 5.0-beta
simonbs May 6, 2024
0ed749d
Moves useProjectNavigator to client-side
simonbs May 7, 2024
214f45c
Updates Next
simonbs May 7, 2024
d4156a5
Removes unused page
simonbs May 7, 2024
6d249d7
Improves formatting
simonbs May 7, 2024
bfeb66e
Simplifies page structure
simonbs May 7, 2024
225ab97
Styles sign in page
simonbs May 7, 2024
50097eb
Merge branch 'develop' into feature/authjs
ulrikandersen May 15, 2024
53082b9
Revert "Merge branch 'develop' into feature/authjs"
ulrikandersen May 15, 2024
f2a73d6
Documents access for multiple accounts
simonbs Jun 25, 2024
754b7b3
Validate project string length
ulrikandersen Jun 25, 2024
b44ceb7
Add placeholder edit button
ulrikandersen Jun 25, 2024
419ab95
Fixes incorrect type name
simonbs Jun 25, 2024
998129a
Displays email and placeholder avatar for guests
simonbs Jun 25, 2024
080b5c6
Handles invalid access token
simonbs Jun 25, 2024
8958793
Simplifies OAuthToken handling
simonbs Jun 25, 2024
4f9649f
Merge branch 'feature/authjs' of github.com:shapehq/shape-docs into f…
simonbs Jun 25, 2024
7437ea2
Uses dashes in folder names
simonbs Jun 25, 2024
9b4b319
Updates next-auth
simonbs Jun 26, 2024
6343a40
Makes rows returned by IDB generic
simonbs Jun 26, 2024
fe2e3e7
DbGuestRepository uses IDB instead of Pool
simonbs Jun 26, 2024
e4f11f9
Supports logging in with single provider only
simonbs Jun 26, 2024
1398d42
Improves email with magic link
simonbs Jun 26, 2024
0e15c58
Updates design of invitation e-mail
simonbs Jun 26, 2024
ad1a865
Updates README
simonbs Jun 26, 2024
b01dc3a
Simplifies command
simonbs Jun 26, 2024
55258e1
Stores access token and refresh token obtained at login
simonbs Jun 27, 2024
70c29a8
Ensures input to saneParseInt is a string
simonbs Jun 27, 2024
92afa5d
Adds unit tests to saneParseInt
simonbs Jun 27, 2024
1060d3b
Adds unit tests for FallbackOAuthTokenRepository
simonbs Jun 27, 2024
e592938
Fixes EmailGuestInviter unit tests
simonbs Jun 27, 2024
c0a6f15
Fixes LogInHandler unit tests
simonbs Jun 27, 2024
7851c6f
Merge branch 'develop' into feature/authjs
ulrikandersen Jun 28, 2024
5b8d3f4
Add deployment to staging
ulrikandersen Jun 28, 2024
5a13ce9
Remove unused workflow
ulrikandersen Jun 28, 2024
b222caa
Add env vars needed for build to succeed
ulrikandersen Jun 28, 2024
a1810f9
Use node20 + npm for build
ulrikandersen Jun 28, 2024
b58c1b1
Fix type for WebhookEventName
ulrikandersen Jun 28, 2024
531b4f6
Remove invalid import
ulrikandersen Jun 28, 2024
8aa663e
Remove copy env var step from deploy workflow
ulrikandersen Jun 28, 2024
5942928
Add IS_BUILD_PROCESS flag
ulrikandersen Jun 28, 2024
c4b8ac6
Add IS_BUILD_PROCESS flag to build workflow
ulrikandersen Jun 28, 2024
d4c3f83
Log from DummyGuestRepo
ulrikandersen Jul 2, 2024
8bd21bc
Add back .env.example
ulrikandersen Jul 2, 2024
682ba7c
Configure docker build
ulrikandersen Jul 2, 2024
648cf6b
Add health route back
ulrikandersen Jul 2, 2024
80e5f81
Configure pool with database password
ulrikandersen Jul 2, 2024
83d0554
Configure transport in MagicLinkEmailSender manually
ulrikandersen Jul 3, 2024
6b93ab8
Use node:20.8.1-alpine for Docker build
ulrikandersen Jul 3, 2024
4474e3c
Fixes AuthjsAccountsOAuthTokenRepository unit tests
simonbs Jul 9, 2024
cb1eb4e
Streamlines indentation
simonbs Jul 9, 2024
331daf7
Fixes EmailGuestInviter tests
simonbs Jul 9, 2024
6f6b978
Removes unused variable
simonbs Jul 9, 2024
f4f7c89
Requires FROM_EMAIL environment variabel
simonbs Jul 9, 2024
a185db1
Moves page metadata into environment variables
simonbs Jul 9, 2024
93d4db8
Reorders environment variables
simonbs Jul 9, 2024
096f860
Removes quotes
simonbs Jul 9, 2024
945e3d1
Reads title from environment variable
simonbs Jul 9, 2024
1ad35ba
Renames duck.png to logo.png
simonbs Jul 9, 2024
15720c6
Removes Shape logos
simonbs Jul 9, 2024
bbaae76
Removes shapehq from unit tests
simonbs Jul 9, 2024
0dd671a
Removes Shape Docs from unit tests
simonbs Jul 9, 2024
4b5c630
Makes website title configurable in EmailGuestInviter
simonbs Jul 9, 2024
75f8524
Makes website title configurable in MagicLinkEmailSender
simonbs Jul 9, 2024
b1485de
Removes unneeded parantheses
simonbs Jul 9, 2024
5120ba8
Makes website title configurable in GitHubCommentFactory
simonbs Jul 9, 2024
3ad7ccf
Removes Framna reference
simonbs Jul 9, 2024
81f5699
Removes references to shapetools.io from unit tests
simonbs Jul 9, 2024
2922052
Removes unneeded asset
simonbs Jul 9, 2024
6ce821d
Removes unneeded semicolons
simonbs Jul 9, 2024
9a60122
Uses base64 encoded logo in mails
simonbs Jul 9, 2024
1bbb9e2
Fixes typos
simonbs Jul 9, 2024
9cce21e
Fixes reference to unavailable image
simonbs Jul 9, 2024
9ac04ff
Fixes incorrect filename
simonbs Jul 9, 2024
2b84f7e
Makes .shape-docs.yml filename configurable
simonbs Jul 9, 2024
451cb01
Tests file extension
simonbs Jul 9, 2024
cf8ad65
Reorders env type
simonbs Jul 9, 2024
8476060
Ensures environment variables are read-only
simonbs Jul 9, 2024
113d9d0
Fixes alt text
simonbs Jul 9, 2024
99f7d4e
Ensures session is read-only
simonbs Jul 9, 2024
45868bd
Fetches projects for all user's organisations
simonbs Jul 9, 2024
1224458
Fixes GitHubProjectDataSource tests
simonbs Jul 9, 2024
c0333ca
Adds unit test
simonbs Jul 9, 2024
255ece4
Removes extraneous whitespace
simonbs Jul 9, 2024
2b68e30
Removes GITHUB_ORGANIZATION_NAME environment variable
simonbs Jul 9, 2024
211748c
Removes unused imports
simonbs Jul 9, 2024
d5479f9
Improves formatting
simonbs Jul 10, 2024
36bc08a
Removes code related to guests
simonbs Jul 10, 2024
be8e070
Sorts imports
simonbs Jul 10, 2024
73f7e69
Uses named arguments
simonbs Jul 10, 2024
149a4ff
Gracefully fails reading cached projects
simonbs Jul 10, 2024
3ae83de
Adds owner and ownerUrl to projects
simonbs Jul 10, 2024
a7f5d57
Shows owner in path
simonbs Jul 10, 2024
ea08e6e
Fixes unit tests
simonbs Jul 10, 2024
871e8b3
Adds owner to URL
simonbs Jul 10, 2024
4209903
Improves formatting
simonbs Jul 11, 2024
4d7d7a9
Loads all user's repositories
simonbs Jul 11, 2024
2b13d16
Adds REPOSITORY_NAME_SUFFIX
simonbs Jul 15, 2024
800a4bf
Removes unneeded commas
simonbs Jul 15, 2024
eb4a86d
Renames websiteTitle to siteName
simonbs Jul 15, 2024
fb2e669
Fixes unit tests
simonbs Jul 15, 2024
ec8f8b8
Fixes formatting
simonbs Jul 15, 2024
c39d4d1
Uses GitHub app ID to find our comment in PR
simonbs Jul 15, 2024
7d93aea
Fixes unit tests
simonbs Jul 15, 2024
06ed735
Fixes URLs in PRs
simonbs Jul 15, 2024
7e2c2e2
Streamlines quotes
simonbs Jul 15, 2024
93dd488
Updates PR comments
simonbs Jul 15, 2024
04f049c
Allowlist and disallowlist checks full repository names
simonbs Jul 15, 2024
c455ed7
Adds RepositoryNameEventFilter tests
simonbs Jul 15, 2024
a4dc02c
Removes ExistingCommentCheckingPullRequestEventHandler tests
simonbs Jul 15, 2024
b35a2b7
Removes RepositoryNameCheckingPullRequestEventHandler tests
simonbs Jul 15, 2024
527d952
Adds FilteringPullRequestEventHandler tests
simonbs Jul 15, 2024
e1f6cbc
Removes PostCommentPullRequestEventHandler tests
simonbs Jul 15, 2024
d5edf50
Removes GitHubCommentFactory tests
simonbs Jul 15, 2024
3cab528
Fixes OAuthTokenRefreshingGitHubClient tests
simonbs Jul 15, 2024
0870f45
Adds tests to PostCommentPullRequestEventHandler
simonbs Jul 15, 2024
27531c3
Improves formatting
simonbs Jul 15, 2024
c9f6af4
Updates comment when removing relevant file changes
simonbs Jul 15, 2024
42af1c0
Adds tests to PullRequestCommenter
simonbs Jul 15, 2024
b0bb4a2
Fixes typo
simonbs Jul 15, 2024
da79b24
Adds getStatusText
simonbs Jul 15, 2024
b7e4eed
Refactor PullRequestCommenter
simonbs Jul 15, 2024
3fa1274
Removes getOrganizationMembershipStatus() from IGitHubClient
simonbs Jul 15, 2024
ed44590
Fixes building workflow
simonbs Jul 15, 2024
b9b3eaf
Fixes attempting to connect to Redis during build
simonbs Jul 15, 2024
d7b67a3
Updates dependencies
simonbs Jul 15, 2024
e754d22
Updates Stoplight
simonbs Jul 15, 2024
9aed5c3
Fixes linting errors
simonbs Jul 15, 2024
02ce0c6
Updates dependencies
simonbs Jul 15, 2024
dc804d3
Merge branch 'develop' into feature/authjs
simonbs Jul 15, 2024
a992391
Removes IS_BUILD_PROCESS
simonbs Jul 15, 2024
0518bbe
Adds missing environment variables
simonbs Jul 15, 2024
1f1c46d
Removes unused IS_BUILD_PROCESS
simonbs Jul 15, 2024
c2ce00c
Infrastructure updates
ulrikandersen Jul 16, 2024
ea35fe9
Update staging certificate
ulrikandersen Jul 16, 2024
0818c52
Specify domain name in code
ulrikandersen Jul 16, 2024
dbcb673
Move AWS infrastructure to separate repository
ulrikandersen Jul 16, 2024
264c76f
Updates PR comments
simonbs Jul 16, 2024
c526861
Merge branch 'feature/authjs' of github.com:shapehq/shape-docs into f…
simonbs Jul 16, 2024
54de62b
Update README.md
simonbs Jul 16, 2024
96c8008
Update README.md
simonbs Jul 16, 2024
87049ca
Minor fixes to README.md
ulrikandersen Jul 16, 2024
c30e637
Configures webhooks in composition
simonbs Jul 17, 2024
3937634
Removes separate export
simonbs Jul 17, 2024
f002f89
Merge branch 'feature/authjs' of github.com:shapehq/shape-docs into f…
simonbs Jul 17, 2024
13c7ba7
Adds POSTGRESQL_PASSWORD
simonbs Jul 17, 2024
7f954b2
Ensures environment variables are set
simonbs Jul 17, 2024
070273d
Fixes linting warnings
simonbs Jul 17, 2024
10ff7fe
Merge branch 'develop' into feature/authjs
simonbs Jul 17, 2024
c6d1479
Merge branch 'develop' into feature/authjs
simonbs Jul 17, 2024
af76c84
Merge branch 'develop' into feature/authjs
simonbs Jul 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
AUTH0_BASE_URL='http://dev.local:3000'
AUTH0_CLIENT_ID='Your client ID'
AUTH0_CLIENT_SECRET='Your client secret'
AUTH0_ISSUER_BASE_URL='https://shape-docs-dev.eu.auth0.com'
AUTH0_MANAGEMENT_CLIENT_ID='Your client ID'
AUTH0_MANAGEMENT_CLIENT_SECRET='Your client secret'
AUTH0_MANAGEMENT_DOMAIN='shape-docs-dev.eu.auth0.com'
AUTH0_SECRET='use [openssl rand -hex 32] to generate a 32 bytes value'
SHAPE_DOCS_BASE_URL=http://localhost:3000
SHAPE_DOCS_PROJECT_CONFIGURATION_FILENAME=.shape-docs.yml
NEXT_PUBLIC_SHAPE_DOCS_TITLE=Shape Docs
NEXT_PUBLIC_SHAPE_DOCS_DESCRIPTION=Documentation for Shape's APIs
NEXTAUTH_URL_INTERNAL=http://localhost:3000
NEXTAUTH_SECRET=use [openssl rand -base64 32] to generate a 32 bytes value
REDIS_URL=localhost
POSTGRESQL_HOST=localhost
POSTGRESQL_USER=dbuser
POSTGRESQL_PASSWORD=
POSTGRESQL_DB=db
REPOSITORY_NAME_SUFFIX=-openapi
GITHUB_WEBHOOK_SECRET=preshared secret also put in app configuration in GitHub
GITHUB_WEBHOK_REPOSITORY_ALLOWLIST=
GITHUB_WEBHOK_REPOSITORY_DISALLOWLIST=
GITHUB_CLIENT_ID=GitHub App client ID
GITHUB_CLIENT_SECRET=GitHub App client secret
GITHUB_APP_ID=123456
GITHUB_CLIENT_ID='GitHub App client ID'
GITHUB_CLIENT_SECRET='GitHub App client secret'
GITHUB_ORGANIZATION_NAME='shapehq'
GITHUB_PRIVATE_KEY_BASE_64='base 64 encoded version of the private key'
GITHUB_WEBHOK_REPOSITORY_ALLOWLIST=''
GITHUB_WEBHOK_REPOSITORY_DISALLOWLIST=''
GITHUB_WEBHOOK_SECRET='preshared secret also put in app conf in GitHub'
NEXT_PUBLIC_SHAPE_DOCS_TITLE='Shape Docs'
REDIS_URL=''
SHAPE_DOCS_BASE_URL='https://docs.shapetools.io'
GITHUB_PRIVATE_KEY_BASE_64=base 64 encoded version of the private key - see README.md for more info
15 changes: 0 additions & 15 deletions .github/actions/invite-user/action.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/actions/invite-user/dist/index.js

This file was deleted.

217 changes: 0 additions & 217 deletions .github/actions/invite-user/package-lock.json

This file was deleted.

20 changes: 0 additions & 20 deletions .github/actions/invite-user/package.json

This file was deleted.

87 changes: 0 additions & 87 deletions .github/actions/invite-user/src/Action.ts

This file was deleted.

4 changes: 0 additions & 4 deletions .github/actions/invite-user/src/Logger/ILogger.ts

This file was deleted.

12 changes: 0 additions & 12 deletions .github/actions/invite-user/src/Logger/Logger.ts

This file was deleted.

Loading