Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5488f47
feat: update console OAuth2 provider support
HarshMN2345 Apr 29, 2026
919109d
fix: align console with latest project sdk methods
HarshMN2345 Apr 29, 2026
14154cb
format
HarshMN2345 Apr 29, 2026
75c34eb
fix: remove unsupported yammer oauth provider
HarshMN2345 Apr 29, 2026
8a78402
remove yammer and change names
HarshMN2345 Apr 29, 2026
ed8bd04
feat: dynamic OAuth2 forms and API key scopes from console SDK
HarshMN2345 Apr 29, 2026
4e55de1
fix: align updateOAuth secret key names with console API parameter IDs
HarshMN2345 Apr 29, 2026
838d602
fix: correct OAuth2 field name mismatches found from API response
HarshMN2345 Apr 29, 2026
0001eb9
perf: prefetch OAuth2 provider params on page load, remove modal loader
HarshMN2345 Apr 30, 2026
e7810c3
feat: replace Apple p8 textarea with file upload zone
HarshMN2345 Apr 30, 2026
5686812
fix-11993-oauth-provider-form-behavior
HarshMN2345 Apr 30, 2026
2301a00
fix-11993-oauth-modal-dirty-state
HarshMN2345 Apr 30, 2026
16060fb
fix-11993-restore-oauth-helper-text
HarshMN2345 Apr 30, 2026
5654f12
fix-11993-clear-non-secret-oauth-fields
HarshMN2345 Apr 30, 2026
02b1d5e
fix lint
HarshMN2345 Apr 30, 2026
84ad093
fix-11993-normalize-oauth-secret-payloads
HarshMN2345 Apr 30, 2026
05e672b
fix: show error alert when listProjectScopes fails in scopes.svelte
HarshMN2345 Apr 30, 2026
2e7e3e7
fix: use example presence to infer required fields when provider is e…
HarshMN2345 Apr 30, 2026
20d09f7
fix: prevent scope data-loss when listProjectScopes fails
HarshMN2345 Apr 30, 2026
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
4 changes: 2 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"dependencies": {
"@ai-sdk/svelte": "^1.1.24",
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@88c189e",
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@33968aa",
"@appwrite.io/pink-icons": "0.25.0",
"@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@bfe7ce3",
"@appwrite.io/pink-legacy": "^1.0.3",
Expand Down
12 changes: 8 additions & 4 deletions src/lib/components/organizationUsageLimits.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,14 @@
}

