From c4130174bf712691e7b943be323602212fd452f3 Mon Sep 17 00:00:00 2001 From: Vidar Magnusson Date: Sat, 8 Jun 2024 15:32:03 +0200 Subject: [PATCH] Add TODos --- backend/src/handlers/auth.rs | 1 + backend/src/utils/gamma.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/src/handlers/auth.rs b/backend/src/handlers/auth.rs index 684f01d..c03415d 100644 --- a/backend/src/handlers/auth.rs +++ b/backend/src/handlers/auth.rs @@ -57,6 +57,7 @@ async fn gamma_init_flow( } } + // TODO: these should be config params let scope = "openid%20profile"; let redirect_uri = "http://localhost:3000/api/auth/gamma/callback"; diff --git a/backend/src/utils/gamma.rs b/backend/src/utils/gamma.rs index 0b92af0..7b18141 100644 --- a/backend/src/utils/gamma.rs +++ b/backend/src/utils/gamma.rs @@ -20,6 +20,7 @@ struct GammaTokenRequest { pub async fn oauth2_token(config: &Config, code: &str) -> HubbitResult { let client = Client::new(); + // TODO: THis should be a config param let redirect_uri = "http://localhost:3000/api/auth/gamma/callback"; let url = format!("{}/oauth2/token", config.gamma_internal_url);