Fix OAuth code exchange and go lint
Authorization-code exchange used ExternalClientID, which is empty for registered clients and broke e2e token grants. Pass the authenticated client's GID instead. Also satisfy wsl_v5 blank-line rules, wire the delete reference dialog through its mutation hook, and name the filemanager logger. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -61,6 +61,7 @@ func (r *mutationResolver) UpdateFullName(ctx context.Context, input types.Updat
|
||||
}
|
||||
|
||||
r.logger.ErrorCtx(ctx, "cannot validate profile update", log.Error(err))
|
||||
|
||||
return nil, gqlutils.Internal(ctx)
|
||||
}
|
||||
}
|
||||
@@ -77,6 +78,7 @@ func (r *mutationResolver) UpdateFullName(ctx context.Context, input types.Updat
|
||||
}
|
||||
|
||||
r.logger.ErrorCtx(ctx, "cannot update identity", log.Error(err))
|
||||
|
||||
return nil, gqlutils.Internal(ctx)
|
||||
}
|
||||
|
||||
@@ -87,6 +89,7 @@ func (r *mutationResolver) UpdateFullName(ctx context.Context, input types.Updat
|
||||
}
|
||||
|
||||
r.logger.ErrorCtx(ctx, "cannot update profile", log.Error(err))
|
||||
|
||||
return nil, gqlutils.Internal(ctx)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user