-
Notifications
You must be signed in to change notification settings - Fork 12k
feat: KYZON Space Conferencing App #23486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nangelina
wants to merge
40
commits into
calcom:main
Choose a base branch
from
nangelina:angelina/kyzon-space-app
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,550
−0
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
8b4868b
initial generation with event-type-location-video-static template
nangelina db81e14
implement kyzon-space conferencing app. renamed type from kyzon-space…
nangelina 05721a6
add explicit return type to getKyzonAppKeys to enforce the parsed typ…
nangelina 9614550
select only required fields from prisma
nangelina fba2dad
fix "X-API-Key" header casing inconsistency
nangelina 4d7a24c
use WEBAPP_URL const instead of process.env.NEXT_PUBLIC_WEBAPP_URL fo…
nangelina 0fc375e
await setDefaultConferencingApp before redirecting to avoid race cond…
nangelina 92c6c2e
Rename deleteMeeting param for clarity: uid → meetingId
nangelina c3db869
make sure cal's event start and end times are converted to ISO string…
nangelina 7fd2d99
refactor add.ts handler function to include NextApiResponse and retur…
nangelina 772438b
remove logging errors to console in callback.ts to avoid leaking secrets
nangelina 8406e07
Refactor kyzonCredentialKeySchema: Tighten the schema and coerce IDs …
nangelina 1e36d66
Refactor getKyzonCredentialKey: Adjust expiry_date calculation to acc…
nangelina 4b12cfd
Guard missing refresh_token before calling provider
nangelina 55e37e5
Instead of logging the whole error object, only log select fields to …
nangelina 1f2d47c
Add a timeout to kyzonAxiosInstance to ensure all external API calls …
nangelina 985acfc
Harden expiry check against malformed tokens
nangelina 94e023c
Use URLSearchParams instead of legacy querystring.stringify.
nangelina f27e812
Instead of logging the whole error object, only log select fields to …
nangelina e9a84e6
Previously, in 1e36d6658e78c11f59b81fa4c483b946a4f5b74f, we applied a…
nangelina 69969d4
add descriptive user-agent to kyzonAxiosInstance, so KYZON can whitel…
nangelina 9f90f65
implement wrapper function: authenticatedRequest. this will retry a f…
nangelina 6e5a4a5
De-duplicate concurrent refreshes per credential.
nangelina 67a28d9
change config of kyzon space call to have wait room enabled
nangelina b9f5b5e
fix: rename kyzon-space app directory to kyzonspacevideo
nangelina 6d11fdd
change config of kyzon space call to have wait room enabled
nangelina fa4bc51
Merge branch 'main' into angelina/kyzon-space-app
Devanshusharma2005 8476621
better user-facing error messages
nangelina 7dae7e7
write tests
nangelina df3e101
Merge branch 'main' into angelina/kyzon-space-app
Devanshusharma2005 7ce50ab
Merge branch 'main' into angelina/kyzon-space-app
Devanshusharma2005 330e7ab
Merge branch 'main' into angelina/kyzon-space-app
Devanshusharma2005 50b3b6f
Merge remote-tracking branch 'calcom/main' into angelina/kyzon-space-app
nangelina 230764e
Merge branch 'main' into angelina/kyzon-space-app
Devanshusharma2005 3682ccf
Merge branch 'main' into angelina/kyzon-space-app
romitg2 e4d2a51
Merge remote-tracking branch 'upstream/main' into angelina/kyzon-spac…
romitg2 f75c696
Merge remote-tracking branch 'upstream/main' into angelina/kyzon-spac…
romitg2 be3c9e1
fix: remove logging sensitive information (full response body & autho…
nangelina 926f666
fix: update token_type schema to allow case-insensitive 'Bearer' string
nangelina 216d9b3
fix: prevent null/undefined coercing to strings for user_id and team_id
nangelina File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| items: | ||
| - 1.png | ||
| - 2.png | ||
| - 3.png | ||
| - 4.png | ||
| --- | ||
|
|
||
| {DESCRIPTION} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| import type { NextApiRequest, NextApiResponse } from "next"; | ||
|
|
||
| import { WEBAPP_URL } from "@calcom/lib/constants"; | ||
| import { defaultHandler } from "@calcom/lib/server/defaultHandler"; | ||
| import { defaultResponder } from "@calcom/lib/server/defaultResponder"; | ||
|
|
||
| import { encodeOAuthState } from "../../_utils/oauth/encodeOAuthState"; | ||
| import config from "../config.json"; | ||
| import { kyzonBaseUrl } from "../lib/axios"; | ||
| import { getKyzonAppKeys } from "../lib/getKyzonAppKeys"; | ||
|
|
||
| async function handler(req: NextApiRequest, res: NextApiResponse) { | ||
| // Get user | ||
| const user = req?.session?.user; | ||
| if (!user) { | ||
| return res.status(401).json({ message: "Unauthorized" }); | ||
| } | ||
|
|
||
| const { client_id } = await getKyzonAppKeys(); | ||
| const state = encodeOAuthState(req); | ||
|
|
||
| const query = new URLSearchParams(); | ||
| query.set("response_type", "code"); | ||
| query.set("client_id", client_id); | ||
| query.set("redirect_uri", `${WEBAPP_URL}/api/integrations/${config.slug}/callback`); | ||
| query.set("scope", "meetings:write calendar:write profile:read"); | ||
| if (state) { | ||
| query.set("state", state); | ||
| } | ||
|
|
||
| const url = `${kyzonBaseUrl}/oauth/authorize?${query.toString()}`; | ||
|
|
||
| return res.status(200).json({ url }); | ||
| } | ||
|
|
||
| export default defaultHandler({ | ||
| GET: Promise.resolve({ default: defaultResponder(handler) }), | ||
| }); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need to add description . You can remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I removed {DESCRIPTION}, my app's description disappears from the app store page, so I think we do still need it