Skip to content

Commit

Permalink
Remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jmandel committed Dec 10, 2024
1 parent 50e6a7a commit 9fac971
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions backend/routes/auth/authorize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export default class AuthorizeHandler {
const params: AuthorizeParams = req.method === "POST" ? req.body : req.query

try {
console.log("handling authz", params.launch, req.params.sim);
var launchOptions = new LaunchOptions(String(params.launch || "") || req.params.sim || "")
} catch (ex) {
throw new InvalidRequestError("Invalid launch options: " + ex)
Expand Down Expand Up @@ -335,7 +334,6 @@ export default class AuthorizeHandler {
const { params, launchOptions } = this

const scope = new ScopeSet(decodeURIComponent(this.params.scope));
console.log("Create authz code with", scope);

const code: SMART.AuthorizationToken = {
context: {
Expand Down Expand Up @@ -409,8 +407,6 @@ export default class AuthorizeHandler {
}
}

console.log("Authz code as", code, launchOptions);

return jwt.sign(code, config.jwtSecret, { expiresIn: "5m" });
}

Expand Down Expand Up @@ -530,8 +526,6 @@ export default class AuthorizeHandler {
if (params.prompt === "none") {
// Get the previous authorization context
const context = this.validateIdTokenHint(params.id_token_hint!);
console.log("Prev token context", context)


// Set up launch params from previous context
launchOptions.skip_login = true;
Expand All @@ -553,8 +547,6 @@ export default class AuthorizeHandler {

// Validate the request before proceeding
this.validateAuthorizeRequest();
console.log("validated authz request", launchOptions);


// Create and redirect with new authorization code
const RedirectURL = new URL(decodeURIComponent(params.redirect_uri));
Expand All @@ -564,8 +556,6 @@ export default class AuthorizeHandler {
}
return this.response.redirect(RedirectURL.href);
}
console.log("no prompt=none, continuing");

// Continue with existing authorization flow
this.validateAuthorizeRequest();

Expand Down

0 comments on commit 9fac971

Please sign in to comment.