Commit Graph

3584 Commits

Author SHA1 Message Date
Timur Ercan
317ebea8ad Merge branch 'main' into chore/freelance-blog 2024-06-03 17:32:24 +02:00
Timur Ercan
0502181d0f chore: grammarly 2024-06-03 17:28:03 +02:00
Timur Ercan
b010fa3682 chore: date 2024-06-03 10:21:39 +02:00
Timur Ercan
65f10d267f chore: typo 2024-06-03 10:21:05 +02:00
Timur Ercan
b25bbff3f2 chore: video 2024-06-03 10:19:46 +02:00
Timur Ercan
cd2cb6e9d7 chore: typo 2024-06-03 09:53:12 +02:00
David Nguyen
d11a68fc4c feat: add direct templates links (#1165)
## Description

Direct templates links is a feature that provides template owners the
ability to allow users to create documents based of their templates.

## General outline

This works by allowing the template owner to configure a "direct
recipient" in the template.

When a user opens the direct link to the template, it will create a flow
where they sign the fields configured by the template owner for the
direct recipient. After these fields are signed the following will
occur:

- A document will be created where the owner is the template owner
- The direct recipient fields will be signed
- The document will be sent to any other recipients configured in the
template
- If there are none the document will be immediately completed

## Notes

There's a custom prisma migration to migrate all documents to have
'DOCUMENT' as the source, then sets the column to required.

---------

Co-authored-by: Lucas Smith <me@lucasjamessmith.me>
v1.5.6-rc.2
2024-06-02 15:49:09 +10:00
Lucas Smith
c346a3fd6a feat: add oidc support (#1103)
## Description

This PR adds generic OIDC as an authentication provider. This allows
personal users and companies potentially to define whatever IdP they
want as long as it supports the OIDC well known format. (Azure, Zitadel,
Authentik, KeyCloak, Google, etc. all support it)

## Related Issue

Fixes #1090 

## Changes Made

- Adds OIDC buttons to the signin and registration pages
- Adds appropriate environment variables
- Adds migration to add OIDC to the `IdentityProvider` Enum

## Testing Performed

#### Zitadel
- Created application in Zitadel as an web app, with Client auth
- Enabled `User Info inside ID Token` in Token settings
- Copied client id and client secret to the new .ENV variables
- Copied the well-known URL from the URLs section to .ENV
- Created new account with OIDC provider button
- Verified email manually
- Signed into account with OIDC provider
- Logged out
- Signed into accounting again with OIDC provider

#### Authentik
- Created application in Authentik
- Copied client id and client secret to the new .ENV variables
- Copied the well-known URL from the URLs section to .ENV
- Created new account with OIDC provider button
- Verified email manually
- Signed into account with OIDC provider
- Logged out
- Signed into accounting again with OIDC provider

#### Azure AD
- Created application in Azure AD using OAuth2
- Copied client id and client secret to the new .ENV variables
- Copied the well-known URL from the URLs section to .ENV
- Created new account with OIDC provider button
- Verified email manually
- Signed into account with OIDC provider
- Logged out
- Signed into accounting again with OIDC provider
2024-05-31 11:45:17 +10:00
Mythie
70eeb1a746 chore: improve oidc provider support
Adds fields to the Account model to support various pieces
of data returned by OIDC providers such as AzureAD and GitLab.

Additionally passes through the email verification status and handles
retrieving the email for providers such as AzureAD who use a different
claim instead.
2024-05-30 22:15:45 +10:00
Lucas Smith
d8d0734680 Merge branch 'main' into mk/oidc-auth 2024-05-30 15:41:36 +10:00
Sam Poder
6bd2f68014 fix: Capitalise "Stripe" (#1173)
Small fix, I noticed on the marketing site
2024-05-30 13:33:01 +10:00
Lucas Smith
ede6eea88d feat: add kysely for raw type-safe SQL queries (#1041) 2024-05-29 22:46:20 +10:00
Mythie
ebc547684a fix: inline the remember package 2024-05-29 22:25:23 +10:00
Mythie
5724e73d49 chore: revert find-documents change for now
Reverts the change to find-documents to use Kysely. I'd like to gain
confidence by using it in smaller pieces before commiting to doing
what is one of our most complicated queries in Documenso.
2024-05-29 20:54:43 +10:00
Mythie
4a6b5ceaf8 fix: re-add removed types 2024-05-29 20:53:50 +10:00
Mythie
ab949afbb6 fix: convert to kysely queries 2024-05-29 20:03:51 +10:00
Ephraim Atta-Duncan
3b2d184f05 chore: custom tooltip since it's hiding values under other charts 2024-05-29 08:26:58 +00:00
Mythie
3d81b15d71 chore: tidy code 2024-05-29 14:47:33 +10:00
Lucas Smith
27fe8c7f8f Merge branch 'main' into feat/add-kysely 2024-05-28 14:53:29 +10:00
Lucas Smith
0c18f27b3f feat: remove the existing empty signer if its the only one (#1127)
Removes the existing empty signer if its the only one
2024-05-28 14:15:01 +10:00
Lucas Smith
b394e99f7a Merge branch 'main' into feat/start-selfSign 2024-05-28 12:53:57 +10:00
Lucas Smith
c21e30d689 chore: tidy code 2024-05-28 02:45:57 +00:00
Ephraim Duncan
9b92e38c52 chore: add more tests (#1079) 2024-05-27 11:17:03 +07:00
Lucas Smith
ac41086e1a Merge branch 'main' into feat/start-selfSign 2024-05-24 23:48:20 +10:00
Lucas Smith
94cf412f29 fix: show team url in dropdown menu on hover (#1122)
fixes: #943 

<img width="330" alt="Screenshot 2024-02-19 211732"
src="https://github.com/documenso/documenso/assets/75713174/724078ca-e107-4acb-a75d-c7d2cdd29b80">


Video Link:
https://www.loom.com/share/35328504cf3f46e9be78bd485252e8dc?sid=1f309776-8b52-4af4-b86b-652b762fef5b
v1.5.6-rc.1
2024-05-24 23:46:57 +10:00
Mythie
6650a1d72e feat: optional email sending for api users
Introduces the ability to not send an email when sending
(publishing) a document using the API.

Additionally returns the signing link for each recipient
when working with recipient API endpoints and returns
the document object including recipients when sending
documents via API.
2024-05-24 23:36:28 +10:00
Mythie
82848e3d2e fix: animate transition 2024-05-24 18:47:03 +10:00
Lucas Smith
22b8c2044b Merge branch 'main' into fix/show-teams-url-new 2024-05-24 14:58:42 +10:00
Lucas Smith
ef5d267e96 fix: Remove document on go back click on step 1 (#910)
 Fixes #903 
 Invoke `onBackStep` on "Go Back" click and conditionally render
Go back label string.
2024-05-24 14:17:53 +10:00
Lucas Smith
518ddea081 feat: pin input component (#936)
https://github.com/documenso/documenso/assets/55143799/fa3d14d6-59e6-4984-9287-7375198fcea0
2024-05-24 14:13:28 +10:00
Lucas Smith
805758f716 Merge branch 'main' into reattach-pdf 2024-05-24 14:07:43 +10:00
Lucas Smith
04ebb26a0b chore: update wording 2024-05-24 04:02:58 +00:00
Lucas Smith
9cb80aa0bc chore: add pin input to all 2FA components
Adds the pin input to the currently used 2FA components sunsetting
the standard input that was previously used.
2024-05-24 03:31:19 +00:00
Lucas Smith
0985206088 Merge branch 'main' into 2fa-input 2024-05-24 12:53:41 +10:00
Lucas Smith
aadb22cdbf fix: use shadcn pin input and revert changes 2024-05-24 02:51:25 +00:00
Ephraim Atta-Duncan
25f870ccc0 feat: dark mode 2024-05-23 14:39:43 +00:00
Ephraim Atta-Duncan
c86edbefb7 fix: reset autoplay timer when you manually click on a new slide 2024-05-23 13:10:42 +00:00
Timur Ercan
c2c0d4d259 chore: update callout CTAs 2024-05-23 14:22:28 +02:00
Ephraim Atta-Duncan
76e6adcf59 fix: progres slide count 2024-05-23 11:44:03 +00:00
Ephraim Atta-Duncan
7fa3069d8c chore: classname typo 2024-05-23 11:20:13 +00:00
Ephraim Atta-Duncan
4e6e4a0016 feat: add progress at the bottom of the slide 2024-05-23 11:18:21 +00:00
Ephraim Atta-Duncan
907cc3a74e chore: add what's new label 2024-05-23 10:33:47 +00:00
Ephraim Atta-Duncan
c14cd2dcc5 fix: show slide content based on image or video 2024-05-23 10:21:29 +00:00
Ephraim Atta-Duncan
7fdda0a840 feat: replace signup widget with carousel 2024-05-23 10:09:36 +00:00
Lucas Smith
3e304b37b2 feat: sealing robustness (#1170)
A series of changes to improve sealing robustness avoiding errors that
have appeared during monitoring.

Additionally handles the recently published CVE affecting the
`pdfjs-dist` library.
v1.5.6-rc.0
2024-05-23 15:35:05 +10:00
Mythie
1f3df51371 fix: update font variable typo 2024-05-23 15:13:12 +10:00
Lucas Smith
6e2363d48c Merge branch 'main' into fix/sealing-robustness 2024-05-23 15:11:23 +10:00
Mythie
64bec5f29c fix: remove console.log statements 2024-05-23 15:10:28 +10:00
Mythie
311328471e fix: bump react-pdf and pdfjs-dist to handle cve
Bumps ReactPDF and pdfjs-dist to avoid the CVE that allows
for code execution in pdf's. This change doesn't specifically
upgrade to the latest pdfjs-dist due to issues with top level
await, instead disabling the evaluation of javascript within
the PDF.
2024-05-23 14:47:32 +10:00
Mythie
d58a88196a fix: use noto sans for text insertion on pdfs
Use Noto Sans to gracefully handle inserting custom text
on PDF's. Previously we were using Helvetica which is a
standard PDF font but that would fail for any character
that couldn't be encoded in WinANSI.

Noto Sans was chosen as it has support for a large number
of languages and glyphs with challenges now being adding
support for CJK glyphs.
2024-05-23 13:07:37 +10:00