Joe Au-Yeung
7a790aaabe
refactor: Moving credential syncing to API ( #13963 )
...
* Implement credential sync secret
* Create auth middleware for credential syncing
* Create GET endpoint
* Update swagger comment
* Add verifyCredentialSyncEnabled middleware
* Fix middleware input
* Fix APP_CREDENTIAL_SHARING_ENABLED to return boolean
* Add check for admin API key
* Add GET method
* Middleware require credential sync secret
* Return only the credentialId
* Update default CALCOM_CREDENTIAL_SYNC_HEADER_NAME value
* Add post endpoint
* Return credential object for get endpoint
* Require a userId in the param
* POST add keys to body
* Add PATCH endpoint
* Add DELETE endpoint
* Fix minimumTokenResponseSchema
* Add encrypted key
* Remove prototype
* Add swagger doc comments
* Fix parsing and error handling
* Add create selectedCalendar and destinationCalendar params
2024-03-15 16:03:49 +00:00
Joe Au-Yeung and Keith Williams
1f845944ac
chore: Add credential sync secret when requesting a token ( #13907 )
...
* Rename .env variables
* Remove instances of old variable names
* Add credential sync secret to request for new token
* Update invalid secret message
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
---------
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
2024-03-04 19:02:48 +00:00
6a1325867e
fix: Fix all TS warnings (fix-tsWarnings) ( #12139 )
...
Co-authored-by: gitstart-calcom <gitstart-calcom@users.noreply.github.com >
Co-authored-by: GitStart-Cal.com <121884634+gitstart-calcom@users.noreply.github.com >
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
2024-01-03 18:18:42 -07:00
Joe Au-Yeung
33bef6acd0
Add conditional ( #11862 )
2023-10-17 11:27:10 +00:00
Joe Au-Yeung
5ee962948f
feat: Readd app syncing ( #11453 )
...
* Revert "Revert "feat: Sync app credentials between Cal.com & self-hosted plat… (#11450 )"
This reverts commit 2565d0915a .
* Add typing to `parseRefreshTokenResponse`
* Add typing
* Return safeParse data
* Type fix and refactor in Zoom
2023-09-20 19:01:54 +01:00
Omar López
2565d0915a
Revert "feat: Sync app credentials between Cal.com & self-hosted plat… ( #11450 )
2023-09-19 14:45:16 -07:00
824145b0e2
feat: Sync app credentials between Cal.com & self-hosted platforms ( #11059 )
...
* Add credential sync .env variables
* Add webhook to send app credentials
* Upsert credentials when webhook called
* Refresh oauth token from a specific endpoint
* Pass appSlug
* Add credential encryption
* Move oauth helps into a folder
* Create parse token response wrapper
* Add OAuth helpers to apps
* Clean up
* Refactor `appDirName` to `appSlug`
* Address feedback
* Change to safe parse
* Remove console.log
---------
Co-authored-by: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com >
Co-authored-by: Omar López <zomars@me.com >
2023-09-19 20:46:50 +00:00