mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
fix: Do not evaluate skipApproval on approval page (#3086)
Signed-off-by: MM53 <28218664+MM53@users.noreply.github.com>
This commit is contained in:
@@ -628,12 +628,6 @@ func (s *Server) handleApproval(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
switch r.Method {
|
||||
case http.MethodGet:
|
||||
// TODO: `finalizeLogin()` now sends code directly to client without going through this endpoint,
|
||||
// the `if skipApproval { ... }` block needs to be removed after a grace period.
|
||||
if s.skipApproval {
|
||||
s.sendCodeResponse(w, r, authReq)
|
||||
return
|
||||
}
|
||||
client, err := s.storage.GetClient(authReq.ClientID)
|
||||
if err != nil {
|
||||
s.logger.Errorf("Failed to get client %q: %v", authReq.ClientID, err)
|
||||
|
||||
Reference in New Issue
Block a user