Skip to content

Commit

Permalink
[bugfix] Fix using wrong key for clientID during oauth callback (#2101)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmethurst authored Aug 11, 2023
1 parent dc96562 commit dc99e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/auth/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (m *Module) CallbackGETHandler(c *gin.Context) {
return
}

app, err := m.db.GetApplicationByClientID(c.Request.Context(), sessionClientID)
app, err := m.db.GetApplicationByClientID(c.Request.Context(), clientID)
if err != nil {
m.clearSession(s)
safe := fmt.Sprintf("application for %s %s could not be retrieved", sessionClientID, clientID)
Expand Down

0 comments on commit dc99e9e

Please sign in to comment.