Skip to content

Commit

Permalink
Add TODos
Browse files Browse the repository at this point in the history
  • Loading branch information
ViddeM committed Jun 8, 2024
1 parent 9716646 commit c413017
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/handlers/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
1 change: 1 addition & 0 deletions backend/src/utils/gamma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ struct GammaTokenRequest {
pub async fn oauth2_token(config: &Config, code: &str) -> HubbitResult<GammaTokenResponse> {
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);
Expand Down

0 comments on commit c413017

Please sign in to comment.