if (selectedProjectsToDelete?.length) {
const projectsDeletionPromises = selectedProjectsToDelete.map((projectId) => ({
projectId,
promise: sdk.forConsole.projects.delete({ projectId })
}));
const projectsDeletionPromises = selectedProjectsToDelete.map((projectId) => {
const projectToDelete = projects.find((project) => project.$id === projectId);

return {
projectId,
promise: sdk.forProject(projectToDelete.region, projectId).project.delete()
};
Comment thread
greptile-apps[bot] marked this conversation as resolved.
});

try {
const results = await Promise.allSettled(
Expand Down
22 changes: 18 additions & 4 deletions src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export const defaultScopes: string[] = [
'projects.write',
'locale.read',
'avatars.read',
'execution.read',
'execution.write',
'executions.read',
'executions.write',
'targets.read',
'targets.write',
'subscribers.write',
Expand Down Expand Up @@ -339,17 +339,31 @@ export const scopes: ScopeDefinition[] = [
icon: 'lightning-bolt'
},
{
scope: 'execution.read',
scope: 'executions.read',
description: "Access to read your project's execution logs",
category: 'Functions',
icon: 'lightning-bolt'
},
{
scope: 'execution.write',
scope: 'executions.write',
description: "Access to execute your project's functions",
category: 'Functions',
icon: 'lightning-bolt'
},
{
scope: 'execution.read',
description: "Access to read your project's execution logs",
category: 'Functions',
icon: 'lightning-bolt',
deprecated: true
},
{
scope: 'execution.write',
description: "Access to execute your project's functions",
category: 'Functions',
icon: 'lightning-bolt',
deprecated: true
},
{
scope: 'targets.read',
description: "Access to read your project's messaging targets",
Expand Down
52 changes: 28 additions & 24 deletions src/lib/stores/oauth-providers.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import type { Component } from 'svelte';
import Apple from '$routes/(console)/project-[region]-[project]/auth/(providers)/appleOAuth.svelte';
import Auth0 from '$routes/(console)/project-[region]-[project]/auth/(providers)/auth0OAuth.svelte';
import Authentik from '$routes/(console)/project-[region]-[project]/auth/(providers)/authentikOAuth.svelte';
import GitLab from '$routes/(console)/project-[region]-[project]/auth/(providers)/gitlabOAuth.svelte';
import Google from '$routes/(console)/project-[region]-[project]/auth/(providers)/googleOAuth.svelte';
import Main from '$routes/(console)/project-[region]-[project]/auth/(providers)/mainOAuth.svelte';
import Microsoft from '$routes/(console)/project-[region]-[project]/auth/(providers)/microsoftOAuth.svelte';
import Oidc from '$routes/(console)/project-[region]-[project]/auth/(providers)/oidcOAuth.svelte';
import Okta from '$routes/(console)/project-[region]-[project]/auth/(providers)/oktaOAuth.svelte';

export type Provider = {
name: string;
Expand All @@ -28,19 +20,19 @@ export const oAuthProviders: Record<string, Provider> = {
name: 'Apple',
icon: 'apple',
docs: 'https://developer.apple.com/sign-in-with-apple/',
component: Apple
component: Main
},
auth0: {
name: 'Auth0',
icon: 'auth0',
docs: 'https://auth0.com/developers',
component: Auth0
component: Main
},
authentik: {
name: 'Authentik',
icon: 'authentik',
docs: 'https://goauthentik.io/integrations/sources/oauth/',
component: Authentik
component: Main
},
autodesk: {
name: 'Autodesk',
Expand Down Expand Up @@ -108,6 +100,12 @@ export const oAuthProviders: Record<string, Provider> = {
docs: 'https://www.figma.com/developers/api#access-tokens',
component: Main
},
fusionauth: {
name: 'FusionAuth',
icon: 'fusionauth',
docs: 'https://fusionauth.io/docs/apis/identity-providers/oauth2',
component: Main
},
github: {
name: 'GitHub',
icon: 'github',
Expand All @@ -125,21 +123,33 @@ export const oAuthProviders: Record<string, Provider> = {
name: 'GitLab',
icon: 'gitlab',
docs: 'https://docs.gitlab.com/ee/api/',
component: GitLab
component: Main
},
google: {
name: 'Google',
icon: 'google',
docs: 'https://support.google.com/googleapi/answer/6158849',
component: Google
component: Main
},
googleImagine: {
name: 'Google',
icon: 'google',
docs: 'https://support.google.com/googleapi/answer/6158849',
component: Google,
component: Main,
internal: true
},
keycloak: {
name: 'Keycloak',
icon: 'keycloak',
docs: 'https://www.keycloak.org/securing-apps/oidc-layers',
component: Main
},
kick: {
name: 'Kick',
icon: 'kick',
docs: 'https://docs.kick.com/getting-started/using-the-api',
component: Main
},
linkedin: {
name: 'LinkedIn',
icon: 'linkedin',
Expand All @@ -150,7 +160,7 @@ export const oAuthProviders: Record<string, Provider> = {
name: 'Microsoft',
icon: 'microsoft',
docs: 'https://developer.microsoft.com/en-us/',
component: Microsoft
component: Main
},
notion: {
name: 'Notion',
Expand All @@ -162,21 +172,21 @@ export const oAuthProviders: Record<string, Provider> = {
name: 'OIDC',
icon: 'oidc',
docs: 'https://openid.net/connect/faq/',
component: Oidc
component: Main
},
okta: {
name: 'Okta',
icon: 'okta',
docs: 'https://developer.okta.com',
component: Okta
component: Main
},
paypal: {
name: 'Paypal',
icon: 'paypal',
docs: 'https://developer.paypal.com/docs/api/overview/',
component: Main
},
paypalsandbox: {
paypalSandbox: {
name: 'Paypal Sandbox',
icon: 'paypal',
docs: 'https://developer.paypal.com/docs/api/overview/',
Expand Down Expand Up @@ -248,12 +258,6 @@ export const oAuthProviders: Record<string, Provider> = {
docs: 'https://developer.yahoo.com/oauth2/guide/flows_authcode/',
component: Main
},
yammer: {
name: 'Yammer',
icon: 'yammer',
docs: 'https://developer.yammer.com/docs/oauth-2',
component: Main
},
yandex: {
name: 'Yandex',
icon: 'yandex',
Expand Down

This file was deleted.

Loading
Loading